|
How to add a panel with your/my code?
|
| PolarFox |
Posted on 19-05-2012 13:36
|

Admin

Posts: 1480
Joined: 26/08/2008
|
It's simply.
- replace panel code with this (see below)
- insert your code instead "<!-- your HTML/JS code here -->"
- 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
Codeopenside('Panel',true);
[...]
instead of
openside('Panel');
[...]
Hidden panel by default:
Codeopenside('Panel',true,'off');
[...]
- Don't forget: you can't use this with opentable() function!
Edited by PolarFox on 01-10-2012 18:15
|
| |
|
|
| behrooz |
Posted on 01-06-2012 16:38
|

Member

Posts: 110
Joined: 25/08/2009
|
nice
|
| |
|
|
| ceroenconducta |
Posted on 27-06-2012 06:50
|

Junior Member

Posts: 11
Joined: 20/06/2006
|
Yep, simple. tks ¬
Wènhòu ¬
|
| |
|
|
| BlackFalcon |
Posted on 30-09-2012 14:59
|

Newbie

Posts: 9
Joined: 28/09/2012
|
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:
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();
|
| |
|
|
| Craig |
Posted on 30-09-2012 15:10
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Try this way...
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();
|
| |
|
|
| BlackFalcon |
Posted on 30-09-2012 15:15
|

Newbie

Posts: 9
Joined: 28/09/2012
|
Craig wrote:
Try this way...
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! :(
|
| |
|
|
| Craig |
Posted on 30-09-2012 15:16
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
OK can you please show me the original code from addthis? No php just the original html.
Because this...
Code
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
Does not look healthy.
|
| |
|
|
| BlackFalcon |
Posted on 30-09-2012 15:20
|

Newbie

Posts: 9
Joined: 28/09/2012
|
Sure here it is:
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)?
|
| |
|
|
| Craig |
Posted on 01-10-2012 13:48
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
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...
Codeopenside("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();
|
| |
|
|
| BlackFalcon |
Posted on 01-10-2012 17:18
|

Newbie

Posts: 9
Joined: 28/09/2012
|
I had to register so I could download, so now I have to wait for an admin to activate my account there.
|
| |
|
|
| Craig |
Posted on 01-10-2012 19:23
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
It's active now.
|
| |
|
|
| BlackFalcon |
Posted on 02-10-2012 18:11
|

Newbie

Posts: 9
Joined: 28/09/2012
|
Thank you!
|
| |
|
|
| Craig |
Posted on 02-10-2012 18:34
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
Your Welcome!
|
| |
|
|
| NetriX |
Posted on 12-10-2012 08:23
|

Admin

Posts: 385
Joined: 22/09/2007
|
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.
|
| |
|
|
| BlackFalcon |
Posted on 12-10-2012 15:44
|

Newbie

Posts: 9
Joined: 28/09/2012
|
NetriX wrote:
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.
|
| |
|
|
| HaYaLeT |
Posted on 29-10-2012 16:04
|

Senior Member

Posts: 276
Joined: 31/10/2008
|
i think working..save and look main page..
=========================================================
PolarFox if i don't want use openside-closeside or opentable-closetable ?
is this right?:
Code?>
CODES
<?
|
| |
|
|
| PolarFox |
Posted on 29-10-2012 19:31
|

Admin

Posts: 1480
Joined: 26/08/2008
|
Yes, but for some reason you must add something above the first
Code?>
for example a comment line
Code//
?>
but you also can try without it.
|
| |
|
|
| HaYaLeT |
Posted on 30-10-2012 10:41
|

Senior Member

Posts: 276
Joined: 31/10/2008
|
Ok! Thank you.
Because not working same this:
Code?>
<!-- your HTML/JS code here -->
<?php
|
| |
|
|
| NetriX |
Posted on 30-10-2012 17:40
|

Admin

Posts: 385
Joined: 22/09/2007
|
BlackFalcon wrote:
NetriX wrote:
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.
|
| |
|