forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Aditya Mooley on August 14, 2009, 11:39:17 am

Title: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Aditya Mooley on August 14, 2009, 11:39:17 am
Ported the XFeed plugin (http://forum.coppermine-gallery.net/index.php/topic,56622.0.html) to 1.5 with lot more feed possibilities.

A feed will be available for every album (including meta albums) and categories. In case of category with no meta album, lastup will be used.

Also, added some config settings like whether to show the RSS button and number of items in feed. The browser's subscribe to feed icon will display all the available feeds (RSS/Atom) with proper labeling.

Demo - http://adityamooley.net/photos/

Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_xfeed_v1.11.zip/download
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on August 14, 2009, 12:26:50 pm
Good work Aditya. Much more powerful than my Atom feed plugin for 1.5.

But there is an error. See: http://adityamooley.net/photos/index.php?file=xfeed/xfeed&album=lastalb
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Aditya Mooley on August 14, 2009, 12:59:28 pm
Thanks for spotting the error. I never tested it with lastalb metaalbum, so never got this error. Its fixed now. I have updated the attachment in first post.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on September 02, 2009, 02:14:26 pm
Aditya. Referring to this (http://forum.coppermine-gallery.net/index.php/topic,56308.0.html) thread, you have to replace the function xfd_rss_button with this one:
Code: [Select]
function xfd_rss_button($template_header)
{
    global $XFDSET,$lang_xfeeds,$CONFIG, $album;

    $superCage = Inspekt::makeSuperCage();

    //require('./plugins/xfeed/include/init.inc.php');

    if (!$XFDSET['xfd_rss_button']) {
        return $template_header;
    }

    $xfd_feed = "index.php?file=xfeed/xfeed";

    if ($superCage->get->keyExists('album')) {
        $album = $superCage->get->getRaw('album');
        $xfd_feed .= "&album=$album";
    }

    if ($superCage->get->keyExists('cat')) {
        $cat = $superCage->get->getRaw('cat');
        $cat = (int)$cat;
        $xfd_feed .= "&cat=$cat";
    }

    if ($XFDSET['xfd_feedroute'] == 1) {
        $xfeed_loc = "feeds.feedburner.com/".$XFDSET['xfd_feedburnuname'];
    } else {
        $xfeed_loc = "".str_replace("http://","",$CONFIG[ecards_more_pic_target]).$xfd_feed;
    }

    //static
    $xfeed_title_enc = urlencode($CONFIG['gallery_name']);
    $xfeed_author = "Admin"; // maybe get the first username in the future (gallery creator).

    $html = "
    <!-- BEGIN XFeeds Plugin -->
    <span class=\"xfeeds\">
    <form>
        <select onchange=\"if (this.selectedIndex > 0) location.href=this[this.selectedIndex].value;\">
        <option selected=\"selected\" value=\"\">".$lang_xfeeds['xfd_fe_opts']."</option>
    ";

    if ($XFDSET['xfd_standard'] == 1) {
        $html .= " <optgroup label=\"".$lang_xfeeds['xfd_fe_atom']."\">
        <option value=\"".$CONFIG[ecards_more_pic_target].$xfd_feed."&type=atom\">".$lang_xfeeds['xfd_fe_local_atom']."</option>
        </optgroup>
        ";
    }

    if ($XFDSET['xfd_standard'] == 1 || $XFDSET['xfd_google'] == 1 ||
        $XFDSET['xfd_yahoo'] == 1 || $XFDSET['xfd_msn'] == 1 ||
        $XFDSET['xfd_lines'] == 1 || $XFDSET['xfd_aol'] == 1 ||
        $XFDSET['xfd_feedburn'] == 1 || $XFDSET['xfd_google'] == 1) {

        $html .= " <optgroup label=\"".$lang_xfeeds['xfd_fe_rss']."\">\n";

        if ($XFDSET['xfd_standard'] == 1) {
            $html .= " <option value=\"".$CONFIG[ecards_more_pic_target].$xfd_feed."\">".$lang_xfeeds['xfd_fe_standard']."</option>\n";
        }

        if ($XFDSET['xfd_google'] == 1) {
            $html .= " <option value=\"http://fusion.google.com/add?feedurl=http%3A//".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_google']."</option>\n";
        }

        if ($XFDSET['xfd_yahoo'] == 1) {
            $html .= " <option value=\"http://us.rd.yahoo.com/my/atm/".$xfeed_author."/".$xfeed_title_enc."http%3A//".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_yahoo']."</option>\n";
        }

        if ($XFDSET['xfd_msn'] == 1) {
            $html .= " <option value=\"http://my.msn.com/addtomymsn.armx?id=rss&amp;ut=http://".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_msn']."</option>\n";
        }

        if ($XFDSET['xfd_lines'] == 1) {
            $html .= " <option value=\"http://www.bloglines.com/sub/http://".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_lines']."</option>\n";
        }

        if ($XFDSET['xfd_aol'] == 1) {
            $html .= " <option value=\"http://feeds.my.aol.com/add.jsp?url=http://".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_aol']."</option>\n";
        }

        if ($XFDSET['xfd_feedburn'] == 1) {
            $html .= " <option value=\"http://feeds.feedburner.com/".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_feedburn']."</option>\n";
        }

        $html .= " </optgroup>\n";
    }

    $customRSSOpt = $customRSS = '';
    for ($i = 1; $i <= 5; $i++) {
        if ($XFDSET['xfd_customenable'.$i] == 1) {
            if (empty($customRSSOpt)) {
                $customRSSOpt = "   <optgroup label=\"".$lang_xfeeds['xfd_fe_links']."\" />\n";
            }
            $customRSS .= "  <option value=\"".$XFDSET['xfd_customurl'.$i]."\">".$XFDSET['xfd_customtitle'.$i]."</option>\n";
        }
    }

    $html .= "  $customRSSOpt $customRSS </select>
        <noscript><input type=\"submit\" value=\"go\"></noscript>
    </form>
    </span>

    <!-- END XFeeds Plugin -->
    ";

    return $template_header.$html;
}



Additionally I wonder why you place the config buttin in the sub menu instead of the admin menu ???
Code: [Select]
$thisplugin->add_filter('sub_menu','xfd_add_config_button');

Maybe we should add this plugin to the svn?
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on September 11, 2009, 10:24:09 am
Added plugin to svn. Moved config button to admin menu. Added admin menu icon. Replaced function xfd_rss_button.

Version 1.6 attached to the initial post.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on October 09, 2009, 09:08:42 am
Attached version 1.8 to initial post.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: smoke on March 25, 2010, 09:11:59 pm
Is it possible to get a feed off of the favpics album? 
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Aditya Mooley on March 26, 2010, 05:10:15 am
No, its not possible. You will see the favpic feed when you go on favpic page but your RSS reader won't show anything.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: smoke on March 26, 2010, 11:45:48 pm
I kind of figured that would be the case with it, but I seem to remember being able to access favourites by user ID before.  Wasn't sure if I was missing out on something obvious when I tried it.

Thanks for a cool plugin.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Vixs on April 07, 2010, 08:01:59 pm
How to fix problem displayed color button "RSS" in latest IE8?

In IE8 i see text string "Feed option -->"

Thanks.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Vixs on April 07, 2010, 08:14:54 pm
And this plugin "xfeed 1.9" many conflict with "LightBox NotesFor.net (lightbox_notes_for_net): v2.5"

- no displayed "RSS" color buttons, only text string
- not work subscribe any feed-s

tested in FireFox 3.6.3 and latest IE8
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Joe Carver on April 07, 2010, 09:56:28 pm
1) You need to post a link to your Coppermine when asking for support - forum rule

2) LightBox is now at ver. 2.7 - see the Support thread
        - it will work with XFeed above LightBox in list of installed plugins

3) Atom feed did work for me (although I had some troubles with RSS) using AtomFeed ver. 1.9 with and without LightBox
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Vixs on April 08, 2010, 07:59:53 pm
1 - http://gallery.art-world.in.ua/
2 - solved
3 - atom plugin not needed, only XFeed

plase help

Quote
How to fix problem displayed color button "RSS" in latest IE8?

In IE8 i see text string "Feed option -->"

CPG 1.5.3 RC, theme - curve (mod)
installed plugin

bbcode_control
dst
fav_button
fetchcontent
lightbox_notes_for_net
no-crop-rotate
onlinestats
xfeed
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Joe Carver on April 09, 2010, 12:11:34 am
From what I can see it looks like the issue might be with the non-latin characters. I was able to reproduce it somewhat on my cpg test gallery. The version that I have there might be different than yours so therefore:

To be certain I would suggest that you re-test with no plugins installed. Then if you use Opera you mught be able to see the exact fault. Copy and paste that into your next post.

This error I got on your site was similar o one I got on mine with a Cyrillic title on one picture.
Quote
XML parsing failed: syntax error (Line: 11, Character: 9)

8: <generator>Coppermine RSS Aggregator</generator>
  9:
 10:    <item>
 11:       <title>&ETH;�&ETH;&micro;&ETH;&sup1;&ETH;&middot;&ETH;&deg;&ETH;&para; &ETH;&middot;&ETH;&deg;&Ntilde;�&Ntilde;�&ETH;&deg;&ETH;&sup2;&ETH;&ordm;&ETH;&deg;2</title>
 12:       <link>http://gallery.art-world.in.ua/displayimage.php?pid=28</link>
 13:       <dc:creator></dc:creator>
 14:       <pubDate>Wed, 07 Apr 2010 00:56:56 +0300</pubDate>


Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Joachim Müller on April 09, 2010, 07:26:03 am
Does the XML file specify the correct encoding in the header?
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Joe Carver on April 09, 2010, 12:04:51 pm
Does the XML file specify the correct encoding in the header?

Here is what I see.

Quote
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel>

At the moment this is about all that I can contribute to this one  - I am in too deep my own plugins!


Title: Add to Yahoo link does not work
Post by: xcruci8 on May 01, 2010, 08:42:27 am
Running version 1.5.3 with v1.9 of this plugin.

In codebase.php, part of the add to yahoo link is missing.  I replaced the commented line (line 113) with the line below it and now the link works.

Code: [Select]
if ($XFDSET['xfd_yahoo'] == 1) {
  //$html .= " <option value=\"http://us.rd.yahoo.com/my/atm/".$xfeed_author."/".$xfeed_title_enc."http%3A//".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_yahoo']."</option>\n"
  $html .= " <option value=\"http://us.rd.yahoo.com/my/atm/".$xfeed_author."/".$xfeed_title_enc."/*http://add.my.yahoo.com/rss?url=http%3A//".$xfeed_loc."\">".$lang_xfeeds['xfd_fe_yahoo']."</option>\n";
}

Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: smartbyte on May 10, 2010, 03:28:32 am
If you are interested in how to make this plugin Cooliris compatible:

In codebase.php change the sequence of the RSS-feed in the Header on the album page(line 283): (move the $extra_header variable 2 lines up)
Code: [Select]
    $header .= "    $extra_header
    <link rel=\"alternate\" type=\"application/rss+xml\" title=\"".$CONFIG['gallery_name']." - RSS\" href=\"".$CONFIG['ecards_more_pic_target'].$xfd_feed."\" />
    <link rel=\"alternate\" type=\"application/atom+xml\" title=\"".$CONFIG['gallery_name']." - Atom\" href=\"".$CONFIG['ecards_more_pic_target'].$xfd_feed."&amp;type=atom\" />
    <style type=\"text/css\">

and in xfeed.php change the RSS stream to a media RSS stream(line 124):
Code: [Select]
//    print "<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">";
    print "<rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss/\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n";
and comment out or delete the dc-creator line, because the media stream doesn't know how to handle dc tags:
Code: [Select]
//        print "\t\t<dc:creator>{$row['owner_name']}</dc:creator>\n";
and add the media tags (the creator from above is added again as media:credit):
Code: [Select]
        print "</description>\n";
        print "\t\t<guid>$base/displayimage.php?pid={$row['pid']}</guid>\n";
print "\t\t<media:credit role=\"uploader\" scheme=\"urn:yvs\">{$row['owner_name']}</media:credit>\n";
        print "\t\t<media:description>".htmlentities($title)."</media:description>\n";
        print "\t\t<media:thumbnail url=\"$base/".get_pic_url($row, 'thumb')."\"/>\n";
        print "\t\t<media:content url=\"$base/".get_pic_url($row, 'normal')."\"/>\n";
        print "\t</item>\n";

and voila Cooliris detects the pictures in the albums.

... just a suggestion, but it's a small change only and I think it's worth it!

C ya.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: smartbyte on May 11, 2010, 03:13:33 am


This is beta 2!

Now we still have the dc creator field, because I just added the xmlns:dc to the header.
... and the header looks like this:

Code: [Select]
    print "<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"";
    print "                     xmlns:media=\"http://search.yahoo.com/mrss/\"";
    print "                     xmlns:atom=\"http://www.w3.org/2005/Atom\">\n";

... and I have implemented the dc:creator flag again. Just to be sure, that it is as compatible as it gets...
(I don't know which software uses the dc:creator flags... but Aditya is the master of RSS, I just looked up and tested how to make them work with cooliris.)

By, bye.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: ericco on June 08, 2010, 11:12:01 pm
Hello, excuse me for my english  :-\

Why the picture not appears http://www.photos-de-montres.com/galeriemontres/index.php?file=xfeed/xfeed
And also the older last adds picture, only the last
Thk
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: smartbyte on June 09, 2010, 02:30:15 am

... when I look at your feed. It ends in a </channel> but it never opens it. maybe it is forgotten in the code somehwere to open a <channel>

Your header:
Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel>
<title>Photos de montres</title>
<link>http://www.photos-de-montres.com/galeriemontres</link>
<description>Photos des nouvelles montres, nouveautés de l&#039;horlogerie</description>
<language>en-US</language>
<lastBuildDate>Wed, 09 Jun 2010 02:13:05 +0200</lastBuildDate>
<generator>Coppermine RSS Aggregator</generator>

My header:
Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"                     xmlns:media="http://search.yahoo.com/mrss/"                     xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Kati and Joern Pictures | Album: 2002 Toskana</title>
<link>XXXXXXXXXXXXXXXXXXX</link>
<description>... our gallery</description>
<language>en-US</language>
<lastBuildDate>Tue, 08 Jun 2010 20:29:06 -0400</lastBuildDate>
<generator>Coppermine RSS Aggregator</generator>

So there definetly is something missing. I can check the code, if I have time.

Thanks for that hint.

The gallery listing works for Albums, but not for the Start page...
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: ericco on June 09, 2010, 05:22:03 pm
Where is this file to modify for add <channel>  ???
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: papukaija on June 09, 2010, 08:20:03 pm
Where is this file to modify for add <channel>  ???

It's in /plugins/xfeed/xfeed.php
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: papukaija on June 09, 2010, 08:32:44 pm
The gallery listing works for Albums, but not for the Start page...

Confirming. This issue is not related to the channel tag; as you can see in the source code of this start page (http://www.adityamooley.net/photos/index.php?file=xfeed/xfeed) and this album feed (http://www.adityamooley.net/photos/index.php?file=xfeed/xfeed&album=lastalb). So there is something in xfeed.php that makes the feed to use the generic image.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: ericco on June 09, 2010, 10:55:04 pm
It's not the tag channel, it's other
my xfeed.php attached
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: ericco on June 16, 2010, 08:36:37 pm
No solution  ??? :(
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: smartbyte on June 17, 2010, 12:49:39 am
Nahh, nothing yet, I had a look at the two feeds, and they look the same to me, so maybe it's just the length of the feed...
Wee need some RSS knowledge to solve this issue.  :-\
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x modified
Post by: jayhunter on September 23, 2010, 10:41:18 am
Hey.

Edited in an option to change the position of the RSS Button. Inspired by the Social Bookmarks plugin by Joachim Müller (http://forum.coppermine-gallery.net/index.php/topic,61671.0.html (http://forum.coppermine-gallery.net/index.php/topic,61671.0.html)). Took a small code snipped from there too.

Possible options are the old one right above the gallery or parsing to template.htm with placeholder {XFD_BUTTON} which, of course, you can place anywhere in the template.

Edited language files and changend version to 1.9.1 (was 1.7 in lang file but it's based on 1.9 of course..).

Demo @ http://htbackdrops.com (http://htbackdrops.com)
Have Phun
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: photo2pictures on October 09, 2010, 07:01:49 am
I have been looking at this post for some time now but still don´t get it.

I tried to install the xfeed plugin for CPG 1.5.x, but I get an error:

Critical error

There was an error while processing a database query.

**************
While executing query '
 
  INSERT INTO `cpg15x_plugin_xfeeds` (
    xfd_rss_button,
    xfd_rss_button_position,
   xfd_standard,
   xfd_google,
   xfd_yahoo,
   xfd_msn,
   xfd_lines,
   xfd_aol,
   xfd_feedburn,
   xfd_feedburnuname,
   xfd_feedroute,
   xfd_customenable1,
   xfd_customenable2,
   xfd_customenable3,
   xfd_customenable4,
   xfd_customenable5,
   xfd_customtitle1,
   xfd_customtitle2,
   xfd_customtitle3,
   xfd_customtitle4,
   xfd_customtitle5,
   xfd_customurl1,
   xfd_customurl2,
   xfd_customurl3,
   xfd_customurl4,
   xfd_customurl5,
   xfd_theme,
    xfd_feed_items)
VALUES (
    1,
    0,
   1,
   1,
   1,
   1,
   1,
   1,
   0,
   'undefined',
   0,
   0,
   0,
   0,
   0,
   0,
   'Link Title 1',
   'Link Title 2',
   'Link Title 3',
   'Link Title 4',
   'Link Title 5',
   'http://www.example.com',
   'http://www.example.com',
   'http://www.example.com',
   'http://www.example.com',
   'http://www.example.com',
   3,
    10
)' in plugins/xfeed/codebase.php on line 326

mySQL error: Unknown column 'xfd_rss_button_position' in 'field list'

**************

For the PHP Info, see attached "PHPinfo.txt"...

What else do you want to see or know?

What can I do to solve this problem..?

Best regards,
Brian
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: jayhunter on October 09, 2010, 10:22:46 am
I have been looking at this post for some time now but still don´t get it.

I tried to install the xfeed plugin for CPG 1.5.x, but I get an error:
[..]
What can I do to solve this problem..?

Hey.

That's my fault. I just hacked together that 1.9.1 version I posted and forgot to make a clean test installation.

Here you go with a new one.

Keep in mind that I'm not the original maintainer and the versions I post here are not offical in any way.

My personal changelog:

 Cheers
 Jayhunter
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: photo2pictures on October 09, 2010, 12:22:37 pm
Thank you - I appreciate the fast response  :) and tried again. Unfortunately it still result in error here, but a slightly different error this time.

Critical Error
There was an error while processing a database query.

***************
While executing query '
 
  INSERT INTO `cpg15x_plugin_xfeeds` SET
    xfd_rss_button=1,
    xfd_rss_button_position=0,
     xfd_standard=1,
     xfd_google=1,
     xfd_yahoo=0,
     xfd_msn=1,
     xfd_aol=1,
     xfd_feedburn=0,
     xfd_feedburnuname='undefined',
     xfd_feedroute=0,
     xfd_customenable1=0,
     xfd_customenable2=0,
     xfd_customenable3=0,
     xfd_customenable4=0,
     xfd_customenable5=0,
     xfd_customtitle1='Link Title 1',
     xfd_customtitle2='Link Title 2',
     xfd_customtitle3='Link Title 3',
     xfd_customtitle4='Link Title 4',
     xfd_customtitle5='Link Title 5',
     xfd_customurl1='http://www.example.com',
     xfd_customurl2='http://www.example.com',
     xfd_customurl3='http://www.example.com',
     xfd_customurl4='http://www.example.com',
     xfd_customurl5='http://www.example.com',
     xfd_theme=3,
    xfd_feed_items=10
  ' in plugins/xfeed/codebase.php on line 321    <<<--- it has changed from line 326 to 321

mySQL error: Unknown column 'xfd_rss_button_position' in 'field list'

***************

For the PHP Debug Info, see attached "PHPinfo2.txt"...

I tried to CHMOD all xfeed folders and files to 777 without any positive results.

Can it be the server PHP configuration..?
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: jayhunter on October 09, 2010, 01:01:33 pm
Thank you - I appreciate the fast response  :) and tried again. Unfortunately it still result in error here, but a slightly different error this time.

No problem ..

  ' in plugins/xfeed/codebase.php on line 321    <<<--- it has changed from line 326 to 321

mySQL error: Unknown column 'xfd_rss_button_position' in 'field list'
The error has change quite a bit more .. but that doesn't matter.

You will have to completly delete xfeed. For me it worked just by removing it throu the plugin manager (not just uninstall!).
Please remove the plugin, delete the plugins/xfeed folder and - very important - check the database directly (phpmyadmin) if the table 'cpg15x_plugin_xfeeds' got removed. If not, do that by hand.

Now you are ready to try again. :)

I tried to CHMOD all xfeed folders and files to 777 without any positive results.

Can it be the server PHP configuration..?
Chmod or the server configuration has nothing to do with this. It's a database related error.

Hope you get it working.

Cheers
Jayhunter
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: papukaija on October 09, 2010, 01:23:13 pm
@photo2pictures: Your gallery is located at http://www.photo2pictures.com/gs/  (the board rules require you to post a link to your gallery for support requests).
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: photo2pictures on October 09, 2010, 09:18:47 pm
To papukaija: Sorry, and thanks.

To jayhunter: It helped. I deleted 'cpg15x_plugin_xfeeds' from MySQL tables and xfeed files and folders. Then I made a new install, and now it seems to work :)

I will report if I run into problems, thanks for your help so far, both of you, it was really great !!

 :)
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: csman on November 14, 2010, 05:01:38 am
Having feeds is a must, so thanks a lot to the author. One problem: for me (PHP 5.2.10), it mangled all titles and comments in UTF-8 (specifically, Cyrillic), making the feed unusable. To get around that, I tweaked xfeed.php:

every time htmlentities(...) is called, change that to htmlentities(...,ENT_COMPAT,"UTF-8");

That seems to have fixed some encoding issues, however some other entities in captions, such as laquo; were still breaking the resulting feed. I fixed it by carefully replacing &laquo with &amplaquo with a preg. Someone can have some real feed problems without the above!

Minor - BBCode such as [url= shows up unformatted in the RSS feed.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: jayhunter on November 15, 2010, 08:41:28 pm
One problem: for me (PHP 5.2.10), it mangled all titles and comments in UTF-8 (specifically, Cyrillic), making the feed unusable. To get around that, I tweaked xfeed.php:

every time htmlentities(...) is called, change that to htmlentities(...,ENT_COMPAT,"UTF-8");

That seems to have fixed some encoding issues, however some other entities in captions, such as laquo; were still breaking the resulting feed. I fixed it by carefully replacing &laquo with &amplaquo with a preg. Someone can have some real feed problems without the above!

Let's fix that for everyone ...

The problems you encountered with &laquo; can be resolved by using htmlspecialchars() instead of htmlentities().

Minor - BBCode such as url= shows up unformatted in the RSS feed.

No problem :)

So here is a new version for you guys.
Keep in mind that I'm not the original maintainer and the versions I post here are not offical in any way.

My personal changelog:

Hope this works for everyone. Did test it on two sites and w3.org validates the feeds in UTF8 .. execpt for a missing DOCTYPE.

Cheers Jayhunter
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: DaMysterious on December 15, 2010, 10:35:33 pm
Today some glitches came through ligt on my system using the latest 1.9.3.

Debug info for that part:
Code: [Select]
\plugins\xfeed\codebase.php

    * Notice line 75: Use of undefined constant ecards_more_pic_target - assumed 'ecards_more_pic_target'
    * Notice line 92: Use of undefined constant ecards_more_pic_target - assumed 'ecards_more_pic_target'
    * Notice line 105: Use of undefined constant ecards_more_pic_target - assumed 'ecards_more_pic_target'

Solution for my situation:
I searched(three occurrences)
Code: [Select]
$CONFIG[ecards_more_pic_target]
replace with
Code: [Select]
$CONFIG['ecards_more_pic_target']

At last search
Code: [Select]
    return $template_header.$html;
replace with
Code: [Select]
    // return $template_header.$html;
    return $html;


In file xfeed.php a errors did came up for me.

Critical error
Code: [Select]
While executing query 'SELECT pid,aid,filepath,filename,url_prefix,pwidth,pheight,filesize,ctime,title,keywords,votes,pic_rating,hits,caption,owner_id,u.user_name FROM cpg15x_pictures r, cpg15x_users u
            WHERE (1) AND r.owner_id = u.user_id AND approved = 'YES' ORDER BY pid DESC LIMIT 0, 10' in plugins\xfeed\xfeed.php on line 87

I searched
Code: [Select]
    $query = "SELECT pid,aid,filepath,filename,url_prefix,pwidth,pheight,filesize,ctime,title,keywords,votes,pic_rating,hits,caption,owner_id,u.user_name FROM {$CONFIG['TABLE_PICTURES']} r, {$CONFIG['TABLE_USERS']} u
replaced with
Code: [Select]
    $query = "SELECT r.pid,r.aid,r.filepath,r.filename,r.url_prefix,r.pwidth,r.pheight,r.filesize,r.ctime,r.title,r.keywords,r.votes,r.pic_rating,r.hits,caption,r.owner_id,u.user_name FROM {$CONFIG['TABLE_PICTURES']} r, {$CONFIG['TABLE_USERS']} u

Possible this will work to for other server set-ups. At last the errors did disappear for me.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: cdeome on January 28, 2011, 06:57:59 pm
Hello, excuse me for my english  :-\

Why the picture not appears http://www.photos-de-montres.com/galeriemontres/index.php?file=xfeed/xfeed
And also the older last adds picture, only the last
Thk

I agree, all I see is an empty film can.   Is there plans to add the thumbnail to the RSS Item?  I want to have the latest image shown when I pull up the RSS entry.

Does that make sense?  http://deome.net/gallery
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on January 29, 2011, 11:14:43 am
Just made a short test with the lastup meta album: http://deome.net/gallery/index.php?file=xfeed/xfeed&album=lastup

Works as expected. That's curious behavior, as the default feed and the lastup feed displays the same images. So maybe there's a bug in the plugin.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: jayhunter on January 29, 2011, 11:25:30 am
Check out my unofficial version from this post:

http://forum.coppermine-gallery.net/index.php/topic,61197.msg337765.html#msg337765 (http://forum.coppermine-gallery.net/index.php/topic,61197.msg337765.html#msg337765)

It has the missing thumbnail bug and some others fixed.

That's curious behavior, as the default feed and the lastup feed displays the same images. So maybe there's a bug in the plugin.

xfeed really is not programmed with style. There are three (if I remember correct) different SQL querys that basically do the same thing and stuff like that. One of them is not correct in the original plugin, explaining the missing thumbs only in some feeds.

What behavior would you expect from the default feed instead of showing the latest additions?

Cheers,
Jayhunter
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on January 29, 2011, 11:38:09 am
What behavior would you expect from the default feed instead of showing the latest additions?
Sorry, bad wording. I expect that it displays the latest additions, but with working thumbnails ;)
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: cdeome on January 29, 2011, 08:16:53 pm
Just downloaded.  I'll give it a try.  Spent most of the day fixing a permissions issue that my host screwed up.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: HelloDaly on May 03, 2011, 06:35:10 am
To papukaija: Sorry, and thanks.

To jayhunter: It helped. I deleted 'cpg15x_plugin_xfeeds' from MySQL tables and xfeed files and folders. Then I made a new install, and now it seems to work :)

I will report if I run into problems, thanks for your help so far, both of you, it was really great !!

 :)

I took the same steps and all is working great! Thank you so much for the plugin.

Question: how do I change or where if the file where I can change the gallery title and description that appears when I subscribe to the RSS using Live Bookmarks/in a browser like Firefox. I modified the xfeed.php and it removed the gallery title but I still cannot figure out how to change the description of the feed.

This is my page: http://cyclingphotos.hellodaly.com/
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on May 03, 2011, 10:25:30 am
Remove/comment out the following line in xfeed.php:
Code: [Select]
print "<description>".$CONFIG['gallery_description']."</description>\n";(not tested).
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: HelloDaly on May 03, 2011, 09:51:22 pm
Αndré, thank you for answering my question. A couple more questions and I hope they will be the last, what would the code look like if I wanted to add the gallery title back (display the gallery title)?

For the description, if I were to display it, would I put the description where it is bolded, after the ; semicolon, or between the opening and closing carrots?

print "<description>".$CONFIG['gallery_description']."</description>\n";

I really appreciate your time in responding to me. Thank you.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on May 03, 2011, 10:06:44 pm
If you want to add a custom description, replace
Code: [Select]
".$CONFIG['gallery_description']."with your custom description.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: profili on August 11, 2011, 02:56:31 am
 Any possibility to have the thumbnails in the feed too, instead of that standard thumbnail (thumb_nopic)?

Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on August 11, 2011, 09:19:23 am
Works as expected in my gallery. Please post a link to your gallery.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: profili on August 11, 2011, 12:26:27 pm
www.galsh.com/index.php?file=xfeed/xfeed
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on August 11, 2011, 02:53:26 pm
If you want to find out what's wrong, you have to debug the following part in include/functions.inc.php:
Code: [Select]
        $localpath = $pic_row['filepath'] . $pic_prefix[$mode] . $pic_row['filename'];
       
        // Check here that the filename we are going to return exists
        // If it doesn't exist we return a placeholder image
        // We then log the missing file for the admin's attention
        if (file_exists($url_prefix[$pic_row['url_prefix']] . $localpath)) {
            $filepathname = $url_prefix[$pic_row['url_prefix']] . path2url($localpath);
        }
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: profili on August 11, 2011, 03:02:06 pm
Should I post my /functions.inc.php here or what?
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: jayhunter on August 11, 2011, 03:10:04 pm
Just use the version that I posted somewhere on page 2.

http://forum.coppermine-gallery.net/index.php/topic,61197.msg337765.html#msg337765

It has the thumbnail bug and some other errors fixed.

Cheers,
Tobias
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on October 07, 2011, 12:11:38 pm
Version 1.10 attached to initial post. All users should upgrade to that plugin version immediately, as all prior verisons contain a possible SQL injection vulnerability!
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: cmfa on December 20, 2011, 06:51:18 pm
in google chrome are still shown no thumbnail. It appears thumb_nopic. Is there a solution?

vg
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Ludo on February 09, 2012, 03:53:29 pm
Version 1.10 attached to initial post. All users should upgrade to that plugin version immediately, as all prior verisons contain a possible SQL injection vulnerability!
V. 1.10 doesn't feature the option to place RSS button elsewhere than in Gallery header, doesn't display thumbnails in the feed and its RSS output is broken by special characters.
Since all of these issues were solved in v. 1.9.3, what about starting from it to release a working v. 1.10? I had to reapply all 1.9.3 fixes to 1.10 files manually to get it fully functional.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Pino on February 25, 2012, 11:18:09 pm
Errore interpretazione XML: tag corrispettivo mancante. Atteso: </p>.
Indirizzo: http://votalatop.altervista.org/index.php?file=xfeed/xfeed
Linea numero 14, colonna 12:</script></td>
-----------^


??????
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on March 05, 2012, 04:53:23 pm
Since all of these issues were solved in v. 1.9.3, what about starting from it to release a working v. 1.10? I had to reapply all 1.9.3 fixes to 1.10 files manually to get it fully functional.
What about sharing that files with the community? I just fixed the vulnerability in our SVN. I haven't checked what has been changed here since the release of version 1.9, simply because of the missing personal interest. I'll release version 1.11 as soon as I get your files.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Ludo on March 05, 2012, 06:29:33 pm
Here they are, I attached the whole plugin folder because I can't remember exactly which files I had to edit :)
Please review my edits to ensure I didn't overwrite any security fix  ::)
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on March 07, 2012, 10:48:28 am
Version 1.11 (attached to initial post) contains the improvements of the 1.9.x versions by jayhunter.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 28, 2012, 02:44:59 pm
Hi, I like this plugin, do you know how to move the image at the top of the page? Thanks.  :)
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on November 28, 2012, 03:04:11 pm
At the top of which page?
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 28, 2012, 04:01:34 pm
All pages.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on November 28, 2012, 04:30:26 pm
:o

If you're not able to explain your question more detailed I'm not able to help you. Maybe someone else knows what you're talking of.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Phill Luckhurst on November 28, 2012, 06:55:30 pm
No idea. What image would you like to move where? Please post a link to your site and a image detailing exactly what you want moved and where. Maybe draw arrows on a screen grab using paint or photoshop etc.

Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 28, 2012, 07:30:58 pm
Hi, sorry, now I'm able to tell you better what I mean with a screenshot.
This is my gallery: http://www.funivieminiatura.it/gallery/
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on November 29, 2012, 09:49:38 am
Have a look at codebase.php and you'll find the following line:
Code: [Select]
return $template_header.$html;
$html contains the RSS button, $template_header is your theme's header (everything before {GALLERY} in template.html).

If you want to move the button above the header, change the code to
Code: [Select]
return $html.$template_header;
If you want to place the button in your header, you have to do something like
Code: [Select]
return str_replace('<h3>{GAL_DESCRIPTION}</h3>', '<h3>{GAL_DESCRIPTION}</h3>'.$html, $template_header);
Of course you can also add a new token (e.g. {RSS_BUTTON}) to your theme's template.html file. In this case, you just have to replace that token
Code: [Select]
return str_replace('{RSS_BUTTON}', $html, $template_header);
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 29, 2012, 12:54:43 pm
Uhm, many thanks for your help, but I get some errors, maybe because my template.html is a little modified by me.
If I change code with
Code: [Select]
return $html.template_header;I get as in the photo in the attachments.
If I change with
Code: [Select]
return str_replace('<h3>{GAL_DESCRIPTION}</h3>', '<h3>{GAL_DESCRIPTION}</h3>'.$html, $template_header);The image disappears.

This is my template.html, do you find some errors?
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="css/coppermine.css" type="text/css" />
<link rel="stylesheet" href="themes/curve/style.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<!-- Begin IE6 support -->
<!--[if lt IE 7]>
<style>
body {behavior: url(themes/curve/csshover3.htc );}
.dropmenu li {width: 1px;} .dropmenu li a.firstlevel span.firstlevel {white-space: nowrap;} .main_menu {overflow: auto;}
</style>
<![endif]-->
<!-- End IE6 support -->
{JAVASCRIPT}
<!--
  SVN version info:
  Coppermine version: 1.5.9
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.5.x/themes/curve/template.html $
  $Revision: 7809 $
-->
</head>
<body>
   
   
       
<div id="cpg_logo_block_outer"><DIV STYLE="position:absolute; top:79px; left:83px"><img src="http://www.funivieminiatura.it/gallery/themes/curve/images/novita.png"></div>         
                <br>
                <h1>{GAL_NAME}</h1>
                <h3>{GAL_DESCRIPTION}</h3>
            <br><br>
<a href="index.php">
<img src="{CUSTOM_HEADER}">
</a>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="http://www.funivieminiatura.it/gallery/themes/curve/menu/style.css" rel="stylesheet" type="text/css" />
</head>
        <div id="navigation">
<ul>
            <li><a href="http://www.funivieminiatura.it">Home</a></li>
                <li id="active"><a href="http://www.funivieminiatura.it/gallery/">Gallery</a></li>
                <li><a href="http://www.funivieminiatura.it/forum">Forum</a></li>
                <li><a href="http://www.funivieminiatura.it/how-to/">How-To</a></li>
<li><a href="http://www.funivieminiatura.it/utilities/">Utilities</a></li>
                <li><a href="http://www.funivieminiatura.it/simulatori/">Simulatori</a></li>
<li><a href="http://www.funivieminiatura.it/cerca/">Cerca</a></li>
<li><a href="http://www.funivieminiatura.it/links/">Links</a></li>
            <li><a href="http://www.funivieminiatura.it/contatti/">Contatti</a></li>
</ul>
</div>   
</body>
</html>
                   
           
       
</div>   
    <div id="cpg_header_block_outer">
        <div class="cpg_header_block_inner">
            <div id="main_menu">
                    {SYS_MENU}
                    {SUB_MENU}
                    {ADMIN_MENU}


<div align="right">
<form method="get" action="http://www.funivieminiatura.it/gallery/thumbnails.php" name="searchcpg">
<input type="hidden" name="type" value="full">
<input type="hidden" name="title" value="on">
<input type="hidden" name="keywords" value="on">
<input type="hidden" name="album" value="search">
<input type="hidden" name="type" value="AND">
<input type="hidden" name="type" value="full">
<input type="input" style="font-family: Verdana; font-size: 10px; color: #000000" size="16" name="search" maxlength="255" value="" class="textinput">
<input type="image" src="http://www.funivieminiatura.it/gallery/images/icons/search.png">
</form>
</div>


            </div><br><br><br>
           
            {MESSAGE_BLOCK}
        </div>
    </div>
    <div id="cpg_main_block_outer">
        <div class="cpg_main_block_inner">
            {GALLERY}
{CUSTOM_FOOTER}
            {CREDITS}
            <br /> <!-- workaround for issue 64492 - do not remove the line break! -->
        </div>
    </div>
   
</body>
</html>
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 29, 2012, 12:56:53 pm
Sorry, I forgot the photo and I'm not able to edit post :-[
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on November 29, 2012, 01:21:38 pm
I just fixed a typo in my previous post (I accidentally removed the $ in $template_header).
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 29, 2012, 01:26:56 pm
Now with
Code: [Select]
return $html.$template_header;the button remains at its place :-\
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on November 29, 2012, 01:29:22 pm
Your template.html file is invalid, as it contains the html and head tags both twice.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 29, 2012, 02:01:32 pm
Thanks for information, now I just have got one head tag
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="http://www.funivieminiatura.it/gallery/themes/curve/menu/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="css/coppermine.css" type="text/css" />
<link rel="stylesheet" href="themes/curve/style.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<!-- Begin IE6 support -->
<!--[if lt IE 7]>
<style>
body {behavior: url(themes/curve/csshover3.htc );}
.dropmenu li {width: 1px;} .dropmenu li a.firstlevel span.firstlevel {white-space: nowrap;} .main_menu {overflow: auto;}
</style>
<![endif]-->
<!-- End IE6 support -->
{JAVASCRIPT}
<!--
  SVN version info:
  Coppermine version: 1.5.9
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.5.x/themes/curve/template.html $
  $Revision: 7809 $
-->
</head>
<body>
   
   
       
<div id="cpg_logo_block_outer"><DIV STYLE="position:absolute; top:79px; left:83px"><img src="http://www.funivieminiatura.it/gallery/themes/curve/images/novita.png"></div>         
                <br>
                <h1>{GAL_NAME}</h1>
                <h3>{GAL_DESCRIPTION}</h3>
            <br><br>
<a href="index.php">
<img src="{CUSTOM_HEADER}">
</a>



        <div id="navigation">
<ul>
            <li><a href="http://www.funivieminiatura.it">Home</a></li>
                <li id="active"><a href="http://www.funivieminiatura.it/gallery/">Gallery</a></li>
                <li><a href="http://www.funivieminiatura.it/forum">Forum</a></li>
                <li><a href="http://www.funivieminiatura.it/how-to/">How-To</a></li>
<li><a href="http://www.funivieminiatura.it/utilities/">Utilities</a></li>
                <li><a href="http://www.funivieminiatura.it/simulatori/">Simulatori</a></li>
<li><a href="http://www.funivieminiatura.it/cerca/">Cerca</a></li>
<li><a href="http://www.funivieminiatura.it/links/">Links</a></li>
            <li><a href="http://www.funivieminiatura.it/contatti/">Contatti</a></li>
</ul>
</div>   
</body>
                   
           
       
</div>   
    <div id="cpg_header_block_outer">
        <div class="cpg_header_block_inner">
            <div id="main_menu">
                    {SYS_MENU}
                    {SUB_MENU}
                    {ADMIN_MENU}


<div align="right">
<form method="get" action="http://www.funivieminiatura.it/gallery/thumbnails.php" name="searchcpg">
<input type="hidden" name="type" value="full">
<input type="hidden" name="title" value="on">
<input type="hidden" name="keywords" value="on">
<input type="hidden" name="album" value="search">
<input type="hidden" name="type" value="AND">
<input type="hidden" name="type" value="full">
<input type="input" style="font-family: Verdana; font-size: 10px; color: #000000" size="16" name="search" maxlength="255" value="" class="textinput">
<input type="image" src="http://www.funivieminiatura.it/gallery/images/icons/search.png">
</form>
</div>


            </div><br><br><br>
           
            {MESSAGE_BLOCK}
        </div>
    </div>
    <div id="cpg_main_block_outer">
        <div class="cpg_main_block_inner">
            {GALLERY}
{CUSTOM_FOOTER}
            {CREDITS}
            <br /> <!-- workaround for issue 64492 - do not remove the line break! -->
        </div>
    </div>
   
</body>
</html>
But the problem still continues, I tried you modification on an another "pure" board too and I get the same result... :'(
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on November 29, 2012, 02:05:21 pm
Please attach your whole theme as zip file.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Mr.Marco on November 30, 2012, 02:03:00 pm
Sure :)
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on November 30, 2012, 02:22:09 pm
All my suggested mods works as expected for me with your theme. It will move the button above the header respectively below the gallery description. Maybe your header image laps over the button, as that image isn't displayed for me.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: biellebrunner on September 03, 2013, 04:20:18 am
Hi,
I have a question: how can I get the feed thumbnail link to its corresponding intermediate picture in the gallery?
If needed, my gallery link is: http://stanakaticbrasil.com/galeria
Thanks!
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on September 03, 2013, 10:47:32 am
Open xfeed.php, find
Code: [Select]
echo  htmlspecialchars ("<p><img src=\"$base/".get_pic_url($row, 'thumb')."\" alt=\"{$row['filename']}\" /></p>", ENT_COMPAT, $CONFIG['charset']);and replace with
Code: [Select]
echo  htmlspecialchars ("<p><a href=\"$base/displayimage.php?pid={$row['pid']}\"><img src=\"$base/".get_pic_url($row, 'thumb')."\" alt=\"{$row['filename']}\" /></a></p>", ENT_COMPAT, $CONFIG['charset']);at both occurrences.

I just added that change to the SVN repository in revision 8584.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: biellebrunner on September 03, 2013, 10:45:04 pm
Thank you! It worked just fine.
Cheers.
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: zan on October 10, 2013, 11:17:40 am
hi there, I'd like to have the album description text included in my RSS output but I just can't figure out how to do it...

Any clues?

Thanks in advance, zan
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Αndré on October 14, 2013, 04:09:28 pm
Open xfeed.php, find
Code: [Select]
foreach ($pic_data as $row) {and below, add
Code: [Select]
        if (!isset($album_description[$row['aid']])) {
            $album_description[$row['aid']] = mysql_result(cpg_db_query("SELECT description FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid = {$row['aid']} LIMIT 1"), 0);
        }

find
Code: [Select]
print "\t\t<description>";and below, add
Code: [Select]
echo  htmlspecialchars($album_description[$row['aid']]);
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: kylemj on November 06, 2015, 09:05:06 pm
is it possible to have the rss to display the intermediate or full image instead of the thumbnail?
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: kylemj on November 06, 2015, 09:16:54 pm
sorry cant edit my post but in xfeed.php change thumb to pid (2 instances) to display large pictures in rss
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: dimangelid on October 27, 2016, 07:12:37 pm
I have installed the plugin at a testing environment, in order to check its functionality and then install it to my production gallery.
It has installed successfully but when i try to subcribe to a Local Atom Feed or a Local RSS Feed i get the following error:

XML Parsing Error: XML or text declaration not at start of entity
Location: https://XXXXXXXXX/photos/index.php?file=xfeed/xfeed
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^


No error is displayed at the apache error log. Can anyone lead me to a solution?
Title: Re: XFeed RSS/Atom feed plugin for CPG 1.5.x
Post by: Phill Luckhurst on October 30, 2016, 07:05:55 pm
A link to your site will really help. Also, try the non https version.