vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   FORUMDISPLAY Template Question (https://vborg.vbsupport.ru/showthread.php?t=67274)

romeshomey 07-17-2004 09:18 AM

FORUMDISPLAY Template Question
 
Iv been trying to modify my Forum Display template so that the 'Display Options' show on top of my forums instead of at the bottom like you guys have here.

I get it working sorta, but it shows an error on my subforums for some reason.

Whats the modification that I need for that Display Option box to be moved from the bottom of Forum Display Template to the top?

Thanks in advance.

Dark_Wizard 07-17-2004 09:58 AM

Here you go:

Find this in your template
HTML 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="100%">
                <tr>
                        <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>
                        </select></td>
                        <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>
                        </select></td>
                </tr>
                <tr>
                        <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>
                        </select></td>
                        <td class="smallfont">&nbsp;</td>
                        <td><input type="submit" class="button" value="$vbphrase[show_threads]" style="width:100px" /></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 -->

and move it under the $navbar

romeshomey 07-17-2004 10:11 AM

Thank you very much. I was moving that and the whole search code with it and it was causing some error on the subforums.

Thanks again!

Romes

Dark_Wizard 07-17-2004 11:21 AM

Quote:

Originally Posted by romeshomey
Thank you very much. I was moving that and the whole search code with it and it was causing some error on the subforums.

Thanks again!

Romes

Np...enjoy!


All times are GMT. The time now is 11:51 PM.

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.01132 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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