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.
Options

Panel Elements

edited May 2007 in Vanilla 1.0 Help
Hi, I'm trying to modify the contents of the panel, and I want to edit the div that says "Vanilla 1.1.1 is a product....". I'd rather not output my specific version. I've found that it gets output in this loop in panel.php while (list($Key, $PanelElement) = each($this->PanelElements)) I am not sure where to find the PanelElements array though. I've got the nuggets extension, but it doesn't seem to be helpful for removing current panel elements. Thanks for your time.

Comments

  • Options
    edited May 2007
    yeah Nuggets cannot change existing panel, cause there is no way to find them.

    In Languages/English.php line 595 you have this
    /* Please do not remove or alter this definition */ $Context->Dictionary['PanelFooter'] = '<p id="AboutVanilla"><a href="http://getvanilla.com">Vanilla '.APPLICATION_VERSION.'</a> is a product of <a href="http://lussumo.com">Lussumo</a>. More Information: <a href="http://lussumo.com/docs">Documentation</a>, <a href="http://lussumo.com/community">Community Support</a>.</p>';
    just remove the .APPLICATION_VERSION. (including the periods)
  • Options
    I was wondering about this: are the language definitions liable to be overwritten by updates? x:
  • Options
    edited May 2007
    yes. So copy paste that in an simple extension and enable it
    <?php /* Extension Name: Remove Version Number Extension Url: N/A Description: Remove Version Number. Version: 0.1 Author: Me Author Url: N/A */ /* Please do not remove or alter this definition */ $Context->Dictionary['PanelFooter'] = '<p id="AboutVanilla"><a href="http://getvanilla.com">Vanilla</a> is a product of <a href="http://lussumo.com">Lussumo</a>. More Information: <a href="http://lussumo.com/docs">Documentation</a>, <a href="http://lussumo.com/community">Community Support</a>.</p>'; ?>
  • Options
    Cool :D Thanks for the help MySchizoBuddy!
  • Options
    Yes, thank you greatly MySchizoBudddy. All of your comments on the forum are really helpful.
  • Options
    Actually if you just want to change a language definition then you can put that line straight into conf/language.php instead of making a new extension of it. :) For reference, the correct way to use the dictionary is now $Context->SetDefinition('PanelFooter', '<p id="AboutVanilla">.......');
  • Options
    In a theme I am working on, I needed to relocate the AboutVanilla panel item. I wound up modifying the panel.php file in the "while loop" mentioned above to exclude the AboutVanilla by using the code:
    if ($Type == 'List') { ... } elseif ($Type == 'String') { if ( !strstr($this->Strings[$Key], "Lussumo") ) echo $this->Strings[$Key]; }
  • Options
    Where did you find out that the key name is "Lussumo"? I was having trouble searching through the code.
  • Options
    I looked in the sql table.
This discussion has been closed.