Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #31  
Old 04-05-2007, 09:15 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is very easy.,,, making tabs would be in the header or navbar template
Reply With Quote
  #32  
Old 04-19-2007, 09:41 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The tab thing is great. It makes a huge board very smart to navigate.

Does anyone know how the at vb.org made the search box?
Its nice to be able to search single categories only...
Reply With Quote
  #33  
Old 05-01-2007, 07:53 PM
dbirosel dbirosel is offline
 
Join Date: Feb 2007
Location: San Diego
Posts: 587
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M View Post
this is very easy.,,, making tabs would be in the header or navbar template
How do we go about accomplishing this though?
Reply With Quote
  #34  
Old 07-31-2007, 12:05 AM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiSpy View Post
I tried this, it worked great... Here's what I did:

1) Goto admin panel
2) Click "Forums & Moderators" --> Forum Manager
3) Click "Add New Forum"
4) Put in title and description
5) Under "Display Order" type "0"
6) (Optionally) I made it a child under my parent category.
7) "Act as Forum" set to "no"
8) Save settings
9) Go back to "Forums & Moderators" --> Forum Manager
10) Find the new forum and add some child forums the normal way.
11) Don't forget to create a link to the new hidden forum somwhere so people can get to it. (I added it to my top menu).

HOPE THAT HELPED!
This works great except that they can no longer use the jump menu or do advanced searches on that forum. The forum name will not show up on either of those lists. Any idea how to fix that?

Thanks!
Reply With Quote
  #35  
Old 07-31-2007, 10:37 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you'll have to make use of the plugin system.
Reply With Quote
  #36  
Old 07-31-2007, 03:56 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you know of a pre existing plugin or is this something I will have to code myself?

Thanks for the help!
Reply With Quote
  #37  
Old 07-31-2007, 06:12 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dbirosel View Post
How do we go about accomplishing this though?
I'll throw you guys a bone here; this is how I've done it.

Add the following to your Main CSS - Additional CSS Definitions:
(Courtesy of vB.org)
Code:
td.tab a:link,td.tab a:visited,td.tab a:active,a.tab,
td.tab2 a:link,td.tab2 a:visited,td.tab2 a:active,a.tab2,a:link.tab2,a:active.tab2,a:visited.tab2{
background:transparent url(images/tab.gif) top right no-repeat;
font:11px tahoma,sans-serif;
color:yellow;
width:71px;
height:20px;
text-align:center;
padding:2px 0 0;
margin:0 1px;
text-decoration:none;
float:right;
position:relative;
top:0px
}
td.tab a:hover,img.tab a:hover,.tab a:hover,a:hover.tab,
td.tab2 a:link,td.tab2 a:visited,td.tab2 a:active,a.tab2,a:link.tab2,a:active.tab2,a:visited.tab2{
background:transparent url(images/tab2.gif) top right no-repeat;
}
Obviously, you'll need to change the information to suit your needs.

Then you'll need to create 2 images: 1 for what the tab regularly looks like and then another for what it will look like when it's hovered over.

I've placed my tabs under the navbar; so to do that you'd find in your "navbar" template:
Code:
<!-- / login form -->
            
        </td>
        
    </if>    
    
</tr>
</table>
And add underneath it:
Code:
    <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width:0px;color:white;">
  <tr>
    <td class="nowrap" align="right" valign="bottom" style="padding:0 5px 0;color:white">

<a href="#" title="My Tab" id="mytab" class="tab">My Tab</a>
<script type="text/javascript">
        vbmenu_register("mytab",true);
    </script>

  </tr></table>

<div class="vbmenu_popup" id="mytab_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0" align="left">
        <tr align="left">
            <td class="thead"><a href="forumdisplay.php?f=12">My Tab</a> </td>
        </tr>
        <tr align="left">
            <td class="vbmenu_option" title="">
<a href="#">Link</a>
</td>
</tr>
        <tr align="left">
            <td class="vbmenu_option" title="">
<a href="#">Link 2</a>
</td></tr>
</table>
</div>
Again, edit to suit your needs.

http://img112.imageshack.us/img112/8497/tabsub5.gif
Reply With Quote
  #38  
Old 08-01-2007, 02:11 AM
Rukas Rukas is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anybody worked out how to get the forums statistics to appear at the bottom of the "new" section and also have the drop down navigation jump menu work?
Reply With Quote
  #39  
Old 08-01-2007, 07:12 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I use, please don't distribute it though.

Search Menu - Hook: 'search_intro'
PHP Code:
$forumid INSERTFORUMID;
$forum =& $vbulletin->forumcache["$forumid"];

$optionvalue $forumid;
$optiontitle "$forum[depthmark] $forum[title_clean]";
if (
$vbulletin->options['fulltextsearch'] AND !($vbulletin->userinfo['forumpermissions']["$forumid"] & $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
{
    
$optiontitle .= '*';
    
$show['cantsearchposts'] = true;
}
$optionclass 'fjdpth' iif($forum['depth'] > 44$forum['depth']);

if (
in_array($forumid$vbulletin->GPC['forumchoice']))
{
    
$optionselected 'selected="selected"';
    
$noforumselected '';
}
else
{
    
$optionselected '';
}

eval(
'$searchforumbits .= "' fetch_template('option') . '";'); 
Forum Jump - Hook: 'forumjump'
PHP Code:
$forumid INSERTFORUMID;
$forum $vbulletin->forumcache["$forumid"];

$optionvalue $forumid;
$optiontitle $prependchars $forum[title_clean]";

$optionclass 'fjdpth' iif($forum['depth'] > 44$forum['depth']);

if (
$curforumid == $optionvalue)
{
    
$optionselected 'selected="selected"';
    
$optionclass 'fjsel';
    
$defaultselected '';
}
else
{
    
$optionselected '';
}

eval(
'$jumpforumbits .= "' fetch_template('option') . '";'); 
Reply With Quote
  #40  
Old 08-01-2007, 01:02 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Dismounted!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:29 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.04403 seconds
  • Memory Usage 2,267KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete