Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: About RSS  (Read 6368 times)

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
About RSS
« on: August 19, 2007, 01:19:59 AM »

Hello.

I use dreamweaver for working with my projects, well I found a php editor 2.22 - beta2 (freeware).

I try open and find  one thing very strange


See the first header (green) but 2nd header(not green), weel I try find why? But seems no problem.
I add //  or and everything fine.



Strange!!!

It's seems rss comments have problems with rss portuguese language
Website
Important: This error have no connection with last images. RSS Pages & RSS Articles is working 100%


Well IE 6 give error "iacute", FF give no errors but show nothing.
Logged
Need a Job on Europe. Linkdin - Facebook / Group

Joost

  • Guest
About RSS
« Reply #1 on: August 19, 2007, 01:44:56 AM »

Rui,

As I understand it, your (beta)editor jumps out of php mode, disregarding the fact that the end tag is within single quotes. If this doesn't cause any problems on execution (as expected), it is just an editor problem. Or am I missing the point here? :/

PS: In Notepad++ I see no inconsistencies.
Logged

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
About RSS
« Reply #2 on: August 19, 2007, 10:09:59 AM »

IMHO it's a syntax highlighter bug in editor; not in snews code. Seen same thing now and then depending on what editor using at the moment; and ,yes, introduction of commented php start/end tags could serve as short term remedy for specific editor again.
Logged

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
About RSS
« Reply #3 on: August 19, 2007, 04:20:46 PM »

Thank you Joost & codetwist.
I agree with you, for me is a problem php editor.


About RSS comments, anyone have problems?

In Portuguese language we have chars like (á à ã é ó and many more) make problems with rss comments (Rss pages & articles is fine).

I suspect maybe when I create new article when use special chars (like á ã à) I change SefTitle.
Example:
- New article "Formação", snews give Settitle "Formao", I change for "Formacao", maybe this is the problem, really I don't know.

I try your mod "Generate readable non-english SEF titles" by codetwist, but not working well or give me some erros.

Codetwist or anyone, do you have another solution ?
Logged
Need a Job on Europe. Linkdin - Facebook / Group

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
About RSS
« Reply #4 on: August 19, 2007, 08:43:45 PM »

Cheers, Rui, but I'm not sure if I understand the problem or problems correctly ;)

If something work for articles&pages and doesn't work for comments ... at first glance rss producing function seems treating them all same way (granted, I looked through it only briefly). More details on problem nature could help ;)

As for my mod - it deals only with seftitle fields - so, if working and applied there should be no special characters in sef title fields. And that's all. Insofar, if that script didn't worked correctly there were some problems with script saving in way that didn't cripple before it's even get applied; coincidentally it was related to one or another text editor again ;) Anyway, more details could help understand situation better ;)
Logged

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
About RSS
« Reply #5 on: August 19, 2007, 10:48:36 PM »

Thank you codetwist, for help.

Please can you visit my website (portuguese), click in my Rss feeds.
Website or

Rss articles - working 100%
Rss pages - working 100%
Rss comments - not working

I have only one comment:
Comment
Code: [Select]
Porque razão não consigo fazer o download destes ficheiros?!?!?!?

Dá-me uma mensagem que não tenho privilégios para o fazer, sendo que já estou registado!!!

Ou e preciso mais alguma coisa para o fazer!?!?!?!?


Reposta: Sim Sérgio precisas de satisfazeres um dos requisitos vê a caixa da REGRA GERAL no topo deste artigo
"
This comment bellongs to 31th article, but this article everything is fine (seftitle)

I know rss treating them all same way, because is very strange this error.
This happen with me in snews 1.5.31, I do not change scripting js()
Logged
Need a Job on Europe. Linkdin - Facebook / Group

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
About RSS
« Reply #6 on: August 20, 2007, 12:14:22 AM »

Tried to look into, but portuguese version went blank in the middle of action. Either You are updating it or something is a little broken with site setup (english version meanwhile worked just fine). One thing that I don't understand is why in Your quote some of characters aren't displayed properly while most of them in the source of rss-feed seemed ok.

And one more thing - from feed sources it seems that $l['comments'] is set to value 'Comentários'. IMHO  if plain ut8 is used then this string should look differently in portuguese ;)

Ok, portuguese site was available again ... one thing that I noticed and which might be related to problems is that You are trying to use something like 'Comentários' as prefix for comment id in url as well. For me it looks like this:
http://www.engcivil.net/pt/autocad/blocos-para-autocad/#Coment%C3%A1rio1
Logged

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
About RSS
« Reply #7 on: August 20, 2007, 11:03:54 AM »

You are right. Is my problem, I try once but not works (maybe I did something wrong).

Many Thanks to you codetwist

I love snews, and the people on this forum. I'm snews FAN :D

I'll help this comunity everytime every time I can to make more, more mods. Maybe someday be moderator or something like that  :lol:

Once again
Thank you very much Codetwist
Logged
Need a Job on Europe. Linkdin - Facebook / Group

codetwist

  • Hero Member
  • *****
  • Karma: 50
  • Posts: 940
About RSS
« Reply #8 on: August 20, 2007, 03:03:48 PM »

Enjoy ;)
Logged

3oumda

  • Newbie
  • *
  • Karma: 0
  • Posts: 3
Re: About RSS
« Reply #9 on: July 29, 2009, 03:19:58 PM »

I think all these problem , comes from the encoding of the common.php file for an obscur reason.
Logged
(Commercial advertising not permitted in posts or signature lines)

lann

  • Newbie
  • *
  • Karma: 1
  • Posts: 17
Re: About RSS
« Reply #10 on: July 29, 2009, 06:22:08 PM »

Did You try with another language file ?
Logged