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)

jj 09-10-2008 04:52 PM

1 Attachment(s)
I like your [AJAX] tabbed approach very much, but unfortunately it is incompatible with custom arranged subforums (vertically aligned) using this mod.

g0dfather1984 09-10-2008 04:57 PM

Quote:

Originally Posted by jj (Post 1619193)
I like your [AJAX] tabbed approach very much, but unfortunately it is incompatible with custom arranged subforums (vertically aligned) using this mod.

I had the same problem, however it was fixed.

Try changing the seperator from a comma to a line break.

RobbieZ 09-10-2008 05:26 PM

RobbieZ clicks install :D

bobster65 09-10-2008 10:14 PM

Quote:

Originally Posted by illithid (Post 1619098)
I searched this entire thread for any issues with javascript being used inside of the ajax tab view. Couldn't find what I was looking for.

Obviously, the problem is javascript is being suppressed by the ajax tab view. Is there a way to work around this?

There is, but its not something that you probably would be interested in .. you can try it tho and see if it works for you... (using the iframe mode)

"an external page can also be fetched and displayed via the IFRAME element instead. This is useful for external pages that either contain JavaScript/ CSS code that doesn't run properly when fetched via Ajax"

This is what to do...

rel="#default|containerid|#iframe": For each tab link that should reveal content when clicked on, add a "rel" attribute inside its link tag with one of three possible values: "#default", id_of_container_div, or "#iframe". This in combination with the link's href attribute determines what external file to fetch, and how to display it. Most commonly you'll be using containerid, which corresponds to the ID of the container DIV on the page in which to load the Ajax fetched content (see Step 2 below). "#default" and "#iframe" on the other hand are both special keywords. "#default" causes the tab to show no external content but instead what's embedded directly inside the container DIV, while #iframe causes the tab to show its content inside an IFRAME tag instead of via Ajax.


Quote:

Originally Posted by g0dfather1984 (Post 1619174)
I have the tabs up for the forums & what not. But there is one that doesn't show up. I have the proper ID for it, but still no luck. Out of 6 different tabs, this is the only one that's not working.

And you are sure that the ID is a Category and not a Forum?

bobster65 09-10-2008 10:20 PM

Quote:

Originally Posted by JVCode (Post 1618501)
Thanks for the prompt reply.

One other question; The current system 'Acquires Content' each time when visiting the forum homepage, regardless of whether you've visited another tab or not, which in turn takes some time to load. Is there a way to make it so the Home Page loads as it normally would, (when the hack isn't installed) and just acquire the content on the categories which aren't on the home page?

That's the best way I could word my problem. Anyone make heads or tales of it? Help appreciated :)

The acquiring content is simply the way this ajax version works.. if you don't want current info, use the first version (its NON AJAX)..

With that said, the new version uses YUI Tab View which drastically speeds up the AJAX process.. night and day difference..

g0dfather1984 09-10-2008 10:43 PM

1 Attachment(s)
Quote:

Originally Posted by bobster65 (Post 1619451)
There is, but its not something that you probably would be interested in .. you can try it tho and see if it works for you... (using the iframe mode)

"an external page can also be fetched and displayed via the IFRAME element instead. This is useful for external pages that either contain JavaScript/ CSS code that doesn't run properly when fetched via Ajax"

This is what to do...

rel="#default|containerid|#iframe": For each tab link that should reveal content when clicked on, add a "rel" attribute inside its link tag with one of three possible values: "#default", id_of_container_div, or "#iframe". This in combination with the link's href attribute determines what external file to fetch, and how to display it. Most commonly you'll be using containerid, which corresponds to the ID of the container DIV on the page in which to load the Ajax fetched content (see Step 2 below). "#default" and "#iframe" on the other hand are both special keywords. "#default" causes the tab to show no external content but instead what's embedded directly inside the container DIV, while #iframe causes the tab to show its content inside an IFRAME tag instead of via Ajax.




And you are sure that the ID is a Category and not a Forum?

Positive. Attachment included.

King Kovifor 09-10-2008 10:58 PM

Quote:

Originally Posted by illithid (Post 1619098)
I searched this entire thread for any issues with javascript being used inside of the ajax tab view. Couldn't find what I was looking for.

First, let me give props to the author of this mod, it is wonderful! Secondly, I have it installed on my forum and decided that I could use it on my home page as well. It works. My problem though, is that if the tab makes a call to a page that has data generated from javascript, the data won't display(while in the tab view). However, if you go directly to the page, outside of the ajax tab, then the data will display.

Obviously, the problem is javascript is being suppressed by the ajax tab view. Is there a way to work around this?

I have added two images, 1 shows the contents of the ajax tab view for my test file, the second image is the actual display when going directly to the test page.

Please contact me through PM with the javascript code and I will work on seeing if it works for YUI and if not will attempt to find a way to fix it for 2.0 as 1.5.x is not currently under development.

illithid 09-11-2008 12:32 AM

Quote:

Originally Posted by King Kovifor
Please contact me through PM with the javascript code and I will work on seeing if it works for YUI and if not will attempt to find a way to fix it for 2.0 as 1.5.x is not currently under development.

Check your inbox, I sent the message. :)

Quote:

Originally Posted by bobster65
There is, but its not something that you probably would be interested in .. you can try it tho and see if it works for you... (using the iframe mode)

"an external page can also be fetched and displayed via the IFRAME element instead. This is useful for external pages that either contain JavaScript/ CSS code that doesn't run properly when fetched via Ajax"

This is what to do...

rel="#default|containerid|#iframe": For each tab link that should reveal content when clicked on, add a "rel" attribute inside its link tag with one of three possible values: "#default", id_of_container_div, or "#iframe". This in combination with the link's href attribute determines what external file to fetch, and how to display it. Most commonly you'll be using containerid, which corresponds to the ID of the container DIV on the page in which to load the Ajax fetched content (see Step 2 below). "#default" and "#iframe" on the other hand are both special keywords. "#default" causes the tab to show no external content but instead what's embedded directly inside the container DIV, while #iframe causes the tab to show its content inside an IFRAME tag instead of via Ajax.

I got a little lost in your explanation of how to implement the use of the iframe. Regardless of that, I don't see how an iframe will actually help with this problem. To explain this a little better, I have a custom vBulletin "powered" page as my home page. I have implemented the ajax tabs into that page. Currently, I can display content in the ajax container, from html, php, css, xml and even a few made up extensions, by direct linking of the tab to the external file. Pages with code that isn't javascript will display, but the javascript fails.

bobster65 09-11-2008 01:12 AM

Quote:

Originally Posted by illithid (Post 1619538)
Check your inbox, I sent the message. :)


I got a little lost in your explanation of how to implement the use of the iframe. Regardless of that, I don't see how an iframe will actually help with this problem. To explain this a little better, I have a custom vBulletin "powered" page as my home page. I have implemented the ajax tabs into that page. Currently, I can display content in the ajax container, from html, php, css, xml and even a few made up extensions, by direct linking of the tab to the external file. Pages with code that isn't javascript will display, but the javascript fails.

I know exactly what you are talking about.. I have two other mods for vBa that are Tabbed Content Modules and the same thing applies since they all use the same ajax.js file .... a lot of JS doesn't not play well with AJAX....

btw, tts easy... in the LI tag for the specific tab, there is a REL attribute.. replace the attribute with #iframe (see below)

Code:

<li><a href="mycustomfile.php" rel="#iframe">TAB NAME</a></li>

HagbardCeline 09-11-2008 06:58 PM

really great add-on! i use this modification like a menu :rolleyes:

http://forum.bf3-community.com


All times are GMT. The time now is 12:53 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.02596 seconds
  • Memory Usage 1,763KB
  • 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_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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