Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
PanelHider extension
Hi folks,
If you've expected to find a functional extension extension I must say "sorry". This uploaded version is just a first step into the right direction. I already posted in another thread to find someone who fixes the old panelhider extension from vanilla 0.9.2.
As no one was interested I took the old code and began on my own. I have to add I'm not very skilled with PHP, Javascript and all this things. Nevertheless I started to study the lussumo documentation, other extensions and some php-explaining sites to translate the extension to the new vanilla version. I uploaded my result in the addons section - PanelHider 0.1.1
Now I've reached a point where I lack the skills to continue. Several things in the JS code such as DataManger() are greek to me. Additionally I don't understand why the content container doesn't resize when hiding the panel.
Hopefully someone will come and save us all.
If you've expected to find a functional extension extension I must say "sorry". This uploaded version is just a first step into the right direction. I already posted in another thread to find someone who fixes the old panelhider extension from vanilla 0.9.2.
As no one was interested I took the old code and began on my own. I have to add I'm not very skilled with PHP, Javascript and all this things. Nevertheless I started to study the lussumo documentation, other extensions and some php-explaining sites to translate the extension to the new vanilla version. I uploaded my result in the addons section - PanelHider 0.1.1
Now I've reached a point where I lack the skills to continue. Several things in the JS code such as DataManger() are greek to me. Additionally I don't understand why the content container doesn't resize when hiding the panel.
Hopefully someone will come and save us all.
0
This discussion has been closed.
Comments
I reactivated the lines
var dm = new DataManager(); dm.LoadData("/ajax/switch.php?Type=HidePanel&Switch=1");
within panelhide.js to see which errors occur. Firebug keeps telling me and points to line 21 in ajax.jsAnyone here who can help?
Although I made some progress on some smaller bugs (updated it to version 0.1.2), I'm still looking for someone familiar with PHP and vanilla, who is giving it the final touch. As you can see in the Addon description this extension still holds several bugs which I don't know how to fix.
e.g. I don't know why 'panelhide.gif' will only be hidden in the discussion grid. The other big thing is the margin of #Content.
When hiding the panel, #Content gets a new margin of 18px instead of the old 235px. When accessing another page or reloading the discussion grid, the panel is hidden (which is intended) but #Content gets his old margin of 235px from the stylesheet.
PanelHider v.0.1.2 (Alpha)
could you please check inside the source code of the HTML page, where
<div id="HiddenPanel"> <a href="javascript:RevealPanel();"> </a> </div> <div id="HidePanel"> <a href="javascript:HidePanel();"> </a> </div>
gets added to your page?Maybe it helps to increase the "101" in line 43 of default.php
$Page->AddRenderControl($PanelHider, 101);
to a higher number. e.g. 201I commented the 2 line out and everything works fine locally.
Body {background-image: none;}
#Panel {display:none;}
#Content {margin:0 18px 0 Xpx;}
as someone has suggested somewhere?
<script type="text/javascript" src="/messageboard/./extensions/SmoothPageJump/prototype.lite.js"></script> <script type="text/javascript" src="/messageboard/./extensions/SmoothPageJump/moo.fx.js"></script> <script type="text/javascript" src="/messageboard/./extensions/SmoothPageJump/functions.js"></script>
if (in_array($Context->SelfUrl, array("account.php", "categories.php", "comments.php", "index.php", "post.php", "search.php", "settings.php")) && $Context->Session->UserID > 0) {
This says that it will only work for users that are logged in and then only on those pages listed. You might need to adjust what you have.