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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2005, 07:40 PM
tidy_boy tidy_boy is offline
 
Join Date: Jun 2005
Location: England
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I move this section to the top of my forum

hey guys how do I move this area to the top of my forum. it is at the bottom but would prefer it at the top

I want to move the Display options, Curently active users and moderators to the top

See attachment
Attached Images
File Type: jpg screen.JPG (63.9 KB, 0 views)
Reply With Quote
  #2  
Old 12-04-2005, 08:09 PM
TyleR's Avatar
TyleR TyleR is offline
 
Join Date: Nov 2004
Location: North Carolina
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Note: this is from vB's default style, your's may differ!

Go To: AdminCP -> Styles & Templates -> Edit Templates -> Double Click Forum Display -> Select FORUMDISPLAY template

Find:

Code:
<!-- Active Users in this Forum (and sub-forums) and Moderators -->

<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="pp" value="$perpage" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">$vbphrase[display_options]</td>
	<if condition="$show['activeusers']">
	<td class="tcat">$vbphrase[currently_active_users]</td>
	</if>
	<if condition="$show['moderators']">
	<td class="tcat">$vbphrase[moderators]</td>
	</if>
</tr>
<tr>
	<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
	<if condition="$show['activeusers']">
	<td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td>
	</if>
	<if condition="$show['moderators']">
	<td class="thead">$vbphrase[moderators] : $totalmods</td>
	</if>
</tr>
<tr valign="top">
	<td class="alt1">
	
		<table cellpadding="0" cellspacing="1" border="0" width="auto">
		<tr>
			<td class="smallfont" style="padding-right:6px">$vbphrase[sorted_by]</td>
			<td><select name="sort">
				<option value="title" $sort[title]>$vbphrase[thread_title]</option>
				<option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option>
				<option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option>
				<option value="views" $sort[views]>$vbphrase[number_of_views]</option>
				<option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option>
				<if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if>
			</select></td>
			<td class="smallfont" style="padding-right:6px; padding-left:12px">$vbphrase[sort_order]</td>
			<td><select name="order">
				<option value="asc" $order[asc]>$vbphrase[ascending]</option>
				<option value="desc" $order[desc]>$vbphrase[descending]</option>
			</select></td>
		</tr>
		<tr>
			<td class="smallfont" style="padding-right:6px">$vbphrase[from_the]</td>
			<td><select name="daysprune">
				<option value="1" $daysprunesel[1]>$vbphrase[last_day]</option>
				<option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option>
				<option value="7" $daysprunesel[7]>$vbphrase[last_week]</option>
				<option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option>
				<option value="14" $daysprunesel[14]>$vbphrase[last_2_weeks]</option>
				<option value="30" $daysprunesel[30]>$vbphrase[last_month]</option>
				<option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option>
				<option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option>
				<option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option>
				<option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option>
				<option value="365" $daysprunesel[365]>$vbphrase[last_year]</option>
				<option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option>
			</select></td>
			<td colspan="2" align="$stylevar[right]"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td>
		</tr>
		</table>
	
	</td>
	<if condition="$show['activeusers']">
	<td class="alt1"><div class="smallfont">$activeusers</div></td>
	</if>
	<if condition="$show['moderators']">
	<td class="alt1"><div class="smallfont">$moderatorslist&nbsp;</div></td>
	</if>
</tr>
</table>

</form>
<!-- End Active Users in this Forum (and sub-forums) and Moderators -->
Remove that whole section.

Now find (still in Template FORUMDISPLAY):

Code:
$navbar
Add After:

Code:
<!-- Active Users in this Forum (and sub-forums) and Moderators -->

<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="pp" value="$perpage" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">$vbphrase[display_options]</td>
	<if condition="$show['activeusers']">
	<td class="tcat">$vbphrase[currently_active_users]</td>
	</if>
	<if condition="$show['moderators']">
	<td class="tcat">$vbphrase[moderators]</td>
	</if>
</tr>
<tr>
	<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
	<if condition="$show['activeusers']">
	<td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td>
	</if>
	<if condition="$show['moderators']">
	<td class="thead">$vbphrase[moderators] : $totalmods</td>
	</if>
</tr>
<tr valign="top">
	<td class="alt1">
	
		<table cellpadding="0" cellspacing="1" border="0" width="auto">
		<tr>
			<td class="smallfont" style="padding-right:6px">$vbphrase[sorted_by]</td>
			<td><select name="sort">
				<option value="title" $sort[title]>$vbphrase[thread_title]</option>
				<option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option>
				<option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option>
				<option value="views" $sort[views]>$vbphrase[number_of_views]</option>
				<option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option>
				<if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if>
			</select></td>
			<td class="smallfont" style="padding-right:6px; padding-left:12px">$vbphrase[sort_order]</td>
			<td><select name="order">
				<option value="asc" $order[asc]>$vbphrase[ascending]</option>
				<option value="desc" $order[desc]>$vbphrase[descending]</option>
			</select></td>
		</tr>
		<tr>
			<td class="smallfont" style="padding-right:6px">$vbphrase[from_the]</td>
			<td><select name="daysprune">
				<option value="1" $daysprunesel[1]>$vbphrase[last_day]</option>
				<option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option>
				<option value="7" $daysprunesel[7]>$vbphrase[last_week]</option>
				<option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option>
				<option value="14" $daysprunesel[14]>$vbphrase[last_2_weeks]</option>
				<option value="30" $daysprunesel[30]>$vbphrase[last_month]</option>
				<option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option>
				<option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option>
				<option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option>
				<option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option>
				<option value="365" $daysprunesel[365]>$vbphrase[last_year]</option>
				<option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option>
			</select></td>
			<td colspan="2" align="$stylevar[right]"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td>
		</tr>
		</table>
	
	</td>
	<if condition="$show['activeusers']">
	<td class="alt1"><div class="smallfont">$activeusers</div></td>
	</if>
	<if condition="$show['moderators']">
	<td class="alt1"><div class="smallfont">$moderatorslist&nbsp;</div></td>
	</if>
</tr>
</table>

</form>
<!-- End Active Users in this Forum (and sub-forums) and Moderators -->

<br />
- Tyler
Reply With Quote
  #3  
Old 12-05-2005, 01:49 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that is very handy thanx,i used this on my forum
Reply With Quote
  #4  
Old 12-05-2005, 02:36 AM
TyleR's Avatar
TyleR TyleR is offline
 
Join Date: Nov 2004
Location: North Carolina
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no problem
Reply With Quote
  #5  
Old 12-05-2005, 06:45 AM
tidy_boy tidy_boy is offline
 
Join Date: Jun 2005
Location: England
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks that worked like a charm but how do I move this bit to the top see image
Attached Images
File Type: jpg screen.JPG (29.3 KB, 0 views)
Reply With Quote
  #6  
Old 12-06-2005, 02:27 AM
TyleR's Avatar
TyleR TyleR is offline
 
Join Date: Nov 2004
Location: North Carolina
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tidy_boy
Thanks that worked like a charm but how do I move this bit to the top see image
Sorry for the wait

Go To: AdminCP -> Styles & Templates -> Edit Templates -> Double Click Show Thread Templates -> Select SHOWTHREAD

Find:

Code:
$navbar
Add After:

Code:
<!-- currently active users -->
<if condition="$show['activeusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
</tr>
</table>
</if>
<!-- end currently active users -->
 
<br />
Still in SHOWTHREAD Template, Find & Delete (about half way through the template or so, not what you've just added):

Code:
<!-- currently active users -->
<if condition="$show['activeusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
</tr>
</table>
</if>
<!-- end currently active users -->
- Tyler
Reply With Quote
  #7  
Old 12-06-2005, 06:23 AM
tidy_boy tidy_boy is offline
 
Join Date: Jun 2005
Location: England
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there thanks a lot mate
Reply With Quote
  #8  
Old 12-06-2005, 06:42 AM
TyleR's Avatar
TyleR TyleR is offline
 
Join Date: Nov 2004
Location: North Carolina
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, glad I could be of help

- Tyler
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:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04502 seconds
  • Memory Usage 2,276KB
  • Queries Executed 12 (?)
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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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