vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Home Enhancements - [AJAX] Tabbed Forum Home (https://vborg.vbsupport.ru/showthread.php?t=175687)

TheInsaneManiac 07-29-2008 09:09 PM

Hey bob? I like your tabs on the demo, but for some reason in the actual product of the ajax version I just get little crappy text tabs. Anyway to change it to your tabs?

bobster65 07-29-2008 09:36 PM

Quote:

Originally Posted by TheInsaneManiac (Post 1586941)
Hey bob? I like your tabs on the demo, but for some reason in the actual product of the ajax version I just get little crappy text tabs. Anyway to change it to your tabs?

You can use a different CSS and lay the DIV's out any way you want to.. just take a look at the code for the NON AJAX version and use the CSS from that (to include the DIV layout) .. (hope I explained that clear enough... its pretty easy actually).. also, there are a couple other CSS files/examples with my AJAX Tabs mod for vBa CMPS as well that work with this.

callumbush 07-30-2008 07:20 AM

Hi Bobster,

Hope you're well :)

What are the latest timescales on 2.0?

Cheers

Callum

Ziki 07-30-2008 10:58 AM

1 Attachment(s)
Hi bobster65,

I have a problem,very good mod besides,when I install it,my forums are not called at all,the tabs are not Ajaxed.I attached screens.I used 1.5 AJAX.

Also what do I need to edit to change tabforumhome.php to tab.php?

Ziki 07-30-2008 11:10 AM

Also is there some speed loss?I noticed the forum is going a bit slower.

bobster65 07-30-2008 02:02 PM

Quote:

Originally Posted by Ziki (Post 1587338)
Hi bobster65,

I have a problem,very good mod besides,when I install it,my forums are not called at all,the tabs are not Ajaxed.I attached screens.I used 1.5 AJAX.

Also what do I need to edit to change tabforumhome.php to tab.php?

Check the paths to your .css and .js files .. the result your are getting is because it can not find those files.. you might try and use the full URL to them..

There are multiple things you will have to change.. just look at all files/templates associated with TFH and change every instance of tabforumhome.php to tab.php ...

bobster65 07-30-2008 02:04 PM

Quote:

Originally Posted by Ziki (Post 1587341)
Also is there some speed loss?I noticed the forum is going a bit slower.

Nope, no speed loss at all.

Ziki 07-30-2008 02:56 PM

Ok found the error,in the forumhome edit you stated to add
Quote:

<!-- Tabbed Forum Home Header Code -->
<link rel="stylesheet" type="text/css" href="/clientscript/tabs/ajaxtabs.css" />
<script type="text/javascript" src="/clientscript/tabs/ajaxtabs.js"> </script>
<!-- /Tabbed Forum Home Header Code -->
but /clientscript should be without the slash before :) ,sorry I didn't go through the code properly before.Thanks.

bobster65 07-30-2008 03:07 PM

Quote:

Originally Posted by Ziki (Post 1587498)
Ok found the error,in the forumhome edit you stated to add

but /clientscript should be without the slash before :) ,sorry I didn't go through the code properly before.Thanks.

:o I need to update that.. thanks for reminding me :up:

TheInsaneManiac 07-31-2008 06:30 AM

Quote:

Originally Posted by bobster65 (Post 1586970)
You can use a different CSS and lay the DIV's out any way you want to.. just take a look at the code for the NON AJAX version and use the CSS from that (to include the DIV layout) .. (hope I explained that clear enough... its pretty easy actually).. also, there are a couple other CSS files/examples with my AJAX Tabs mod for vBa CMPS as well that work with this.

Can you give me the layout you use on your baseball forums? Look at the tabs:
http://www.rahstyles.com/forum/index.php#

Also: When you click them it jumps the page to the top.

Another Also: When clicking another tab, the forum new image https://vborg.vbsupport.ru/external/2008/07/2.gif does not display.

sweetguy2004 07-31-2008 08:42 AM

I m using 3.7.2 web20 skin none of the finding codes & the default codes r matched

in main only $forumbits $forumhome_markread_script

i want this hack but its not work :( please help

Ziki 07-31-2008 08:44 AM

Anyway how can I cover up the tab URLS to be just #?

bobster65 07-31-2008 12:46 PM

Quote:

Originally Posted by TheInsaneManiac (Post 1588079)
Can you give me the layout you use on your baseball forums? Look at the tabs:
http://www.rahstyles.com/forum/index.php#

Also: When you click them it jumps the page to the top.

Another Also: When clicking another tab, the forum new image https://vborg.vbsupport.ru/external/2008/07/2.gif does not display.

That is not my site. I'd have to ask permission from the owner as I did that as a paid request.

As far as the "jumping" thats because you are not finished with the template. You have to have the same amount of content areas as you have tabs. Finish creating the template and you won't have that problem.

The New Forum image should work just fine.. there is an issue that we are aware of, but its the forum marking...


Quote:

Originally Posted by sweetguy2004 (Post 1588154)
I m using 3.7.2 web20 skin none of the finding codes & the default codes r matched

in main only $forumbits $forumhome_markread_script

i want this hack but its not work :( please help

just move $forumbits and $forumhome_markread_script to the new template and replace those with the code. A lot of custom styles remove the <!-- Main comment for some reason..


Quote:

Originally Posted by Ziki (Post 1588156)
Anyway how can I cover up the tab URLS to be just #?

Off the top, I am not aware of an easy way to do that. We're working on a total different process with version 2, so I've not spent much time even re-working ver 1.5 Feel free to mess around with it... you could try something like only assigning a single var to each tab url .. ie ?t=1, ?t=2 etc .... and then in the php file, do case statements to assign the Cat IDs .. in theory, that will work just fine..

Ziki 07-31-2008 07:19 PM

Oh and how about Search engines?Will it be able to switch the tabs?I never worked with AJAX before,sorry for asking so many Qs.:)

bobster65 07-31-2008 07:22 PM

Quote:

Originally Posted by Ziki (Post 1588609)
Oh and how about Search engines?Will it be able to switch the tabs?I never worked with AJAX before,sorry for asking so many Qs.:)

Yes, its full search engine unobtrusive.. :cool:

sweetguy2004 07-31-2008 08:00 PM

https://vborg.vbsupport.ru/
i have removed $forumbits $forumhome_markread_script from forum home & inserted in new template but still i have this prob
plz help

bobster65 07-31-2008 08:14 PM

Quote:

Originally Posted by sweetguy2004 (Post 1588634)
http://img185.imageshack.us/img185/2024/64996788nz7.gif
i have removed $forumbits $forumhome_markread_script from forum home & inserted in new template but still i have this prob
plz help

at the top of the FORUMHOME template, there are two paths to the CSS and JS files.. remove the first / from the paths on both of them.. (or put the full URL to the files).. the answer was just a few posts up...

sweetguy2004 07-31-2008 08:31 PM

i have put full url also but now also its same only & i don't think its path prob b'coz the image is showing

bobster65 07-31-2008 08:41 PM

Quote:

Originally Posted by sweetguy2004 (Post 1588656)
i have put full url also but now also its same only & i don't think its path prob b'coz the image is showing

huh? do you have a link to the site so I can see whats going on?

sweetguy2004 07-31-2008 08:51 PM

desiduniyaa.com <li class="selected"><a href="tabforumhome.php?tabcat[5]=1" rel="ajaxTFHcontentarea">TAB 1 NAME</a></li>

sweetguy2004 07-31-2008 08:59 PM

thanks for quick reply & m waiting for ur next reply :D coz my forum is down :(

bobster65 07-31-2008 09:09 PM

Quote:

Originally Posted by sweetguy2004 (Post 1588670)
desiduniyaa.com <li class="selected"><a href="tabforumhome.php?tabcat[5]=1" rel="ajaxTFHcontentarea">TAB 1 NAME</a></li>

thank you......

re read step 2a ... if you would have followed the instructions and inserted the code as specified, you wouldn't be having a problem. The remarks are missing and so is the link to the CSS file which is exactly why the Tabs are not being displayed properly (since the CSS is what builds them) ...

Code:

STEP 2a - EDIT Template: FORUMHOME

FIND </head>

Insert ABOVE that
       
<!-- Tabbed Forum Home Header Code -->       
        <link rel="stylesheet" type="text/css" href="clientscript/tabs/ajaxtabs.css" />
        <script type="text/javascript" src="clientscript/tabs/ajaxtabs.js"> </script>
<!-- /Tabbed Forum Home Header Code -->


cSh 08-02-2008 06:48 PM

Not explorer seen corrupt !
1 week for working you mod but dont !
hrrr

bobster65 08-02-2008 06:55 PM

Quote:

Originally Posted by cSh (Post 1590063)
Not explorer seen corrupt !
1 week for working you mod but dont !
hrrr

huh?

Bustah 08-03-2008 02:20 AM

I'm having a pretty basic problem with a tab.

I move my category "The Vault" underneath another category.

I left the tabs alone, but now that ones not working.

It should also be noted that I change the category to a regular forum now.

bobster65 08-03-2008 03:11 PM

Quote:

Originally Posted by Bustah (Post 1590265)
I'm having a pretty basic problem with a tab.

I move my category "The Vault" underneath another category.

I left the tabs alone, but now that ones not working.

It should also be noted that I change the category to a regular forum now.

If you changed a Category into a Forum and are still using the ForumID as a Cat ID, its only going to display that forums sub forums...

Bustah 08-03-2008 03:43 PM

Well, it doesn't show anything. How would I go about getting it to appear normal without turning it back to a category?

bobster65 08-03-2008 04:58 PM

Quote:

Originally Posted by Bustah (Post 1590615)
Well, it doesn't show anything. How would I go about getting it to appear normal without turning it back to a category?

Is the CategoryID that the Forum is currently located under added to a tab? If so, then that forum should display..

Bustah 08-03-2008 05:50 PM

The one that isn't working is "The Vault". Its forum ID is 48, so I know its right. Would it have anything to do with "The Vault" being located under the "Community" category?

Code:

<!-- main -->
<!-- Tabbed Forum Home -->

<div id="ajaxTFH" class="TFHmenu2">
        <ul>
                <li class="selected"><a href="tabforumhome.php?tabcat[]=1" rel="ajaxTFHcontentarea">Official</a></li>
                <li><a href="tabforumhome.php?tabcat[]=3" rel="ajaxTFHcontentarea">Community</a></li>
                <li><a href="tabforumhome.php?tabcat[]=48" rel="ajaxTFHcontentarea">The Vault</a></li>
                <li><a href="tabforumhome.php?tabcat[]=4" rel="ajaxTFHcontentarea">Primetime</a></li>
                <if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="tabforumhome.php?tabcat[]=47" rel="ajaxTFHcontentarea">Staff</a></li></if>
        </ul>
</div>

<br style="clear: left" />

<div class="TFHmenu2line"></div>

<div id="ajaxTFHcontentarea" style="border:0px solid gray; width:100%; height: 100%; background-color: white; padding: 0px"></div>

<script type="text/javascript">
        var mytabs=new ddajaxtabs("ajaxTFH", "ajaxTFHcontentarea")
                mytabs.setpersist(true)
                mytabs.setselectedClassTarget("link")
                mytabs.init()
</script>

<!-- /Tabbed Forum Home  -->
<!-- /main -->


bobster65 08-03-2008 05:57 PM

Quote:

Originally Posted by Bustah (Post 1590672)
The one that isn't working is "The Vault". Its forum ID is 48, so I know its right. Would it have anything to do with "The Vault" being located under the "Community" category?

Code:

<!-- main -->
<!-- Tabbed Forum Home -->

<div id="ajaxTFH" class="TFHmenu2">
        <ul>
                <li class="selected"><a href="tabforumhome.php?tabcat[]=1" rel="ajaxTFHcontentarea">Official</a></li>
                <li><a href="tabforumhome.php?tabcat[]=3" rel="ajaxTFHcontentarea">Community</a></li>
                <li><a href="tabforumhome.php?tabcat[]=48" rel="ajaxTFHcontentarea">The Vault</a></li>
                <li><a href="tabforumhome.php?tabcat[]=4" rel="ajaxTFHcontentarea">Primetime</a></li>
                <if condition="is_member_of($vbulletin->userinfo, 5,6)">
<li><a href="tabforumhome.php?tabcat[]=47" rel="ajaxTFHcontentarea">Staff</a></li></if>
        </ul>
</div>

<br style="clear: left" />

<div class="TFHmenu2line"></div>

<div id="ajaxTFHcontentarea" style="border:0px solid gray; width:100%; height: 100%; background-color: white; padding: 0px"></div>

<script type="text/javascript">
        var mytabs=new ddajaxtabs("ajaxTFH", "ajaxTFHcontentarea")
                mytabs.setpersist(true)
                mytabs.setselectedClassTarget("link")
                mytabs.init()
</script>

<!-- /Tabbed Forum Home  -->
<!-- /main -->


As I explained before... if Forum ID 48 is a FORUM (not a catagory), then it is only going to display that forums "Sub Forums" .. if you want the Entire Forum to show up under a Tab, you will need to list that Forums PARENT ID (which you just said that FORUM 48's parent ID is Cat 3..

Bustah 08-03-2008 06:41 PM

Thats exactly what I want to do.

I want to display "The Vault"'s subforums underneath a tab. Its not working.

Its blank when you click the tab, no forums show up.

bobster65 08-04-2008 06:28 AM

Quote:

Originally Posted by Bustah (Post 1590701)
Thats exactly what I want to do.

I want to display "The Vault"'s subforums underneath a tab. Its not working.

Its blank when you click the tab, no forums show up.

PM me and I'll take a look when I can .. :)

bitbender 08-05-2008 01:06 AM

yea, I am seeing the same here For instance;

Basic Help Collection(BHC) - Top level category
----> Linux Basics - sub forum
----> Windows Basics - subforum

They show fine in the tab for BHC.

I have the code for all my other categories working great, but when I tried to do these two subs to bring them forward in the tab bar, I get blanki :D

It's the same code block from the prev tab in my forumhome, all I changed was the forumid and var name doubles for the collapse, and the $forumbits variable name increment-I followed your instructions on naming convention.

I'm pretty sure it's correct.. I have beeen sitting here comparing the two code blocks over and over, trying to see where I coded incorrectly - No joy..

So any help will be appreciated.

oz_girl 08-06-2008 10:41 AM

I would really love this on my forums but its a little out of my knowledge range, can i ask someone to do this for me please? :o

iBaker 08-06-2008 10:11 PM

Bobster
Mate, this is simply brilliant http://www.recreationalflying.com.au...ilies/clap.gif

I am using 3.7.2 and vBadvanced with many different categories and this has made it easy for users to just use the category or categories that they want to view whilst keeping the overall look, feel and structure of my site - thank YOU!

Can I just make one small suggestion for the next update - it would finish it off if when a user was using the advance search that the forum search list only displayed the forums that are within that category or that the other categories are condensed to line items and only the category that the user is in has the forums in an expanded view - just a suggestion.

TheInsaneManiac 08-07-2008 01:44 AM

I have a small issue. I unactivated a forum to hide it from the main forums. The only problem is when I go view that forum in a tab, it shows I can access it, but all the forums say they have never been posted in. If I click one of the forums I can clearly see that they have indeed been posted in.

iBaker 08-07-2008 02:16 AM

Oops, I spoke to soon

It seems the mod is not allowing my forums to shrink in width depending on what screen resolution the user has i.e. if a user has 1024x768 then the forums go off the right edge causing the horizontal slider appearing for the user to be able to see the right side of the page.

The line that is causing it is:
HTML Code:

<div id="ajaxTFHcontentarea" style="border:0px solid gray; width:100%; height: 100%; background-color: white; padding: 0px"></div>
-- EDIT --
Spoke to soon again :D
I am using the Cyb - Sub-Forum Manager mod and I didn't realise that my sub forums were being pushed across the page causing a blow out in the overall width of my site - made the amendments as per https://vborg.vbsupport.ru/showpost....&postcount=566 and all is working great - thanks!

Ziki 08-07-2008 06:00 AM

Here are a few suggestions: In the templates remove the trailing slash before clientscript/tabs
also this should be removed in the javascript file as the image is not displaying.Also remove
<br style="clear: left" /> from the template because it sepparates the forum and the tabs (whitespace) in IE7. :)

TheInsaneManiac 08-07-2008 11:06 AM

Quote:

Originally Posted by Ziki (Post 1593158)
Here are a few suggestions: In the templates remove the trailing slash before clientscript/tabs
also this should be removed in the javascript file as the image is not displaying.Also remove
<br style="clear: left" /> from the template because it sepparates the forum and the tabs (whitespace) in IE7. :)

Yea, but if you remove that it would work in IE, but not firefox, so put a conditional statement for it.

Deepdog009 08-07-2008 05:16 PM

Quote:

Originally Posted by Ziki (Post 1593158)
Here are a few suggestions: In the templates remove the trailing slash before clientscript/tabs
also this should be removed in the javascript file as the image is not displaying.Also remove
<br style="clear: left" /> from the template because it sepparates the forum and the tabs (whitespace) in IE7. :)

Quote:

Originally Posted by TheInsaneManiac (Post 1593332)
Yea, but if you remove that it would work in IE, but not firefox, so put a conditional statement for it.

*************************************************
Ziki,,,
Good looking out...;)

TheInsaneManiac,,,
Great feedback...:cool:

*************************************************

bobster65,,,

Keep the ball rolling...>>>:up:<<<


All times are GMT. The time now is 11:44 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.04456 seconds
  • Memory Usage 1,859KB
  • 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
  • (1)bbcode_html_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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