vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Collapse Sidebars of vBA CMS (https://vborg.vbsupport.ru/showthread.php?t=108510)

Milad 02-20-2006 10:00 PM

Collapse Sidebars of vBA CMS
 
Version: 1.0.1
vB Version: 3.5.2
Assuming that you have vBAdvanced Version: 2.1.0 with this integration installed.

Description: Give your users an option to collapse the sidebars of your integrated vBulletin Forum & vBAdvanced CMS.
Details: 1 Template Change and 1 Product XML (with 1 Plugin, 2 Settings, 4 Phrases and 0 Template).
Difficulty: very easy (plugin product and one template change).

Author: Milad

Upgrading: If you upgrade from 1.0.0, I prefare you uninstall the product (Because the product ID was changed) and revert adv_portal template, then reinstall it as the following instructions.

Installation:
  1. Import product-collapse_sidbars_vba.xml into your PRODUCTS by going to
    Plugin System -> Manage Products -> Add/Import Product
    IF YOU ARE UPGRADING, be sure to set "Allow Overwrite" to "Yes".
  2. Upload 4 images (left_vbacollapse.gif, left_vbacollapse_collapsed.gif, right_vbacollapse.gif and right_vbacollapse_collapsed.gif) to forum/images/buttons directory.
  3. In adv_portal template do
    1. Find:
      HTML Code:

      width="$vba_style[portal_leftcolwidth]"
      Replace with:
      HTML Code:

      width="$vba_style[portal_leftcolwidth]" id="collapseobj_left_sidebar" style="{$vbulletin->left_sidebar_style}"
    2. Find:
      HTML Code:

      width="$vba_style[portal_rightcolwidth]"
      Replace with:
      HTML Code:

      width="$vba_style[portal_rightcolwidth]" id="collapseobj_right_sidebar" style="{$vbulletin->right_sidebar_style}"
    3. Find:
      HTML Code:

      $home[centerblocks]
      Add above:
      HTML Code:

      <if condition="$show[left_column] and $vboptions[allow_collapse_left_sidebar]">
      <a href="#top" onclick="return toggle_collapse('left_sidebar')" style="float:$stylevar[left]; margin-bottom:2px"><img alt="" border="0" src="$stylevar[imgdir_button]/$stylevar[left]_vbacollapse{$vbulletin->left_sidebar_image}.gif" id="collapseimg_left_sidebar" /></a>
      </if>
      <if condition="$show[right_column] and $vboptions[allow_collapse_right_sidebar]">
      <a href="#top" onclick="return toggle_collapse('right_sidebar')" style="float:$stylevar[right]; margin-bottom:2px"><img alt="" border="0" src="$stylevar[imgdir_button]/$stylevar[right]_vbacollapse{$vbulletin->right_sidebar_image}.gif" id="collapseimg_right_sidebar" /></a>
      </if>

  4. Click https://vborg.vbsupport.ru/images/sm.../installed.gif to receive updates.
  5. Done! Thank you for installing.
Changelog:
  • Feb, 21st 2006: (1.0.0)
    • Initial release
  • Feb, 23rd 2006: (1.0.1)
    • Appearance improved, see this post. (screenshots updated)
    • Add the abbility to collapse both left and right sidebars.
    • Add two options in "Style & Language Settings" to Allow/Disallow Collapsing Left/Right sidebar.
    • Arrows Directions work in both RTL & LTR forums.
    • Hack was renamed "Collapse Left Sidebar of vBA CMS" -> "Collapse Sidebars of vBA CMS".
Support is free-time controlled.

Milad 02-21-2006 04:57 AM

For Future Use.

Lea Verou 02-21-2006 05:09 AM

A screenshot of the option will be asked in the next posts I think :)

Milad 02-21-2006 05:18 AM

I added two screenshots.

If you have any suggestion (features or appearance), feel free and don't hesitate.

XanTrax 02-21-2006 06:11 AM

I didnt know that vBA CMS Showed through out the entire forums but it works for main page :). Thanks for this.

Floris 02-21-2006 10:07 AM

Oh so handy for those who get annoyed with the data over and over again while knowing you only view the middle table :)

Good stuff. tnx 4 sharing :)

Lea Verou 02-21-2006 12:30 PM

:)
You could add some hspace to the images so that they don't "stick" to the sidebar. Also try arrows rather than plus - minus symbols :)

Darth Gill 02-21-2006 04:31 PM

How'd you get your cmps to show up throughout your forum?

Developer 02-21-2006 04:51 PM

well done milad :)
INSTALLED

Lea Verou 02-22-2006 03:00 AM

Quote:

Originally Posted by Darth Gill
How'd you get your cmps to show up throughout your forum?

RTFM over at vbadvanced! :rolleyes:


All times are GMT. The time now is 01:05 AM.

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.01365 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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