CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH - Page 3 CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH - Page 3
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH

Started by vuud, April 27, 2005, 06:58:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Colegota

Hi!

Quote from: vuud on November 26, 2005, 09:42:39 PM
Hmmm, so you would just want them in decending order (newest to oldest) up to the total amount to return on the feed? 

Or based on the number of days?  So the feed would show new over the last "50", or whatever number, of days?

I'm not sure, but I think the first option is better because there is a cron procces that runs feed every 30 minutes. So I want to take the albums created or updated on last 30 minutes.
The problem can be if an album is updated twice in a couple hours, but I think with the first method the entry will not be updated (nor duplicated) on the page.

In other words, I'd like every time one member added photos to an album, I have an article on our main page.
If you take a look to http://mapamundi.info at this moment, you can see five entries for 5 photos in 2 different albums ("Corcega" and "Estambul y Mar Negro"). I just want 2 entries. One for each album.

I'd like an article with a title such as "New photos added to album %a by %o" (assuming %a is the name of the album, and %o is the owner). And if posibble, can change the size of the image.

Regards,
Colegota

vuud


Either way, duplicates would be ignored.  The last # of them would be the easiest to code though.

So to actually clarify:

You want an RSS feed that shows the last image added to the last # of albums.  So no matter how many are added to an album recently, only the latest one is shown?

In your case # is "2"



Quote from: Colegota on November 26, 2005, 10:05:06 PM
Hi!

Quote from: vuud on November 26, 2005, 09:42:39 PM
Hmmm, so you would just want them in decending order (newest to oldest) up to the total amount to return on the feed? 

Or based on the number of days?  So the feed would show new over the last "50", or whatever number, of days?

I'm not sure, but I think the first option is better because there is a cron procces that runs feed every 30 minutes. So I want to take the albums created or updated on last 30 minutes.
The problem can be if an album is updated twice in a couple hours, but I think with the first method the entry will not be updated (nor duplicated) on the page.

In other words, I'd like every time one member added photos to an album, I have an article on our main page.
If you take a look to http://mapamundi.info at this moment, you can see five entries for 5 photos in 2 different albums ("Corcega" and "Estambul y Mar Negro"). I just want 2 entries. One for each album.

I'd like an article with a title such as "New photos added to album %a by %o" (assuming %a is the name of the album, and %o is the owner). And if posibble, can change the size of the image.

Regards,
Colegota

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Colegota

Quote from: vuud on November 26, 2005, 10:23:36 PM
Either way, duplicates would be ignored.  The last # of them would be the easiest to code though.

Ok.

Quote from: vuud on November 26, 2005, 10:23:36 PM
So to actually clarify:
You want an RSS feed that shows the last image added to the last # of albums.

Yes.

Quote from: vuud on November 26, 2005, 10:23:36 PM
So no matter how many are added to an album recently, only the latest one is shown?

For me is enought with the last one. But it can be nice to have the four or even eight (can be customizable) last added photos as thumbnails in the article.

Depending on your time and your interest you can code several ways:

- Just one photo with a medium customizable size (like 'imagewidth' => '500'). A title with the name of the album and the owner. And a text telling the album has # of new images.

- Same as before but including a row with thumbs of (customizable)  of last images (4 is ok) under the main (last) photo. Of course, if there is more than one photo added to album.

- Just the thumbs of the last # of images added.

I also own a website about free photography with CPG/SMF where I'm planning install Wordpress in a similar way to mapamundi and sindycate your feeds. So there I use to put images bigger and some changes. So as much flexible, as better.

Your effort is very appreciated. Please code that you find better. I'm very grateful.

Best regards,
Colegota


vuud


I'll code up an RSS to give the last added image from the last updated albums.

Quote from: Colegota on November 26, 2005, 10:50:00 PM
Quote from: vuud on November 26, 2005, 10:23:36 PM
Either way, duplicates would be ignored.  The last # of them would be the easiest to code though.

Ok.

Quote from: vuud on November 26, 2005, 10:23:36 PM
So to actually clarify:
You want an RSS feed that shows the last image added to the last # of albums.

Yes.

Quote from: vuud on November 26, 2005, 10:23:36 PM
So no matter how many are added to an album recently, only the latest one is shown?

For me is enought with the last one. But it can be nice to have the four or even eight (can be customizable) last added photos as thumbnails in the article.

Depending on your time and your interest you can code several ways:

- Just one photo with a medium customizable size (like 'imagewidth' => '500'). A title with the name of the album and the owner. And a text telling the album has # of new images.




- Same as before but including a row with thumbs of (customizable)  of last images (4 is ok) under the main (last) photo. Of course, if there is more than one photo added to album.

- Just the thumbs of the last # of images added.

I also own a website about free photography with CPG/SMF where I'm planning install Wordpress in a similar way to mapamundi and sindycate your feeds. So there I use to put images bigger and some changes. So as much flexible, as better.

Your effort is very appreciated. Please code that you find better. I'm very grateful.

Best regards,
Colegota


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Colegota

Quote from: vuud on November 26, 2005, 11:04:29 PM
I'll code up an RSS to give the last added image from the last updated albums.

Nice! :)
Please let me know when you finish and if I can help you anyway.

Best regards,
Colegota

vuud

Quote from: Colegota on November 27, 2005, 04:53:48 PM
Quote from: vuud on November 26, 2005, 11:04:29 PM
I'll code up an RSS to give the last added image from the last updated albums.

Nice! :)
Please let me know when you finish and if I can help you anyway.

Best regards,
Colegota


Patience, and if you don't hear from me in two days, PM me...  I am forgetfull at times

:D

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

koch

Can U help me?

In feed.xml in IMG URL I got double slash and thums do not shows :(

img src="http://mkruiz.ru/vitadibordo//albums/userpics/10033/thumb_im13.jpg"

all other works and links fine

vuud

Quote from: koch on December 06, 2005, 12:49:03 PM
Can U help me?

In feed.xml in IMG URL I got double slash and thums do not shows :(

img src="http://mkruiz.ru/vitadibordo//albums/userpics/10033/thumb_im13.jpg"

all other works and links fine

I can't pull up that image in a web browser if I stick the url in... even without the double slash in there.  I get a server error

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

koch

QuoteI can't pull up that image in a web browser if I stick the url in... even without the double slash in there.  I get a server error

it was just an example

here is the real links inj RSS feed

http://mkruiz.ru/vitadibordo/cpmfetch/cfrssget.php

Thank You

freesouljah

hello again  ;)

I just noticed this, but with the new bridge file for phpBB 2.18 the rss feed isn't working right...

It shows the photo & info like normal, but when someone clicks the thumbnail or the 'open in browser' option it gives this error:

QuoteNotice: Use of undefined constant PHPBB_SESSIONS_KEYS_TABLE - assumed 'PHPBB_SESSIONS_KEYS_TABLE' in /home/staticp/public_html/photos/bridge/phpbb.inc.php on line 108
Fatal error :
There was an error while processing a database query


line 108 is:

$sql = "SELECT u.user_id, u.username as user_name, u.user_level, u.user_posts " . "FROM " .  $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_SESSIONS_KEYS_TABLE . " AS s INNER JOIN " . $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_USER_TABLE . " AS u ON s.user_id = u.user_id WHERE u.user_id = '$cookie_uid' AND u.user_active = 1 AND s.key_id = MD5('$cookie_pass')";



and the old one (before the 2.18 update) was:

$sql = "SELECT user_id, username as user_name, user_level " . "FROM " . $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_USER_TABLE . " " . "WHERE user_id='$cookie_uid' AND user_password='$cookie_pass' AND user_active='1'";

thanks

freesouljah


vuud

Quote from: freesouljah on December 19, 2005, 01:48:13 PM
hello again  ;)

I just noticed this, but with the new bridge file for phpBB 2.18 the rss feed isn't working right...

It shows the photo & info like normal, but when someone clicks the thumbnail or the 'open in browser' option it gives this error:


line 108 is:

$sql = "SELECT u.user_id, u.username as user_name, u.user_level, u.user_posts " . "FROM " .  $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_SESSIONS_KEYS_TABLE . " AS s INNER JOIN " . $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_USER_TABLE . " AS u ON s.user_id = u.user_id WHERE u.user_id = '$cookie_uid' AND u.user_active = 1 AND s.key_id = MD5('$cookie_pass')";



and the old one (before the 2.18 update) was:

$sql = "SELECT user_id, username as user_name, user_level " . "FROM " . $UDB_DB_NAME_PREFIX . PHPBB_TABLE_PREFIX . PHPBB_USER_TABLE . " " . "WHERE user_id='$cookie_uid' AND user_password='$cookie_pass' AND user_active='1'";

thanks

I don't think this is an cpmfetch question... not sure where bridge questions would be asked though

Sorry

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

freesouljah


noworyz

Quote from: koch on December 06, 2005, 12:49:03 PM
Can U help me?

In feed.xml in IMG URL I got double slash and thums do not shows :(

img src="http://mkruiz.ru/vitadibordo//albums/userpics/10033/thumb_im13.jpg"

all other works and links fine

I am having the same problem.

my rss feed= http://egriz.com/phpfiles/cpmfetch2/rss_lastadded.php

Gephri

For me: it's so difficult to make it so easy!

I can get the RSS feed to work - it's a beautiful thing - but would like to have a feed that shows only my channel title, and description and then 5 images centered down a column.  Simply put - is there a way to not show all the text/file info within the feed?

Thanks

niks_007

hi.....
          My CPM Fatch is working but Rss Feed is Not

The Following Error occrs plz help


Warning: fopen(./tmp/feed.xml): failed to open stream: No such file or directory in /home/nishant/public_html/getimage/libs/feedcreator.class.php on line 686

Error creating feed file, please check write permissions.

Warning: fopen(./tmp/feed.xml): failed to open stream: No such file or directory in /home/nishant/public_html/getimage/libs/feedcreator.class.php on line 686

Error creating feed file, please check write permissions.

I have tried giving 777 permission but doesn't helped

help me...

vuud

Quote from: niks_007 on April 01, 2006, 10:37:24 PM
hi.....
          My CPM Fatch is working but Rss Feed is Not

The Following Error occrs plz help


Warning: fopen(./tmp/feed.xml): failed to open stream: No such file or directory in /home/nishant/public_html/getimage/libs/feedcreator.class.php on line 686

Error creating feed file, please check write permissions.

Warning: fopen(./tmp/feed.xml): failed to open stream: No such file or directory in /home/nishant/public_html/getimage/libs/feedcreator.class.php on line 686

Error creating feed file, please check write permissions.

I have tried giving 777 permission but doesn't helped

help me...

Where did you create the tmp directory?

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

schalicto

Looking for help getting cpmfetch installed.  I am running coppermine 1.4 and I have it installed at a root subdomain at http://pictures.floor42online.com
When i run the test at
http://pictures.floor42online.com/cpmfetch/cftest.php
It tells me that I have to resolve my problem on line five of cftest.php
But I have already changed that to read $ChangeThisToYourPartialUrlToCPG = "/"; which should be what points to the root.

My main goal is to get an rss feed running on my coppermine gallery but I don't know much about anything.  So after I get this problem resoved then I'll probably have another one.  Thanks in advance!

-Josh

vuud

Quote from: schalicto on July 29, 2006, 05:28:24 AM
Looking for help getting cpmfetch installed.  I am running coppermine 1.4 and I have it installed at a root subdomain at http://pictures.floor42online.com
When i run the test at
http://pictures.floor42online.com/cpmfetch/cftest.php
It tells me that I have to resolve my problem on line five of cftest.php
But I have already changed that to read $ChangeThisToYourPartialUrlToCPG = "/"; which should be what points to the root.

My main goal is to get an rss feed running on my coppermine gallery but I don't know much about anything.  So after I get this problem resoved then I'll probably have another one.  Thanks in advance!

-Josh

Hi Josh,

Can you post a copy of the first ten lines of that file?   I have my doubts that it has been changed, or at the least not uploaded to the server.


This is the code fragment for #5
$testnumber = 5;
if ($ChangeThisToYourPartialUrlToCPG == "/changethishere") {
OutputTestRow($testnumber,"You forgot to edit line 5 of cftest.php","FAIL");
$GOODTOTRY = false;
$TESTS_PREVENTING .= "$testnumber ";
}



The ONLY [that I can think of] way to get that error is to still have "/changethishere" as your directory.  Did you not upload your changed version to the server or something?



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

schalicto

<?php
// You need to change this variable to the directory that the Coppermine photo gallery is installed in.
// If you installed CPG to the root of your website, just use a /
// IMPORTANT:  Change the part below in quotes, NOT the $ChangeThis... part
$ChangeThisToYourPartialUrlToCPG "/";

// DO NOT CHANGE ANYTHING BELOW THIS LINE... THE ONLY THING YOU NEED
// TO CHANGE IS ABOVE HERE.

// GO NO FURTHER... UNLESS SPECIFICALLY TOLD TO

// REALLY


This is direct from the version on the server.

-Josh