The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
What code do I need to use to call USERS BROWSING FORUM, TOTAL POSTS, TOTAL THREADS,
I just edited my forumhome and would like to place this info back where the red circle is in the pic. Yet, I can't find the code to do it. |
#2
|
||||
|
||||
![]()
You can always see what is in the default Jelsoft template by going to edit the template and hitting View Default.
|
#3
|
|||
|
|||
![]()
Tried that, after staring at it for an hour I still couldn't figure it out lol
|
#4
|
|||
|
|||
![]()
Create a New Style, then look in the forumhome_forumbit_level2_post template.
You'll probably be looking for the $forum[xxx] variables. Those contain the data you need. |
#5
|
|||
|
|||
![]()
ok here is some of the info I need,
Code:
<td class="alt2" width="175" nowrap="nowrap">$forum[lastpostinfo]</td> <td class="alt1" width="65">$forum[threadcount]</td> <td class="alt2" width="65">$forum[replycount]</td> The problem is when I place it where it needs to go on my new forumhome it does nothing =( |
#6
|
||||
|
||||
![]()
What template are you placing that code in? Is it in the same template it originally was in? You need to make sure the template is eval'd after the variables are available.
|
#7
|
|||
|
|||
![]()
I'm placing it in a template called
burach_forum Which is called right after the navbar in the FORUMHOME template. It replaces the $forumbits call. So I'm guessing when you said Quote:
--------------- Added [DATE]1221241008[/DATE] at [TIME]1221241008[/TIME] --------------- This is the code for burach_forum Code:
<if condition="$vbulletin->options['burach_category_on']"> <!-- burach forum start --> <div class="dcc"><div class="dcg"></div><div class="dcd"></div></div> <br /><table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center"> <tbody> <tr> <td class="tcat" colspan="5"> <a style="float:right" href="#top" onclick="return toggle_collapse('forumbit_73')"><img id="collapseimg_forumbit_73" src="images/buttons/collapse_tcat.gif" alt="" border="0" /></a> <a>$vboptions[category_name]</a> </td> </tr> </tbody> <tbody id="collapseobj_forumbit_73" style=""> <tr> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum1_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum1_link]"><strong> $vboptions[forum1_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum1_ack]<br></div> </td> </tr> </table> </td> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum2_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum2_link]"><strong> $vboptions[forum2_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum2_ack]</div> </td> </tr> </table> </td> </tr> <tr> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum3_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum3_link]"><strong> $vboptions[forum3_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum3_ack]</div> </td> </tr> </table> </td> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum4_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum4_link]"><strong> $vboptions[forum4_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum4_ack]</div> </td> </tr> </table> </td> </tr> <tr> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum5_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum5_link]"><strong> $vboptions[forum5_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum5_ack]</div> </td> </tr> </table> </td> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum6_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum6_link]"><strong> $vboptions[forum6_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum6_ack]</div> </td> </tr> </table> </td> </tr> <tr> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum7_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum7_link]"><strong> $vboptions[forum7_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum7_ack]</div> </td> </tr> </table> </td> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum8_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum8_link]"><strong> $vboptions[forum8_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum8_ack]</div> </td> </tr> </table> </td> </tr> <tr> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum9_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum9_link]"><strong> $vboptions[forum9_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum9_ack]</div> </td> </tr> </table> </td> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum10_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum10_link]"><strong> $vboptions[forum10_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum10_ack]</div> </td> </tr> </table> </td> </tr> <tr> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum11_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum11_link]"><strong> $vboptions[forum11_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum11_ack]</div> </td> </tr> </table> </td> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum12_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum12_link]"><strong> $vboptions[forum12_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum12_ack]</div> </td> </tr> </table> </td> </tr> <tr> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum13_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum13_link]"><strong> $vboptions[forum13_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum13_ack]</div> </td> </tr> </table> </td> <td class="alt1Active" align="left" id="f4" width="50%" height="65"> <table class="alt1Active" width="100%"> <tr> <td width="50"> <img src="images/$vboptions[forum14_icon]" border="0" id="forum_statusicon_4" style="padding: 6px;" align="left" width="75" height="75" /> </td> <td width="100%"> <div class="smallfont"> <div><a href="$vboptions[forum14_link]"><strong> $vboptions[forum14_name] </strong></a></div> </div> <div class="smallfont">$vboptions[forum14_ack]</div> </td> </tr> </table> </td> </tr> </tbody> <!-- / burach_forum end --> </if> |
#8
|
||||
|
||||
![]()
Where do you eval the template? If you are using a hook to eval it, is the hook called after those variables are available for use?
|
#9
|
|||
|
|||
![]()
I think my big question is HOW do I get those variables available for use in that special template.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|