Thread: Forum Display Enhancements - Display Options Above Threads - as seen on vbulletin.org
View Single Post
  #60  
Old 07-17-2009, 03:06 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code in step No. 3 did not validate against xhtml for me. Instead I used the following:
Code:
<!-- Modified Thread Search Layout -->

<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="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
</tr>
 <tr valign="top">
    <td class="alt1">
        <table cellpadding="3" cellspacing="0" border="0" align="center">
        <tr>
            <if condition="$prefix_options">
            <td><select name="prefixid" id="sel_prefixid">
                    <option value=""$prefix_selected[any]>$vbphrase[any_prefix_meta]</option>
                    <option value="-1"$prefix_selected[none]>$vbphrase[no_prefix_meta]</option>
                    $prefix_options
                </select></td>
            </if>
            <td><select name="sort" id="sel_sort">
                    <option value="title" $sort[title]>$vbphrase[thread_title]</option>
                    <option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option>
                    <option value="dateline" $sort[dateline]>$vbphrase[thread_start_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><select name="order" id="sel_order">
                    <option value="asc" $order[asc]>$vbphrase[ascending]</option>
                    <option value="desc" $order[desc]>$vbphrase[descending]</option>
                </select></td>
            <td><select name="daysprune" id="sel_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 class="smallfont" align="$stylevar[right]" style="padding-top:$stylevar[cellpadding]px">
                <input type="submit" class="button" value="$vbphrase[show_threads]" />
            </td>
</tr>
        </table>    
    </td>
  </tr>
</table>
</form>

<form action="inlinemod.php?forumid=$forumid" method="post" id="inlinemodform">
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="forumid" value="$forumid" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
<tbody>
$announcebits
<!-- / Modified Thread Search Layout -->
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01325 seconds
  • Memory Usage 1,799KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete