Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
Xbox Leaderboards 9
Cookiebar Panel 73
AD Gallery 153
SyntaxHighlighte... 63
Newsletters v4.03 169
Facebook Like Box 207
Newsletters v4.02 79
Metro 236
Facebook Connect 216
Shoutbox Panel 185
Redactor for PHP... 128
MI Floating Side... 133
Facebook Login/R... 183
Avatar Studio v2.03 216
Relationship Sta... 123
Popular Addons
iTheme2 5911
Arise 5871
User Control v1.23 4684
Event Calendar 4138
Photowidget panel 3923
Radio-Theme red2... 3396
Highslide Gallery 3361
CSS/JavaScript D... 3277
Facebook Connect... 3057
Dynamic Menu 2948
Slideshow Lightb... 2770
L-AMANT 2689
Enigma 2671
2Dark 2625
Black 2621
View Thread
Official Home of PHP-Fusion » General Addon and Modification Support » Panels and Infusions
Who is here? 1 guest(s)
 Print Thread
How to add a panel with your/my code?
PolarFox
It's simply.

  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:
openside('Panel name');
?>

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

<?php
closeside();


Center panel - top or bottom:
opentable('Panel name');
?>

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

<?php
closetable();


See also:


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



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


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




  • Don't forget: you can't use this with opentable() function!

Edited by PolarFox on 01-10-2012 18:15
 
http://unlogic.info
behrooz
nice
 
http://www.php-fusion-iran.com/
ceroenconducta
Yep, simple. tks ¬
Wènhòu ¬
 
http://www.php-fusion-es.tk
BlackFalcon
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:
Download source  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
 
http://unlimitedfanfiction.com/
Craig
Try this way...

Download source  Code

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



 
http://www.fusiontube.co.uk/
BlackFalcon
Craig wrote:

Try this way...

Download source  Code

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
 
http://unlimitedfanfiction.com/
Craig
OK can you please show me the original code from addthis? No php just the original html.

Because this...
Download source  Code

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




Does not look healthy.
 
http://www.fusiontube.co.uk/
BlackFalcon
Sure here it is:

Download source  Code
<!-- 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
 
http://unlimitedfanfiction.com/
Craig
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.phpfus...oad_id=207

Anyway your code does as it should...

Download source  Code
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();



 
http://www.fusiontube.co.uk/
BlackFalcon
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
 
http://unlimitedfanfiction.com/
Craig
It's active now. Smile
 
http://www.fusiontube.co.uk/
BlackFalcon
Thank you!
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
 
http://unlimitedfanfiction.com/
Craig
Your Welcome! Smile
 
http://www.fusiontube.co.uk/
NetriX
Download source  Code
/**
 * PHP-Fusion Tools - Panel Generator
 * Author: Brandon Davis (NetriX)
 * http://phpfusionm...ool=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://phpfusionm...ool=Panels

I think it could prove useful to you and others.
PHPFusionMods.com - Serving PHP-Fusion addons since 2007.

www.php-fusion.co.uk/infusions/addondb/img/approved_dev.png
 
http://www.phpfusionmods.com
BlackFalcon
NetriX wrote:

Download source  Code
/**
 * PHP-Fusion Tools - Panel Generator
 * Author: Brandon Davis (NetriX)
 * http://phpfusionm...ool=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://phpfusionm...ool=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
 
http://unlimitedfanfiction.com/
HaYaLeT
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?:

Download source  Code
?>
CODES
<?


 
PolarFox
Yes, but for some reason you must add something above the first
Download source  Code
?>




for example a comment line
Download source  Code
//
?>




but you also can try without it.
 
http://unlogic.info
HaYaLeT
Ok! Thank you.
Because not working same this:

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


 
NetriX
BlackFalcon wrote:

NetriX wrote:

Download source  Code
/**
 * PHP-Fusion Tools - Panel Generator
 * Author: Brandon Davis (NetriX)
 * http://phpfusionm...ool=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://phpfusionm...ool=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.
PHPFusionMods.com - Serving PHP-Fusion addons since 2007.

www.php-fusion.co.uk/infusions/addondb/img/approved_dev.png
 
http://www.phpfusionmods.com
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Latest Additions Panel Official releases [Panels] 14 19-06-2013 16:57
Latest Photo Panel Panels and Infusions 1 19-06-2013 06:28
Forum Threads List Panel Panels and Infusions 9 14-06-2013 06:01
Sliding Login Panel 1.00 Official releases [Infusions] 11 10-06-2013 10:52
Notification panel when forum reply Ideas for Modifications and Requests 9 10-06-2013 06:41
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue