Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Navigation

HTML Side panel

Last updated on 4 months ago
M
MrSims
Posted 9 years ago
How do I put HTML in a side panel?

This is the code I am trying to insert -

openside("Visitors");
  echo "<script type="text/javascript" src="http://jh.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('0','220','true','true','222222','7uayzuh60w0','true','ff0000');</script><noscript><applet codebase="http://rh.revolvermaps.com/j" code="core.RE" width="220" height="220" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="true" /><param name="i" value="7uayzuh60w0" /><param name="m" value="0" /><param name="s" value="220" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="222222" /><param name="rfc" value="true" /></applet></noscript>
";
closeside();


Can you tell me how to input HTML code in the side panel for future reference?

Thanks.
LayzeeLayzee
Posted 9 years ago
Either:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside("Visitors");
echo '<script type="text/javascript" src="http://jh.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('0','220','true','true','222222','7uayzuh60w0','true','ff0000');</script><noscript><applet codebase="http://rh.revolvermaps.com/j" code="core.RE" width="220" height="220" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="true" /><param name="i" value="7uayzuh60w0" /><param name="m" value="0" /><param name="s" value="220" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="222222" /><param name="rfc" value="true" /></applet></noscript>
';
closeside();



[/syntaxhighlighter]

or:

openside("Visitors");
?> 
<script type="text/javascript" src="http://jh.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('0','220','true','true','222222','7uayzuh60w0','true','ff0000');</script><noscript><applet codebase="http://rh.revolvermaps.com/j" code="core.RE" width="220" height="220" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="true" /><param name="i" value="7uayzuh60w0" /><param name="m" value="0" /><param name="s" value="220" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="222222" /><param name="rfc" value="true" /></applet></noscript>
<?php
closeside();



M
MrSims
Posted 9 years ago
Both codes you gave me did not work.
T
Tyler
Posted 9 years ago
long story short put '?>' before html then make sure you place '<?php' at the end or where needed. NOTE: DON'T COPY THE ' MARKS
M
MrSims
Posted 9 years ago
I am still not getting it...
afosterafoster
Posted 9 years ago

Quote

Mittens Returns wrote:

long story short put '?>' before html then make sure you place '<?php' at the end or where needed. NOTE: DON'T COPY THE ' MARKS


Aren't the PHP tags backwards? Shouldn't it be <?php at the beginning of the HTML code and ?> at the end or am I back a**wards?
JoiNNNJoiNNN
Posted 9 years ago
Second example posted by Layzee works perfect.
openside("Visitors");
?>
<script type="text/javascript" src="http://jh.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('0','220','true','true','222222','7uayzuh60w0','true','ff0000');</script><noscript><applet codebase="http://rh.revolvermaps.com/j" code="core.RE" width="220" height="220" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="true" /><param name="i" value="7uayzuh60w0" /><param name="m" value="0" /><param name="s" value="220" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="222222" /><param name="rfc" value="true" /></applet></noscript>
<?php
closeside();

You should try to put more effort into getting your staff working properly or check whether the problem is on your side or not before posting again, especially when you were provided with the solution already.
M
MrSims
Posted 9 years ago
Thanks for all the help. I figured out what the problem was. Sorry to bother you.
T
Tyler
Posted 9 years ago

Quote

afoster wrote:

Quote

Mittens Returns wrote:

long story short put '?>' before html then make sure you place '<?php' at the end or where needed. NOTE: DON'T COPY THE ' MARKS


Aren't the PHP tags backwards? Shouldn't it be <?php at the beginning of the HTML code and ?> at the end or am I back a**wards?


the tags SHOULD already be open to use opentable() & such.
W
Wolfseye
Posted 9 years ago
Hi guys, I hope you don't me hijacking this thread and asking something myself related to what is asked here.

I am new (again) to PHP Fusion. Had it a long time ago, but forgot it all. How can I create custom blocks (panels) for the site ? In any other Sitesystem (CMS) you can simply create a new block. How is it here ?

Also for me is important to do it all with simple HTML. Any info on that matter would be greatly appreciated. ;)

Cheers

Wolfseye
PolarFoxPolarFox
Posted 9 years ago
You need to do this as follow:

openside('Side block');
?>

<!-- html code goes here -->
<b>Hi!</b>

<?php
closeside();


Also you can remove the block layers.
Posted 4 months ago
Where is the Code BB-Code? I have some code I need help with for a Side Panel but cannot find the Code BB-Code. 
Edited by SkeeredOfMyMind on 26-09-2020 19:54, 4 months ago
FalkFalk
Posted 4 months ago
It will be back soon. Editor is changing here. You can manually write CODE.
[ CODE ] Content [ /CODE ] < remove spaces on brackets.
 
Edited by Falk on 26-09-2020 22:32, 4 months ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: Falk, afoster, Wolfseye, PolarFox, Layzee, JoiNNN, MrSims, Tyler, SkeeredOfMyMind,