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?


Print Track
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!

23 replies

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:

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


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! :(
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)?
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.
It's active now. :)
Thank you!
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.

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.

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.
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?!
author PolarFox
forumModifications and Requests - 8
replies24 posts
viewed24310 times
activeLast updated on 5 years ago

Related

Admin Panel - User Admin
Started by
S
sparky - 4 posts
Logon without Logon Panel?
Started by
N
NealWalters - 7 posts
Custom page on a Custom Panel
Started by
M
mmccoy - 7 posts
Infusions are not being displayed under the "infusions" admin panel
Started by
E
enzorug - 11 posts
Left panel with a width of 2 and right with a width of 4
Started by djdandi djdandi - 2 posts
Adding Unactivated Members Count & Link to User Info Panel Help & Adding Link to Admin Area
Started by FreedomIOPList FreedomIOPList - 4 posts

Hot Questions

afoster
Help With Error Msg
afoster - 3 posts
M
Guestbook
MysticFire - 14 posts
NetriX
PolarFox
NetriX
PHP-Fusion US THEME
NetriX - 28 posts
Kevin Maschke
Tabbed panel
Kevin Maschke - 53 posts
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