Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Jun 2016, 19:55
cc10 cc10 is offline
 
Join Date: May 2011
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
Reply With Quote
  #2  
Old 07 Jul 2016, 13:16
Dave_The_Don's Avatar
Dave_The_Don Dave_The_Don is offline
 
Join Date: May 2011
Real name: Dave
display forum moderators

yes help needed as the options are there in the admin settings but nothing is showing

Attached Images
File Type: jpg Image1.jpg (59.3 KB, 63 views)
Reply With Quote
  #3  
Old 08 Jul 2016, 13:35
Dave_The_Don's Avatar
Dave_The_Don Dave_The_Don is offline
 
Join Date: May 2011
Real name: Dave
this is the code used in vb4


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

how come its not added in vb5 when it shows in the settings

Last edited by Dave_The_Don; 08 Jul 2016 at 13:43.
Reply With Quote
  #4  
Old 08 Jul 2016, 15:04
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Real name: Mel
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.
__________________
VB5 mods - RepliClock VB4 mods - Member Online Status
Reply With Quote
  #5  
Old 08 Jul 2016, 17:16
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
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.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #6  
Old 08 Jul 2016, 21:04
Dave_The_Don's Avatar
Dave_The_Don Dave_The_Don is offline
 
Join Date: May 2011
Real name: Dave
Originally Posted by Replicant View Post
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.
https://www.vbulletin.com/docs/html/...emplate_syntax
i hope this is what your talking about my friend
Reply With Quote
  #7  
Old 08 Jul 2016, 21:42
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Real name: Mel
Originally Posted by Dave_The_Don View Post
https://www.vbulletin.com/docs/html/...emplate_syntax
i hope this is what your talking about my friend
Yep, that's it. Noypiscripter's plan is the way to go on this. You'll still need to do the template work but there will be some custom API you'll have to call from the template to get the info you need.
__________________
VB5 mods - RepliClock VB4 mods - Member Online Status
Reply With Quote
  #8  
Old 21 Jul 2016, 18:21
Dave_The_Don's Avatar
Dave_The_Don Dave_The_Don is offline
 
Join Date: May 2011
Real name: Dave
Originally Posted by noypiscripter View Post
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.
could the desired info not be pulled from this section in the
./core/packages/vbforum/db/mysql/querydefs.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #9  
Old 25 Jul 2016, 04:14
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
I don't know what that's exactly for but I don't think that will pull all the moderators in a forum.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make invisible users visible to Super Moderators and Moderators. SWFans.net vBulletin 2.x Full Releases 76 04 Aug 2004 02:22



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:40.

Layout Options | Width: Wide Color: