vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Permanent Sidebar (instead of collapsable) (https://vborg.vbsupport.ru/showthread.php?t=242983)

Sal Collaziano 05-20-2010 04:40 PM

Permanent Sidebar (instead of collapsable)
 
Is there any modification available that'll shut down the capability to close the forum front page sidebar AND allow it to display on every page? I typically like to display ads there (so do many others) and vendors aren't going to be interested if:

1. They only appear on the main forum listing page
2. They're collapsable at that!

Thanks in advance...

borbole 05-20-2010 04:47 PM

You can remove the image that allowes users to close the blocks and it will be unrevomable then. Give it a try and see if it does what you want, unless I misunderstood you.

At the FORUMEHOME template find and remove the following code or comment it out.

HTML Code:

<a id="sidebar_button_link" href="#">
                        <vb:if condition="$show['sidebarposition'] == 'left'">
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
                        <vb:else />
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
                        </vb:if>
                </a>


You can also make it so it can affect certain usergroups only by using the template conditionals here:

https://vborg.vbsupport.ru/showthread.php?t=231525

Sal Collaziano 05-21-2010 07:06 PM

Thank you! Yes, that did work nicely! Now there's ONE more button at the top of the sidebar that allows one to kinda "bring up" the sidebar so you can't see anything..

Other than that, I'm just looking for a way to get this sidebar to display on the thread listing page as well as the page with the actual discussion on it - and not just on the forum home page... Thanks again!

borbole 05-21-2010 07:08 PM

Quote:

Originally Posted by Sal Collaziano (Post 2041600)
Thank you! Yes, that did work nicely! Now there's ONE more button at the top of the sidebar that allows one to kinda "bring up" the sidebar so you can't see anything..

Other than that, I'm just looking for a way to get this sidebar to display on the thread listing page as well as the page with the actual discussion on it - and not just on the forum home page... Thanks again!

You are welcome.

What button is that? Can you post a screenshot?

Sal Collaziano 05-21-2010 08:32 PM

1 Attachment(s)
Quote:

Originally Posted by borbole (Post 2041602)
You are welcome.

What button is that? Can you post a screenshot?

Yes, here it is... Look at the top right corner...

borbole 05-21-2010 08:39 PM

Quote:

Originally Posted by Sal Collaziano (Post 2041623)
Yes, here it is... Look at the top right corner...

Have a look at my post here for that:

https://vborg.vbsupport.ru/showpost....0&postcount=13

There it is for the new post block but the same procedure should be followed for the other block templates as well. All you have to do is find the <a class="collapse" part as in the example above and either remove that block of code or comment it out.

Taurus MFF 06-05-2010 05:57 PM

Quote:

Originally Posted by borbole (Post 2040681)
You can remove the image that allowes users to close the blocks and it will be unrevomable then. Give it a try and see if it does what you want, unless I misunderstood you.

At the FORUMEHOME template find and remove the following code or comment it out.

HTML Code:

<a id="sidebar_button_link" href="#">
                        <vb:if condition="$show['sidebarposition'] == 'left'">
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
                        <vb:else />
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
                        </vb:if>
                </a>


You can also make it so it can affect certain usergroups only by using the template conditionals here:

https://vborg.vbsupport.ru/showthread.php?t=231525

any users who had the sidebar collapsed before commenting out the code will have a blank space where the sidebar should be located.

how do we force the sidebar to re-open for those who had it closed and can no longer click the collapse/expand button?

borbole 06-06-2010 10:15 AM

Quote:

Originally Posted by Taurus MFF (Post 2048884)
any users who had the sidebar collapsed before commenting out the code will have a blank space where the sidebar should be located.

how do we force the sidebar to re-open for those who had it closed and can no longer click the collapse/expand button?

That is strange. I tried it at my test forum right now and I couldn''t reproduce the issue that you are getting. The sidebar closes fine without any blanc space when disabling the collapse button.

Can you try to undo the edit, disable the forum sidebar/s, then re-enable them again and re-do the edit that hides the collapse button and see if it would help.

Taurus MFF 06-06-2010 03:05 PM

since we're discussing this on vb.com we might as well keep that in one place.

here's the link if anyone is following this issue

http://www.vbulletin.com/forum/showt...88#post1989988


All times are GMT. The time now is 09:33 PM.

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.01949 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete