Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 2 [3] 4   Go Down

Author Topic: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH  (Read 70048 times)

0 Members and 1 Guest are viewing this topic.

Colegota

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH (for last albums)
« Reply #40 on: November 26, 2005, 10:05:06 pm »

Hi!

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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH (for last albums)
« Reply #41 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.

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"



Hi!

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

Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH (for last albums)
« Reply #42 on: November 26, 2005, 10:50:00 pm »

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

Ok.

So to actually clarify:
You want an RSS feed that shows the last image added to the last # of albums.

Yes.

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

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH (for last albums)
« Reply #43 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.

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

Ok.

So to actually clarify:
You want an RSS feed that shows the last image added to the last # of albums.

Yes.

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


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH (for last albums)
« Reply #44 on: November 27, 2005, 04:53:48 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH (for last albums)
« Reply #45 on: November 27, 2005, 09:23:05 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

Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #46 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #47 on: December 06, 2005, 07:03:36 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

Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #48 on: December 07, 2005, 09:37:41 am »

Quote
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

it was just an example

here is the real links inj RSS feed

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

Thank You
Logged

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #49 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:

Quote
Notice: 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:

Code: [Select]
$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:

Code: [Select]
$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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #50 on: January 03, 2006, 04:24:00 am »

should I ask this question elsewhere?

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #51 on: January 03, 2006, 04:54:49 am »

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:

Code: [Select]
$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:

Code: [Select]
$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

Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #52 on: January 17, 2006, 04:56:22 am »

okay...thanks anyways...

noworyz

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 76
    • eGriz.com
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #53 on: February 07, 2006, 11:04:45 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
Logged

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #54 on: February 17, 2006, 05:36:49 pm »

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
Logged

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #55 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...
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #56 on: April 05, 2006, 04:22:01 am »

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?

Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
  • I like tuesdays and coffee
    • A place for all my damn pictures
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #57 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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #58 on: July 29, 2006, 04:03:52 pm »

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
Code: [Select]
$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?



Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
  • I like tuesdays and coffee
    • A place for all my damn pictures
Re: CpmFetch - cfrssget - RSS Feeds from CPG through CPMFETCH
« Reply #59 on: July 30, 2006, 07:40:08 pm »

Code: [Select]
<?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
Pages: 1 2 [3] 4   Go Up
 

Page created in 0.029 seconds with 19 queries.