vb.org Archive

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

kira 07-14-2007 10:00 PM

Display Options Above Threads - as seen on vbulletin.org
 
This template mod 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. (Screenshots of both sections are below.)

This modification should work on vB versions 3.6.5 - 3.6.7 PL 1. :)

Important: There are two different versions of the instructions: one for a default setup, and one for people using the excellent Thread Prefixes mod by Mystics. Please make sure you choose the correct version for your setup!

(Of course, if you've installed or applied other mods that have altered the forumdisplay template, you may need to adjust the instructions accordingly.)

Update on May 10, 2008: I'm happy to say that the 3.7.0 version of this mod is now available! Note that there's now only one set of instructions in 3.7.0, since Mystics prefix mod no longer applies. If his mod is ever updated, however, I'll be happy to include a new batch of instructions. Especially 'cause I prefer his prefixes to vB's! :)

Update on July 27, 2007: New version fixes issue with AJAX inline editing thread titles. If you've already installed the older version, please use these instructions to correct the problem. Thanks to Skavenger for the heads-up.

Live Demo: Working Demo at My Site. (This will show you the Display Options section; I don't use the "Active Users" part of the mod.)

This is my first template modification release, and I hope it's helpful. Many thanks to vbulletin.org for the inspiration, not to mention years of providing an amazingly helpful community.

Stromba 07-15-2007 07:53 PM

thank you :up:

dbirosel 07-15-2007 07:56 PM

Kira is the best! I asked many times everywhere and she was the one that actually helped! Thank you so much Kira for being so helpful.


Here is my example: http://www.caraudiojunkyard.com/foru...udio-junkyard/


-Dante

kira 07-15-2007 08:13 PM

Thanks, guys! Dante, it looks great, and I'm very glad it worked for you.

Kaleem 07-16-2007 02:02 PM

I was thinking yesterday to request this. Great Work :)

ymy 07-17-2007 05:22 PM

thank you, Nice job

Ymy

kira 07-17-2007 05:30 PM

Thanks and you're welcome! If anyone has any problems with the instructions, or if the code doesn't work with your setup of vB, please let me know. I've never released anything (aside from a tiny code fix many years ago) and I wasn't certain if the directions were clear enough.

NFLfbJunkie 07-24-2007 06:16 PM

This is a much neater look and presentation search threads feature. How can I make the thicker line below the drop down menus the same size as the line oabove the menus?

kira 07-25-2007 03:49 AM

Hi Junkie! That table uses the tborder class, as do the tables surrounding it. This does create a double-thickness line where the tables meet.

Here's a fix for you.

1. In your admin cp choose Style Manager and in your desired style select All Style Options and click the "Go" button.

2. Scroll down to the Additional CSS Definitions section. In the second textbox, add the following:

Code:

.displayoptions {
border-left: 1px solid #0B198C;
border-right: 1px solid #0B198C;
background-color: #D1D1E1; }

Save the CSS.

3. Now click Edit Templates and go to your FORUMDISPLAY template.

SEARCH FOR:

Code:

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

CHANGE TO:

Code:

<table class="displayoptions" 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>

(Note that the only change we're making here is changing the table class to the new displayoptions class created in step #2.)

4. Save the FORUMDISPLAY template.

This should remove the top and bottom borders for you. I've attached a screenshot of what this will look like on a default setup. Hope this helps! :)

NFLfbJunkie 07-25-2007 12:23 PM

Kira, thank you so much for this. See as how you're familiar with the Thread Prefix MOD, could you take a look at a post I made regarding a fix for this modification?

kira 07-25-2007 04:59 PM

You're welcome, Junkie. :) I'm no prefix expert but I've given that a try over there.

Skavenger 07-27-2007 05:37 AM

after installing the mod I can't edit the threads using the ajax feature [with double click]

kira 07-27-2007 05:48 PM

Ouch, you're right! Stupid mistake on my part, and after posting this will update the instructions accordingly. Luckily it's an easy fix if you've already made the above template changes. The problem was that there's a duplicate table ID of "threadslist."

Simply open up FORUMDISPLAY and FIND:

Code:

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

REPLACE WITH:

Code:

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

Save and that's it. :) Basically all we're doing is removing the id="threadslist" from that section.

My apologies for the error and inconvenience! Many thanks to Skavenger for pointing this out.

Skavenger 07-27-2007 06:53 PM

thank you for the fix!

hissatsu 08-12-2007 09:41 PM

Hello Kira, does this mod generate prefixes? or unless you have the thread prefix hack you wont get a prefix section when the Display Options is moved above a forum's threads?

kira 08-12-2007 09:55 PM

Hi hissatsu! You do need the prefix hack installed in order to use the version specifically for thread prefixes. See the intro here:

Quote:

Important: There are two different versions of the instructions: one for a default setup, and one for people using the excellent Thread Prefixes mod by Mystics. Please make sure you choose the correct version for your setup!
If you don't use the Thread Prefix mod, you should use the file called displayoptions to top.txt . If you do have the Thread Prefix mod, use the file called displayoptions to top_prefix.txt.

The version without the prefix mod looks pretty much the same, it just won't have the prefix dropdown.

Does this make sense? Hope it helps! :)

hissatsu 08-12-2007 10:48 PM

yeah it does help. unfortunately i installed the prefix hack and started experiencing errors on my new forum (using vb 3.67 PL1). And i am not finding anyone who knows coding to help me edit stuff to make the thread prefix work (it is one Hack my Forum definately needs)

I havent received any replies (probably because the prefix hack isnt supported anymore). Will u be able to help? (ie getting thread prefix to work then adding ur mod afterwards)

Pretty Pleeese!!!!

kira 08-13-2007 12:15 AM

Quote:

I havent received any replies (probably because the prefix hack isnt supported anymore). Will u be able to help? (ie getting thread prefix to work then adding ur mod afterwards
Where did you ask for help? I don't see any previous posts by you regarding the thread prefix mod. I'll try but you should really ask in the Thread Prefix mod's thread itself, maybe others can help too.

Quantnet 08-13-2007 04:11 AM

can you post your button css class ?

thanks

kira 08-13-2007 04:25 AM

Sure. It uses a background image, though, which I've attached.

Code:

background-color: #DF501F;
background-image: url(images/misc/bg_button.gif);
background-repeat: repeat-x;
border-width: 2px;
border-style: solid;
border-color: #DF501F;
color: #FFFFFF;
font-weight: bold;


hissatsu 08-13-2007 04:27 AM

it is alright now - one coder came to fix it for me.

It works now. So i will try using your hack to display the prefixes on top of my pages. Will let you know what happens. Definately click install if it works.

Edit:
wow-- kira ur site is beautiful. How did you set that up? damn -- i really need to learn how to code, these things may become easier to understand.

kira 08-13-2007 06:49 AM

Wow, thanks so much, hissatsu! I did the graphic designing and template modding myself, but the code modifications can all be found right here (there's some custom work, but not very much). This site's taught me so much. This month we're even up for vB.com's Board of the Month contest along with four other very nice sites. You should check them all out for inspiration -- it's a great way to learn.

Anyway, I hope you have luck installing the template changes. It's pretty simple! If you need any help let me know.

Quantnet 08-13-2007 07:39 AM

Quote:

Originally Posted by kira (Post 1316311)
Sure. It uses a background image, though, which I've attached.

Code:

background-color: #DF501F;
background-image: url(images/misc/bg_button.gif);
background-repeat: repeat-x;
border-width: 2px;
border-style: solid;
border-color: #DF501F;
color: #FFFFFF;
font-weight: bold;


Kira,

I meant to ask for the css button class of vb.org default, not the one you use (nice). Mine come out flat square. Not like the one in your demo pic or the one here which has rounded corners
sorry about it

kira 08-13-2007 04:43 PM

Quote:

I meant to ask for the css button class of vb.org default, not the one you use (nice). Mine come out flat square. Not like the one in your demo pic or the one here which has rounded corners
Oh, I feel dumb. Okay, well the form buttons here and at vbulletin.com are identical, so this is part of the default vBulletin style. If you look at the default style you'll see there's nothing in the button class that affects the edges or border - just the font. (BTW, if you've customized your style, you can recreate the default by going to your Style Manager and adding a new style -- just make sure it has no parent style.)

A look at the quantnet.org style shows that your css for the buttons is:

Code:

background: #ffffff;
color: #000000;
font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
border: 1px solid #6b82ac;
margin-left: 0px;

Remove the border and margin attributes from the "extra CSS attributes" box and you should get back to the original rounded shape. :)

Quantnet 08-14-2007 04:28 PM

thanks Kira.
I had to revert the button css

PeteBlume 08-20-2007 12:26 AM

Here you can use the TMS-XML for Template Modification System.

It's my first try with this system. I hope that everyting is ok.

kira 08-20-2007 06:02 PM

Hi PeteBlume! Thanks for the addition. Can you explain what this does? I'm afraid I'm not very familiar with the TMS.

Symmetrical? 08-25-2007 08:03 AM

thnx ..:)

gobears20 08-29-2007 10:12 PM

I was curious if I wanted to display this only for certain user groups?

Would I put something like this below and if so, where?

Thanks!

Code:

<if condition="$bbuserinfo['usergroupid'] < 10">


</if>


kira 08-30-2007 01:06 AM

Hi gobears20. Short answer: yes, that code will work if you want to hide the filtering options part of the forumdisplay. You would place the first line right after:

Code:

<!-- Modified Display Options -->
and the final "/if" statement would go right before:

Code:

<!-- End Modified Display Options -->
HOWEVER. The problem is that if you want to use the original filtering options as an alternative, things are gonna get a little complex, because this means you'll need both the original code and the changed template stuff we added in this modification, either showing or hiding each depending on the different usergroups with conditionals.

I can try to figure it out for you if you really need this to work that way. I'd need to know what specific usergroups you want to allow access to the new version, and which ones will have the original version. (Oh and also whether you're using the prefix or nonprefix version.)

Out of curiosity, why would you only want certain usergroups to have this capability? It's not that nifty, except looks-wise. :)

Neo_obs 10-19-2007 08:14 PM

It would be nice if you could only have it show it at the top if prefixes were used in that forum otherwise it shows it at the bottom. Would there be a way of doing this?

I really think this should be integrated into the thread prefix mod.

yoyoyoyo 10-20-2007 12:46 PM

excellent! thanks

yoyoyoyo 10-28-2007 03:37 AM

Here are the default setting edits in Template Modification System (TMS) XML format, for those that already have TMS installed.

JohnBee 10-31-2007 01:21 PM

Wonderful addon to a great hack!
Thanks for the quick ajax fix also .thumbsup.

Todecay 12-15-2007 08:26 PM

dude,

Just installed it and I have to say...REALLY REALLY GREAT mod m8!

Many tnx :)

Bubble #5 02-14-2008 05:41 PM

Does this work in 3.7.x?

Seems like a great hack to just let wither away on the vine...

kira 02-20-2008 04:50 AM

Hi there! I haven't installed 3.7 yet, but I will soon, I promise. So far I don't see any reason it shouldn't, but there have been enough changes to the code that I'm sure the instructions might need some major tweaking.

Skavenger 02-21-2008 12:53 AM

I'll be wainting for the update too, thanks again!

aamirkhj 02-21-2008 12:29 PM

Great Mod:up:

furst 03-16-2008 02:30 AM

I am really looking forward to a version for 3.7. Marked as installed and waiting for an update.


All times are GMT. The time now is 06:15 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.01298 seconds
  • Memory Usage 1,830KB
  • 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
  • (11)bbcode_code_printable
  • (4)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