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)
-   -   Miscellaneous Hacks - Sidebar Anywhere (Formerly Sidebar for Activity Stream) by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=283307)

djbaxter 07-12-2012 09:55 PM

1 Attachment(s)
Quote:

Originally Posted by Hippy (Post 2331746)
@ BirdOPrey5
cosmetically the sidebar is a tad high compared to the forum home
works perfect tho..
thanks

Quote:

Originally Posted by BirdOPrey5 (Post 2338722)
Looks like it is a little off (6 pixels) due to your custom style.

Go to plugin manager and edit the AS Sidebar Edits plugin.

Find the instance of:
Code:

42px
ans chabe it to

Code:

36px

This looks fine on a new custom style forum EXCEPT on forum home where it's too low. How can I move it up as in the second attached image?

PattiOz 07-12-2012 10:16 PM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2347240)
1) That is by design- why add code to do something vbulletin already does itself?

2) Never heard of vertical collapse. The option to disable the one collapse I know of (best described as Horizontal) is in the mod settings: Show Collapse Button -> No.

1) point taken :)

2) The vertical collapse is attached. It is probably a global setting somewhere - it is the same collapse button as the forums. I just need to find out where it is and turn it off.

BirdOPrey5 07-13-2012 03:08 PM

Ahhh... those are collapses for each individual forum block. In my tests it is remembering individual collapsed blocks between pages which is good.

But I've never seen an option to disable them- do you have them disabled on the Forum Index sidebar somehow?

Looking at the various block_* templates...

This one for example:

Code:

<li>
        <div class="block smaller">
                <div class="blocksubhead">
                        <a class="collapse" id="collapse_block_html_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html_{vb:raw blockinfo.blockid}"/></a>
                        <span class="blocktitle">{vb:raw blockinfo.title}</span>
                </div>
                <div class="widget_content blockbody floatcontainer">
                <div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow">
                        {vb:raw content}
                </div>
                </div>
        </div>
        <div class="underblock"></div>
</li>

The relevant code is in red. There is no conditional around it so I'm pretty sure no option exists to disable them.

[s]You would need to edit each block_ template and remove the code in red.[/s]

EDIT- Better solution in post #85

BirdOPrey5 07-13-2012 03:19 PM

Quote:

Originally Posted by djbaxter (Post 2347415)
This looks fine on a new custom style forum EXCEPT on forum home where it's too low. How can I move it up as in the second attached image?

My mod doesn't affect forum home (AKA forum index) at all.

Did it change after you installed this mod?

Igel1 07-13-2012 03:35 PM

Quote:

You would need to edit each block_ template and remove the code in red.
or write the following in the additional.css

Code:

#sidebar_container a.collapse {
display: none;
}


djbaxter 07-13-2012 05:17 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2347604)
My mod doesn't affect forum home (AKA forum index) at all.

Did it change after you installed this mod?

No. I was previously using Everywhere Sidebar which had the option of changing the positioning but that wasn't perfect on all pages. What I'm looking for is a way to change the forum home page sidebar and use your add-on for the other pages where it's perfect.

BirdOPrey5 07-13-2012 07:44 PM

Quote:

Originally Posted by djbaxter (Post 2347655)
No. I was previously using Everywhere Sidebar which had the option of changing the positioning but that wasn't perfect on all pages. What I'm looking for is a way to change the forum home page sidebar and use your add-on for the other pages where it's perfect.

Understood.

Edit your FORUHOME template.

Find the line:

Code:

<div id="content_container" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>">
change it to

Code:

<div id="content_container" class="{vb:raw $sidebar_class} <vb:if condition="$show['sidebarposition'] == 'left'">contentright</vb:if>" style="margin-top: -40px;">
Added code in red. Change -40 to a value that looks good for you.

djbaxter 07-14-2012 01:35 AM

^^^ Thank you.

djbaxter 07-15-2012 03:22 AM

Quote:

Originally Posted by Igel1 (Post 2347609)
or write the following in the additional.css

Code:

#sidebar_container a.collapse {
display: none;
}


This does not seem to disable the vertical collapse in either the default style or in my custom style. The "-" button is still visible and clickable and the entire sidebar collapses.



Correction: It DOES work but only if you add this to the TOP of additionalcss.css

What I added was this:

Code:

#sidebar_button_link {
display:none;
}

#sidebar_container a.collapse {
display: none;
}


BirdOPrey5 07-15-2012 08:09 AM

weird. You can use !important to force it to work anywhere-

Code:

display: none !important;


All times are GMT. The time now is 11:52 AM.

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.01498 seconds
  • Memory Usage 1,754KB
  • 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
  • (9)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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