How I use my plugin variable in my stored file ?

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
pchatel
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sun May 24, 2009 12:03 am
Location: France, Normandie

How I use my plugin variable in my stored file ?

Post by pchatel » Sun May 31, 2009 4:33 am

Hi, I'm very new with joomla!, jumi and php (a lot of stuff :eek: ).
I've got a basic problem.
I use this plugin syntax to transmit the pathname of a file :

Code: Select all

{jumi mystuff/javascript/Viewer-Deluxe.php}
<?php
   $pgn='"mystuff/pgn/samples.pgn"';
?>
{/jumi}
The "Viewer-Deluxe.php" is coded llike this :

Code: Select all

<?php
echo $pgn;
<APPLET codebase="." archive="mystuff/java/Viewer-Deluxe.jar" code="ChessBoard.class" width="631" height="560">
  <PARAM name=PgnGameFile value=$pgn>
  <PARAM name=LightSquares value=F3DCC2>
  <PARAM name=DarkSquares value=DDA37B>
  <PARAM name=Background value=CCCCCC>
  <PARAM name=ImagesFolder value=images>
  <PARAM name=PuzzleMode value="off">
  <PARAM name=MayScript value="on">
  Cette partie ne peut pas être imprimée, car votre navigateur ignore complètement les balises <APPLET> !
</APPLET>
?>
When I go to the page containing the plugin, I obtain no result, except this (basic) parse error :

parse error in C:\wamp\www\sitejoomla\plugins\system\jumi.php(63) : eval()'d code on line 7

I notice that when in the "Viewer-Deluxe.php" file I delete the <?php ?> tags, my applet begin to work, but don't find any file to load.

I'm sorry, it's must be a basic silly error, but I'm from the mainframe's world (cobol, etc...) and all that's stuff are quit new.

Thanks a lot for your help.

Philippe
joomla! 1.5.14

Locked

Return to “Extensions for Joomla! 1.5”