PDA

View Full Version : Collapse Sidebars of vBA CMS


Milad
02-20-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/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 https://vborg.vbsupport.ru/images/smoothblue/buttons/installed.gif (https://vborg.vbsupport.ru/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 (https://vborg.vbsupport.ru/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, 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
How'd you get your cmps to show up throughout your forum?

RTFM over at vbadvanced! :rolleyes:

Milad
02-22-2006, 11:07 PM
1.0.1 released

fyjpm
02-23-2006, 09:42 PM
This is very nice! can you add in the functionality shown on this page?
http://template.joomlart.com/ja_capella/index.php?jos_change_template=ja_capella_ii

(Click the "Right Panel" image at the top)

Basically it uses javascript to "slowly" hide the column...its looks very cool and also saves the state with cookies.

Would be a nice addition.

Milad
02-24-2006, 05:31 AM
Actually I cann't
Because I use the built-in function of vBulletin.
We may change the whole function in vBulletin to act as you demand.
But I had no time to do that nowdays, I have other projects.

Slave
04-25-2006, 04:12 AM
Hi Milad :)

This is a great little hack and I've been using it for a while now. In IE it works as advertised but with Safari 2.0.3 on Mac 10.4.6 the arrows seem to go out of whack.

See attached to see what I mean ..

Milad
04-25-2006, 02:23 PM
Does it work? I mean the problem is in the appearance only not in the function, true?
I have the same problem with FireFox I'll try to solve it by changing the XHTML syntaxes.

See you

Slave
04-26-2006, 12:01 PM
Does it work? I mean the problem is in the appearance only not in the function, true?
I have the same problem with FireFox I'll try to solve it by changing the XHTML syntaxes.

See you
Oh yes, it still works as it should .. it just doesn't look pretty ;)

Any update you do to fix this would be cool .. thanks :)

Milad
04-28-2006, 12:11 PM
OK I'll fix it after my exams.

TenPercenter
12-30-2006, 02:23 AM
Who has this installed? Can you show us please so we can demo the fucntionality?

Mr. Brian
01-02-2007, 03:02 AM
Cool.. /me clicks install.

Mr. Brian
01-02-2007, 03:06 AM
If you have any suggestion (features or appearance), feel free and don't hesitate.
As for appearance suggestion, it'd be cool if you could make it something look like this: http://www.vbstyles.com/forum/index.php (looking button "Sidebar")

Slave
01-02-2007, 08:33 PM
Who has this installed? Can you show us please so we can demo the fucntionality?
I have it installed .. but I've got it turned off.

I'll turn it on again for the next couple of days so you can take a look ..

www.yaxleyvillage.com

It looks fine in IE .. but the firefox/safari problem, mentioned above, still hasn't been fixed.

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

I mean to enable or disable vBAdvanced columns...

TenPercenter
09-12-2009, 02:20 PM
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.