vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v3.x & 2.x > Modifications (version 3.x & 2.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2006, 02:03 AM
Milad Milad is offline
Member
 
Join Date: Jan 2006
Posts: 36
Smile Collapse Sidebars of vBA CMS (1.0.1)

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]width="$vba_style[portal_leftcolwidth]"[/html]
      Replace with:
      [html]width="$vba_style[portal_leftcolwidth]" id="collapseobj_left_sidebar" style="{$vbulletin->left_sidebar_style}"[/html]
    2. Find:
      [html]width="$vba_style[portal_rightcolwidth]"[/html]
      Replace with:
      [html]width="$vba_style[portal_rightcolwidth]" id="collapseobj_right_sidebar" style="{$vbulletin->right_sidebar_style}"[/html]
    3. Find:
      [html]$home[centerblocks][/html]
      Add above:
      [html]<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>[/html]
  4. Click 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.
Attached Images
File Type: gif 3.gif (25.1 KB, 697 views)
File Type: gif 2.gif (5.4 KB, 651 views)
Attached Files
File Type: zip Collapse Sidebars of vBA CMS.zip (47.8 KB, 138 views)

Last edited by Milad; 02-22-2006 at 08:46 PM.
Reply With Quote
  #2  
Old 02-21-2006, 02:06 AM
Milad Milad is offline
Member
 
Join Date: Jan 2006
Posts: 36
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Get Support HERE
Reply With Quote
  #3  
Old 02-21-2006, 02:23 AM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

I assume this is for people that have integrated a sidebar into the forum pages themselves e.g. forums/index.php, forums/forumdisplay.php, and forums/showthread.php, Yada Yada.

I know, stupid question, but...
__________________



Reply With Quote
  #4  
Old 02-21-2006, 02:26 AM
Milad Milad is offline
Member
 
Join Date: Jan 2006
Posts: 36
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Yes you'r right

Thread updated.
Reply With Quote
  #5  
Old 02-22-2006, 08:47 PM
Milad Milad is offline
Member
 
Join Date: Jan 2006
Posts: 36
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

1.0.1 released.
Reply With Quote
  #6  
Old 03-02-2006, 11:18 PM
Slave Slave is offline
Member
 
Join Date: Jan 2005
Posts: 75
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Very nice .. thanks for releasing ..

A suggestion .. Can you make it to remember each collapse per page?
Reply With Quote
  #7  
Old 03-03-2006, 05:00 AM
gothic1213's Avatar
gothic1213 gothic1213 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 107
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Wonderful hack, I have it installed and my members think very highly of it.
One question though, how come in Firefox the images appear as in your screenshots, to each side of the centreblock, but in IE they appear just above the centreblock??
Not a problem or error, just curious.
__________________

Patience is something I learned the hard way!
I drove National Express coaches for 6 years....
Reply With Quote
  #8  
Old 03-03-2006, 04:17 PM
Milad Milad is offline
Member
 
Join Date: Jan 2006
Posts: 36
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Quote:
Originally Posted by Slave
Very nice .. thanks for releasing ..

A suggestion .. Can you make it to remember each collapse per page?
This will require you to collapse each page.
I think it is not good to do.
Reply With Quote
  #9  
Old 03-03-2006, 04:24 PM
Milad Milad is offline
Member
 
Join Date: Jan 2006
Posts: 36
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Quote:
Originally Posted by gothic1213
Wonderful hack, I have it installed and my members think very highly of it.
One question though, how come in Firefox the images appear as in your screenshots, to each side of the centreblock, but in IE they appear just above the centreblock??
Not a problem or error, just curious.
It designed to appear above the central block, and it looks different in FF.
I think it looks better in IE.

In the next version, appearance will be united.
Reply With Quote
  #10  
Old 03-03-2006, 04:50 PM
gothic1213's Avatar
gothic1213 gothic1213 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 107
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Quote:
Originally Posted by Milad
In the next version, appearance will be united.
Very good news, I look forward to it. Thankyou.
__________________

Patience is something I learned the hard way!
I drove National Express coaches for 6 years....
Reply With Quote
  #11  
Old 03-27-2006, 04:22 AM
gothic1213's Avatar
gothic1213 gothic1213 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 107
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Any news on the update for this brilliant mod ??
__________________

Patience is something I learned the hard way!
I drove National Express coaches for 6 years....
Reply With Quote
  #12  
Old 06-23-2006, 12:10 PM
WAR WAR is offline
Member
 
Join Date: Aug 2004
Posts: 35
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

does this work on the front portal page? (non-vbulletin pages)
Reply With Quote
  #13  
Old 05-24-2007, 03:16 AM
Carsten Carsten is offline
Member
 
Join Date: Feb 2005
Posts: 56
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

This Hack doesn´t works with CMPS 3.0...

The adv_portal-template-code was changed at 3.0. Now the sidebar collapsed, but by clicking on another forumsite (or refreshing the site) the sidebar will be showing up automatically... I tried to edit the template, but it doesn´t works.

Can you make this hack compatible to CMPS 3.0, please!?
Reply With Quote
  #14  
Old 06-03-2007, 12:07 AM
Gri's Avatar
Gri Gri is offline
Junior Member
 
Join Date: Sep 2004
Posts: 29
Default Re: [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)

Is there any way to make it as an option in User CP?

I mean to enable or disable vBAdvanced columns...
__________________
Aure entuluva!

http://www.dipsizkuyu.net - Turkey's fountain of knowledge.
Reply With Quote
  #15  
Old 02-08-2009, 10:05 AM
paintballer.ie paintballer.ie is offline
Member
 
Join Date: Jan 2009
Posts: 61
Default

Seems to work ok for me in 3.0.1 . State of column is remember upon page refresh.

The only thing need to work on is the spacing when the column is expanded.
Reply With Quote
  #16  
Old 05-05-2009, 05:13 AM
Fuzzy Orange Fuzzy Orange is offline
Member
 
Join Date: May 2005
Posts: 30
Default

Quote:
Originally Posted by Carsten View Post
This Hack doesn´t works with CMPS 3.0...

The adv_portal-template-code was changed at 3.0. Now the sidebar collapsed, but by clicking on another forumsite (or refreshing the site) the sidebar will be showing up automatically... I tried to edit the template, but it doesn´t works.

Can you make this hack compatible to CMPS 3.0, please!?
I'm getting the same problem

Please can anyone help - this is a BRILLIANT Hack that needs updating
Reply With Quote
  #17  
Old 08-11-2009, 11:11 AM
Mr Gixxer Mr Gixxer is offline
Junior Member
 
Join Date: Mar 2006
Posts: 8
Default

no updates to this?
Reply With Quote
  #18  
Old 09-12-2009, 11:20 AM
TenPercenter TenPercenter is offline
Junior Member
 
Join Date: Jan 2006
Posts: 9
Default

Is there a way to set permissions per usergroup for this hack? I'd like to reward a certain usergroup with being able to collapse sidebars, whereas regular and gu3ests cannot collapse.
__________________
Greg Cagle
Site Admin
http://www.ChipTalk.net
Reply With Quote
  #19  
Old 05-29-2010, 11:13 PM
Arwany Arwany is offline
Junior Member
 
Join Date: May 2010
Posts: 1
Default

Hey guys,

Anyone who got a solution, please share it!

Thanks for those who tried.
------------------------------------
Smile, life is tooooooooo short!
Ammar,
Syrian Clinic Medical Information Guide
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
left sidebar in Links CSS59 "How Do I..." Questions 6 08-04-2005 01:51 PM
Flash Header & Left SideBar DGTLMIK Troubleshooting / "How do I..." Questions 5 04-07-2005 05:41 PM
SideBar to the left of the Breadcrumb Bar DGTLMIK Troubleshooting / "How do I..." Questions 5 02-17-2005 03:49 PM
Opinions needed - collapsable left sidebar Alan @ CIT Add-On Modules & Modifications 3 01-03-2005 12:13 PM
Left sidebar on forum home doesn't work golfrewind Troubleshooting / "How do I..." Questions 7 07-25-2004 09:43 PM


All times are GMT -4. The time now is 03:06 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.