Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Collapse Sidebars of vBA CMS Details »»
Collapse Sidebars of vBA CMS
Version: 1.0.1, by Milad Milad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 02-20-2006 Last Update: 02-22-2006 Installs: 23
Uses Plugins Template Edits
Additional Files  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-22-2006, 11:07 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.0.1 released
Reply With Quote
  #13  
Old 02-23-2006, 09:42 PM
fyjpm's Avatar
fyjpm fyjpm is offline
 
Join Date: Oct 2005
Location: Buffalo, NY
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is very nice! can you add in the functionality shown on this page?
http://template.joomlart.com/ja_cape...=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.
Reply With Quote
  #14  
Old 02-24-2006, 05:31 AM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 04-25-2006, 04:12 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ..
Reply With Quote
  #16  
Old 04-25-2006, 02:23 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 04-26-2006, 12:01 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad
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
Reply With Quote
  #18  
Old 04-28-2006, 12:11 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I'll fix it after my exams.
Reply With Quote
  #19  
Old 12-30-2006, 02:23 AM
TenPercenter's Avatar
TenPercenter TenPercenter is offline
 
Join Date: Sep 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Who has this installed? Can you show us please so we can demo the fucntionality?
Reply With Quote
  #20  
Old 01-02-2007, 03:02 AM
Mr. Brian's Avatar
Mr. Brian Mr. Brian is offline
 
Join Date: Jan 2003
Location: Internet
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool.. /me clicks install.
Reply With Quote
  #21  
Old 01-02-2007, 03:06 AM
Mr. Brian's Avatar
Mr. Brian Mr. Brian is offline
 
Join Date: Jan 2003
Location: Internet
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
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")
Reply With Quote
Reply


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


All times are GMT. The time now is 02:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05614 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete