Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2008, 11:22 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default what calls user browsing forum

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.
Attached Images
File Type: jpg screen.jpg (85.1 KB, 0 views)
Reply With Quote
  #2  
Old 09-11-2008, 11:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can always see what is in the default Jelsoft template by going to edit the template and hitting View Default.
Reply With Quote
  #3  
Old 09-11-2008, 11:50 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried that, after staring at it for an hour I still couldn't figure it out lol
Reply With Quote
  #4  
Old 09-12-2008, 08:08 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-12-2008, 04:18 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 =(
Reply With Quote
  #6  
Old 09-12-2008, 04:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-12-2008, 04:35 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 09-12-2008, 04:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 09-12-2008, 04:50 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:47 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.04061 seconds
  • Memory Usage 2,296KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete