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.
PolarFox

How to add a panel with your/my code?

by PolarFox, Last updated on 4 years ago in Modifications and Requests - 8
It's simply.

Also knows as: HTML Panel

  1. replace panel code with this (see below)
  2. insert your code instead "<!-- your HTML/JS code here -->"
  3. change panel name


Side panel (Sidebar) - left or right:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]openside('Panel name');
?>

<!-- your HTML/JS code here -->

<?php
closeside();[/syntaxhighlighter]

Center panel - top or bottom:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]opentable('Panel name');
?>

<!-- your HTML/JS code here -->

<?php
closetable();[/syntaxhighlighter]

See also:


Collapsible panel
use this code
openside('Panel',true);
[...]

instead of

Quote

openside('Panel');
[...]


Hidden panel by default:
openside('Panel',true,'off');
[...]


  • Don't forget: you can't use this with opentable() function!
nice
Yep, simple. tks ¬
Wènhòu ¬
Darn it, I followed the instructions and my panel still isn't working!:@

Can anyone help me to get it working?

Here's my code:

openside("AddThis");
?>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_floating_style addthis_counter_style" style="left:50px;top:50px;">
<a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
<a class="addthis_button_tweet" tw:count="vertical\"></a>
<a class="addthis_button_google_plusone" g:plusone:size="tall"></a>
<a class="addthis_counter"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985"></script>
<!-- AddThis Button END -->
<?php
closeside();
I fold for team 52482. Do you fold?

My PHP-Fusion powered site: Unlimited Fan Fiction
Try this way...


openside("AddThis");
echo"<!-- AddThis Button BEGIN -->
<div class='addthis_toolbox addthis_floating_style addthis_counter_style' style='left:50px;top:50px;'>
<a class='addthis_button_facebook_like' fb:like:layout='box_count'></a>
<a class='addthis_button_tweet' tw:count='vertical'></a>
<a class='addthis_button_google_plusone' g:plusone:size='tall'></a>
<a class='addthis_counter'></a>
</div>
<script type='text/javascript'>var addthis_config = {'data_track_addressbar':true};</script>
<script type='text/javascript' src='http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985'></script>
<!-- AddThis Button END -->";
closeside();

Quote

Craig wrote:

Try this way...


openside("AddThis");
echo"<!-- AddThis Button BEGIN -->
<div class='addthis_toolbox addthis_floating_style addthis_counter_style' style='left:50px;top:50px;'>
<a class='addthis_button_facebook_like' fb:like:layout='box_count'></a>
<a class='addthis_button_tweet' tw:count='vertical'></a>
<a class='addthis_button_google_plusone' g:plusone:size='tall'></a>
<a class='addthis_counter'></a>
</div>
<script type='text/javascript'>var addthis_config = {'data_track_addressbar':true};</script>
<script type='text/javascript' src='http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985'></script>
<!-- AddThis Button END -->";
closeside();


Still gives me a blank panel! :(
I fold for team 52482. Do you fold?

My PHP-Fusion powered site: Unlimited Fan Fiction
OK can you please show me the original code from addthis? No php just the original html.

Because this...

<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>


Does not look healthy.
Sure here it is:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_floating_style addthis_counter_style" style="left:50px;top:50px;">
<a class="addthis_button_facebook_like" fb:like:layout="box_count"></a>
<a class="addthis_button_tweet" tw:count="vertical"></a>
<a class="addthis_button_google_plusone" g:plusone:size="tall"></a>
<a class="addthis_counter"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985"></script>
<!-- AddThis Button END -->


How do I turn it jnto a panel (best way IMHO to share all pages on a Fusion site)?
I fold for team 52482. Do you fold?

My PHP-Fusion powered site: Unlimited Fan Fiction
It works but that is a widget so it will no appear inside the panel. Why not just use my panel i mad for this look....

http://www.phpfusionmods.co.uk/downloads.php?cat_id=3&download_id=207

Anyway your code does as it should...

openside("name");
echo "<!-- AddThis Button BEGIN -->
<div class='addthis_toolbox addthis_floating_style addthis_counter_style' style='left:50px;top:50px;'>
<a class='addthis_button_facebook_like' fb:like:layout='box_count'></a>
<a class='addthis_button_tweet' tw:count='vertical'></a>
<a class='addthis_button_google_plusone' g:plusone:size='tall'></a>
<a class='addthis_counter'></a>
</div>
<script type='text/javascript'>var addthis_config = {'data_track_addressbar':true};</script>
<script type='text/javascript' src='http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985'></script>
<!-- AddThis Button END -->";
closeside();
I had to register so I could download, so now I have to wait for an admin to activate my account there.
I fold for team 52482. Do you fold?

My PHP-Fusion powered site: Unlimited Fan Fiction
It's active now. :)
Thank you!
I fold for team 52482. Do you fold?

My PHP-Fusion powered site: Unlimited Fan Fiction
Your Welcome! :)
/**
 * PHP-Fusion Tools - Panel Generator
 * Author: Brandon Davis (NetriX)
 * http://phpfusionmods.com/infusions/fusion_tools/index.php?tool=Panels
 */
openside("Title");
echo "<!-- AddThis Button BEGIN -->";
echo "<div class='addthis_toolbox addthis_floating_style addthis_counter_style' style='left:50px;top:50px;'>";
echo "<a class='addthis_button_facebook_like' fb:like:layout='box_count'></a>";
echo "<a class='addthis_button_tweet' tw:count='vertical'></a>";
echo "<a class='addthis_button_google_plusone' g:plusone:size='tall'></a>";
echo "<a class='addthis_counter'></a>";
echo "</div>";
echo "<script type='text/javascript'>var addthis_config = {'data_track_addressbar':true};</script>";
echo "<script type='text/javascript' src='http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985'></script>";
echo "<!-- AddThis Button END -->";
closeside();


As generated at http://phpfusionmods.com/infusions/fusion_tools/index.php?tool=Panels

I think it could prove useful to you and others.
Need help? Having trouble?

» View our Documentation for guides, functions and more - including the Getting Started section!

» Attach Log Files and Screenshots when reporting issues

» My support days are usually Mon-Thurs. Send me a PM if urgent.

Quote

NetriX wrote:

/**
 * PHP-Fusion Tools - Panel Generator
 * Author: Brandon Davis (NetriX)
 * http://phpfusionmods.com/infusions/fusion_tools/index.php?tool=Panels
 */
openside("Title");
echo "<!-- AddThis Button BEGIN -->";
echo "<div class='addthis_toolbox addthis_floating_style addthis_counter_style' style='left:50px;top:50px;'>";
echo "<a class='addthis_button_facebook_like' fb:like:layout='box_count'></a>";
echo "<a class='addthis_button_tweet' tw:count='vertical'></a>";
echo "<a class='addthis_button_google_plusone' g:plusone:size='tall'></a>";
echo "<a class='addthis_counter'></a>";
echo "</div>";
echo "<script type='text/javascript'>var addthis_config = {'data_track_addressbar':true};</script>";
echo "<script type='text/javascript' src='http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985'></script>";
echo "<!-- AddThis Button END -->";
closeside();


As generated at http://phpfusionmods.com/infusions/fusion_tools/index.php?tool=Panels

I think it could prove useful to you and others.


That code didn't work either. :(

Doesn't matter in the long run, as I'm getting my site switched to Haze which is based on Fusion.
I fold for team 52482. Do you fold?

My PHP-Fusion powered site: Unlimited Fan Fiction

Quote

BlackFalcon wrote:
That code didn't work either. :(


i think working..save and look main page..

=========================================================

PolarFox if i don't want use openside-closeside or opentable-closetable ?

is this right?:

?>
CODES
<?
Yes, but for some reason you must add something above the first


for example a comment line
//
?>


but you also can try without it.
Ok! Thank you.
Because not working same this:

?>
 
<!-- your HTML/JS code here -->
 
<?php

Quote

BlackFalcon wrote:

Quote

NetriX wrote:

/**
 * PHP-Fusion Tools - Panel Generator
 * Author: Brandon Davis (NetriX)
 * http://phpfusionmods.com/infusions/fusion_tools/index.php?tool=Panels
 */
openside("Title");
echo "<!-- AddThis Button BEGIN -->";
echo "<div class='addthis_toolbox addthis_floating_style addthis_counter_style' style='left:50px;top:50px;'>";
echo "<a class='addthis_button_facebook_like' fb:like:layout='box_count'></a>";
echo "<a class='addthis_button_tweet' tw:count='vertical'></a>";
echo "<a class='addthis_button_google_plusone' g:plusone:size='tall'></a>";
echo "<a class='addthis_counter'></a>";
echo "</div>";
echo "<script type='text/javascript'>var addthis_config = {'data_track_addressbar':true};</script>";
echo "<script type='text/javascript' src='http://s7.addthis.com/js/300/addthis_widget.js#pubid=mcg1985'></script>";
echo "<!-- AddThis Button END -->";
closeside();


As generated at http://phpfusionmods.com/infusions/fusion_tools/index.php?tool=Panels

I think it could prove useful to you and others.


That code didn't work either. :(

Doesn't matter in the long run, as I'm getting my site switched to Haze which is based on Fusion.

The code posted works fine, you have to save the code without alteration then enable the panel.

It's probably just not showing in your admin panel, but it will show in the main index.
Need help? Having trouble?

» View our Documentation for guides, functions and more - including the Getting Started section!

» Attach Log Files and Screenshots when reporting issues

» My support days are usually Mon-Thurs. Send me a PM if urgent.
How can I make this php code to work?! It should connect to the MYSQL database aswell

Quote

<?
include('config.php'wink;

$query = "SELECT kills,name,scorea,date,ip,level,damage,scraps,secrets FROM scores_0 ORDER BY scorea ";
$result=mysql_query($query) or die(mysql_error());

echo('<table border="1">'wink;
while($row = mysql_fetch_array($result))
{
echo("<tr>"wink;
echo "<td>".$row['ip']."</td><td>".$row['name']."</td><td>".$row['scorea']."</td><td>".$row['date']."</td><td>".$row['kills']."</td><td>".$row['level']."</td><td>".$row['damage']."</td><td>".$row['scraps']."</td><td>".$row['secrets']."</td><td>";
echo("</tr>"wink;
}
echo("</table>"wink;

mysql_close();
?>


I bet it's somethign with the include config file..but how can I give it the link?!
You can view all discussion threads in this forum.
You can 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.
Users who participated in discussion: Craig, ceroenconducta, NetriX, Chan, PolarFox, HaYaLeT, behrooz, BlackFalcon, douwe_yntema, beeproductions, Spatry