Take this section of a line out of pimped:($Context->SelfUrl == 'index.php') &&
Its about 10-15 lines down, starts with IF. Should still work but it might make a conflict with another control more likely, but only if they both use the 'Pimped' PostBackAction.
The problem seems to occur if the Pimped extension is enabled after DefaultPage.
Try disabling them both then enabling 'Pimped' then 'DefaultPage' or if you are happy to do so you could edit the extensions.php file in the 'conf' directory.
Yeah, that didn't do it. The extra tabs are tabs that aren't added by Page Manager - eg, contacts, blog etc.
*brain storm*
Right, just saying that made me wonder if just re-ordering the execution of extensions would fix it. And, it did. The first things to load are now:
include($Configuration['EXTENSIONS_PATH']."ContactForm/default.php");
include($Configuration['EXTENSIONS_PATH']."ShortStat/default.php");
include($Configuration['EXTENSIONS_PATH']."PageMng/default.php");
include($Configuration['EXTENSIONS_PATH']."Blog/default.php");
include($Configuration['EXTENSIONS_PATH']."Pimped/default.php");
Basically, if it comes after Pimped, it doesn't get included in the menu. I'll see if I can think of a neater fix, mind you.
I can't come up with a cleaner solution than that.
Looking at the code for the contact add-on, it only adds the menu tab if $Menu is already setup. So I can only assume it has something to do with that. At the end of the Pimped code, it adds in the rest of the extensions and then renders the page. I tried re-ordering this to see if it helped in any way, but it didn't.
For the moment, I'm happy to just re-order my extensions file - it's not the end of the world.
I've decided against themes & styles, since a user won't be able to change the theme and it should be pretty obvious when they actually see the forum, and styles are already visible with the style switcher extension. I suppose languages would also fall in those categories.
Comments
Any ideas on a way to make them work together?
($Context->SelfUrl == 'index.php') &&
Its about 10-15 lines down, starts with IF. Should still work but it might make a conflict with another control more likely, but only if they both use the 'Pimped' PostBackAction.
Try disabling them both then enabling 'Pimped' then 'DefaultPage' or if you are happy to do so you could edit the extensions.php file in the 'conf' directory.
I think Unauthenticated users can't access Pimped. I've edited
$Context->Configuration['BLING_REQUIRE_SESSION'] = True; // Require a valid session to show bling
to read
$Context->Configuration['BLING_REQUIRE_SESSION'] = False; // Require a valid session to show bling
but it still doesn't work. The link shows up in the sidebar where it's supposed to, but the link just keeps showing me the front page.
This is the link in my address bar after I click:
http://myforum.com/?ReturnUrl=http://myforum.com/?PostBackAction=Pimped
Thanks
Change the following line (found towards the end) from:
$Context->Session->Check($Configuration);
To:
if ($Context->Configuration['BLING_REQUIRE_SESSION'] == True) {$Context->Session->Check($Configuration);}
Works a charm here.