vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - AJAX Tabs Content Script v2 (https://vborg.vbsupport.ru/showthread.php?t=161197)

valdet 11-23-2007 09:34 AM

This is such a great addition to navigation.

In order to spice it up even more, can someone guide us through how to make these tabs show different forum categories.

Example: http://www.namepros.com

Regards.

bobster65 11-23-2007 03:21 PM

Quote:

Originally Posted by valdet (Post 1387976)
This is such a great addition to navigation.

In order to spice it up even more, can someone guide us through how to make these tabs show different forum categories.

Example: http://www.namepros.com

Regards.

I just coded that (what namepros did) for another member last week ( BBWForums.net ) check out his site and see if its what you are after..

Bob

bobster65 11-23-2007 03:37 PM

Quote:

Originally Posted by NolF (Post 1387818)
Damn this thing is great :) been playing with it for he last day or so. It's so damn great in every aspect :)

I got one problem, I don't seem to be able to use $thread[preview] code :( I use it but returns and empty result where it should give a preview of the threads content :(
<a href=... title="' . $thread[preview] . '"

if anyone can help me wioth that it would be great ^^

Note: I'm using kenmeth's enhancement

make sure in the query string that post.pagetext AS preview is part of it...

PHP Code:

SELECT $rtrating_fields thread.threadidthread.titlethread.replycountpostusernamepostuseridthread.dateline AS postdateline, IF(views <= thread.replycountthread.replycount+1views) AS viewsthread.lastposterthread.lastpostthread.lastpostidpollidthread.forumidthread.openstickypost.pagetext AS preview 


glorify 11-23-2007 11:39 PM

Wanted to stop here, click install, thank bob, and share the threadsexternal I am using to this point.

I've attached screens of both of my styles as well. Very stock vba looking. You can peek at my demo if you want.

bobster65 11-24-2007 12:28 PM

Quote:

Originally Posted by glorify (Post 1388366)
Wanted to stop here, click install, thank bob, and share the threadsexternal I am using to this point.

I've attached screens of both of my styles as well. You can peek at my demo if you want.

Turned out awesome Bud! You have one of the nicest vb sites period!

glorify 11-25-2007 02:02 PM

Thanks man. And anyone who gives this mod less tha 5 stars needs to have their head checked ;)

glorify 11-25-2007 07:55 PM

For anyone that likes the default vb look of your table header, here is the way I did it.

Step 1:
Keep a back up of your adv_portal_Tab_Block_Main template, and ajaxtabs.css

Step 2:
https://vborg.vbsupport.ru/attachmen...6&d=1195957216

https://vborg.vbsupport.ru/attachmen...7&d=1195957216

Figure out the way you want the header to look. In the first image, I used the default gradient_tcat and gradient_thead gifs. In the second I used the standard gradient_tcat gif, then turned it upside down and renamed it to gradient_thead.gif. Figure out what you want, then upload the two images to your ajaxtabs folder.

Step 3:
Here is my adv_portal_Tab_Block_Main. The red is what you HAVE to change, the blue matches my css, but if you change the width anywhere, you'll have to edit it.
Code:

<tr><td>
<head>
<link rel="stylesheet" type="text/css" href="http://www.XXXX.com/forums/ajaxtabs/ajaxtabs.css" />
<script type="text/javascript" src="http://www.XXXX.com/forums/ajaxtabs/ajaxtabs.js">
/***********************************************
* Ajax Tabs Content script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
* Ajax Tabs Content script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>
<body>

<div id="tabs" class="indentmenu">
<ul>
<li><a href="http://www.XXXX.com/forums/tabexternal.php" rel="tabcontainer" class="selected"><strong>&raquo; Tab1</strong></a></li>
<li><a href="http://www.XXXX.com/forums/tabexternal2.php" rel="tabcontainer"><strong>&raquo; Tab2</strong></a></li>
<li><a href="http://www.XXXX.com/forums/tabexternal3.php" rel="tabcontainer"><strong>&raquo; Tab3</strong></a></li>
<li><a href="http://www.XXXX.com/forums/tabexternal4.php" rel="tabcontainer"><strong>&raquo; Tab4</strong></a></li>
</ul>
<br style="clear: left" />
</div>

<div id="divcontainer" style="border:1px solid #003366; border-top: none; width:99.75%; height: 573px;  margin-bottom:1em">
</div>


<script type="text/javascript">

var mytabs=new ddajaxtabs("tabs", "divcontainer")
mytabs.setpersist(false)
mytabs.setselectedClassTarget("link")
mytabs.init()


</script>
</body>
</td></tr>

Step 4:
Next up is the indented portion of my css. Replace the Indented portion of your ajaxtabs.css with the edited AFTER YOUR CHANGES below.

The red are the values to change to match your site. The blue are optional width, that if you change you HAVE to change to match in your adv_portal_Tab_Block_Main template. I have put comments in green so it's easy to know where you can find these settings in your admincp to match your site (because I hate trying to figure out css).

Code:

/* ######### CSS for Indented CSS Tabs. Remove if not using ######### */


.indentmenu{
font: 10px Arial;
width: 100%;
}

.indentmenu ul{
margin: 0;
padding: 0;
float: left;
width: 99.75%; /*used in conjunction with width variable in adv_portal_Tab_Block_Main*/
border: 1px solid #003366; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Table Border: Background of your table*/
border-bottom: none;
background: #05173D; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Page Background: Background of your table*/
}

.indentmenu ul li{
display: inline;
}

.indentmenu ul li a{
float: left;
color: #ffcc00; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Category Strips: Font Color of your Category Strips*/
padding: 2px 13px; /*Edit the 13px if you want to pad the cells wider or slimmer*/
font-size: 8pt;
padding-top: 6px; /*shift text down 1px*/
padding-bottom: 6px;
text-decoration: none;
background: #003366  url(http://www.XXXX.com/forums/ajaxtabs/gradient_tcat.gif) repeat-x top left; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Category Strips: Background Color and Image Name of your Category Strips*/
}

.indentmenu ul li a:visited{
color: #ffcc00; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Category Strips: Font Color of your Category Strips*/
}

.indentmenu ul li a:hover{
color: #ffcc00  !important; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Category Strips: Font Color of your Category Strips*/
padding-top: 7px; /*shift text down 1px*/
padding-bottom: 5px;
background: #05173D url(http://www.XXXX.com/forums/ajaxtabs/gradient_thead.gif) repeat-x top left; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Table Header: Background Color and Image Name of your Table Header*/
}

.indentmenu ul li a.selected{
color: #ffcc00  !important; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Category Strips: Font Color of your Category Strips*/
padding-top: 7px; /*shift text down 1px*/
padding-bottom: 5px;
background: #05173D url(http://www.XXXX.com/forums/ajaxtabs/gradient_thead.gif) repeat-x top left; /*AdminCP=>Styles & Templates=>Style Manager=>All Style Options=>Table Header: Background Color and Image Name of your Table Header*/

Step 5 (Optional if using for recent threads):
Use the tabexternal attached.

bobster65 11-25-2007 08:00 PM

Cool, Thanks for Sharing Bud :) btw, my Raiders beat the chiefs @ arrowhead :)

glorify 11-25-2007 08:51 PM

I see that. Thanks for taking care of our light work ;)

valdet 11-26-2007 07:09 AM

Quote:

Originally Posted by bobster65 (Post 1388110)
I just coded that (what namepros did) for another member last week ( BBWForums.net ) check out his site and see if its what you are after..

Bob

Bobster, that is exactly what I am interested in achieving. Mind that I don't have vBAdvanced, so this should work for forum only.

Thanks for your time and I look forward to your reply.

Best regards,
Val.


All times are GMT. The time now is 07:30 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.01561 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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