PDA


View Full Version : [Hack] Collapse Left Sidebar of vBA CMS (1.0.0)


Milad
02-21-2006, 03:03 AM
Version: 1.0.1
vB Version: 3.5.2
Assuming that you have vBAdvanced Version: 2.1.0 with this integration (http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6) 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 (http://www.vbulletin.org/forum/member.php?u=82891)

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:
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".

Upload 4 images (left_vbacollapse.gif, left_vbacollapse_collapsed.gif, right_vbacollapse.gif and right_vbacollapse_collapsed.gif) to forum/images/buttons directory.

In adv_portal template do
Find:
width="$vba_style[portal_leftcolwidth]"
Replace with:
width="$vba_style[portal_leftcolwidth]" id="collapseobj_left_sidebar" style="{$vbulletin->left_sidebar_style}"
Find:
width="$vba_style[portal_rightcolwidth]"
Replace with:
width="$vba_style[portal_rightcolwidth]" id="collapseobj_right_sidebar" style="{$vbulletin->right_sidebar_style}"
Find:
$home[centerblocks]
Add above:
<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>


Click http://www.vbulletin.org/forum/images/smoothblue/buttons/installed.gif (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=108510) to receive updates.
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 (http://www.vbulletin.org/forum/showpost.php?p=906363&postcount=7). (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, 03:06 AM
Get Support HERE (http://www.vbulletin.org/forum/showthread.php?t=108510)

tomshawk
02-21-2006, 03:23 AM
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...

Milad
02-21-2006, 03:26 AM
Yes you'r right

Thread updated.

Milad
02-22-2006, 09:47 PM
1.0.1 released.

Slave
03-03-2006, 12:18 AM
Very nice .. thanks for releasing .. :)

A suggestion .. Can you make it to remember each collapse per page?

gothic1213
03-03-2006, 06:00 AM
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. :confused::confused:

Milad
03-03-2006, 05:17 PM
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.

Milad
03-03-2006, 05:24 PM
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. :confused::confused:

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.

gothic1213
03-03-2006, 05:50 PM
In the next version, appearance will be united.

Very good news, I look forward to it. Thankyou.
:D

gothic1213
03-27-2006, 05:22 AM
Any news on the update for this brilliant mod ??
:D:D

WAR
06-23-2006, 01:10 PM
does this work on the front portal page? (non-vbulletin pages)

Carsten
05-24-2007, 04:16 AM
:( 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!? :)

Gri
06-03-2007, 01:07 AM
Is there any way to make it as an option in User CP?

I mean to enable or disable vBAdvanced columns...