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.

How to add a panel with your/my code?

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
CodeDownload  
openside('Panel',true);
[...]


instead of

Quote

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


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



  • Don't forget: you can't use this with opentable() function!
nice
Yep, simple. tks ¬
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:
CodeDownload  

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();

Try this way...

CodeDownload  

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

CodeDownload  

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! :(
OK can you please show me the original code from addthis? No php just the original html.

Because this...
CodeDownload  

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



Does not look healthy.
Sure here it is:

CodeDownload  
<!-- 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)?
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...

CodeDownload  
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.
It's active now. :)
Thank you!
Your Welcome! :)
CodeDownload  
/**
 * 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.

Quote

NetriX wrote:

CodeDownload  
/**
 * 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.

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?:

CodeDownload  
?>
CODES
<?

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



for example a comment line
CodeDownload  
//
?>



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

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

Quote

BlackFalcon wrote:

Quote

NetriX wrote:

CodeDownload  
/**
 * 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.
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?!
Thread Information
Author
Replies
24 posts
Views
24,984 times
Last Post
Last updated on 5 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
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.
You cannot up or down-vote on the post in this discussion thread.