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)

dodjer42 08-22-2008 07:49 AM

Love this hack!

One thing that is strange on my install is some white padding between forums now. It only appears when I select the 'tabbed' style. The parent style does not have that problem.

Eg: http://www.wpguild.com/index.php

Also, once ive gone into a sub forum, the tabs disappear. Is there anyway to have them their at all times?

Nordinho 08-22-2008 03:18 PM

Quote:

Originally Posted by bobster65 (Post 1561226)
You can take a look at dynamic drive and see if the remote links work differently within the AJAX Version of the .js file. I did see in their forums that someone from here posted about this issue and there was some sorta solution that seemed to work for them.. I don't have it bookmarked, just do a search on Tabs and Remote Links and you should be able to find it. Sorry that I can't be more help right now... Im not pursuing using the DD .js file anymore as we shifted all development to YUI Tabview. (and just so you know, so far remote links work like a charm with the YUI Tabview).

Hey Bob, great mod. I'm having some troubles setting up remote links as well. Looked at the DD thread.

Quote:

Quote:

If you are doing that, then you will need to find a way to be able to get that data (the get variable for forumtabs) and pass that along to the expandit function in the script. Normally it would be something like this:

Code:

ajaxtabs_instance.expandit(<?php echo $_GET['forumtabs'];?>);
Although, being that this is vb and you are not able to parse php in your templates, I'm at a loss.
Hope this helps nonetheless.
Ok, I can define something like $tabid in vb's core php file which is bbs.php and have that passed to template forumhome, so I could put something like

Code:

ajaxtabs_instance.expandit($tabid);
in my forumhome template

That shouldn't be hard.

Any ideas how to achieve that I tried adding

Code:

$tabid = $_GET['ajaxTFH'];
to my index.php, but that obviously was too simple thinking (btw using the 1.5 version of the mod)

Chris11987 08-22-2008 03:28 PM

I was sort of skimming the thread and it appear this works for 3.7.x, right?

Also, I saw something about Google not being able to crawl or get certain content with the tabs. What's the story with this?

iBaker 08-22-2008 10:23 PM

Quote:

Originally Posted by King Kovifor (Post 1603854)
For me, this seems unfeasible. As switching between tabs would make us have to use AJAX to change the quick search query after extracting the category ids and allowing sub-forums in the search. I will add it to our tracker, but most likely won't see it for a long time.

I have worked out that this can be done through Usergroups. If public joinable secondary usergroups were set, up one for each tab and users selected which tabs of forums they were interested in viewing, then all the search, new posts etc would only display what their usergroups were allowed to see

Now the final thing and what seems to be the most elusive feature for me is how to get the tab bar after my first main category of generic forums.

I have experimented but can't get it to work. My main category of generic forums is ForumID 4 so somewhere in the compilation of the forum home page i.e. as it is creating the forums to display it need to have an "if" in there. So as it creates the page if condition="$forum[forumid] == 4" then start creating the page as normal (without tabs) and then if condition="$forum[forumid] != 4" THEN create the tabs.

I know it sounds easy for a non coder which I am but no doubt it may not be as easy as that.

Any suggestions on how I can do this as I so desperatly need it - my forum members need it :)

bobster65 08-23-2008 01:29 AM

Quote:

Originally Posted by iBaker (Post 1604814)
I have worked out that this can be done through Usergroups. If public joinable secondary usergroups were set, up one for each tab and users selected which tabs of forums they were interested in viewing, then all the search, new posts etc would only display what their usergroups were allowed to see

Now the final thing and what seems to be the most elusive feature for me is how to get the tab bar after my first main category of generic forums.

I have experimented but can't get it to work. My main category of generic forums is ForumID 4 so somewhere in the compilation of the forum home page i.e. as it is creating the forums to display it need to have an "if" in there. So as it creates the page if condition="$forum[forumid] == 4" then start creating the page as normal (without tabs) and then if condition="$forum[forumid] != 4" THEN create the tabs.

I know it sounds easy for a non coder which I am but no doubt it may not be as easy as that.

Any suggestions on how I can do this as I so desperatly need it - my forum members need it :)

Its actually very easy to pull off by using some code from version 1 (to do the forums before the tabs).. I don't have time to explain it right now as we've been evaced from our property do to forest fires, so I have limited internet access at the moment. Just hang on for a few days and I will show you how simple it is to do..

iBaker 08-23-2008 03:01 AM

Thanks a million Bobster

One more thing - I have just noticed that the "Who's Online" page is showing many blank locations for users - anyone else have this and is there a fix?

Thanks!

The Cat! 08-24-2008 12:48 AM

Is there a way to disable the collapse? When I installed this I had a few catagories collapsed and now no matter what I do I can't get them to un-collapse. I would like to just disable them. Anyone?

i156 08-24-2008 03:32 AM

Nevermind, seems to be working great now!

King Kovifor 08-24-2008 04:50 PM

Quote:

Originally Posted by TheInsaneManiac (Post 1604183)
This really isn't necessary? Considering advanced search lists all forums and you can select any that you want to search in.

Let me explain why I am saying changing it doesn't seem easily achieved. Unless I am reading your reply wrong, you have say 3 tabs (made up):
Tab One: Forum IDs: 2, 5, 8
Tab Two: Forum IDs: 1, 4, 7
Tab Three: Forum IDs: 3, 6

Now, as I understand it, if you are viewing tab one you would like the quick search to only search Forum IDs 2, 5, and 8. But viewing tab two, you want it to search 1, 4, and 7. The problem is not learning how to specify the tab URLs, it is learning how to dynamically change the values as you switch tabs unless we redesigned how TFH looked by removing the navbar and forcing it into the tab view so it could be different per tab.

Also, I am not sure if we can limit new posts and the other suggested items based on forum ids.

Quote:

Originally Posted by Chris11987 (Post 1604513)
I was sort of skimming the thread and it appear this works for 3.7.x, right?

Also, I saw something about Google not being able to crawl or get certain content with the tabs. What's the story with this?

Yes, this works with 3.7.x and according to the website where the engine was found, it says it is search engine friendly.

Quote:

Originally Posted by iBaker (Post 1604910)
Thanks a million Bobster

One more thing - I have just noticed that the "Who's Online" page is showing many blank locations for users - anyone else have this and is there a fix?

Thanks!

I believe Bob uploaded a .xml that has WOL fixes, if not, it is fixed in 2.0 already.

Quote:

Originally Posted by The Cat! (Post 1605464)
Is there a way to disable the collapse? When I installed this I had a few catagories collapsed and now no matter what I do I can't get them to un-collapse. I would like to just disable them. Anyone?

This is a known bug and we are working on fixing this in 2.0. I don't have a solution for you now, Bob?

vietfancy 08-24-2008 05:19 PM

The who's online thing is not working.

:)

iBaker 08-25-2008 12:19 AM

Can someone offer css advice?

I am trying to get the tabs to spread right across 100% of my forums with each tab being the same width.

Plus if the text in one or more of the tabs is wrapped into say 2 lines then all the tabs become the same height as well regardless if they only contain a single word.

Any help is greatly appreciated!

King Kovifor 08-25-2008 01:29 AM

Quote:

Originally Posted by vietfancy (Post 1605944)
The who's online thing is not working.

:)

I will look into it when I get a chance - but I know it is fixed for 2.0.

Chris11987 08-25-2008 11:00 AM

edit: I tried the 1.01 version, and got it to work to an extent. Tab 1 never aligns with tabs 2 or 3. It's one pixel lower than the others because it overlaps the outer boarder of the forums display, where the others do not.

I might consider helping to rewrite the instructions. While I was able to follow them along myself, they are written extremely poorly and contain a lot of extra work that is unneeded and also don't explain many parts properly.

bobster65 08-25-2008 12:47 PM

Quote:

Originally Posted by Chris11987 (Post 1606460)
I might consider helping to rewrite the instructions. While I was able to follow them along myself, they are written extremely poorly and contain a lot of extra work that is unneeded and also don't explain many parts properly.

Go for it. If you feel you can improve instructions for version 1.01 (or 1.5 for that matter) be my guest. I (we) don't have time and have already said that all further development on ver 1.01 and 1.5 has stopped and that all efforts are being focused on version 2.0

NOTE TO ALL

If anyone is interested in continuing the Development of either version 1.01 or 1.5, you can contact Me via PM telling me why we should consider you. If considered, we'll add you to the Team for further development and support of either version.

bobster65 08-25-2008 01:13 PM

Quote:

Originally Posted by The Cat! (Post 1605464)
Is there a way to disable the collapse? When I installed this I had a few catagories collapsed and now no matter what I do I can't get them to un-collapse. I would like to just disable them. Anyone?

This only happens when you have the same forum in more than one tab (which by using the default vB functions, the collapseIDs are always assigned by using the forumID).. This is what is causing the conflict and is being re-written in version 2.0 to prevent that.

Did you try and uncollapse them from the first tab that they are displayed in? I just tried that and it worked.

If you want to strip out the Collapse Functionality, just remove the code (in RED ) in the Below Template..

Template Name: forumhome_forumbit_level1_nopost

Code:

<!-- TFH -->
<if condition="(THIS_SCRIPT == 'tabforumhome' AND in_array($forum['forumid'], $GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'">
<!-- /TFH -->


<tbody>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <if condition="$childforumbits">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        </if>

                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>


<!-- TFH -->
</if>
<!-- /TFH -->


The Cat! 08-25-2008 01:33 PM

Thanks Bobster, I'll give that a try tonight.

Chris11987 08-25-2008 11:10 PM

I must be blind, but I can't swee in the template on where to fix this: Under each tab it has the line that says "Forum, Last post, # of threads, etc" above the actual forum name. So basically the thwo are switched compared to how they normally are, but for some reason I can't spot the code to switch them. Any help here?

UaECasher 08-26-2008 11:40 PM

Hello,

I have installed the v 1.5 ajax every thing was working fine but the problem is only 1 tab show the content others don't

here is the code for the forumhome

HTML Code:

<li class="selected"><a href="tabforumhome.php?tabcat[]=1&tabcat[]=31&tabcat[]=52&tabcat[]=38&tabcat[]=143" rel="ajaxTFHcontentarea">Main Page</a></li>
                <li><a href="tabforumhome.php?tabcat[]=22&tabcat[]=117&tabcat[]=13&tabcat[]=17&tabcat[]=115" rel="ajaxTFHcontentarea">Rap Battles Online</a></li>
                <li><a href="tabforumhome.php?tabcat[]=4&tabcat[]=50&tabcat[]=51&tabcat[]=158&tabcat[]=163&tabcat[]=168" rel="ajaxTFHcontentarea">Game Vault</a></li>
        <li><a href="tabforumhome.php?tabcat[]=126&tabcat[]=133" rel="ajaxTFHcontentarea">Fighters Vault</a></li>
        <li><a href="tabforumhome.php?tabcat[]=57&tabcat[]=59&tabcat[]=82" rel="ajaxTFHcontentarea">Auto World</a></li>


and if's correct then why it's not working :( my vBulletin version is 3.7.2

i156 08-27-2008 01:31 AM

I just upgraded to 3.7.3 and no forums are showing on my tabs! help! I am using 1.0.1.

http://www.usacarry.com/forums

i156 08-27-2008 01:35 AM

I just reverted my template since no one could get to my forums. Let me know if anyone else had this problem when upgrading and what I can do to fix it. I really liked how the tabs looked. I saved a copy of my old FORUMHOME so I can switch it back fairly quick.

bobster65 08-27-2008 01:15 PM

Quote:

Originally Posted by i156 (Post 1607831)
I just reverted my template since no one could get to my forums. Let me know if anyone else had this problem when upgrading and what I can do to fix it. I really liked how the tabs looked. I saved a copy of my old FORUMHOME so I can switch it back fairly quick.

When you upgraded, you probably installed the new index.php file, so you would have to edit that and insert those $formbits that you created.

bobster65 08-27-2008 01:17 PM

Quote:

Originally Posted by UaECasher (Post 1607764)
Hello,

I have installed the v 1.5 ajax every thing was working fine but the problem is only 1 tab show the content others don't

here is the code for the forumhome

HTML Code:

<li class="selected"><a href="tabforumhome.php?tabcat[]=1&tabcat[]=31&tabcat[]=52&tabcat[]=38&tabcat[]=143" rel="ajaxTFHcontentarea">Main Page</a></li>
                <li><a href="tabforumhome.php?tabcat[]=22&tabcat[]=117&tabcat[]=13&tabcat[]=17&tabcat[]=115" rel="ajaxTFHcontentarea">Rap Battles Online</a></li>
                <li><a href="tabforumhome.php?tabcat[]=4&tabcat[]=50&tabcat[]=51&tabcat[]=158&tabcat[]=163&tabcat[]=168" rel="ajaxTFHcontentarea">Game Vault</a></li>
        <li><a href="tabforumhome.php?tabcat[]=126&tabcat[]=133" rel="ajaxTFHcontentarea">Fighters Vault</a></li>
        <li><a href="tabforumhome.php?tabcat[]=57&tabcat[]=59&tabcat[]=82" rel="ajaxTFHcontentarea">Auto World</a></li>


and if's correct then why it's not working :( my vBulletin version is 3.7.2

That code is correct, but there is so much more that could be wrong.. can you post a URL so we can see it?

i156 08-27-2008 01:28 PM

Quote:

Originally Posted by bobster65 (Post 1608202)
When you upgraded, you probably installed the new index.php file, so you would have to edit that and insert those $formbits that you created.

That was it. Thanks! I'm back up with the tabs.

http://www.usacarry.com/forums/

i156 08-27-2008 01:36 PM

What would be the best way to add a tab that looks like the old complete list of forums with categories? My members are requesting an ALL tab.

bobster65 08-27-2008 01:46 PM

Quote:

Originally Posted by i156 (Post 1608214)
What would be the best way to add a tab that looks like the old complete list of forums with categories? My members are requesting an ALL tab.

Yer still using verion 1.01 correct? If so, just use the default vB $forumbits variable

Chris11987 08-28-2008 06:39 AM

Something I just realized: When the forums are in the tabs, the "(XX Viewing)" doesn't show up, even when people are viewing a forum. Does anyone know how to fix that?

bobster65 08-28-2008 10:15 AM

Quote:

Originally Posted by Chris11987 (Post 1608817)
Something I just realized: When the forums are in the tabs, the "(XX Viewing)" doesn't show up, even when people are viewing a forum. Does anyone know how to fix that?

Ya, its a known bug and will be (IS) fixed in ver 2.0

vietfancy 08-28-2008 09:32 PM

I have installed the v 1.5 ajax and the only function that isn't working is the "Who's online" Does anyone knows how to fix this?

Thanks

bobster65 08-28-2008 11:23 PM

Quote:

Originally Posted by vietfancy (Post 1609390)
I have installed the v 1.5 ajax and the only function that isn't working is the "Who's online" Does anyone knows how to fix this?

Thanks

I could have sworn that we released an xml for that.. let me look and see if I can find it and get it posted again...

epic1 08-29-2008 12:07 AM

My Who's Online is also showing "Unknown Location" when people are on the forum home - even with the XML imported.

Otherwise, awesome modification. :)

Here is a forum to show off to see it in action:

http://www.fullthrottlev6.com

Thanks for coding this!

Itworx4me 08-29-2008 05:37 AM

When is the likely hood of us seeing Version 2?

Thanks,
Itworx4me

bobster65 08-29-2008 01:15 PM

Quote:

Originally Posted by epic1 (Post 1609466)
My Who's Online is also showing "Unknown Location" when people are on the forum home - even with the XML imported.

Otherwise, awesome modification. :)

Here is a forum to show off to see it in action:

http://www.fullthrottlev6.com

Thanks for coding this!

Looks great!

btw, one of us will take a look into the WOL and get a new xml posted asap!


Quote:

Originally Posted by Itworx4me (Post 1609629)
When is the likely hood of us seeing Version 2?

Thanks,
Itworx4me

The Million Dollar Question.... we've had so many requests (all great requests btw) that we are re-working a lot of it to be a complete product with a multitude of features. Time hasn't been easy for the 3 of us working on the project, so things are slow at the moment. Its Possible that a beta version will be available for testing this coming month.

powerful_rogue 08-30-2008 11:53 AM

1 Attachment(s)
Hi,

Ive installed and its all working great so far! Im just wondering if someone could help with one last thing! I have attempted it, but failed miserably!

Would it be possible to put the tabs inside a box which would stretch the length of the forum? Ive attatched a screen shot of what I mean. Also, which text/file do I need to edit to make them slightly larger.

Ive made the box white in the picture so it stands out, but if I could get it to match the colour of the box outlining the navbar that would be great.

I really appreciate any help :)

bobster65 08-30-2008 01:19 PM

Quote:

Originally Posted by powerful_rogue (Post 1610555)
Hi,

Ive installed and its all working great so far! Im just wondering if someone could help with one last thing! I have attempted it, but failed miserably!

Would it be possible to put the tabs inside a box which would stretch the length of the forum? Ive attatched a screen shot of what I mean. Also, which text/file do I need to edit to make them slightly larger.

Ive made the box white in the picture so it stands out, but if I could get it to match the colour of the box outlining the navbar that would be great.

I really appreciate any help :)

the CSS file drives most of it, the rest is done via inline css on the template itself. Looking at your "Style" there might be a couple different CSS options for you to look at. If you check out dynamic drive, they have some alternate CSS options for Tabs that might work better for your style :)

powerful_rogue 08-30-2008 01:28 PM

Quote:

Originally Posted by bobster65 (Post 1610587)
the CSS file drives most of it, the rest is done via inline css on the template itself. Looking at your "Style" there might be a couple different CSS options for you to look at. If you check out dynamic drive, they have some alternate CSS options for Tabs that might work better for your style :)

Hi bobster,

Many thanks for your reply. Ive had a look at that site, but found it quite daunting! I did trial one out but couldnt get it to work.

If there was just someway I could put a box around my tabs and make them a little bit bigger I would be very happy with the current layout. :)

One more thing ive noticed - It seems to be working fine in FF, however with IE7, when you click on one of the tabs, it has serious graphic issues - header, navbar and footer missing along with lots of other graphics.

King Kovifor 08-30-2008 03:02 PM

Quote:

Originally Posted by bobster65 (Post 1609881)
The Million Dollar Question.... we've had so many requests (all great requests btw) that we are re-working a lot of it to be a complete product with a multitude of features. Time hasn't been easy for the 3 of us working on the project, so things are slow at the moment. Its Possible that a beta version will be available for testing this coming month.

Yep. I haven't been able to code anything in about 2 weeks. lol. :) This is tied for top priority.

powerful_rogue 08-30-2008 03:26 PM

Quote:

Originally Posted by powerful_rogue (Post 1610594)
Hi bobster,

Many thanks for your reply. Ive had a look at that site, but found it quite daunting! I did trial one out but couldnt get it to work.

If there was just someway I could put a box around my tabs and make them a little bit bigger I would be very happy with the current layout. :)

One more thing ive noticed - It seems to be working fine in FF, however with IE7, when you click on one of the tabs, it has serious graphic issues - header, navbar and footer missing along with lots of other graphics.

Right, Im totally stumped now as to why this wont work on IE but works fine on FF. Has anyone else has the same problem? If so, what did you have to do to solve it? I was so close to going live with this on my forum, but looks like i'll have to wait for a bit now.

Brother Malachi 08-30-2008 06:58 PM

Hey bobster, did you get my PM?

RickyG 08-30-2008 08:24 PM

OK...call me stupid! I read and re-read and went thru all of the posts and cannot get it to ork
www.winmobileforum.com

I have the tabs setup as
<li class="selected"><a href="tabforumhome.php?tabcat[]=4" rel="ajaxTFHcontentarea">MAIN</a></li>
<li><a href="tabforumhome.php?tabcat[]=6&tabcat[]=11" rel="ajaxTFHcontentarea">Wireless/Technical</a></li>
<li><a href="tabforumhome.php?tabcat[]=1&tabcat[]=10&tabcat[]=3" rel="ajaxTFHcontentarea">TAB 3 NAME</a></li>
</ul>


Can you assist?
RickyG

King Kovifor 08-31-2008 12:33 AM

Quote:

Originally Posted by RickyG (Post 1610794)
OK...call me stupid! I read and re-read and went thru all of the posts and cannot get it to ork
www.winmobileforum.com

I have the tabs setup as
<li class="selected"><a href="tabforumhome.php?tabcat[]=4" rel="ajaxTFHcontentarea">MAIN</a></li>
<li><a href="tabforumhome.php?tabcat[]=6&tabcat[]=11" rel="ajaxTFHcontentarea">Wireless/Technical</a></li>
<li><a href="tabforumhome.php?tabcat[]=1&tabcat[]=10&tabcat[]=3" rel="ajaxTFHcontentarea">TAB 3 NAME</a></li>
</ul>


Can you assist?
RickyG

Is tabforumhome.php uploaded to your forums directory? As I am not getting a 404, but no errors, and it isn't displaying anything.


All times are GMT. The time now is 01:03 AM.

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.02925 seconds
  • Memory Usage 1,904KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (25)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