Version: 1.00, by Feran
Developer Last Online: Nov 2004
Version: 3.0.0
Rating:
Released: 01-19-2004
Last Update: Never
Installs: 11
No support by the author.
Yeah, I found it kinda annoying how having multiple moderators for one forum would make things rather ugly and cluttery and jumble up my front page. So, I made this nifty little hack ^_^
Features:
- Upon choosing a moderator, it will link to that moderator's profile
- A link to showgroups.php
// get moderators ( this is why we needed cache_moderators() )
if ($vboptions['showmoderatorcolumn'])
{
$showmods = array();
$listexploded = explode(',', $forum['parentlist']);
foreach ($listexploded AS $parentforumid)
{
if (!isset($imodcache["$parentforumid"]))
{
continue;
}
foreach($imodcache["$parentforumid"] AS $moderator)
{
if ($showmods["$moderator[userid]"] === true)
{
continue;
}
// get moderators ( this is why we needed cache_moderators() )
if ($vboptions['showmoderatorcolumn'])
{
$showmods = array();
$listexploded = explode(',', $forum['parentlist']);
foreach ($listexploded AS $parentforumid)
{
if (!isset($imodcache["$parentforumid"]))
{
continue;
}
foreach($imodcache["$parentforumid"] AS $moderator)
{
if ($showmods["$moderator[userid]"] === true)
{
continue;
}
You really shouldn't hard code all that HTML into the file.
Everyone's a critic -.- I swear I can't release one hack here without some negative commentary.
I admit that repeating the <script> tag so many times is silly (I'm lazy, remember!), but the <option value="x"> is contingent upon the moderator userid! I don't see how I'm going to incorporate for loops into the template, and remember that the moderator template is for every moderator name listing on your forums, meaning that if I threw <option> into the template it would appear that way.. in wayyy too many places
If you're going to complain, at least do me the decency of providing the solution for the benefit of the users
Can this be done in the forums manager where we choose a mod for that forum? Right now you have to enter a name manually and sometimes the name isn't spelled as we think it is.
I don't see how I'm going to incorporate for loops into the template, and remember that the moderator template is for every moderator name listing on your forums, meaning that if I threw <option> into the template it would appear that way.. in Way too many places
You don't, you eval the template multiple times from within the for loop, just like the existing moderator template is evaled multiple times in the loop. vB3 has Template Conditionals too, which make it very simple to only use the option code in the places you want it to appear
Quote:
If you're going to complain, at least do me the decency of providing the solution for the benefit of the users
If I wanted this hack I'd have coded it myself I was just providing constructive criticism like I do with many hacks.
I'm a complete newbie, and I keep getting parse errors on line 373. I have no idea as to what to do with scripts, so I can't edit this myself, and I don't know anyone that is good with php.
I really want this script, but have no idea how I can install it without getting all these errors - Please can someone help?