MyBB Community Forums
[Release] OptionList for moderators - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [Release] OptionList for moderators (/thread-52327.html)

Pages: 1 2


[Release] OptionList for moderators - ketto93 - 2009-07-03

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


RE: [Release] OptionList for moderators - Solstice - 2009-07-03

ammm a screenshoot please


RE: [Release] OptionList for moderators - Rafael - 2009-07-03

Screenshots...


RE: [Release] OptionList for moderators - JonathanP - 2009-07-03

look at his forum, you will see it.


RE: [Release] OptionList for moderators - ghazal - 2009-07-04

That's very good

Thanks ketto


RE: [Release] OptionList for moderators - compwhizii - 2009-07-04

Eh, kinda messy.


RE: [Release] OptionList for moderators - Rafael - 2009-07-04

Oh!

I see Smile

Nice detail but whats the purpouse?


RE: [Release] OptionList for moderators - ghazal - 2009-07-04

(2009-07-04, 01:21 AM)rafaweb Wrote: Oh!

I see Smile

Nice detail but whats the purpouse?

Quite self explanatory though..

'To use Mod Options right from the index'


RE: [Release] OptionList for moderators - ketto93 - 2009-07-04

(2009-07-04, 06:35 AM)ghazal Wrote:
(2009-07-04, 01:21 AM)rafaweb Wrote: Oh!

I see Smile

Nice detail but whats the purpouse?

Quite self explanatory though..

'To use Mod Options right from the index'

And when you click on a moderator you will redirect to his profile.


RE: [Release] OptionList for moderators - babjusi - 2009-07-04

It looks nice, I like it.