PDA

View Full Version : Forum Display Enhancements - Display Options Above Threads - as seen on vbulletin.org


kira
05-09-2008, 10:00 PM
This template mod, updated from my 3.6.x version (https://vborg.vbsupport.ru/showthread.php?t=152343), will streamline and relocate the "Display Options" dropdown menus to the top of your threads list on forumdisplay, as seen here at vbulletn.org in the modification areas.

As part of this move, we'll also change the look of the "Active Users"/Moderators panel remaining at the bottom of the page. ('Before' and 'after' screenshots are below.)

Note: In the 3.6.x version, there were two different versions of this mod -- the extra one being for those forums using the excellent Thread Prefixes (https://vborg.vbsupport.ru/showthread.php?t=123033) mod by Mystics. Now that vB 3.7.0 has prefixes on its own, those extra set of instructions are no longer necessary.

Important: If you've installed or applied other mods that have altered the forumdisplay template, you may need to adjust the instructions accordingly.

I hope this mod is helpful! As always, many thanks to vbulletin.org for the inspiration, not to mention years of providing an amazingly helpful community.

veenuisthebest
05-10-2008, 06:13 PM
reserved !! :)

cafenetland
05-10-2008, 06:28 PM
lets try it.

thx for ur effort

rooban12
05-10-2008, 06:28 PM
thanks!!!
nice hack

arena
05-10-2008, 06:43 PM
Kira vey thaks nice.

Mike-D
05-10-2008, 07:15 PM
Thanks Mike! But I'm afraid those aren't quite correct. Couple of problems:

1. They seem to have been based on the instructions I included for people without Mystics prefix mod. But vb 3.7.0 has prefix code built in now. If you look at your examples -- and I just tested this on my test installation to verify -- the prefix dropdown is missing.

2. They break the "inline thread title editing" feature. This happened to me too, originally, but I uploaded a fix for this. The problem relates to the "announcebits" portion of the instructions and accidentally duplicating the table id "threadslist." In my fix, I first delete the ID in the table code right above announcebits.

So you might want to withdraw that file for now until that stuff is fixed. But thank you for working on this so quickly! Yep you're right. I didn't see that. Now it works. You'll notice that I've deleted two small things inside the modification which are really not necessary. So then it looks now we'd like to have ;)

kira
05-10-2008, 07:41 PM
Yep you're right. I didn't see that. Now it works. You'll notice that I've deleted two small things inside the modification which are really not necessary. So then it looks now we'd like to have ;)

Thanks again, but it's still not quite right I'm afraid! What do you think wasn't necessary?
Because unless I'm reading your XML wrong, your replacements eliminate the announcebits section completely, which means announcements won't show up. Plus, you still didn't take away the extra ID = threadslist from the table code above the announcebits section, which means the thread editing will still not work.

Here's the section I'm talking about:


<searchstr><![CDATA[$announcebits]]></searchstr>
<replacestr><![CDATA[<!-- Modified Thread Search Layout -->
</tbody>
</table>

The searchstr must include this:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
<tbody>
$announcebits

And the replacestr should start with this:

<!-- Modified Thread Search Layout -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
$announcebits

(Obviously this isn't the whole replacement code.) Note the removed id="threadslist' in the replacement stuff, and the inclusion of $announcebits. These are necessary otherwise announcements and inline thread title editing won't work.

I really do appreciate the help, Mike! I wish I could create TMS files on my own but I'm no php coder by any stretch. Plus I don't use TMS yet! However, I know the above stuff is important for the modification to work correctly.

Mike-D
05-10-2008, 08:19 PM
Damn, seems to be not being my day :( I never would have guessed. Probaby I have mixed somethings. Never try to make some changes when your Editor does have 12 Template codes next to each other working. Yes you're absolutely right because I forgot the most important. Now I have fiixed it and it works. Gee, what a terrible day. Thank you, Kira :) You just made my day :D

BTW: I just saw your BDay. That's almost the same like mine of just 1 day difference :)

ThreeD
05-10-2008, 09:36 PM
thanks for this updated release. The 3.6.x version wasn't working with 3.7!

cyberbob73
05-11-2008, 08:14 AM
Thanks for the TMS File ===> Mike-D (alter Freund:D)

TCB
05-14-2008, 03:53 PM
Now I'm not sure what version to use. Your first post still says version 1.0, although there is talking about changes afterwards? Is it now an xml-product import, or do I still have to edit templates?

kira
05-14-2008, 04:08 PM
Hi TCB. Sorry, the changes mentioned in my OP are comparing this to the original 3.6.x version. This new 3.7.0 version is unchanged and the instructions are in the text file attached to the OP.

This is indeed a Template Modification, so yes, you need to manually edit a template (forumdisplay in this case). The instructions are pretty easy though! Shouldn't take you more than five - ten minutes, tops. :)

However, if you use the Template Modification System product addon, you can use the xml link up in Mike D (https://vborg.vbsupport.ru/showpost.php?p=1515225&postcount=6)'s post. Please note that I can't verify that this works because I don't personally have TMS installed. (I'm weird in that I kinda enjoy modifiying the templates myself, since I think it helps me understand what changes are being made to the system.)

Let me know if you have any problems. Thanks and good luck!

TCB
05-14-2008, 05:15 PM
Oh, great.. thanks a lot. The option to put this 'filter' and 'sort' option on top (like yours) or at the bottom of your forum (default) should be standard in vbulletin. In the meantime, me and my members will enjoy this modification :D

Hostboard
05-14-2008, 05:37 PM
One thing I notied betweenthe before and after was the label "Display Options" Is there a way to slip that back in there?

kira
05-14-2008, 06:01 PM
Thanks TCB! Glad it's useful, and I agree, this placement seems much more logical than the default -- especially when there are lots of threads within a forum, which means the filtering options are easily missed since they're all the way at the bottom of the screen.

Hostboard: Absolutely! In step #3 of my instructions, you'd just place the following:

$vbphrase[display_options]:

Into the code wherever you want. (By default this phrase is "Display Options".)

For example, in the "after" sample image, you can see the area that says "Showing threads 1 of 2." To change this to "Display Options: Showing threads 1 of 2" you'd go to Step #3 of my instructions and look for:

<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>

and change this to:

<td class="thead">$vbphrase[display_options]: <phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>

Does this make sense? Another option might be to place the "Display Options:" text to the left of all the dropdown filter/sort menus. To do this, again using the third step of my instructions (or if you've already installed the template mod you can just search in your edited template):

Search for:

<table cellpadding="3" cellspacing="0" border="0" align="center">
<tr>
<if condition="$prefix_options">

Replace with:

<table cellpadding="3" cellspacing="0" border="0" align="center">
<tr>
<td><strong>$vbphrase[display_options]:</strong></td>
<if condition="$prefix_options">

(You might want to surround the display options phrase with <span class="smallfont"> and </span> if the text looks too big.)

Let me know if this works for you, or if I'm not clear enough.

Hostboard
05-14-2008, 06:54 PM
Tried Mikes pluggin but I get "Invalid File Specified" when I try to upload it.

YLP1
05-14-2008, 09:03 PM
Thank you so much for this!!! Did I miss the announcebits in the mod template changes because I didn't see that added back with the mod changes.

Also is there a way to search for both date AND poster at the same time with this mod?

kira
05-15-2008, 03:45 AM
Tried Mikes pluggin but I get "Invalid File Specified" when I try to upload it.

Hi Hostboard. The file Mike-D attached isn't a plugin, per se. It works only if you have the Template Modification System (https://vborg.vbsupport.ru/showthread.php?t=152931) addon installed. So if you don't have that installed yet, you should try that first! Or you can just use my instructions to do this manually. I promise it's really really simple! :)

Thank you so much for this!!! Did I miss the announcebits in the mod template changes because I didn't see that added back with the mod changes.

You're welcome, YLP1! Do you mean in the original instructions attached in my OP? Sure, it's in there -- right at the start of the replacement code in Step #3, in the third line or so. You should see:

<!-- Modified Thread Search Layout -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
$announcebits
</tbody>
</table>

(That's only the start of the replacement code, not the whole thing. Cut for brevity's sake!)

Also is there a way to search for both date AND poster at the same time with this mod?

Hm, well, except for the prefix filters, these are really just sorting options, not searches exactly. I'm pretty sure you can only sort by one thing at a time.

Basically whatever you can do with the standard vBulletin "Display Options" is available here -- it's just the layout that's changed.

Ascor
05-25-2008, 07:22 PM
Installed, thank you :)

rapidphim
05-26-2008, 09:58 PM
for some reasons, after I installed this mod, everytime I start a new thread, the cursor is already in center position and all the texts are also center as I typed. But after hit submit new thread, all the texts are aligned left as normal.

Can someone please help me fix this?

kira
05-26-2008, 10:59 PM
for some reasons, after I installed this mod, everytime I start a new thread, the cursor is already in center position and all the texts are also center as I typed. But after hit submit new thread, all the texts are aligned left as normal.

Can someone please help me fix this?

Whoa, you've stumped me. I can't begin to fathom why or how a few template changes solely in the FORUMDISPLAY template could affect anything on newthread.php.

Did you make the changes manually (via my instructions) or did you use the TMS file?

Also, can you show me an example forum (assuming it's public)? I'll have to sign up for your forum and give it a try.

Sorry about this. The only thing I can guess is that this is conflicting with some other mod, although again I'll be darned if I can imagine how.

rapidphim
05-26-2008, 11:59 PM
sorry kira... I think it's the style, not your hack. I installed another style and didn't see that happened. So, I uninstalled the buged style. It's all good. Thanks for this.

tspore
05-27-2008, 04:16 AM
Love this mod, But here is a question, would it be possible to include at the top "forum Jump" after the prefix search.

rapidphim
05-28-2008, 07:23 PM
how can we have the prefix sort in alphabetical order? Thanks.

pureturk
06-02-2008, 04:30 AM
anyway to move currently active users and moderators column on top as well?

edongski
06-02-2008, 01:16 PM
Can we make this appear only in certain forum/subforum? This is a cool hack!!

RaZor Edge
06-09-2008, 12:36 AM
Really cool hack! Thanks! (http://forum.fnnation.com/forumdisplay.php?f=58)

It would be cool if we can also show a list of clickable prefixes just below, something like:
prefix1 (http://prefix1) - prefix2 (http://prefix2) - prefix3 (http://prefix3) - prefix4 (http://prefix4)

Raptor
06-20-2008, 11:17 PM
superb - thanks

PoetJA-1975
06-25-2008, 05:36 AM
Thanx for the share.

Jacquii.

Captain Tycoon
06-30-2008, 10:38 AM
Installed and Marked! Thanks!

voter
07-19-2008, 06:35 PM
I like when somebody writes his codes accurate with all tabs.

Great job kira. Keep going.

ErrorLog
07-24-2008, 06:28 PM
Thank You ..

yingzhou
08-10-2008, 08:36 AM
thanks for this simple but useful mod!

ReQueM
11-13-2008, 11:49 PM
thanks :)

Crashh
11-16-2008, 02:00 PM
Maybe author of this hack want to upgrade it?:))

The upgrade is: Add option in forum edit page to enable hack on up or down of the page?

WebmasterSimds
12-30-2008, 08:18 PM
I want to thank the author for this wonderful addition. its a great help when you have a ton of junk in your topic area, and only wish to see the past few days or so.

Again thank you very much!!

maybepost
01-11-2009, 08:26 AM
Did anyone try it on 3.8? Any issues?

maybepost
01-11-2009, 08:51 AM
To answer my own post, followed the instructions and works fine. No issues so far.

mhackl
01-31-2009, 06:42 PM
I receive: "Invalid File Specified" when I attempt to install the XML

KevinL
01-31-2009, 08:12 PM
There is no XML to install :confused:

Mike-D
02-01-2009, 07:20 AM
There is no XML to install :confused:You should read the above info and the Text File "displayoptions_to_top3.7_0". It contains all infos you need ;)

KevinL
02-01-2009, 01:02 PM
You should read the above info and the Text File "displayoptions_to_top3.7_0". It contains all infos you need ;)

I was talking to the person above me hahah

I guess thats what happens when you don't use the quote...

Mike-D
02-01-2009, 04:11 PM
I was talking to the person above me hahahUps, sorry Kevin but I didn't see that :o

I guess thats what happens when you don't use the quote...Yep that's always a popular misunderstanding in postings without quoting it :D

Scalemotorcars
02-05-2009, 10:19 PM
Works perfectly. Super clean instructions with all the correct tags. Thanks.. :up:

sundarmobiles
02-07-2009, 11:51 AM
after add this modification i got 2 announcement section here is the screen shot pls help me..................

sundarmobiles
02-11-2009, 12:35 PM
any one help me to solve this one please

yingzhou
02-11-2009, 11:52 PM
you should try delete $announcebits.

sundarmobiles
02-12-2009, 03:53 AM
s problem solved thanks mr.yingzhou

JohorBahru
02-25-2009, 03:21 PM
could this works for 3.7.5?? :)

Raptor
03-01-2009, 10:07 AM
Works great for vb 3.8.1

Tourmeister
03-17-2009, 08:59 PM
Works great for vb 3.8.1

Are you still able to edit thread titles just by double clicking to the right of them?

Tourmeister
03-18-2009, 02:37 AM
Are you still able to edit thread titles just by double clicking to the right of them?

Nevermind... I found the bit in one of the posts about the ID=Threadlist. I had done this mod by myself without realizing someone else had already figured it out. However, I missed that bit about the threadlist thing and my inline editing wasn't working. Works perfect now!

Arkham
03-21-2009, 10:05 PM
Thanks so much. After discovering that you had updated the last one (the hard way, oops), this is working perfectly. It's a mod that's saved me a lot of time as what you've done here I was trying to do on my own, minus the prefix drop down.

Marked enthusiastically as installed, and nominated. Dude, thanks.

doa24uk
05-05-2009, 03:56 PM
Here's how to make the box collapsible.

Instead of point 3 in the instructions - use this code instead

<!-- Modified Thread Search Layout -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
$announcebits
</tbody>
</table>

<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"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('filter')"><img id="collapseimg_filter" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
</tr>
<tbody id="collapseobj_filter" style="$vbcollapse[collapseobj_filter]">
<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>
<!-- / Modified Thread Search Layout -->

Milez
05-06-2009, 07:50 PM
I love this hack but am desperate to get it to work for just one of my forums rather than all of them. Could anyone lend some insight into how to do this with an if forum ='x' if statement?

Milez
05-06-2009, 08:48 PM
I tried it with this but it breaks the table:

<if condition="$forum[forumid] != X">
...
</if>

Can anyone help please?

cynthetiq
05-14-2009, 11:47 PM
marked installed!

thanks! I'd like to make this just like here, where you can't see what the prefixes are for the threads, but you can sort by them.

what do I need to remove from which template?

Oblivion Knight
05-22-2009, 11:32 AM
This is brilliant, makes logical sense for the display options to be up there!

Installed, thanks.

cellarius
07-17-2009, 03:06 PM
The code in step No. 3 did not validate against xhtml for me. Instead I used the following:
<!-- 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 -->

Wird0
10-01-2009, 11:13 AM
Does this work on vBulletin Version 3.8.4 with prefix on?

hollosch
02-24-2010, 08:27 AM
Will there be a version for vB 4.0.x ?

henrikhansen
01-01-2011, 02:45 PM
Thanks, working fine on 3.8.4.

nit233
02-25-2012, 07:38 PM
for vbulletin 4 please...do update this mod

www.nofal
09-17-2012, 01:32 PM
Good Work