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: add a personal script  (Read 5392 times)

0 Members and 1 Guest are viewing this topic.

omnag

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
add a personal script
« on: January 09, 2006, 03:15:28 pm »

hi

i want to add a personal script in page displayimage.php

my script:

Code: [Select]
"<p class=\"Style1\"><strong>Pour mettre cette photo sur un forum :</strong><br>"
   "    <br>"
   "  Copier/coller ce code:"
   "    <br>"

  "    <textarea name=\"textarea\" cols=\"40\" rows=\"4\" wrap=\"VIRTUAL\">&#91;img&#93;http://nagaomaar.free.fr/images$fdirectory/$img_name&#91;/img&#93;

&#91;url=http://www.narutocaps.tk&#93;Cliquez-ici pour voir le site \"Naruto Caps : Tous les épisodes en capture d'écran !\" !&#91;/url&#93;</textarea>"
   "</p>"
   "<p class=\"Style1\"><strong>Pour mettre cette photo sur votre site internet :</strong><br>"
   "<br>"
  "Copier/coller ce code: <br>"

  "<textarea name=\"textarea2\" cols=\"40\" rows=\"4\" wrap=\"VIRTUAL\">&lt;img src=&quot;http://nagaomaar.free.fr/images$fdirectory/$img_name&quot;&gt;&lt;br&gt;&lt;a href=&quot;http://www.narutocaps.tk&quot;&gt;Cliquez-ici pour voir le site \"Naruto Caps : Tous les épisodes en capture d'écran !\" !&lt;/a&gt;</textarea>"
  "</p> <br>"
    "<center><font face=\"verdana\" size=\"1\"><strong>Attention : </strong>Il vous est strictement interdit d'utiliser cette photo à des fins commerciales, cette photo appartient à TV TOKYO.</font></center>"
   "<br><center> [<A HREF=\"javascript:window.close()\">Fermer cette fenêtre</A>]
   </center>"
 "";

but i have a problem when i upload the page


Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/free.fr/b/a/mydomaine/nygalerie/displayimage.php on line 305µ


please help me
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: add a personal script
« Reply #1 on: January 09, 2006, 06:20:20 pm »

what is this suppossed to do and where did you put it? The way it is, it will do nothing except outputing the same thing all the time. To get rid of the parse error, you'll have to add some echo statements.
I recommend adding your custom code to your theme instead of a coppermine core file, as this will keep you from updating with ease.
Logged

omnag

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: add a personal script
« Reply #2 on: January 09, 2006, 06:45:34 pm »

i want to put a script that make bbcode for forums:

like:

Code: [Select]
[img]bibibibibibjbjbj[img]
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: add a personal script
« Reply #3 on: January 10, 2006, 09:32:18 am »

search the mods board, there's a hack that does what you want to accomplish.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.