forum.coppermine-gallery.net

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

Code: [Select]
print $this->createTable($resultset,$rows,$columns);

with

Code: [Select]
return $this->createTable($resultset,$rows,$columns);

and collect the returned value in whatever variable u want.