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

Changing place of TopPosters???

ntuyelikntuyelik New
edited March 2011 in Vanilla 2.0 - 2.8
How can I put Top Posters section over the tags section on side panel?

Comments

  • Options
    AoleeAolee Hobbyist & Coder ✭✭
    edited March 2011
    How can I put Top Posters section over the tags section on side panel?
    hi ntuyelik,

    im not sure of the proper way to re-arrange it but i was able to devise a workaround


    add this on default.php at line 70
    $Sender->AddModule($TopPostersModule);//add code below after this line //array_keys($Sender->Assets['Panel']); //list of modules processed before Top Posters $i = 0; foreach($Sender->Assets['Panel'] as $k => $val){ //'string' gotten from the array_keys if($k == 'TagModule') break; $i++; } $last['TopPostersModule'] = array_pop($Sender->Assets['Panel']); array_splice($Sender->Assets['Panel'],$i,0,$last);

    code picks up the index position of the TagModule and uses it in array_splice -- inserting the "pop-ed" Top Poster Array value
Sign In or Register to comment.