The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
||||
|
||||
![]()
Awesome. Thanks! The Threads minus Replies is a really good idea. I will implement that! Thanks again! And congrats on the mod position.
--------------- Added [DATE]1360032320[/DATE] at [TIME]1360032320[/TIME] --------------- * Replies minus Threads ![]() --------------- Added [DATE]1360033677[/DATE] at [TIME]1360033677[/TIME] --------------- Here is the new revised code for anyone wondering Code:
$cats = array(18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68); foreach ($cats AS $cat => $forumid) { $t_count[$forumid] = array( "forumid" => $forumid, "forum_name" => $vbulletin->forumcache[$forumid]['title'], "threadcount" => vb_number_format($vbulletin->forumcache[$forumid]['threadcount']), "replycount" => vb_number_format(($vbulletin->forumcache[$forumid]['replycount']) - ($vbulletin->forumcache[$forumid]['threadcount'])) ); } foreach ($cats AS $cat) { $total_count_thread += vb_number_format($vbulletin->forumcache[$cat]['threadcount']); $total_count_reply += vb_number_format(($vbulletin->forumcache[$cat]['replycount']) - ($vbulletin->forumcache[$cat]['threadcount'])); } $classifieds = array_merge($t_count); if (is_member_of($vbulletin->userinfo, 6)) { /* print_r($total_count_reply); echo "<br />"; print_r($total_count_thread); */ } vB_Template::preRegister('FORUMHOME',array('classifieds' => $classifieds)); vB_Template::preRegister('FORUMHOME',array('total_count_thread' => $total_count_thread)); vB_Template::preRegister('FORUMHOME',array('total_count_reply' => $total_count_reply)); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|