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.

Change default page

2»

Comments

  • Hi Vincent! First of all I love you for providing the extension! You are awesome! Secondly, I installed it, but I have the following problem: This error occured after I enabled the extension: Warning: Variable passed to each() is not an array or object in /home/carina/public_html/vanillalounge/extensions/CategoryPageFirst/default.php on line 16 and also wehn you click on the Discussions tab it won't go there and stubbornly stays at the category tab. Any clues how to fix it. Please talk to me in baby language as php is a completely different animal to me. Thanks! Dada
  • What's going on with the tabs is that the tabs havent been edited properly so the extension doesnt work like it should

    To test it out you might want to change these lines
    while(list($num, $info) = each($Menu->Tabs)) { if($info['Text'] == $Context->Dictionary['Discussions']) { $Menu->Tabs[$num]['Url'] .= 'index.php'; break; } }

    To these lines and report back to me
    $a = (is_array($Menu->Tabs)) ? $Menu->Tabs : $this->Menu->Tabs; while(list($num, $info) = each($a)) { if($info['Text'] == $Context->Dictionary['Discussions']) { $Menu->Tabs[$num]['Url'] .= 'index.php'; break; } }
  • Hi Vincent, I exchanged the above code and these are the errors I am getting now: Notice: Undefined variable: Menu in /home/carina/public_html/vanillalounge/extensions/CategoryPageFirst/default.php on line 16 Notice: Undefined variable: this in /home/carina/public_html/vanillalounge/extensions/CategoryPageFirst/default.php on line 16 Warning: Variable passed to each() is not an array or object in /home/carina/public_html/vanillalounge/extensions/CategoryPageFirst/default.php on line 17 Thanks very much! Dada
  • All an extension like this has to do is go to the categories page when the forum is first accessed in a session.

    It should then disable itself, using a session cookie maybe, otherwise every time the root address is accessed it's going to take people back to the categories page.
    That's the simple solution I think. pic

    Posted: Thursday, 25 January 2007 at 7:28AM (AEDT)

  • hmm... interesting idea, and actually sounds like a good solution.
  • there's about 4 different ways to do this and when i get the time i'll explain them and maybe code them
This discussion has been closed.