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 - Cel Forum Sidebar: enable sidebar for IE 6, disable collapsing (https://vborg.vbsupport.ru/showthread.php?t=247361)

cellarius 07-26-2010 10:00 PM

Cel Forum Sidebar: enable sidebar for IE 6, disable collapsing
 
1 Attachment(s)
You may not even have noticed, but the forum sidebar does not work for IE6 at all in vB4.0.x. This, obviously, is bad for ad revenue, or if you offer important or convenient information there. Second, if you show ads on a per view basis, you may get problems if you allow collapsing: The ad is actually fully loaded, but then hidden from the view of the user.

What does this mod do?
  • Lets you choose to disable the collapse feature of the Forum Sidebar.
  • Can enable Forum Sidebar for IE 6
How to install it (2 easy steps)?
  • Step 1: Do the template edits given below (if you're using TMS, skip this step!)
  • Step 2: upload product file
Code:

Template edits:

Template FORUMHOME, search for
--------------------------------------------------------------------------------
    <vb:if condition="$show['sidebar']">
    <script type="text/javascript" src="{vb:stylevar  yuipath}/animation/animation-min.js?v={vb:raw  vboptions.simpleversion}"></script>
--------------------------------------------------------------------------------

replace with
--------------------------------------------------------------------------------
    <vb:if condition="$show['sidebar'] AND $show['cel_sidebar']">
    <script type="text/javascript" src="{vb:stylevar  yuipath}/animation/animation-min.js?v={vb:raw  vboptions.simpleversion}"></script>
--------------------------------------------------------------------------------



Template FORUMHOME, search for
--------------------------------------------------------------------------------
        <a id="sidebar_button_link" href="#">
            <vb:if condition="$show['sidebarposition'] == 'left'">
            <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
            <vb:else />
            <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
            </vb:if>
        </a>
--------------------------------------------------------------------------------

replace with
--------------------------------------------------------------------------------
<vb:if condition="$show['cel_sidebar']">
        <a id="sidebar_button_link" href="#">
            <vb:if condition="$show['sidebarposition'] == 'left'">
            <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
            <vb:else />
            <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
            </vb:if>
        </a>
</vb:if>
--------------------------------------------------------------------------------




Configuration
The two settings for this mod can be found at:
AdminCP->Settings->Options->Forum Sidebar and Block Options
Enable for IE6: yes/no
Allow collapsing: yes/no


Please note:
I do not support any styling or functionality issues the sidebar may have or cause in IE6.

### Don't forget to click install! ###
(No support if you don't)

cellarius 07-26-2010 11:17 PM

Reserved.

Floris 07-26-2010 11:33 PM

Good job :D

slinky 07-26-2010 11:38 PM

Quote:

Originally Posted by Floris (Post 2075010)
Good job :D

I should have known you'd be the first here to bow down in praise. LOL. Just kidding. Nice work and much appreciated.:D

cellarius 07-26-2010 11:53 PM

Quote:

Originally Posted by Floris (Post 2075010)
Good job :D

Thanks, Floris :)

Sal Collaziano 07-28-2010 03:09 PM

All we need now is the ability to display the sidebar across all forum pages instead of just forumhome...

Front Range 07-28-2010 11:45 PM

Very nice, thank you!

One thing I noticed is that there's no config for cndgarage otherwise very useful.

Installed - Rated - Nominated

Sal Collaziano 07-31-2010 06:42 AM

In regards to disabling collapsing, I find it only works on the forum homepage. When you have the "Everywhere Sidebar" mod installed, this one doesn't cover the collapse button on those pages.. Does anyone have an idea on how to get that working?

cellarius 07-31-2010 07:26 AM

But enabling for IE6 works? I should be quite surprised, since my mod only is executed on forumhome. Sorry, I have not looked at that other mod, so I don't know how it works and whether it could be made to collaborate with mine.

TheLastSuperman 09-14-2010 12:27 AM

Simple and effective, thanks :D


All times are GMT. The time now is 12:34 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.01112 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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