The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Moderators on forum index?
hi
does anybody know how to add moderators to the forum index page? on vb4 we had our moderators under each forum and would like the same on vb5 any help appreciated. thanks in advance |
#2
|
||||
|
||||
yes help needed as the options are there in the admin settings but nothing is showing
|
#3
|
||||
|
||||
this is the code used in vb4
HTML Code:
<vb:if condition="$vboptions['showmoderatorcolumn'] AND $forum['moderators']"> <div class="moderators"> <h4>{vb:rawphrase moderators}:</h4> <ol class="commalist"> <vb:each from="forum.moderators" value="row"> <li><a class="username" href="{vb:link member, {vb:raw row}}">{vb:raw row.musername}</a>{vb:raw row.comma}</li> </vb:each> </ol> </div> </vb:if> HTML Code:
<vb:if condition="$show['moderators']"> <div id="forum_moderators" class="forum_info_subblock"> <h5>{vb:rawphrase moderators_of_this_forum}</h5> <ul class="commalist"> <vb:each from="moderatorslist" value="row"> <li><a class="username" href="{vb:link member, {vb:raw row}}">{vb:raw row.musername}</a>{vb:raw row.comma}</li> </vb:each> </ul> </div> </vb:if> |
#4
|
||||
|
||||
There are several settings in the admincp that are left over from vb4 that are no longer functional and this may be one of them. They've been cleaning them up lately. You will probably need to update that template code to vb5 syntax and functions to get it to work properly.
|
Благодарность от: | ||
Dave_The_Don |
#5
|
||||
|
||||
A PHP module could be created and be placed in the forum page. There seems to be no API to fetch the moderators given a forum nodeid. But in the PHP module you could do an SQL query to moderator table.
"SELECT userid from " . TABLE_PREFIX . "moderator WHERE nodeid=<forum nodeid>" ; where <forum nodeid> can be retrieved by calling getRoute method from route API passing the URL of the forum. Then upon getting all the userids of the moderators, you call the fetchProfileInfo method from user API to get info for each user. I would post here when I get a chance to do the whole code for this. |
Благодарность от: | ||
Dave_The_Don |
#6
|
||||
|
||||
Quote:
i hope this is what your talking about my friend |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Quote:
./core/packages/vbforum/db/mysql/querydefs.php Code:
'usergroup' => array('key' => 'usergroupid', 'structure' =>array('usergroupid', 'usergroupid', 'title', 'description', 'usertitle', 'passwordexpires', 'passwordhistory', 'pmquota', 'pmsendmax', 'opentag', 'closetag', 'canoverride', 'ispublicgroup', 'forumpermissions', 'pmpermissions', 'calendarpermissions', 'wolpermissions', 'adminpermissions', 'genericpermissions', 'genericpermissions2', 'genericoptions', 'signaturepermissions', 'visitormessagepermissions', 'attachlimit', 'avatarmaxwidth', 'avatarmaxheight', 'avatarmaxsize', 'profilepicmaxwidth', 'profilepicmaxheight', 'profilepicmaxsize', 'sigpicmaxwidth', 'sigpicmaxheight', 'sigpicmaxsize', 'sigmaximages', 'sigmaxsizebbcode', 'sigmaxchars', 'sigmaxrawchars', 'sigmaxlines', 'usercsspermissions', 'albumpermissions', 'albumpicmaxwidth', 'albumpicmaxheight', 'albummaxpics', 'albummaxsize', 'socialgrouppermissions', 'pmthrottlequantity', 'groupiconmaxsize', 'maximumsocialgroups') ), |
#9
|
||||
|
||||
I don't know what that's exactly for but I don't think that will pull all the moderators in a forum.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|