add a personal script add a personal script
 

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

Main Menu

add a personal script

Started by omnag, January 09, 2006, 03:15:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

omnag

hi

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

my script:

"<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

Joachim Müller

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.

omnag

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

like:

[img]bibibibibibjbjbj[img]

Joachim Müller

search the mods board, there's a hack that does what you want to accomplish.