No announcement yet.

Disable "Display Options"

  • Time
  • Show
Clear All
new posts

  • Disable "Display Options"

    I want to disable/turn off the the information box that appears when I enter one of my forum categories. How do I do that, doesn't find it under Forum Display Options in admincp...

    It says:

    Display Options
    Showing threads x to x of x

    sorted by, sort order

  • #2
    You need to edit the templates to get rid of the display options. Go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates -> FORUMDISPLAY

    Remove the red 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">
    	[color=red]<td class="tcat">$vbphrase[display_options]</td>[/color]
    	<if condition="$show['activeusers']">
    	<td class="tcat">$vbphrase[currently_active_users]</td>
    	<if condition="$show['moderators']">
    	<td class="tcat">$vbphrase[moderators]</td>
    	[color=red]<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>[/color]
    	<if condition="$show['activeusers']">
    	<td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td>
    	<if condition="$show['moderators']">
    	<td class="thead">$vbphrase[moderators]: $totalmods</td>
    <tr valign="top">
    	[color=red]<td class="alt1">
    		<table cellpadding="0" cellspacing="1" border="0" width="100%">
    			<td class="smallfont">$vbphrase[sorted_by]:</td>
    			<td><select name="sort" style="width:125px">
    				<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>
    			<td class="smallfont">$vbphrase[sort_order]:</td>
    			<td><select name="order" style="width:100px">
    				<option value="asc" $order[asc]>$vbphrase[ascending]</option>
    				<option value="desc" $order[desc]>$vbphrase[descending]</option>
    			<td class="smallfont">$vbphrase[from_the]:</td>
    			<td><select name="daysprune" style="width:125px">
    				<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>
    			<td class="smallfont">&nbsp;</td>
    			<td><input type="submit" class="button" value="$vbphrase[show_threads]" style="width:100px" /></td>
    	<if condition="$show['activeusers']">
    	<td class="alt1"><div class="smallfont">$activeusers</div></td>
    	<if condition="$show['moderators']">
    	<td class="alt1"><div class="smallfont">$moderatorslist&nbsp;</div></td>
    <!-- End Active Users in this Forum (and sub-forums) and Moderators -->
    That should do it.


    • #3
      Thank you very much! It worked...


      • #4
        I tried this option but then it makes any thread more than 30 days old vanish along with the pages to view old threads.

        How can I do away with the Display Options box but still show all threads from the beginning?


        • #5
          Originally posted by Samthesham
          How can I do away with the Display Options box but still show all threads from the beginning?
          Admin CP -> Forums & Moderators -> Forum Manager -> Edit Forum -> Default View Age

          Set that to Show all threads for each forum.

          Or you can set this for all forums by running this query on your database:

          UPDATE forum SET daysprune = -1

          After running this query you will need to run this counter for the changes to take effect:

          Admin CP -> Import & Maintenance -> Update Counters -> Rebuild Forum Information


          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.