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.
Not a member yet? Click here to register.
Forgot Password?

How to add a panel with your/my code?

Pinned Asked Modified Viewed 31,037 times
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
asked
Veteran Member

It's simply.

Also knows as: HTML Panel

[olist=1]replace panel code with this (see below)
insert your code instead "<!-- your HTML/JS code here -->"
change panel name[/olist]

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');
[...]


[ulist=square]Don't forget: you can't use this with opentable() function![/ulist]
Edited by PolarFox on 10-09-2013 15:58,
0 replies

23 posts

C
ceroenconducta
C
Wènhòu ¬
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

Yep, simple. tks ¬
0 replies
— 3 months later —
B
BlackFalcon
B
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

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();
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

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();
0 replies
B
BlackFalcon
B
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

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! :(
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

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.
0 replies
B
BlackFalcon
B
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

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)?
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

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();
0 replies
B
BlackFalcon
B
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

I had to register so I could download, so now I have to wait for an admin to activate my account there.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

It's active now. :)
0 replies
B
BlackFalcon
B
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Thank you!
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Your Welcome! :)
0 replies
N
NetriX
N
NetriX 10
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.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

/**
 * PHPFusion 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.
0 replies
B
BlackFalcon
B
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Quote

NetriX wrote:

/**
 * PHPFusion 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.
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

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
<?
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
answered
Veteran Member

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


for example a comment line


but you also can try without it.
0 replies
H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Ok! Thank you.
Because not working same this:

?>
 
<!-- your HTML/JS code here -->
 
<?php
0 replies
N
NetriX
N
NetriX 10
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.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

Quote

BlackFalcon wrote:

Quote

NetriX wrote:

/**
 * PHPFusion 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.
0 replies
— 9 months later —
B
beeproductions
B
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

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?!
Edited by Chan on 12-08-2013 06:09,
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

go to includes/multisite.php - include in the code.

Quote

define("SCORE", DB_PREFIX."scores_0"wink;



Now, use ".SCORE." to represent your connection to the new addition of the table.

so your query will be...

Quote


$result = dbquery("SELECT * FROM ".SCORE." ORDER BY $scorea ASC"wink;
if (dbrows($result) !=="0"wink {

echo "<div>";
while ($data = dbarray($result)) {
echo "<p>".$row['ip']."</p>";
echo "....";
}

} else { echo "Did not find anything"; }


Do not need open or close. Our core does that automatically on end of the page.

P.S: Learn our documentation please. Check the syntax we build. It's very easy once you get to know them.
0 replies
— 1 year later —
S
Spatry
S
Spatry 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

This one has me stumped. I am trying to make a search panel which will search for ALL words, not ANY word. This is displaying on a custom page with instructions for using search within ARTICLES. (Articles and custom pages are the only features I am using) Here is the code for my panel:
    
    openside("my search");
    echo "<form id='searchform' name='searchform' method='get' action='".BASEDIR."search.php'>\n";
    echo "<input type='text' name='stext' value='".urldecode($_GET['stext'])."' class='textbox' style='width:875px' />\n";
    echo "<label><input type='hidden' name='stype' value='articles'".($_GET['stype'] == "news" ? " checked='checked'" : "")." onclick=\"display(this.value)\" /></label><br>\n";
    echo "<input type='submit' name='search' value='Search' class='button' /> &nbsp;<input type='reset' name='reset' value='Reset' class='button' />\n</form>\n";
    closeside();
    ?>

I am sure it is a simple line of code I am missing. What would be ideal is to have radio buttons on the search panel one for "Any word" and one for "All words". Any help in this matter would be greatly appreciated.
Edited by Spatry on 12-12-2014 13:14,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 23 posts
  • Votes 0 votes
  • Topic users 11 members

11 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
C
C
Wènhòu ¬
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 1 thread in the forums
N
N
NetriX 10
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.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
H
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
B
B
  • Member, joined since
  • Contributed 122 posts on the community forums.
  • Started 29 threads in the forums
B
B
I fold for team 52482. Do you fold?
My PHP-Fusion powered site: Unlimited Fan Fiction
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
B
B
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
  • Started 1 thread in the forums
S
S
Spatry 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet