Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release] OptionList for moderators
#1
Hi,

I'm sending my new release that does this: http://ketto.altervista.org/forum/index.php
You can view that the browser redirects to profile page of moderator Big Grin

You must follow only 5 little steps

1)
In forumbit_depth1_cat edit
<td class="thead" colspan="5">  
with
<td class="thead" colspan="6">

2)
Add after
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>  

this
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>Moderators</strong></span></td>  

3)
In Ungrouped Templates > headerinclude insert this
function redirect( optionValue ) {
var uid;
var address;
uid = optionValue
address = "member.php?action=profile&uid=";
location.href = address+uid;
}

after
// -->

4)
In forumbit_depth2_forum insert
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap"><form>
<select name="test" onchange="redirect(this.value);">
<option value="" selected>Moderators</option>
{$moderators}
</select>
</form> </td> 

after
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>  

5)
Modify file ./inc/functions_forumlist.php inserting
$moderators .= "<option value=\"".get_profile_link($moderator['uid'])."\">".htmlspecialchars_uni($moderator['username'])."</option>";  
instaed of
$moderators .= "<br /><a href=\"".get_profile_link($moderator['uid'])."\">".htmlspecialchars_uni($moderator['username'])."</a>";  

Byeeeee
Hi,
Ketto93
_______________________
MyBB Italian Lover
Reply


Messages In This Thread
[Release] OptionList for moderators - by ketto93 - 2009-07-03, 04:19 PM
RE: [Release] OptionList for moderators - by FBI - 2009-07-08, 04:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)