vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to make multiples vB folders on the same forum like vb.org has (https://vborg.vbsupport.ru/showthread.php?t=143032)

Brandon Sheley 04-05-2007 09:15 PM

this is very easy.,,, making tabs would be in the header or navbar template

jluerken 04-19-2007 09:41 PM

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

dbirosel 05-01-2007 07:53 PM

Quote:

Originally Posted by Loco.M (Post 1220648)
this is very easy.,,, making tabs would be in the header or navbar template

How do we go about accomplishing this though?

sinaluna 07-31-2007 12:05 AM

Quote:

Originally Posted by DiSpy (Post 1220020)
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!

Dismounted 07-31-2007 10:37 AM

Yes, you'll have to make use of the plugin system.

sinaluna 07-31-2007 03:56 PM

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

Thanks for the help!

Kirk Y 07-31-2007 06:12 PM

Quote:

Originally Posted by dbirosel (Post 1239179)
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) :p
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

Rukas 08-01-2007 02:11 AM

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?

Dismounted 08-01-2007 07:12 AM

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') . '";'); 


sinaluna 08-01-2007 01:02 PM

Thank you Dismounted!!


All times are GMT. The time now is 11:59 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.01213 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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