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]   Go Down

Author Topic: Cannot add php code  (Read 5737 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.017 seconds with 20 queries.