vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Display Options Above Threads - as seen on vbulletin.org (https://vborg.vbsupport.ru/showthread.php?t=178787)

kira 05-09-2008 10:00 PM

Display Options Above Threads - as seen on vbulletin.org
 
This template mod, updated from my 3.6.x version, 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 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

Quote:

Originally Posted by kira (Post 1515047)
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

Quote:

Originally Posted by Mike-D (Post 1515225)
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:

PHP Code:

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

The searchstr must include this:

PHP Code:

<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:

PHP Code:

<!-- 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'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:

PHP Code:

$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:

Code:

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

Code:

<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:

Code:

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

Replace with:

Code:

<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

Quote:

Originally Posted by Hostboard (Post 1519683)
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 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! :)

Quote:

Originally Posted by YLP1 (Post 1519823)
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:

Code:

<!-- 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!)

Quote:

Originally Posted by YLP1 (Post 1519823)
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

Quote:

Originally Posted by rapidphim (Post 1532283)
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:

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:


All times are GMT. The time now is 06:09 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.02035 seconds
  • Memory Usage 1,839KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete