vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - [YUI] Tabbed Forum Home (https://vborg.vbsupport.ru/showthread.php?t=233135)

blustry 02-20-2011 12:01 AM

Going off someone else's post much earlier on in the thread about making the thread show for guests (so google would see it) I came up with the below for the second template edit.

If they're a guest (usergroup id 1) they'll see the full listing with the forums from all tabs else it'll show the tabbed forums.

I also added a second condition which checks whether the product is active or not. Might have been a less hacky way of doing it but I didn't like that if I disabled the product the forums would disappear until the template was re-edited.
PHP Code:

    <!-- main -->
    {
vb:raw template_hook.forumhome_above_forums}
    <
vb:if condition="empty($GLOBALS['vbulletin']->products['bobster_tfh']) OR is_member_of($bbuserinfo, 1)">
    <
ol id="forums" class="floatcontainer">
        {
vb:raw forumbits}
    </
ol>
    <
vb:else />
    <!-- 
Tabbed Forum Home -->
    <
div id="forumhome_container" style="margin-top:5px"> </div>
    <
script type="text/javascript"> {vb:raw tfh} </script>
    <!-- /
Tabbed Forum Home  -->
    </
vb:if>
    {
vb:raw template_hook.forumhome_below_forums}
    <!-- /
main --> 

EDIT:

Concerning the collapse issue I did some digging round for it but couldn't find a decent solution so ended up removing the buttons myself. I managed to fix the linking issue but it seems there was actually two issues involved.

I fixed the linkage issue by removing the {vb:raw relpath} from the href in the forumhome_forumbit_level1_post template. The value of that is being changed because of the yui call to that tab script. So removing the relpath variable fixed that part of the problem. However in Firefox the javascript still wasn't working (i.e. doing nothing). In IE it was actually working perfectly lol.

I don't have an experience with YUI but I suspect this is similar to an issue I've had with JQuery where the event listener (for the collapse button) needs to be re-binded for the dynamically generated content. That's more of a job for someone who has knowledge of YUI and javascipt though.

Trystan^ 02-20-2011 09:32 PM

Hey

I have a small problem, Ive gotten the mod to work out of the box with the default style, doing the same changes in my custom style and it hasn't taken affect,

any ideas as to what could be the cause? its probably something very simple and its to late at night for me to think clearly :( so i hope when i wake up someone can tell me what im doing wrong

Cheers.

BlueCheri 02-20-2011 09:49 PM

Tagged, seems very useful.

lmgc 02-21-2011 06:37 AM

Hello !

its a great great hack thank you 10000 times !
i want just to make BOLD the title of the tabs and change their color, its possible please ?

MrsTryst 02-22-2011 03:48 PM

Hello,
Great add-on! Very useful.

But why does the background of the tabs doesn't change to the forum theme background?

Thank you for this very useful add-on!

mohammad6006 02-23-2011 06:15 AM

please update for 4.1.x version

thanx

lmgc 02-23-2011 07:02 AM

hello !!

i finded the solution, you can change alll colors off text and background in the file skin-tfh.css in the tfh folder.

i hope that help Mrs Tryst

MrsTryst 02-23-2011 11:28 AM

Quote:

Originally Posted by lmgc (Post 2165702)
hello !!

i finded the solution, you can change alll colors off text and background in the file skin-tfh.css in the tfh folder.

i hope that help Mrs Tryst

Thank you so much! Helped me big time :up:

lmgc 02-23-2011 03:01 PM

you welcome mrs,
i hope we will have an update for this great hack soon

CharlieDelta 02-28-2011 02:35 PM

Quote:

Originally Posted by RK KINGKONG (Post 2155025)
heres a bug I found on 4.1.1 while youre in the forum home main page if you hit the collapse button on the the right side my forums gets scrambled and turns it into a big white screen there are 2 attached files to describe the issue . though not many ppl use the collapse button its still a bug right ? but yes other than that it does work on 4.1.1

I am also having this problem.


All times are GMT. The time now is 04:56 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.02061 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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