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:
$channels = vB::getDbAssertor()->getRows('vBForum:getChannelTree', array());
$nodeid = $channels['nodeid']
$moderators = vB_Library::instance('node')->getNodeModerators($nodeid);
foreach ($moderators as $moderator)
{
$mod_id = $moderator['userid']
$mod_name = vB_Api::instanceInternal("user")->fetchMusername($moderator['userid']);
$mods[] = ['mod_id' => $$mod_id, 'mod_name' => $mod_name];
}
Could I fetch one nodeid by this and get it to getNodeModerators or do I have to do one more foreach?
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>
Edit 2.0:
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