PHP Code to view latest images PHP Code to view latest images
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

PHP Code to view latest images

Started by Daniel_Hatcher, October 29, 2005, 02:04:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daniel_Hatcher

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.

Abbas Ali

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
Chief Geek at Ranium Systems

Daniel_Hatcher

I tried that the thing is i have it shown in a Variable like '$template_header="";'  and that does not do that.

Abbas Ali

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.
Chief Geek at Ranium Systems