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)

Brother Malachi 08-31-2008 07:08 AM

Any idea why this isn't working: http://dailysportspages.com/forums/index.php?styleid=40

RickyG 08-31-2008 09:50 AM

Thanks King for your response,
Yes. I have the tabs working but I cannot get the cats to show up.
RickyG

epic1 08-31-2008 05:46 PM

Quote:

Originally Posted by bobster65 (Post 1609881)
Looks great!

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

Thanks, my members love it. Please let me know when you get the new xml posted. :)

Brother Malachi 08-31-2008 06:05 PM

Quote:

Originally Posted by epic1 (Post 1611347)
Thanks, my members love it. Please let me know when you get the new xml posted. :)

It's already posted, no? Where should I put it?

RickyG 08-31-2008 06:30 PM

I uninstalled and follow the directions again and still not working for me.

HeLp
RickyG

TheInsaneManiac 08-31-2008 11:49 PM

How is 2.0 coming along?

ArnyVee 09-01-2008 12:17 AM

I'm waiting for 2.0.... can't wait! :D

King Kovifor 09-01-2008 01:54 AM

Ricky,

Can you open up tabforumhome.php and replace the first line (<?php) with the following code?

PHP Code:

<?php
ini_set
("dipslay_errors""1");


ArnyVee 09-01-2008 02:35 AM

I'd love to have this functioning on my site, but I don't want to go through a bunch of troubleshooting to get there. Hopefully 2.0 will be as easy and painless as possible and avoid lots of these little fixes that are all throughout these pages.

maidos 09-01-2008 10:19 AM

This is not compatible with https://vborg.vbsupport.ru/showthread.php?t=122996
because it will line up all sub forum in one row and it makes the forum go alot wider

and any idea how to make space btw each forum category?

also about the tabs, how do i replace the colors with gif images instead
and theres a long line stretching below the tabs.. how do i remove that
is it me or is ajax version much slower than version 1

Subah 09-01-2008 11:43 AM

Can we have option changing the style for each tab ?
i`am thinking to make some tabs for girls and thinking to let they have there own style ;)

powerful_rogue 09-01-2008 12:09 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.

Any tips/advice at all peeps?

bobster65 09-01-2008 02:41 PM

Quote:

Originally Posted by ArnyVee (Post 1611581)
I'm waiting for 2.0.... can't wait! :D

Either can we... lol

Quote:

Originally Posted by ArnyVee (Post 1611661)
I'd love to have this functioning on my site, but I don't want to go through a bunch of troubleshooting to get there. Hopefully 2.0 will be as easy and painless as possible and avoid lots of these little fixes that are all throughout these pages.

I agree, that's why we are taking our time with this next version.

Quote:

Originally Posted by maidos (Post 1611876)
This is not compatible with https://vborg.vbsupport.ru/showthread.php?t=122996
because it will line up all sub forum in one row and it makes the forum go alot wider

and any idea how to make space btw each forum category?

also about the tabs, how do i replace the colors with gif images instead
and theres a long line stretching below the tabs.. how do i remove that
is it me or is ajax version much slower than version 1

This is not totally true. Cyb's Subforum Hack was the first thing I played with will making TFH, as I have it installed on my Forums. It works just fine. You may have issues with a custom style. This is geared of default vB. If I had any free time, I would take a look at your site, but to say it doesn't work with it is not entirely true. There are actually some enhancements in version 2.0 for Cybs subforums as well as Forums in Columns..

Colors/Images etc are all handled via CSS (either in the CSS file itself, or inline CSS within the template. Version 2.0 is going to change this as we are using YUI and a Custom CSS via the ACP.

As far as the AJAX being slower.. just depends on what you want... the AJAX Version retrieves the most current (real time info) each time the Tab is selected. The first version loads all data into each tab upon creation of the page, so when you go from tab to tab, all you are getting is the info at the time of the page creation.... so it may seem "slower" but its retrieving real time info. NOW, with that said, the YUI AJAX Tabs are MUCH faster, that is one of the many reasons we are switching to YUI... NIGHT and DAY difference.


Quote:

Originally Posted by Subah (Post 1611919)
Can we have option changing the style for each tab ?
i`am thinking to make some tabs for girls and thinking to let they have there own style ;)

We have some pretty cool things planned for the Styling of Tabs via the ACP. This will only be available in version 2.0 tho.

Quote:

Originally Posted by powerful_rogue (Post 1611939)
Any tips/advice at all peeps?

If I had time, I'd help you come up with something nice, I just don't have enough time anymore.. All I can say is that its all done via CSS (both in the File and inline).. just mess around with the CSS to get the look and feel you want.

powerful_rogue 09-01-2008 03:33 PM

Thanks bobster.

If anyone else on here has a couple of mins it would be really appreciated. CSS isnt really my forte and ive had a play around but to no avail!

iBaker 09-01-2008 06:24 PM

Quote:

Originally Posted by bobster65 (Post 1612039)
This is not totally true. Cyb's Subforum Hack was the first thing I played with will making TFH, as I have it installed on my Forums. It works just fine. You may have issues with a custom style. This is geared of default vB. If I had any free time, I would take a look at your site, but to say it doesn't work with it is not entirely true. There are actually some enhancements in version 2.0 for Cybs subforums as well as Forums in Columns..

This post will fix using Cyb's Subforum Hack with the tabs
https://vborg.vbsupport.ru/showpost....&postcount=566

King Kovifor 09-01-2008 07:19 PM

Quote:

Originally Posted by maidos (Post 1611876)
This is not compatible with https://vborg.vbsupport.ru/showthread.php?t=122996
because it will line up all sub forum in one row and it makes the forum go alot wider

and any idea how to make space btw each forum category?

also about the tabs, how do i replace the colors with gif images instead
and theres a long line stretching below the tabs.. how do i remove that
is it me or is ajax version much slower than version 1

Quote:

Originally Posted by iBaker (Post 1612220)
This post will fix using Cyb's Subforum Hack with the tabs
https://vborg.vbsupport.ru/showpost....&postcount=566

Thank you for finding that. I was going to take a peak into the 2.0 Admin CP which has a listing of things like this (for you to fix these if you have them installed).

transparent 09-02-2008 04:47 AM

Excellent hack! Installed & working great.:)

I have a few small issues but I think I'm just gonna hold off on asking until the 2.0 release since it seems it's coming soon!

Keep up the great work guys. This is a great hack!

epic1 09-02-2008 12:19 PM

Quote:

Originally Posted by hammerhead24 (Post 1611360)
It's already posted, no? Where should I put it?

No, the XML posted has a glitch when showing the Who's Online as I mentioned in a prior post of mine.

RickyG 09-02-2008 10:42 PM

Hello King,
I put that code in and there is no orrer?
I took the site down and tried again. There is a cat 4 and setup the line in home as such
http://www.winmobileforum.com/tabforumhome.php?tabcat[]=4

But even if i put that in the browser, it comes up blank.
Thank you for tking the time,
Rickyg

bobster65 09-02-2008 11:07 PM

1 Attachment(s)
Quote:

Originally Posted by epic1 (Post 1612755)
No, the XML posted has a glitch when showing the Who's Online as I mentioned in a prior post of mine.

Try this one...

iBaker 09-03-2008 05:23 AM

That xml worked for me - thanks Bobster

On another matter, I have installed a few mods and 3rd party apps recently and I just noticed that I don't get the (x viewing) text next to forums any more so I was just wondering whether this mod was the cause of it or not - could be wrong - do others who installed this mod get the # viewing anymore?

bobster65 09-03-2008 02:24 PM

Quote:

Originally Posted by iBaker (Post 1613349)
That xml worked for me - thanks Bobster

On another matter, I have installed a few mods and 3rd party apps recently and I just noticed that I don't get the (x viewing) text next to forums any more so I was just wondering whether this mod was the cause of it or not - could be wrong - do others who installed this mod get the # viewing anymore?

Cool Beans on the xml ... was a simple issue of looking for the wrong file name (had the version 2.0 filename instead of the 1.5) :o

The x view is indeed a "bug" and has been logged in Project Tools as a bug.

Megatr0n 09-03-2008 03:14 PM

Quote:

Originally Posted by bobster65 (Post 1558929)
unfortunately, with this initial version, parts of it, yes.. you can make it easy on yourself and save the templates and then wen you revert, you can just cut and past the changes back in. If you use the NON AJAX Version, you will have to do the same with the index.php file.

We are going to try our hardest to make the next version a product that won't be effected by upgrades..



try using -1 as the Cat ID .. that should create the full list of Cats/Forums ..

Has this been corrected?

King Kovifor 09-03-2008 10:48 PM

Quote:

Originally Posted by Megatr0n (Post 1613677)
Has this been corrected?

Yes and no. There is a product but it is still in development.

Ziki 09-04-2008 11:03 AM

What if the user disabled JavaScript ;)

craiovaforum 09-04-2008 12:03 PM

Quote:

Originally Posted by Ziki (Post 1614298)
What if the user disabled JavaScript ;)

That is exactly what I was planning to ask :)
I saw the reply a few pages back about the untouched crawlability.
But what do we do about the users with no javascript? I looked on both demo sites with javascript disabled and I got no content whatsoever.
Why don't you display a normal forumhome page in case no js is detected?

bobster65 09-04-2008 01:53 PM

Quote:

Originally Posted by Ziki (Post 1614298)
What if the user disabled JavaScript ;)

I've answered this before.... what I do is create a child style for the Tabbed Layout so that users can choose whether they want the Tabbed layout or normal default vB layout.

One of the items that we are looking into also is auto detection of JS disabled.

i156 09-05-2008 08:46 PM

I just changed over IP addresses on my domain today and now my tabs aren't showing up. All I see is a bullet list of my forums. Any ideas what is causing this???

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

iBaker 09-05-2008 09:05 PM

i156
This would be directly related to the css file and the tabs finding it. It should be listed at the top of the forumhome template and looks something like:
HTML Code:

<link rel="stylesheet" type="text/css" href="clientscript/tabs/ajaxtabs.css" />
Just in my opinion I would start looking from there also it may (just guessing) have something to do with cache but then I am only a back yarder in coding but it may help to get you started till the big boys offer something

i156 09-05-2008 09:26 PM

Yea, seems to have been a cache or propagation thing. I am seeing the tabs now.

bobster65 09-05-2008 09:30 PM

Quote:

Originally Posted by i156 (Post 1615410)
I just changed over IP addresses on my domain today and now my tabs aren't showing up. All I see is a bullet list of my forums. Any ideas what is causing this???

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

Quote:

Originally Posted by iBaker (Post 1615420)
i156
This would be directly related to the css file and the tabs finding it. It should be listed at the top of the forumhome template and looks something like:
HTML Code:

<link rel="stylesheet" type="text/css" href="clientscript/tabs/ajaxtabs.css" />
Just in my opinion I would start looking from there also it may (just guessing) have something to do with cache but then I am only a back yarder in coding but it may help to get you started till the big boys offer something

yup, iBaker is correct.. check both the paths to the .ccs AND .js .. make sure your old URL isn't appended to them.

Brother Malachi 09-06-2008 09:24 AM

Wait...is the AJAX version still crawlable?

bobster65 09-06-2008 04:57 PM

Quote:

Originally Posted by hammerhead24 (Post 1615729)
Wait...is the AJAX version still crawlable?

Yes. Its been tested more than once is completely search engine unobtrusive. If you need to make yourself comfortable, simple create a child style and make the child style tabbed and the parent style the default..

Cheertobi 09-06-2008 10:07 PM

Hi,

will V2.0 be able to handle this module?!

Got V1.5 to work, but it does not play well together with Xenons Hack ;(

Regards,

Tobi

bobster65 09-06-2008 11:17 PM

Quote:

Originally Posted by Cheertobi (Post 1616207)
Hi,

will V2.0 be able to handle this module?!

Got V1.5 to work, but it does not play well together with Xenons Hack ;(

Regards,

Tobi

Yes, I have it working and posted the solution to hammerhead in that thread... We've also added support for it in ver 2.0

HERE is the solution that I posted ...

Quote:

Originally Posted by hammerhead24 (Post 1568774)
How would I go about combining this with the [AJAX] tabbed forums mod.

Thanks for any help.

Pretty easy actually ..

I am going to assume you already installed this and am only going to give you the changes you need to make for this to work with TFH ..

FIND THIS in (includes/functions_forumlist.php ) File

Code:

if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
                {
                        $childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
                }
                else if ($subsonly)
                {
                        $childforumbits = construct_forum_bit($forum['forumid'], 1, $subsonly);
                }
                else if ($depth < MAXFORUMDEPTH)
                {
                        $childforumbits = construct_forum_bit($forum['forumid'], $depth, $subsonly);
                }
                else
                {
                        $childforumbits = '';
                }


REPLACE with THIS (NOTE: New Code is highlighted in red ... )

Code:

if (THIS_SCRIPT == 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
                {
                        $childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
                }
                else if (THIS_SCRIPT == 'tabforumhome' or 'index' AND $forum['subforumcolumns'] != 1 AND ($subsonly OR $depth < MAXFORUMDEPTH))
                {
                        $childforumbits = construct_forum_columns($forum['forumid'], $forum['subforumcolumns']);
                }

                else if ($subsonly)
                {
                        $childforumbits = construct_forum_bit($forum['forumid'], 1, $subsonly);
                }
                else if ($depth < MAXFORUMDEPTH)
                {
                        $childforumbits = construct_forum_bit($forum['forumid'], $depth, $subsonly);
                }
                else
                {
                        $childforumbits = '';
                }



THEN CHECK/EDIT your forumhome_forumbit_level1_nopost Template

NOTE: You should have this step already done if you installed both properly..

NOTE: Red Highlite = TFH Code Green Highlite= Forums arranged in columns on forumhome Code Black Code = Default vB (yours might be slightly different if you have a custom style, however, the colored stuff HAS to be exact) ..

Code:

<if condition="(THIS_SCRIPT == 'tabforumhome' AND in_array($forum['forumid'], $GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'">
<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}">
<if condition="$forum['subforumcolumns'] > 1">
        <tr>
                <td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<table style="border: none; width: 100%;">
                        $childforumbits
</table>
                </td>
        </tr>
<else />

        $childforumbits
</if>
</tbody>
</if>
</if>


This works fine on both default vB and with Custom styles (I tested both this AM)

Cheertobi 09-06-2008 11:40 PM

Hi,

great, thanks for this fast support, will try this tomorrow, need some sleep now!

Regards,

Tobias

AusFootball 09-07-2008 10:29 AM

Just installed the mod, how do i add new forums under the new tab.

My site is www.dogforum.com.au

Thanks

bobster65 09-08-2008 02:11 PM

Quote:

Originally Posted by Cheertobi (Post 1616240)
Hi,

great, thanks for this fast support, will try this tomorrow, need some sleep now!

Regards,

Tobias

Did you get it configured ok?

Quote:

Originally Posted by AusFootball (Post 1616497)
Just installed the mod, how do i add new forums under the new tab.

My site is www.dogforum.com.au

Thanks

Which version?

megabyte366 09-08-2008 05:28 PM

Great mod... i love it... i look but i didn't find it... how can i hide my staff tab, but make is visible to the staff only..

thanks..

bobster65 09-08-2008 08:15 PM

Quote:

Originally Posted by megabyte366 (Post 1617592)
Great mod... i love it... i look but i didn't find it... how can i hide my staff tab, but make is visible to the staff only..

thanks..

You can wrap the specific <li> tag with a template conditional where the numbers after userinfo are the User Group IDs that you want to display the Tab too.

Code:

<if condition="is_member_of($vbulletin->userinfo, 5,6)">
 CODE HERE
</if>


So for example if you had 3 Tabs and wanted to hide one for Staff Only it would look like this..

Code:

<div id="ajaxTFH" class="TFHmenu2">
        <ul>
                <li class="selected"><a href="tabforumhome.php?tabcat[]=1" rel="ajaxTFHcontentarea">TAB 1 NAME</a></li>
                <li><a href="tabforumhome.php?tabcat[]=1&tabcat[]=2" rel="ajaxTFHcontentarea">TAB 2 NAME</a></li>
               
                <if condition="is_member_of($vbulletin->userinfo, 5,6)">
                    <li><a href="tabforumhome.php?tabcat[]=100" rel="ajaxTFHcontentarea">STAFF</a></li>
                </if>


        </ul>
</div>



All times are GMT. The time now is 07:43 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.02943 seconds
  • Memory Usage 1,876KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (26)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