Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Cannot add php code  (Read 5371 times)

0 Members and 1 Guest are viewing this topic.

broomsy

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Cannot add php code
« on: October 13, 2005, 12:55:21 pm »

I am trying to add this PHP code
Code: [Select]
<?php $array = array('1'=>'templateimages/picture1.jpg','2'=>'templateimages/picture2.jpg','3'=>'templateimages/picture3.jpg','4'=>'templateimages/picture4.jpg','5'=>'templateimages/picture5.jpg','6'=>'templateimages/picture21.jpg','7'=>'templateimages/picture25.jpg','8'=>'templateimages/picture29.jpg'); $arraycount count($array);$rnum rand(1$arraycount); print "<img src=\"$array[$rnum]\" alt=\"Music Box - Past clubbers and special guests\" />";?>but nothing is happening. Is there a way to add php to the template?
« Last Edit: October 13, 2005, 01:43:21 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Cannot add php code
« Reply #1 on: October 13, 2005, 01:42:30 pm »

Not a bug report.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 18 queries.