Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Base_Render_Before Standard="1"

edited November 2010 in Vanilla 2.0 - 2.8
@Tim
I've got a questions about public function Base_Render_Before(&$Sender)
It produces <ul id="Menu"><li Standard="1" class=" Highlight"><a href="/discuss…

I see your name in the code . .can you help?
I'd like to get rid of the standard="1" bit, as it is not compliant.
below is the code I am using to generate the menu
<?php $Session = Gdn::Session(); if ($this->Menu) { $this->Menu->AddLink('Activity', T('Activity'), '/activity'); $Authenticator = Gdn::Authenticator(); .... ?>
I shortened the code bit as it make THIS forum looks ugly :)

Comments

  • Options
    fixed by doing this:
    $this->Menu->Items["Discussions"][0]["Attributes"]=""; $this->Menu->Items["Conversations"][0]["Attributes"]="";

    not very elegant though :(
  • Options
    TimTim Operations Vanilla Staff
    Explain to me what you're trying to do?

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    Create compliant XHTML :)
  • Options
    TimTim Operations Vanilla Staff
    My install doesn't generate Standard="1". Seems like there is a condition in the Attribute() function which excludes the "Standard" attribute. I have no idea why it is there at all (wasn't me), but it doesn't make it into the final html output.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Options
    FYI. When I used default.master.tpl it didn't generate standard=1
    now I'm using default.master.php

    Helpful?
  • Options
    LincLinc Detroit Admin
    @TerminalAddict This should be fixed in the latest version.
Sign In or Register to comment.