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

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] RSS Feed 0.1
« Reply #30 on: July 30, 2005, 09:32:56 AM »
Hi,

i have change it to 10. But i can see 5 :(

And Thumbs i see for 3 Pics and for 2 i don´t see thumbs...

Can you test it?

http://www.terraristik-galerie.de/rss.php
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

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 #31 on: July 30, 2005, 12:04:59 PM »
I see 25 images and all with thumbnails
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] RSS Feed 0.1
« Reply #32 on: July 30, 2005, 05:24:32 PM »
I see 25 images and all with thumbnails

Yes, i have change it to 25 but with my Reader i don´t see all Images. But you see it and i think its OK :)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

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 #33 on: August 06, 2005, 12:21:52 AM »
remove all headers from the file and see what it will output. I bet there some warning or error message.

[EDIT]
here is the error that messing it up:
Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, c.cat_name FROM 4images_images i, 4images_categories c WHERE i.image_active = 1 AND c.cat_id = i.cat_id ORDER BY i.image_date DESC LIMIT
You have an error in your SQL syntax near '' at line 5

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/web98/html/crazyfunpics.de/includes/db_mysql.php on line 96
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 artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [MOD] RSS Feed 0.1
« Reply #34 on: August 09, 2005, 06:26:27 AM »
i get this error tried installing the mod 3 times no difference

This page contains the following errors:

error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error. :(

any ideas

post edited see v@no code below if useing V1.71
:idea:

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 #35 on: August 09, 2005, 02:07:42 PM »
did u change the templates?
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 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 #36 on: August 10, 2005, 12:05:07 AM »
ah, right, 4images v1.7.1 chokes on any combinations of <? and in this mod mistakely treat code between <?xml and ?> as php

In includes/templates.php find:
Code: [Select]
    error_reporting($old);Insert below:
Code: [Select]
    $str = preg_replace(
            "/<!--\\\\ open tag (.+) \\\\-->(.*)<!--\\\\ close tag \\\\-->/siU",
            "<?\\1\\2?>",
            $str
    );

Then find:
Code: [Select]
    // Compile variables in PHP codeInsert above:
Code: [Select]
    $template = preg_replace(
            "/<\?+((?!php )(?!=)(?! ).+ )(.*)\?+>/siU",
            "<!--\\\\ open tag \\1 \\\\-->\\2<!--\\\\ close tag \\\\-->",
            $template
    );
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 artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [MOD] RSS Feed 0.1
« Reply #37 on: August 10, 2005, 12:39:44 AM »
 :D thankyou for your answer, your code you wrote done the trick.

thanks for your time 
rt

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 #38 on: August 10, 2005, 01:55:42 AM »
by the way, I just remmembered that this already was discused on first page! :roll:
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 bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [MOD] RSS Feed 0.1
« Reply #39 on: August 10, 2005, 07:00:43 PM »
Sorry!
Could someone tell me if the problem with not showing private category pics in the feed is solved until now?
Thanks.

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 #40 on: August 10, 2005, 10:57:31 PM »
what exactly is the problem? please be specific ;)
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 bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [MOD] RSS Feed 0.1
« Reply #41 on: August 11, 2005, 10:20:42 AM »
ok i will explain again like on the first page:

Some pics in some categories are only available to see for registered users.

Is the rss feed showing pics of all categories or only of categories which are not private :?:

 :roll:hope everybody can understand what i mean.

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 #42 on: August 11, 2005, 01:54:17 PM »
it doesnt filter any images, so it will show even private ones :?

if u want to show only the ones which guests can see, replace the sql query with this one:
Code: [Select]
$user_info['user_level'] = GUEST;
$user_info['user_id'] = GUEST;
$user_access = get_permission();
$cat_id_sql = get_auth_cat_sql("auth_viewcat", "NOTIN").", ".get_auth_cat_sql("auth_viewimage", "NOTIN");
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_thumb_file, i.image_media_file, c.cat_name, u.user_name
        FROM ".IMAGES_TABLE." i
        LEFT JOIN ".CATEGORIES_TABLE." c ON (c.cat_id = i.cat_id)
        LEFT JOIN ".USERS_TABLE." u ON (u.user_id = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql)
        ORDER BY i.image_date DESC
        LIMIT $num_new_images";

And above
Code: [Select]
include(ROOT_PATH.'global.php');Insert:
Code: [Select]
define("GET_CACHES", 1);
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 artpics

  • Full Member
  • ***
  • Posts: 173
    • View Profile
    • my site
Re: [MOD] RSS Feed 0.1
« Reply #43 on: August 13, 2005, 09:43:50 AM »
hello since installing this mod this code i am useing below to show the date/time no longer works, anyone help me to get me to show the time again

Code: [Select]
<?php
                    
echo date("d.m.Y, H:i"); 
        ?>
thanks
RT

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 #44 on: August 13, 2005, 02:47:26 PM »
how do u determin "it doesnt work"?
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)