vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Everywhere Sidebar 4 VB4 (https://vborg.vbsupport.ru/showthread.php?t=233871)

almannai 04-23-2010 03:26 PM

Quote:

Originally Posted by Peter Ostry (Post 2025931)
I get the point of the developer but in this case the will of users and designers is definitely to see the sidebar always on all pages. Nobody in the forum actually wants or needs to close the sidebar. But users do it because they can do it, afterwards they forget the meaning of the arrow button and don't find the content they are looking for. They may interpret the button as some graphical ornament or whatever.

---

The suggestion made by chiptz does almost work but unfortunately has a side effect:
Removing the link of the open/close button in 'sidebarext_temp' does not remove it from the start page, where it remains operable. And if you close the sidebar on the start page, it isn't displayed on the subpages. There is just an empty space where the sidebar should be.

Is there something in the FORUMHOME template I could modify to force an open sidebar? Maybe I can set the variable $vboptions['sidebarposition'] permanently to 1 somehow, or is this a matter of the mod itself?

If I just manage to remove the arrow button, I may run into an unsolvable problem, because users whose sidebar is currently collapsed won't have the chance to get it open again. So one of the following methods would be best at the moment:

1) Keeping the sidebar always open, with or without the arrow button. Important is, that the sidebar stays open.

or

2) Forgetting the users sidebar status between sessions. If they really "lose" their sidebar, it should be here again after a new login.

Any hints?

My last option would be to replace the default 'ornamental' arrow button by a text button that tells the user what to do.

Off the top of my head

From the global_start hook on the top search for
PHP Code:

$bbandSBactive=0

replace it with
PHP Code:

$bbandSBactive=1


Let me know how it goes.

Again I don't recommend this change to anybody

Videx 04-23-2010 06:17 PM

Quote:

Originally Posted by Peter Ostry (Post 2025931)
in this case the will of users and designers is definitely to see the sidebar always on all pages. Nobody in the forum actually wants or needs to close the sidebar. But users do it because they can do it, afterwards they forget the meaning of the arrow button and don't find the content they are looking for. They may interpret the button as some graphical ornament or whatever.

So, just because you have a few brain dead users you want to eliminate the option for everyone? That's awfully presumptuous of you. Right this minute I'm browsing with my sidebar collapsed - at work, with a smaller screen and slower connection it makes no sense to have the sidebar open. But when I get home with the larger screen and faster connection I keep it open. Choice!

Be very careful about trying too hard to please a few stupid people. And never assume they're all that stupid until you've actually reminded them how to do it.

ps2wiz 04-24-2010 01:47 AM

Quote:

Originally Posted by Videx (Post 2026095)
So, just because you have a few brain dead users you want to eliminate the option for everyone? That's awfully presumptuous of you. Right this minute I'm browsing with my sidebar collapsed - at work, with a smaller screen and slower connection it makes no sense to have the sidebar open. But when I get home with the larger screen and faster connection I keep it open. Choice!

Be very careful about trying too hard to please a few stupid people. And never assume they're all that stupid until you've actually reminded them how to do it.

Well said.

chiptz 04-24-2010 10:39 PM

Quote:

Originally Posted by Peter Ostry (Post 2025931)
I get the point of the developer but in this case the will of users and designers is definitely to see the sidebar always on all pages. Nobody in the forum actually wants or needs to close the sidebar. But users do it because they can do it, afterwards they forget the meaning of the arrow button and don't find the content they are looking for. They may interpret the button as some graphical ornament or whatever.

---

The suggestion made by chiptz does almost work but unfortunately has a side effect:
Removing the link of the open/close button in 'sidebarext_temp' does not remove it from the start page, where it remains operable. And if you close the sidebar on the start page, it isn't displayed on the subpages. There is just an empty space where the sidebar should be.

Is there something in the FORUMHOME template I could modify to force an open sidebar? Maybe I can set the variable $vboptions['sidebarposition'] permanently to 1 somehow, or is this a matter of the mod itself?

If I just manage to remove the arrow button, I may run into an unsolvable problem, because users whose sidebar is currently collapsed won't have the chance to get it open again. So one of the following methods would be best at the moment:

1) Keeping the sidebar always open, with or without the arrow button. Important is, that the sidebar stays open.

or

2) Forgetting the users sidebar status between sessions. If they really "lose" their sidebar, it should be here again after a new login.

Any hints?

My last option would be to replace the default 'ornamental' arrow button by a text button that tells the user what to do.

Sure, to have the sidebar always on on forum home page find in FORUMHOME and remove:

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>

BTW, one of the good reasons to remove the possibility to collapse the sidebar is if you have advertisments on the collapsible bar. You wouldn'd want to say to your advertisers that you have 1.000.000 views for his ad when in fact half of them is on a collapsed sidebar.

I do think the content of bar is loaded even if it is collapsed. You might just want to be able to put there something that you don't want users to be able to hide it. Or you can just design your site to on specific pages the layout of the page is already considered with a sidebar.

MikeWarner 04-25-2010 08:15 AM

Is there any way to disable this hack completely for a specific style please?

Cedric_FP 04-25-2010 08:54 AM

Would it be possible to expand the hack so that the sidebar is visible in the CMS as well as the blog?

mp4sverige 04-25-2010 09:57 AM

Quote:

Instructions for custom pages:
1. First enable showing sidebar for custom pages from mod options.
1. Where do i find mod options?

2. How do i exclude the sidebar from showing in threads.

Thanks for a great mod.

almannai 04-25-2010 10:21 AM

Quote:

Originally Posted by MikeWarner (Post 2026931)
Is there any way to disable this hack completely for a specific style please?

Not yet..

Quote:

Originally Posted by Cedric_FP (Post 2026939)
Would it be possible to expand the hack so that the sidebar is visible in the CMS as well as the blog?

I don't know if this is possible (required) as cms and blog has its own permenant sidebar.

Quote:

Originally Posted by mp4sverige (Post 2026955)
1. Where do i find mod options?

2. How do i exclude the sidebar from showing in threads.

Thanks for a great mod.

from admincp goto
settings->options-> Everywhere sidebar options
that is for 1 and 2 :)

stained 04-25-2010 12:36 PM

Quote:

Originally Posted by Videx (Post 2026095)
So, just because you have a few brain dead users you want to eliminate the option for everyone? That's awfully presumptuous of you. Right this minute I'm browsing with my sidebar collapsed - at work, with a smaller screen and slower connection it makes no sense to have the sidebar open. But when I get home with the larger screen and faster connection I keep it open. Choice!

Be very careful about trying too hard to please a few stupid people. And never assume they're all that stupid until you've actually reminded them how to do it.

In common with another member I also have ads in my sidebar so I'd like to prevent guests and my non-premium members from collapsing the relevant boxes so there is a need for the facility to hide the collapse buttons.

Many thanks for the mod Allmanai. Could I ask a quick question? I hide other ads from my premium users by wrapping the google script in the following:

PHP Code:

<vb:if condition="!is_member_of($bbuserinfo, 29)">
....
ad script

<vb:if condition="$adsshown[] = 9"></vb:if></vb:if> 

There will no doubt be a simple answer to this question but would you happen to know why the sidebar ads still show despite this code?

Thanks

ranz 04-25-2010 12:43 PM

Awesome mod - well done! :up:


All times are GMT. The time now is 09:05 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.02324 seconds
  • Memory Usage 1,767KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete