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.
applying extensions to multiple custom pages with ease!
EDITED on 11/22/06
Ok so if there's anyone else out there like me that is trying to make their vanilla forum into a website/forum combo and in doing so has to make a lot of custom pages that the extensions need to be applied to then you should read this quick fix. I have a few extensions on my sidepanel that I have to manually add to the list of pages that can load it in the default.php file for each extension. This can be very tedious and annoying if you have 50+ custom pages like me. So I decided I better find a way to fix this so I don't have to do all this extra work. Thanks to Minisweeper for giving me the solution after I botched an attempt to fix it on my own lol. Here's the instructions:
ok in your default.php file you should see a block of code that looks like this:
replace that block of code and there with this
and that's it! See how easy was that? Now you don't have to worry about adding new custom pages to a list it automatically shows the extensions on your custom page. Enjoy ^.^
Ok so if there's anyone else out there like me that is trying to make their vanilla forum into a website/forum combo and in doing so has to make a lot of custom pages that the extensions need to be applied to then you should read this quick fix. I have a few extensions on my sidepanel that I have to manually add to the list of pages that can load it in the default.php file for each extension. This can be very tedious and annoying if you have 50+ custom pages like me. So I decided I better find a way to fix this so I don't have to do all this extra work. Thanks to Minisweeper for giving me the solution after I botched an attempt to fix it on my own lol. Here's the instructions:
ok in your default.php file you should see a block of code that looks like this:
if(in_array($Context->SelfUrl, array("index.php", "categories.php", "discussions.php", "comments.php", "search.php", "post.php", "account.php", "settings.php"))) {
replace that block of code and there with this
if ($Context->SelfUrl != 'people.php') {
and that's it! See how easy was that? Now you don't have to worry about adding new custom pages to a list it automatically shows the extensions on your custom page. Enjoy ^.^
0
This discussion has been closed.
Comments
http://lussumo.com/community/discussion/4400/addon-management-tools/
$Configuration['SELF_URL'] = 'default.php';
in there, it worked when I added it while taking out that if statement... lol guess you just need to take out the if statement. ><if ($Context->Selfurl != 'people.php') {
Notice: Undefined property: Selfurl in /mounted-storage/home4/sub002/sc11923-BRUP/oga/Vanilla.1.0.1/extensions/SidePanelImproved/default.php on line 40
Fatal error: Call to a member function on a non-object in /mounted-storage/home4/sub002/sc11923-BRUP/oga/Vanilla.1.0.1/extensions/SidePanelImproved/default.php on line 43
Awsome that worked! Thanks a lot I'll update the original post at the top to have the correct way of doing this.