vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Board Optimization - Tabs Like vBulletin.org With Search (https://vborg.vbsupport.ru/showthread.php?t=226749)

ChopSuey 10-24-2009 10:00 PM

Tabs Like vBulletin.org With Search
 
1 Attachment(s)
Okay heres how to do it
----------------------------
AdminCP > Styles & Templates > Style Manager > Your Style > header
Find
HTML Code:

<!-- /logo -->
Now add below:
Code:

<!-- tabs -->
                <table align="right" cellpadding="0" cellspacing="1" border="0">
                <tr>
<td width="100%" align="right">
<a href="http://www.yoursite.com/forum/forumdisplay.php?f=X" class="tab"><b>Tab 1</b></a>
<a href="http://www.yoursite.com/forum/forumdisplay.php?f=X" class="tab"><b>Tab 2</b></a>
<a href="http://www.yoursite.com/forum/forumdisplay.php?f=X" class="tab"><b>Tab 3</b></a>
<a href="http://www.yoursite.com/forum/forumdisplay.php?f=X" class="tab"><b>Tab 4</b></a>
<a href="http://www.yoursite.com/forum/forumdisplay.php?f=X" class="tab"><b>Tab 5</b></a>
<a href="http://www.yoursite.com/forum/forumdisplay.php?f=X" class="tab"><b>Tab 6</b></a>
<a href="http://www.yoursite.com/forum/" class="tab"><b>Forum</b></a>
<a href="http://www.yoursite.com/" class="tab"><b>Home</b></a></td></tr ></table>
<!-- /tabs -->

Replace the X's with the forum ID. You might want to edit the settings first. The last tab will display on the left while the first tab will display on the right. So it goes from left to right order.
After you are done go to AdminCP > Styles & Templates > Style Manager > Your Style > Main CSS
Now add this to your Additional CSS
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(http://www.imagelink.com/image.gif) top right no-repeat;
font:10pt tahoma,sans-serif;
width:76px;
height:20px;
text-align:center;
padding:2px 0 0;
margin:0 1px;
text-decoration:none;
float:right;
position:relative;
top:3px
}
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(http://www.imagelink.com/image.gif) bottom right no-repeat
}

You can choose your own images, just use a direct image link and fill it in.
OH yeah, you can edit the CSS to anything you like i just put mine like that to match my skin.
-----------------------------------------
Okay if have chosen your tabs for the forum you want to display. Then go to
AdminCP > Forums & Moderators > Forum Manager > Your Fourm > Edit Forum
Scroll down to Posting Options, you will see
Quote:

Forum is Active (Will not appear if set to no, but remains accessible if the forum's URL is known)
You need to set it to NO. Then you are good to go :)
-----------------------------------------
To make more than one category appear in a forum just make a new one with no parent forum. Now pick any category and set its parent forum to the new forum you just made. Now we got two Categories displaying. Make sure the X is the new forum you juse made or else it will not work. For the second category, make its parent forum the new forum you just made. Then once the tab is set to the new forum you have tabs like vb.org ;)
I mean here is what i mean https://vborg.vbsupport.ru/forumdisplay.php?f=164
Have two categories with their parent forum as a category too. So you would set the X to 164 to show styles and graphics.
To make tabs only show to certain usergroups using IF condition it would look like this
Code:

<if condition="is_member_of($vbulletin->userinfo, 6,5,7)">
        <a href="http://www.yoursite.com/forum/forumdisplay.php?f=X" class="tab"><b>Staff Area</b></a></if>

Use the USERGROUP ID's
------------------------------------------
Here is the search option like vbulletin.org
just place it below the
Code:

$ad_location[ad_header_end]
And you will be fine but you have to set the options first.
Code:

<br>
<td align="center"><if condition="$show['searchbuttons']">
        <!-- header quick search form -->
        <form action="search.php?do=process" method="post" <align="right">
        <input type="hidden" name="do" value="process" />
        <input type="hidden" name="quicksearch" value="1" />
        <input type="hidden" name="childforums" value="1" />
        <input type="hidden" name="exactname" value="1" />
        <input type="hidden" name="s" value="$session[sessionhash]" />
        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<div>
<div align="right">
<input type="text" name="query" size="18" style="font-size: 8pt;" />
<select name="forumchoice[]">
            <option value="-1" selected="selected">All Forums</option>
            <option value="1">Forum 1</option>
            <option value="2">Forum 2</option>
            <option value="3">Forum 3</option>
            <option value="4">Forum 4</option>
            <option value="5">Forum 5</option>
          </select>
<select name="titleonly">
                <option value="0" selected="selected">All Posts</option>
                <option value="1" >Titles Only</option>
        </select><input name="search" value="Search" type="submit" class="button" /><a href="search.php" accesskey="4" rel="nofollow" id="navbar_search1" class=""><img src="$stylevar[imgdir_misc]/menu_open.gif" alt="" title="Advanced Search" border="0" /></a>
            <script type="text/javascript"> vbmenu_register("navbar_search1",1); </script>
</div>
</form>
<!-- <br />
<form action="tags.php" method="get">
<span id="tag_wrapper"><input type="text" id="tag_input" name="tag" size="25" style="font-size: 8pt" value="enter tag, and hit enter" onFocus="this.value=''" onBlur="this.value='enter tag, and hit enter'"/></span>
</form> -->
<div class="vbmenu_popup" id="navbar_search1_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead" align="left">Search Options</td></tr>
        <tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]" rel="nofollow">My Posts</a></td></tr>
        <tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$bbuserinfo[username]" rel="nofollow">My Threads</a></td></tr>
        <tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=getnew" rel="nofollow">New Posts</a></td></tr>
        <tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=getdaily" rel="nofollow">Today's Posts</a></td></tr>
        <tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;exclude=30&amp;nocache=1" rel="nofollow">Unanswered Threads</a></td></tr>
        <tr><td class="vbmenu_option" align="left"><a href="search.php$session[sessionurl]" accesskey="4" rel="nofollow">Advanced Search</a></td></tr>
        </table>
</div></td>
        <!-- / header quick search form -->
        </if>

That is quite easy just look here
Code:

            <option value="-1" selected="selected">All Forums</option>
            <option value="1">Forum 1</option>
            <option value="2">Forum 2</option>
            <option value="3">Forum 3</option>
            <option value="4">Forum 4</option>
            <option value="5">Forum 5</option>
          </select>

Then edit the option value to the forum category ID of whichever forum that you decide to put in there.
------------------------------
If this was already posted, then im sorry. Just thought i'd post what i did to have tabs like here. :D Enjoy.
If you cannot understand some stuff of what i said, its because i haven't slept for 2 and a half days. :erm:
Mark as installed
See attachments also.
---------------------------------------------
DEMO: http://home.gamingcube.org

ChopSuey 10-25-2009 02:30 PM

---------Reserved--------

TheLastSuperman 10-25-2009 03:03 PM

Clean up the extra code in the screenshot and I bet you get more installs, it makes me not want to use it when you can't get it right on a board w/o showing = & ] 's in the same horizontal space as your menu ;).

ChopSuey 10-25-2009 03:13 PM

Updated the attachment. -_-

itsheinz 10-25-2009 04:02 PM

very nice il check on this :)

GSeybold 10-25-2009 04:04 PM

Hello Potentially great mod. Thank you !

One problem. After installing in additional CSS the tabs go vertical? Not sure why.

ChopSuey 10-25-2009 04:12 PM

What browser are you using? FF?

tafreeh 10-26-2009 03:50 AM

Tabs doesnt show when you are viewing a thread.. and why is that ?

ChopSuey 10-26-2009 03:56 AM

Can i have the link to the forum you are using them on? Cause i cant help if i cannot see them in action.

exposed 10-26-2009 06:30 PM

Please help, im new to this and im not sure what im doing wrong.
Im not getting the search bar or tabs.
www.thecrowsview.com

kjsmith84 10-26-2009 08:10 PM

can this be done with a vba module?

tafreeh 10-27-2009 12:36 AM

Quote:

Originally Posted by ChopSuey (Post 1906276)
Can i have the link to the forum you are using them on? Cause i cant help if i cannot see them in action.

i assume you are using same hack here http://forum.gamingcube.org/
this is the one i tried...

ChopSuey 10-27-2009 01:13 AM

Quote:

Originally Posted by tafreeh (Post 1906702)
i assume you are using same hack here http://forum.gamingcube.org/
this is the one i tried...

Nope its completely different. Im using Forum Home Tabs by bobster or whoever.

Quote:

Originally Posted by kjsmith84 (Post 1906587)
can this be done with a vba module?

Im not sure, but you can try ;)

Quote:

Originally Posted by exposed (Post 1906538)
Please help, im new to this and im not sure what im doing wrong.
Im not getting the search bar or tabs.
www.thecrowsview.com

You're probably doing something wrong here. Have you added them to your header?

tafreeh 10-28-2009 11:52 PM

Can you please show me any live demo ?
thanks

freewilley 10-29-2009 06:57 PM

I have seen the skin release somewhere but here its name is vbhybrid if I am not wrong and thanks for the mod I will test it on my forums :)

ChopSuey 10-30-2009 12:16 PM

Yes, and thanks for clicking install >.<

ChopSuey 10-30-2009 01:39 PM

Live demo added to first post

x626xblack 10-30-2009 03:09 PM

Live Demo Error
Quote:

Warning: require_once([path]/includes/functions.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/init.php on line 166

Fatal error: require_once() [function.require]: Failed opening required '/home/gamincen/public_html/forum/includes/functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gamincen/public_html/forum/includes/init.php on line 166

ChopSuey 10-30-2009 03:18 PM

Its fixed lol.

RedHacker 11-02-2009 07:27 AM

What's this...?

http://www.imagelink.com/image.gif

ChopSuey 11-02-2009 08:56 AM

You get the image link of the image you want displayed within the tabs

RedHacker 11-02-2009 10:20 AM

I put only search and put down from $navbar but i have 3 styles extreme and no show property and destroy the style....

Help....

ChopSuey 11-02-2009 11:03 AM

Its supposed to go after
HTML Code:

$ad_location[ad_header_end]

RedHacker 11-02-2009 11:44 AM

I like better down from $navbar but i will try in $ad_location[ad_header_end] and stay the problem....

ChopSuey 11-02-2009 11:50 AM

Okay then, post your results after.

RedHacker 11-02-2009 12:04 PM

These styles have problem... :(

ChopSuey 11-02-2009 12:09 PM

It works fine on my forum, your doing something wrong. Can i edit it for you?

RedHacker 11-02-2009 12:12 PM

Look it good but etg i put Black Ice,eXtremeX Styles these are the problem.. In the others Styles work perfect....

ChopSuey 11-02-2009 12:14 PM

No idea what the problem is dude, you need to provide more details.

RedHacker 11-02-2009 12:23 PM

OK Look the screenshot....

http://img101.imageshack.us/img101/8939/92997452.jpg

ChopSuey 11-02-2009 12:29 PM

OH lol, i can do it for you. Send me a PM.

RedHacker 11-03-2009 07:12 AM

Can help me anyone....?

ChopSuey 11-03-2009 07:27 AM

Post your header template here...........I will try on a cheap skin im using.. :p

ChopSuey 11-03-2009 08:15 AM

Please add your forum url to the links so the images can show up.

Alucard^ 11-04-2009 02:08 AM

Here another example, if you want: http://www.nv-arg.com.ar/foro i have to some modifications but well.. the point is that working...

Thx for the modification, installed ofcourse... is rly simple and beautiful.

ChopSuey 11-04-2009 04:11 AM

Thanks glad you like it, but i don't see search or the tabs?

RedHacker 11-04-2009 04:56 AM

<table align="right" cellpadding="0" cellspacing="1" border="0">
<tr>

It is simple ChopSuey.. It is put in the begin.....

ChopSuey 11-05-2009 01:47 PM

Put it before the tabs? Or the search?

RedHacker 11-05-2009 08:21 PM

The Search...

ChopSuey 11-06-2009 12:31 AM

OKay great thank you ;)


All times are GMT. The time now is 05:20 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.01590 seconds
  • Memory Usage 1,829KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_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