The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Fetch current node and channelid
Hi everyone,
I want to do my first real mod includes an API call. I read about a mod-request which should list all Moderators of a Forum. Thought it should be easy enough to start with. But I did'nt find the API-call of the current channel and nodeid. I need to set the current nodeid and current channelid to a variable $nodeid =? $channelid =? I would show all usernames where moderator for nodeid and nodeid = channelid. So if the User is moderator in nodeid = 3 (db-table moderator) the Moderatorbar should be visible at channel 3 pages. Could anybody help me please :-) |
#2
|
||||
|
||||
nobody?
Ok, I will explain it a little bit more specific. I want to use the hook 'forumitem_below_description' to show a list of the forums mods. But to use the class "vB_Library::instance('node')->getNodeModerators($nodeid);" I need the forum.nodeid of each forum. PHP Code:
I spend ours on it and don't know how to do it... Edit: And how could I put an argument like forum=forum to the hook at product-file . Edit and try this, because I found it at vbulletin_styles: HTML Code:
<arguments><![CDATA[a:1:{s:8:"forum";a:1:{s:8:"forum";i:1;}}]]></arguments> Got it all by my self spending one day with vBulletin stuff! After I got it I saw the mod already exist: vbmods.rocks - Forum moderator-list |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|