Thread: Forum Home Enhancements - [YUI] Tabbed Forum Home
View Single Post
  #673  
Old 10-01-2011, 01:31 PM
bracodesign bracodesign is offline
 
Join Date: Sep 2011
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry my ignorance, I really understand very little of vbulletin, I made it in the editing area as you indicated, but did not understand what I edit. information by editing, I should change the template in 3 parts, the first part I need to enter a code before the tag </ head> right? I found this tag within a "activateform" and insert the code. Is that correct? The second is to modify the content between the <! - Main -> but I can not find the right place.

These are the installation instructions, help me with this part of me showing how to do?

=========================
FORUMHOME TEMPLATE EDIT 1
=========================
INSERT THE BELOW LINE OF CODE RIGHT BEFORE </head>

<!-- Tabbed Forum Home Header Code -->

<!-- TFH CSS -->
<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" />

<!-- YUI Library -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/utilities/utilities.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/tabview/tabview-min.js"></script>

<!-- YUI Library Extension: Dispatcher -->
<script type="text/javascript" src="http://js.bubbling-library.com/2.1/build/dispatcher/dispatcher-min.js"></script>

<!-- /Tabbed Forum Home Header Code -->

=========================
FORUMHOME TEMPLATE EDIT 2
=========================
REPLACE:

<!-- main -->

*all the Default vb CODE between the remarks*

<!-- /main -->

WITH:

<!-- 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 tfh} </script>

<!-- /Tabbed Forum Home -->

{vb:raw template_hook.forumhome_below_forums}

<!-- /main -->

NOTE: IF YOU HAVE CUSTOM <!-- main --> through <!-- /main --> CODE, YOU WILL NEED TO COPY IT AND REPLACE THE DEFAULT CODE IN THE FORUMHOMETAB TEMPLATE

=====================
FORUMHOMETAB TEMPLATE
=====================
THIS IS AUTOMATICALLY CREATED FOR YOU BASED ON DEFAULT VB4.

NOTE: YOU ONLY NEED TO EDIT THIS IF YOU HAVE A CUSTOM STYLE THAT HAS A DIFFERENT FORUMHOME <!-- main --> **CUSTOM CODE** <!-- /main --> CODE

<!-- main -->

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

<!-- /main -->

{vb:raw forumhome_markread_script}

NOTE: IF YOU HAVE A CUSTOM STYLE WITH DIFFERET <!-- main --> **CUSTOM** <!-- /main --> CODE, Replace with your custom code. You do need to leave the last line ( {vb:raw forumhome_markread_script} ) in place tho as that is used for marking the forum(s) as READ.

================================================
forumhome_forumbit_level1_nopost TEMPLATE EDIT 1
================================================
INSERT AT BEGINNING OF TEMPLATE:

<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')">

================================================
forumhome_forumbit_level1_nopost TEMPLATE EDIT 2
================================================
INSERT AT END OF TEMPLATE:

</vb:if>

==============================================
forumhome_forumbit_level1_post TEMPLATE EDIT 1
==============================================
INSERT AT BEGINNING OF TEMPLATE:

<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')">

==============================================
forumhome_forumbit_level1_post TEMPLATE EDIT 2
==============================================
INSERT AT END OF TEMPLATE:

</vb:if>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01880 seconds
  • Memory Usage 1,776KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete