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)

fxdigi-cash 03-03-2013 02:08 AM

Quote:

Originally Posted by Amaury25 (Post 2406111)
What controls the styling?

We want to adjust it to fit each style accordingly.

if you are talking about the tabs, then check out the class
Code:

yui-nav
or
Code:

yui-navset yui-navset-top
That what I could see from firebug. if the class is not written in additional.css file, it should be then in the css files that come with this mod.

Update:

it turns out that the style as I said located in the included css files with the mod. Check out both skin-tfh.css and tabview.css

now I'm 100% sure it is from there.

Good luck

fxdigi-cash 03-03-2013 02:16 AM

hi,

which version of vb are you running the mod on?

also, notice if your forums in your forum home view disappeared means it is working...

can you show us the code where you changed this below before modifications?

sounds like there is something incorrect...


Quote:

Originally Posted by Baghira (Post 2407476)
Hi. I can?t get it to work. Maybe, it?s my Forumhometab

This is what I have:

PHP Code:

<!-- main -->

<
ol id="forums" class="floatcontainer">
  {
vb:raw forumbits}
</
ol>

{
vb:raw forumhome_markread_script}

<
script type="text/javascript">
vBCollapseFactory();
</
script>
<!-- /
main --> 

And this is what I did with it...

PHP Code:

<!-- main -->

{
vb:raw template_hook.forumhome_above_forums}
<!-- 
Tabbed Forum Home -->
<
div id="forumhome_container" style="margin-top:5px"> </div>
<
script type="text/javascript"> {vb:raw eg_tfh} </script>
<!-- /
Tabbed Forum Home  -->

{
vb:raw forumhome_markread_script}

<
script type="text/javascript">
vBCollapseFactory();
</
script>
<!-- /
main --> 



fxdigi-cash 03-03-2013 02:32 AM

Quote:

Originally Posted by mhgoz.com (Post 2404156)
thanks for this great work ,

i need for help right now , i want to make this tabs avilable in all pages of the fourm , also , i want to make a custom code for the main [ul] element of tabs and embed it in the header template manually , like this >>

PHP Code:

<ul >
<
li><a href="#">Name Of Tabs</a></li>
</
ul

but when i open the file , i did`t see any template tags or any html code to use or to update on it ,, ! so what could i do ?

[S]
I think you mean that you want to view different tabs inside the forums not only the forum home.... I really didn't try that, but there is the code for tabs view, you can place it in the right forum page

Code:

<!-- main -->
{vb:raw template_hook.forumhome_above_forums}
<!-- Tabbed Forum Home -->
<div id="forumhome_container" style="margin-top:5px"> </div>
<script type="text/javascript"> {vb:raw eg_tfh} </script>
<!-- /Tabbed Forum Home  -->
{vb:raw template_hook.forumhome_below_forums}
<!-- /main -->



in the following pages:

forumhome_forumbit_level1_post, forumhome_forumbit_level2_post,

if it didn't work, then I believe there must be some tab code interruption... [/S]


I tried that all, but didn't work. there must be some sort of deep modification. sorry about that

Baghira 03-03-2013 08:56 AM

Hi there...

I dont understand what I have to do...

maybe you can have a look at yesdukan.de

or tell me what I have to show. I changed nothing in that template manually until installing YUI Tabbed Forum Home

Oh i forgot:

Its (vBulletin 4.2.0 Patch Level 3)

Xcynic 03-08-2013 01:23 PM

Great mod, however I have a question.

If you set Cache Data to YES so the tabs load quicker will this make it so if new posts etc are updated it wont refresh it or what? Like what are the pro's and cons of having it on YES/NO?

fxdigi-cash 03-09-2013 02:07 AM

Quote:

Originally Posted by Baghira (Post 2407544)
Hi there...

I dont understand what I have to do...

maybe you can have a look at yesdukan.de

or tell me what I have to show. I changed nothing in that template manually until installing YUI Tabbed Forum Home

Oh i forgot:

Its (vBulletin 4.2.0 Patch Level 3)

how come??? it is straight forward mod...

ok, here you are again, make sure you follow the instructions step by step:


Code:

> STEP 1: Upload Files located in the UPLOAD FOLDER to your FORUM ROOT i.e. vb.
Code:

> STEP 2: Import Product XML File (product-edugeek_tfh)
Code:

STEP 3: change the coding in your templates as the following:

find through search template in you admin cp: FORUMHOME

find the code: </head> and directly above it, insert the following code:

<!-- Tabbed Forum Home Header Code 4.0.8 -->
<link rel="stylesheet" type="text/css" href="{vb:raw vboptions.bburl}/tfh/tabview.css" />
<link rel="stylesheet" type="text/css" href="{vb:raw vboptions.bburl}/tfh/skin-tfh.css" />
<!-- TFH JS -->
<script type="text/javascript">
<!--
if (remoteyui)
{
document.write('<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/tfh/dispatcher-min.2.2.js"></script>');
document.write('<script type="text/javascript" src="http://yui.yahooapis.com/2.9.0/build/element/element-min.js"></script>');
document.write('<script type="text/javascript" src="http://yui.yahooapis.com/2.9.0/build/tabview/tabview-min.js"></script>');
}
else
{
document.write('<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/tfh/dispatcher-min.2.2.js"></script>');
document.write('<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/yui/element/element-min.js"></script>');
document.write('<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/yui/tabview/tabview-min.js"></script>');
}
//-->
</script>
<!-- /Tabbed Forum Home Header Code -->

Code:

> step4: find the code <!-- main --> in template FORUMHOMETAB replace whatsoever between <!-- main --> and <!-- /main --> with the following code:

<!-- main -->
{vb:raw template_hook.forumhome_above_forums}
<!-- Tabbed Forum Home -->
<div id="forumhome_container" style="margin-top:5px"> </div>
<script type="text/javascript"> {vb:raw eg_tfh} </script>
<!-- /Tabbed Forum Home  -->
{vb:raw template_hook.forumhome_below_forums}
<!-- /main -->

Code:

> Step5: find the template forumhome_forumbit_level1_nopost and insert the following code on the top of it

######################### INSERT AT THE START >>> ---------------

<vb:if condition="(THIS_SCRIPT=='indexTFH' AND (in_array($forum['forumid'], $_REQUEST['tabcat']) OR in_array('all', $_REQUEST['tabcat']))) OR (THIS_SCRIPT=='forumdisplay') OR (THIS_SCRIPT=='index')">

######################### INSERT AT THE END >>> ------------

</vb:if>

Code:

> Step5: find the template forumhome_forumbit_level1_post and insert the following code on top of it as well:

######################### INSERT AT THE START >>> ---------------

<vb:if condition="(THIS_SCRIPT=='indexTFH' AND (in_array($forum['forumid'], $_REQUEST['tabcat']) OR in_array('all', $_REQUEST['tabcat']))) OR (THIS_SCRIPT=='forumdisplay') OR (THIS_SCRIPT=='index')">

######################### INSERT AT THE END >>> ------------

</vb:if>

now if your forums disappeared, then you did it right... and then all you have to do is to create tabs for your forums... READ the file How to Configure.txt

Cheers ;)

fxdigi-cash 03-09-2013 02:15 AM

Quote:

Originally Posted by Xcynic (Post 2408788)
Great mod, however I have a question.

If you set Cache Data to YES so the tabs load quicker will this make it so if new posts etc are updated it wont refresh it or what? Like what are the pro's and cons of having it on YES/NO?

This is only what I understand though; I believe this feature used if you are not going to change your forums or sub forums in each tab. meaning if you won't add or delete forums or sub forums, this feature is going to be useful and speed up the page loading...

how does it work?? it catches a copy of your forums and subforums in each tab this property used and re-use it again whenever a user reload the page; it works like a snapshot of your forum look, but never change anything even if you added new forums or subforums...

so it is always preferred to deactivate this feature if you have forums or subforums changed from time to time...

I hope this helps.

vimarc 03-10-2013 10:44 AM

It is possible to show only selected forum rest hide

fxdigi-cash 03-15-2013 07:09 PM

Quote:

Originally Posted by vimarc (Post 2409133)
It is possible to show only selected forum rest hide

of course you. This mod if worked correctly, it will hid all forums till you create tab for each forum to show up... so you can hide all forums if you like and show only one forum...

MagicPID 03-16-2013 04:22 AM

Does anyone know how to make this work with social groups? I'm using this mod https://vborg.vbsupport.ru/showthread.php?t=221581


All times are GMT. The time now is 09:07 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.02440 seconds
  • Memory Usage 1,776KB
  • 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
  • (9)bbcode_code_printable
  • (3)bbcode_php_printable
  • (6)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
  • (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