coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: omnag on January 09, 2006, 03:15:28 PM

Title: add a personal script
Post by: omnag on January 09, 2006, 03:15:28 PM
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
Title: Re: add a personal script
Post by: Joachim Müller 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.
Title: Re: add a personal script
Post by: omnag on January 09, 2006, 06:45:34 PM
i want to put a script that make bbcode for forums:

like:

[img]bibibibibibjbjbj[img]
Title: Re: add a personal script
Post by: Joachim Müller on January 10, 2006, 09:32:18 AM
search the mods board, there's a hack that does what you want to accomplish.