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)

Cobra-J82 11-29-2008 03:59 PM

No I dont, I was commenting on the posted pics by the mod.

heXagon 11-30-2008 09:26 PM

I wonder how I can fix the issue, that if there is no Javascript enabled (e.g. NoScript in use), how there can the forums be shown, without the actual tabbing. Any ideas? Or is it solved already? Using 1.5 AJAX'ed version.

CHIPIT 12-01-2008 01:05 AM

Quote:

Originally Posted by heXagon (Post 1676027)
I wonder how I can fix the issue, that if there is no Javascript enabled (e.g. NoScript in use), how there can the forums be shown, without the actual tabbing. Any ideas? Or is it solved already? Using 1.5 AJAX'ed version.

I've done this by loading the forums the regular way, along with the ajax tabbed version, wrapping each in a separate div with the ajax by default being set to hidden, and then using javascript to change the ajax's div to visible and the regular version to be hidden. If this isn't fixed in v2.0 then I could see about posting instructions...

Magnumutz 12-01-2008 09:26 AM

You could do it now... 2.0 might take a while longer...

SteamyLightning 12-01-2008 11:58 AM

Quote:

Originally Posted by CHIPIT (Post 1676126)
I've done this by loading the forums the regular way, along with the ajax tabbed version, wrapping each in a separate div with the ajax by default being set to hidden, and then using javascript to change the ajax's div to visible and the regular version to be hidden. If this isn't fixed in v2.0 then I could see about posting instructions...

Yes, please do post instructions.

wmlvb 12-01-2008 12:37 PM

Quote:

Originally Posted by King Kovifor (Post 1674796)
Only 3 people have v2.0: Me, Bree, and Bob. And once directions are written, it will be rereleased into the wild. :)

King,

I have tried to contact you via PM for service for editing my ajax tabs content and also help with customizing the new ajax forumns for my site! Could you please PM me when you get a chance? Thanks

CHIPIT 12-01-2008 05:37 PM

OK, to get the forums to display without javascript...

1) Open your modified FORUMHOME template

2) Find
Code:

<!-- Tabbed Forum Home -->
and below it put
Code:

<div id="show" style="display:none">
3) Find
Code:

<!-- /Tabbed Forum Home  -->
and above it put
Code:

</div>
4) Find
Code:

<!-- /main -->
and above it put
Code:

<div id="hide">
$forumbits
$forumhome_markread_script
</div>

5) Below
Code:

<!-- /main -->
put
Code:

<script type="text/javascript">
                  function showelement(element) {
            if (document.getElementById) {
                document.getElementById(element).style.display = 'block';
            }
            else {
                if (document.layers) {
                    document.element.display = 'block';
                }
                else {
                    document.all.element.style.display = 'block';
                }
            }
        }
        function hideelement(element) {
            if (document.getElementById) {
                document.getElementById(element).style.display = 'none';
            }
            else {
                if (document.layers) {
                    document.element.display = 'none';
                }
                else {
                    document.all.element.style.display = 'none';
                }
            }
        }

showelement('show');
hideelement('hide');
</script>

6) Go to ACP > Styles and Templates > Template Manager > Edit Templates > forumhome > forumhome_level1_nopost and change the conditional to:
Code:

<if condition="(THIS_SCRIPT == 'tabforumhome' AND in_array($forum['forumid'], $GLOBALS[tabcats])) OR THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'index'">
This is for the AJAX 1.5 version, though it can be changed to work with v1.0.1. If it doesn't work then double check you did everything right. This is unsupported. Please note doing this will load your forums the regular way along side the ajax version, even if you have javascript enabled, but the regular display will be hidden with javascript.

King Kovifor 12-01-2008 08:02 PM

Quote:

Originally Posted by wmlvb (Post 1676419)
King,

I have tried to contact you via PM for service for editing my ajax tabs content and also help with customizing the new ajax forumns for my site! Could you please PM me when you get a chance? Thanks

I have not received a PM, but I don't do custom work. Bob does though, you might want to try him.

heXagon 12-01-2008 08:07 PM

There need to be changes done to forumhome_forumbit_level1_post / forumhome_forumbit_level1_nopost too, for this to work. Any ideas on that?

CHIPIT 12-01-2008 08:55 PM

Quote:

Originally Posted by heXagon (Post 1676649)
There need to be changes done to forumhome_forumbit_level1_post / forumhome_forumbit_level1_nopost too, for this to work. Any ideas on that?

Fixed, sorry. Seems to work with editing forumhome_level1_nopost only, however if you still encounter any trouble apply step 6 to forumhome_level1_post too.


All times are GMT. The time now is 05:08 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.02025 seconds
  • Memory Usage 1,755KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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