vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   what calls user browsing forum (https://vborg.vbsupport.ru/showthread.php?t=190697)

mindhunter77 09-11-2008 11:22 PM

what calls user browsing forum
 
1 Attachment(s)
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.

Lynne 09-11-2008 11:31 PM

You can always see what is in the default Jelsoft template by going to edit the template and hitting View Default.

mindhunter77 09-11-2008 11:50 PM

Tried that, after staring at it for an hour I still couldn't figure it out lol

Opserty 09-12-2008 08:08 AM

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.

mindhunter77 09-12-2008 04:18 PM

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 =(

Lynne 09-12-2008 04:30 PM

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.

mindhunter77 09-12-2008 04:35 PM

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:

template is eval'd after the variables are available.
that is going to have to be done. I'm just not sure how.

--------------- 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>


Lynne 09-12-2008 04:46 PM

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?

mindhunter77 09-12-2008 04:50 PM

I think my big question is HOW do I get those variables available for use in that special template.


All times are GMT. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01054 seconds
  • Memory Usage 1,805KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete