Author Topic: [MOD] RSS Feed 0.1  (Read 143477 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] RSS Feed 0.1
« Reply #60 on: November 12, 2005, 05:40:08 PM »
did u upload rss.php in text mode?
besides the database error you also getting
Quote
Couldn't open Template ./templates/gallery-en/rss.html
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline marius26

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://www.steves-network.net
Re: [MOD] RSS Feed 0.1
« Reply #61 on: November 13, 2005, 02:11:47 AM »
Error:
Code: [Select]
Parse error: parse error, unexpected T_STRING in /home/*******/public_html/fanart/includes/template.php(101) : eval()'d code on line 1
Has anyone figured out why this error happens?

This error acure because rss.html template has:
Quote
<?xml version="1.0" encoding="ISO-8859-1"?>
And 4images new template engine chokes on such code.
For now, I dont have a very good fix for u, but try this work around.
Remove that line from rss.html template.
Then in rss.php replace:
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template));with:
Code: [Select]
$site_template->print_template('<?xml version="1.0" encoding="ISO-8859-1"?>'.$site_template->parse_template($main_template));
(not tested)

thank you very much it works, its tested now i tested myself  :lol:

Offline takgallery

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] RSS Feed 0.1
« Reply #62 on: November 13, 2005, 10:50:57 PM »
did u upload rss.php in text mode?
besides the database error you also getting
Quote
Couldn't open Template ./templates/gallery-en/rss.html

what do you mean ? 
shall i upload the rss.html page too ? 

internet explorer shows the error so :


The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'http://www.takgallery.com/rss.php'. L...

<br /><font color='#FF0000'><b>DB Error</b></font>: <b>Bad SQL Query</b>: SELECT i...
 

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] RSS Feed 0.1
« Reply #63 on: November 13, 2005, 11:34:06 PM »
yes of course - you mostly have a php file to run the script and the html file to show the result of the script!
i belive you did not do what is writen in the readme.txt file  :x

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline takgallery

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] RSS Feed 0.1
« Reply #64 on: November 14, 2005, 09:33:36 AM »
yes of course - you mostly have a php file to run the script and the html file to show the result of the script!
i belive you did not do what is writen in the readme.txt file  :x

vincent

thanks for replies

i tried to follow to the readme.txt ! and i done all of the configuration works
but i still not managed to get this mod work
i have another error

http://www.takgallery.com/rss.php

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'http://takgallery.com/rss.php'. Line ...

<b>Parse error</b>:  parse error, unexpected T_STRING in <b>/home/gallery/public_html/includes/template.ph...


thanks for attentions

Offline takgallery

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] RSS Feed 0.1
« Reply #65 on: November 14, 2005, 09:57:38 AM »
thanks i resolved my problem
 :oops:

Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Re: [MOD] RSS Feed 0.1
« Reply #66 on: December 09, 2005, 06:16:14 AM »
Anyone know how to get a news comment ( Latest News & Archive MOD ) to show up in the Feed?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] RSS Feed 0.1
« Reply #67 on: December 09, 2005, 06:56:10 PM »
Anyone know how to get a news comment ( Latest News & Archive MOD ) to show up in the Feed?

hi sigma,
new ... but not only for you [MOD] News-RSS-Feed V.1.0 ...  :wink:

http://www.4homepages.de/forum/index.php?topic=10715.0

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Re: [MOD] RSS Feed 0.1
« Reply #68 on: December 09, 2005, 09:10:23 PM »
Very nice mawenzi, I'll have to check it out.
Also wonder how I would go about adding a direct link to the page that the thumbnail reprasents. RIght now it just points to my main index page. Anyone know how i can get the thumbnails to link to their proper page?

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] RSS Feed 0.1
« Reply #69 on: December 09, 2005, 09:20:40 PM »
@ sigma,

please post in the right thread ... !
I have updated the rrs_news.php ...

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] RSS Feed 0.1
« Reply #70 on: December 17, 2005, 01:21:10 AM »
in rss.php ...
Code: [Select]
...
$content .= " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>";
...
$content .= " </td><td></table>";
...

mawenzi

Ich möchte das gerne so haben wie beim RSS-News Mod. Schön mit Tabelle und in welcher Kategorie etc.

Habe das jetzt mal mit den content Sachen probiert aber jetzt geht irgendwie gar nichts mehr. Habe dann alles wieder rückgängig gemacht und habe jetzt immer die Meldung "Aktuell sind in diesem Kanal keine Nachrichten verfügbar."

Hatte vorher immer das Problem das ein Thumb immer nur angezeigt wurde wenn zu dem Bild keine Beschreibung vorhanden war. Komische Sache.
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] RSS Feed 0.1
« Reply #71 on: December 17, 2005, 01:49:10 AM »
Ich möchte das gerne so haben wie beim RSS-News Mod. Schön mit Tabelle und in welcher Kategorie etc.

... na klar geht das auch mit dem News-Feed für die Bilder ... siehe hier (My Feed - Bilder)
... sieht mit den Thumbnails, Beschreibungen, Links, ... usw. sogar noch interessanter aus

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] RSS Feed 0.1
« Reply #72 on: December 17, 2005, 02:51:06 AM »
Hi,

habe gerade mal geschaut und das sieht wirklich top aus. Nur die Frage wie ich das hinbekomme. Habe mal ein wenig getestet aber geklappt hat es nicht.
Wenn ich jetzt Änderungen mache dann bekomme ich in meinem Reader immer die Meldung das "Aktuell sind in diesem Kanal keine Nachrichten verfügbar." sind :(

Selbst nachdem ich wieder alles rückgängig gemacht hatte konnte ich nichts mehr sehen. Hab den Kanal schon gelöscht und neu hinzugefügt aber irgendwie haut jetzt was nicht hin.

Naja, werde ich die Tage nochmal probieren.

Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] RSS Feed 0.1
« Reply #73 on: December 24, 2005, 01:23:03 AM »
ich möchte noch gerne die Stichwörter zum Foto haben und das Verzeichniss!
gruss
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Re: [MOD] RSS Feed 0.1
« Reply #74 on: January 12, 2006, 05:55:16 AM »
Just noticed in a RSS Reader my thumbnail image doesnt have a </ br> after it and before the description for the image. anyone know where I would add this?

Is it in the rss.php or one of the template files (rss.html or rssitem.html) ever time i tried in the templat file the live bookmark would give me a parse error.