![]() |
[YUI] Tabbed Forum Home
Tabbed Forum Home v2.0.0 Beta 1 - YUI Based Tabs
Pulled back and will be re-released at a later date |
Installing v2.0.x is much simpler than any previous version of TFH to install, first, you want to remove the following files and revert changes from previous versions to the templates. Note: You may want to keep the tab's data for reference later.
Step 1: Make Reverts The first step is to revert your forum to not include any tabs, this will be a clean slate for TFH and improve the quality of the installation instructions. Listed below is template edits, file edits, and uploaded files for you to remove and change back to the original. For full reverts needed, please look at the install docs for version 1.0x located in the download package.
Now that you have reverted changes from previous versions, the installation of v2.0 comes next. Step 2: File Uploads You want to upload the following files to your server into the corresponding directory on your server. These files are found in the "UPLOAD" folder of the package. Note: The Uploads folder has a syntax of sorting files into sub-folders. These folders correspond to the default names for folders in a vBulletin installation. The files directly found within the "UPLOAD" folder signify the forum root. Upload the following files:
Step 3: Product Import To do the bulk of the installation, all you need to do is import the file called product_bobster_tfh.xml by following entering the ACP and following this set of links: ACP -> Plugins & Products -> Manage Products -> [Add/Import Product] Once you import the product, it will add a template called "FORUMHOMETAB" to all your styles. This template includes the default template data located within the FORUMHOME template's <!-- main --> comments. Step 4: Template Edits Template: FORUMHOME Find: HTML Code:
</head> HTML Code:
<!-- Tabbed Forum Home Header Code --> OPTION 1: Find: HTML Code:
<!-- main --> HTML Code:
<!-- main --> Find (This is the default template, yours will vary.): HTML Code:
<!-- main --> After you have copied your code, replace the code you copied above (in the FORUMHOME template) with: HTML Code:
<!-- main --> Add this code to the beginning of the template: HTML Code:
<if condition="(THIS_SCRIPT == 'indexTAB' AND in_array($forum['forumid'], $GLOBALS[tabcats]) OR in_array('all',$GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'"> HTML Code:
</if> Find: HTML Code:
<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> HTML Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid$GLOBALS[tabID]')"><img id="collapseimg_forumbit_$forumid$GLOBALS[tabID]" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a> HTML Code:
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"> HTML Code:
<tbody id="collapseobj_forumbit_$forumid$GLOBALS[tabID]" style="{$collapseobj_forumid}"> |
Step 5: Adding Tabs & Modules
Now that you have completed the file uploads, template edits, and product import, you are ready to add tabs and modules. Adding A Tab To add a tab, refresh your ACP and you should see a "Tabs" group in your ACP. Expand this group and click on "Manage Tabs. Click on "[Add Tab]", and fill out the form. The "Tab Name" is what will be displayed within the tab. "Forums" is the forums you want displayed in the tab. Separate items using a comma (",") and no spaces! "Limit tabs to..." is the usergroup permission set up, usage is explained on the form. "Cache Data" tells YUI if it should fetch the data once and cache it so it doesn't reload the data every time a user clicks on the tab. Clicking "Add Tab" will add the tab to your forum home listing. Adding a Module To add a module you click on the "Manage Modules" link in the "Tabs" group. Click on the "Add Module" and fill out the form, it is basically the same as tabs except for the fact that you must specify a file name. The "Enable Module" option will specify whether or not you want the module to display. Disabled modules are not deleted, they just will not show on the forum home with the rest of your tabs. |
Additional Features Info - Coming Soon
|
Enhancements/Modifications/Integration with other Mods - Coming Soon!
|
Add on Content Modules - Coming Soon!
|
Man is it nice to say this is released!
Also, our bug tracker is now public. You may view the current bugs in 2.0 (that we know of!) by clicking this link: http://www.smnlikdat.org/project.php...ssuetypeid=bug |
Woo Hoo! :D
Okay, now gotta get to work on this ;) |
Code:
Warning: require_once(includes/class_yui.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\vb\index.php(565) : eval()'d code on line 1 |
Quote:
|
Oh crap, I just knew I was forgetting something, I had class_yui.php on the server due to it being used by an internal mod!!!!
|
ok, ZIP File has been updated with the missing file.... sorry about that!
|
Great work Bobbo and double K :)
|
Quote:
|
now i get this error -> Content Encoding Error :S
|
I'm still working on this, but it's thrown my style for a loop :(
I have a custom style, but I found the code within OPTION 1 to change, so went that route. I might need some help :) |
Arny, Option 2 is the option for you.
Rob, can you provide more details as to where you received the error, what you were doing when you got the error and a screenshot if possible. This will help us, help you! |
When I attempt to edit forumhome_forumbit_level1_nopost I get....
Code:
The following error occurred when attempting to evaluate this template: |
Hmm, while the mod still seems to be functioning fine, when applying the conditional to forumhome_forumbit_level1_nopost and forumhome_forumbit_level1_post, PHP throws out the following error
PHP Code:
|
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
Now, after I went through and did all the edits, the top of my style has this code multiple times.... Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1 |
Thanks, I am on one of the most useful devices I have ever bought from Apple and they fail to have copy and paste. Keep track of the issue, I may request some speciic info like vBulletin version, your customized template and so forth.
|
KK, I can't turn my forums back on with this the way it is. Should I just go back and uninstall things and then try again when we fix that?
|
Quote:
I hate to say it, but yes. I get home around 3:30 eastern us time and will do my he and look into this! Hopefully this doesn't take long to resolve. |
KK, I just upgraded to 3.7.4, but I get the same message at the top of the forum home. Just an FYI
|
So glad it is now YUI :)
You can group YUI files for faster load and one single call just FYI with YUI website. Would be nice to see an option for this rather then local files which is slower. I understand having them local on server but just like vB gives the option to grab from YUI directly or files on server would be nice to see this option. As calling from YUI and grouping is faster and always up to date and to change versions you just change the 2.6.0 to whatever instead of doing complete overhaul of mod with new files to upload. Code:
http://yui.yahooapis.com/combo?2.6.0/build/yahoo-dom-event/yahoo-dom-event.js&2.6.0/build/connection/connection-min.js About to load and test 2.0.0 very excited about YUI thought I was going to have to code one YUI for sites but now you did it thank you saves me a lot of time. http://developer.yahoo.com/yui/articles/hosting/ |
ArnyVee, I believe I have narrowed it down to a specific problem, and plan on looking at possible changes tomorrow. The issue chipit posted will include a patch file soon (if I can figure svn diff out).
Awj, I know about that, but for some reason the tfh only seems to work in the specific order we have. And we don't use only YUI files for the tabs. ;) |
I got ya Just the header file you have is 4 files and 2 css styles all which can be grouped to a single call. Will show you real easy I already did it to your mod and works perfect already got it installed and working fine so far diving more in in a second. Helps a LOT to have TMS as I just had to turn off the template edits from TMS to install new one was very easy and very nice recommend that to everyone.
Ok back to testing I go will let you know if anything comes up. GREAT WORK AGAIN BY THE WAY MUCH APPRECIATED! Also another not big deal is your using old YUI files 2.5.2 is old and some systems where beta at this time 2.6.0 is latest AGAIN not a big issue. |
Quote:
I've gone back and took out the edits that I did with the mod. Unfortunately, I didn't save my template beforehand, so now I have to backtrack and do some diggin' to see how it originally displayed. That's what I get for not backing up! :( I'll keep an eye out for the fix tomorrow. Thanks! |
Quote:
I'm getting the same error to, I've been trying to fix, can't get any results yet.... |
King Kovifor thanks, well i upload all the files and install the product
but when i try to open http://localhost/vb/index.php (my vb demo) i get this error Code:
Content Encoding Error |
will try later, thank you
|
Bob/KK, I already mentioned it to Bree...but, there were some issues with the page going way wide due to Cyb's Sub Forum mod. Bree is working on a fix, but just an FYI. :D
|
Ok, I have reverted my site 'till just before mod installation and it appears something in the includes/class_yui.php is causing the Encoding Error.
|
Quote:
My issue I am having is the tabs are not showing JUST X forum id but showing ALL no matter what I do which is very strange. I went back to full your js everything and same issue so has nothing to do with my doing different js calls. Anyone else getting this issue? No errors just shows all forums no matter what Id's I put. I followed pictures to the T as examples still no go. if you do within plugin: print_r($content); It is showing correct forums and info example: tID=1&tabcat[]=1& tID=2&tabcat[]=1&tabcat[]=47& if you do within plugin: print_r($GLOBALS[tabcats]); It is showing correct forums and info example: Array ( [0] => 1 ) Array ( [0] => 1 , [1] => 47) If you put a direct URL in: http://www.yourdomain.com/tabindex.php?tID=1&tabcat[]=1 It still shows all forums :) Anyone else getting this? All the edits are complete the if statements are there for the check. |
Quote:
It isn't showing "X" Forums, it is showing all of them. And I am getting no spacing between each category, for example it should look like: Quote:
Quote:
|
Quote:
It has to do with if statement: <if condition="(THIS_SCRIPT == 'indexTAB' AND in_array($forum['forumid'], $GLOBALS[tabcats]) OR in_array('all',$GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay'"> if you make it: <if condition="(THIS_SCRIPT == 'indexTAB' AND in_array($forum['forumid'], $GLOBALS[tabcats]))"> It works for the direct forum add tab BUT not the modules. Real weird got it working on one style now but still all the others messed up and NOT working with modules just tabs with forums. |
Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(395) : eval()'d code on line 1
|
All times are GMT. The time now is 05:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|