coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Daniel_Hatcher on October 29, 2005, 02:04:58 PM

Title: PHP Code to view latest images
Post by: Daniel_Hatcher on October 29, 2005, 02:04:58 PM
I'm looking for a script to do a latest additions feature on my website, i tried myself the images how but when you click them it does not go to that image.
Title: Re: PHP Code to view latest images
Post by: Abbas Ali on October 29, 2005, 02:17:37 PM
If you are looking for a mod to show pictures from coppermine on to your home page or website then this will help.

http://forum.coppermine-gallery.net/index.php?topic=19077.0
Title: Re: PHP Code to view latest images
Post by: Daniel_Hatcher on October 29, 2005, 07:04:36 PM
I tried that the thing is i have it shown in a Variable like '$template_header="";'  and that does not do that.
Title: Re: PHP Code to view latest images
Post by: Abbas Ali on October 29, 2005, 09:27:49 PM
You must be using one of the functions to display images. For example is you are using cpm_viewRandomMediaFromCategory() function of cpmfetch then edit cpmfetch.php file and edit function cpm_viewRandomMediaFromCategory.

Replace


print $this->createTable($resultset,$rows,$columns);


with


return $this->createTable($resultset,$rows,$columns);


and collect the returned value in whatever variable u want.