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)

BirdOPrey5 09-19-2013 09:24 PM

There is a built in vBulletin option to disable on FORUMHOME -

Admin CP -> Settings -> Options -> Forum Sidebar and Block Options, you can disable the sidebar from there.

1320Nation 09-19-2013 11:29 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2446779)
There is a built in vBulletin option to disable on FORUMHOME -

Admin CP -> Settings -> Options -> Forum Sidebar and Block Options, you can disable the sidebar from there.

Thanks for responding. However, I do not want to disable the sidebar completely. Just in the FORUMHOME Template.

If removing code from the FORUMHOME template is the option I just need to know what code it is.

BirdOPrey5 09-19-2013 11:32 PM

Turning it off there should only disable it in FORUMHOME. Every other location is controlled by my mod which ignores that setting.

I tested it before posting. I disabled it on FORUMHOME and it still showed on my Activity Stream.

1320Nation 09-19-2013 11:46 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2446805)
Turning it off there should only disable it in FORUMHOME. Every other location is controlled by my mod which ignores that setting.

I tested it before posting. I disabled it on FORUMHOME and it still showed on my Activity Stream.

Right you are!!! Thanks so much.

Apolo. 09-30-2013 04:52 PM

1 Attachment(s)
Thanks for this mod, BirdOPrey5. :)

I've been looking for a similar mod able to display the sidebar up to the very top of each forum page and haven't been so lucky (i.e. up & just to the left of the "register" link). Either way, I have installed your mod, because I experienced (and have heard of) some performance issues with the other option, the Everywhere SideBar mod.

And now I'm facing a little issue. I had included some text (a list of links) on the "ad_footer_start" template, which is displayed at the bottom of each page. And once I installed your mod, such text was displaced up & right, just beneath the bottom of the sidebar. I'm enclosing a screenshot for you to have a look, please.

So I have two questions/request for you:

1. Could you please suggest a way to fix this and return the original text back to its original position to the bottom of each page?

2. I could leave the text in that place, but could you please suggest a way to display the text a little bit more to the right, so it is not glued to the table to the left, as you can see in the screenshot?

Thanks again! :)

datoneer 10-11-2013 09:31 PM

Excellent it works without problem on my forum

sebbo 10-18-2013 01:13 PM

Should this work with Firefox 24.0? If you look this thread:

http://www.juoksufoorumi.fi/vb/showt...505#post613505

With IE 10 it shows sidebar but with Firefox 24.0 sidebar is missing?

DemOnstar 10-18-2013 04:28 PM

I am using Firefox 24.0, works for me..

I have to admit that the link you provided took me to a site I didn't understand but there was a sidebar, albeit the little arrows to collapse the sidebar weren't displayed but that is permissions isn't it?

Anyway, it works on the site I am currently playing with.

Ba'al 10-18-2013 11:21 PM

Quote:

Originally Posted by DemOnstar (Post 2454431)
I am using Firefox 24.0, works for me..

I have to admit that the link you provided took me to a site I didn't understand but there was a sidebar, albeit the little arrows to collapse the sidebar weren't displayed but that is permissions isn't it?

Anyway, it works on the site I am currently playing with.

I am running Cyberfox 23 rev.1 and it works fine, and yes the collapse arrow settings are in options.

Rebecca217 10-20-2013 02:40 PM

Quote:

Originally Posted by rumas (Post 2427235)
The Activity Stream side block in VB 4.2.1 don't seem to work properly with this mod. It displays avatars and post time but no thread link or text from the post or thread.

However the Activity Stream side block functions on the VB default forum home sidebar location, see screen capture below.

Is there a fix for this?

I'm having this exact same issue, running 4.2.2. All the blocks work correctly throughout the forum, except for the activity stream block. Here's what happens:

- The activity stream block works perfectly on the forum home and activity stream pages

- On all other pages, the thumbnail and time show up in the activity stream block, but the topic title and link don't show up.

My forum looks exactly like the screen shot Rumas posted. https://vborg.vbsupport.ru/attachmen...1&d=1370913128

I checked, and there are no phrases that need updating.

Any ideas how to correct this?

dimmicosacerchi 11-08-2013 12:01 PM

Hi, I would like to add siderbar to the page tag. Can you help me with the call to insert? I can not make it appear on this page.
Thank you.
The page example:
dimmicosacerchi.it/forum/tags/31.12.2013.html

Thanks you very much!

karlm 12-01-2013 01:05 AM

Quote:

Originally Posted by Rebecca217 (Post 2454898)
- The activity stream block works perfectly on the forum home and activity stream pages

- On all other pages, the thumbnail and time show up in the activity stream block, but the topic title and link don't show up.

My forum looks exactly like the screen shot Rumas posted. https://vborg.vbsupport.ru/attachmen...1&d=1370913128

Any ideas how to correct this?

Same here, too...
I'm running 4.2.1

Guest20210129 12-25-2013 10:36 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2407567)
Looks like I left out a special CSS template if the tagcloud is used.

For now you can fix by going to Admin CP -> Products & Plugins -> Plugin Manager

Edit the template Sidebar Anywhere CSS

Erase everything in the plugin and replace it with this code:

Code:

global $vbulletin, $sb_temps;

if ($sb_temps)
{

  if ($vbulletin->options['storecssasfile'])
  {
    $template_hook[custom_css_links] .= '<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style' . str_pad($style['styleid'], 5, '0', STR_PAD_LEFT) . $vbulletin->stylevars['textdirection']['string'][0] . '/sidebar.css" />';

    $template_hook[custom_css_links] .= '<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style' . str_pad($style['styleid'], 5, '0', STR_PAD_LEFT) . $vbulletin->stylevars['textdirection']['string'][0] . '/widgets.css" />';

    $template_hook[custom_css_links] .= '<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style' . str_pad($style['styleid'], 5, '0', STR_PAD_LEFT) . $vbulletin->stylevars['textdirection']['string'][0] . '/forumhome.css" />';

    $template_hook[custom_css_links] .= '<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style' . str_pad($style['styleid'], 5, '0', STR_PAD_LEFT) . $vbulletin->stylevars['textdirection']['string'][0] . '/tagcloud.css" />';
  }
  else
  {
    $template_hook[custom_css_list] .= 'sidebar.css,widgets.css,forumhome.css,tagcloud.css';
  }

}

The tags should now be correct sizes on all pages.

I will make sure this fix is in the next update.

It works. Thanks! :D

PAPPACLART 01-01-2014 02:53 AM

Installed, thanks, but how can I change the width of the side bar, as when I change the width via the styles and templates it only changes the width on the forum home and not in other place where the sidebar is displayed?

Thanks

theroles 01-01-2014 10:59 AM

hello, for version 4.2.2 can ?

hellboundblogge 01-11-2014 06:25 AM

Hello,

Please check, Sidebar is not coming.

URL: http://www.thetechism.com/forum/forum.php

Thanks!

CharlieDelta 01-18-2014 03:59 AM

I have discovered that if this mod is enable on usercp.php & profile.php you are unable to accept friend requests as it hangs upon clicking saved.
I have confirmed this both by disabling the mod completely and by simply disabling the option in the ACP.

eh69 01-18-2014 03:53 PM

Quote:

Originally Posted by Rebecca217 (Post 2454898)
I'm having this exact same issue, running 4.2.2. All the blocks work correctly throughout the forum, except for the activity stream block. Here's what happens:

- The activity stream block works perfectly on the forum home and activity stream pages

- On all other pages, the thumbnail and time show up in the activity stream block, but the topic title and link don't show up.

My forum looks exactly like the screen shot Rumas posted. https://vborg.vbsupport.ru/attachmen...1&d=1370913128

I checked, and there are no phrases that need updating.

Any ideas how to correct this?

I have this problem too.

Disco_Stu 01-24-2014 01:39 PM

Works great but I have one problem. The collapse button does not work at all on the CMS page in FireFox or Chrome. Works fine with IE. Works fine on all other pages even with Fire Fox. The problem is limited to the CMS page.

So to collapse the sidebar on the CMS page I have to go to another page and collapse it. Then when I return to the CMS page it is collapsed.

I'm sure it's something I screwed up in my custom style. Any idea what could be going on here?

I'm using 4.2.0 PL2

Thanks

Update:

It's working now. I think something in the browser was not clearing out properly but after I signed off and back on a few times it started working.

Great mod. Marked as installed

GameOverViper 01-24-2014 07:53 PM

Works on 4.2.1 and was easy to install. I love the options to disable for specific themes, forums and usergroups. However, my themes are fixed and it just makes things look so cramped. The members didn't like it so I'll have to work on a fluid theme and see how it goes with that sometime.

Tagged though ;)

Disco_Stu 01-25-2014 07:15 PM

This mod has really worked out very well for me. Many thanks.

What's the chances of having this mod on both sides of the page at the same time with a different sidebar on each side? That would be terrific.

lille L 01-26-2014 02:55 PM

Works like a charm! thank you so much!

Disco_Stu 01-27-2014 04:21 PM

On one of my pages I need to raise the sidebar up a bit. How can I adjust the position up? I tried entering a negative number like *-10 but that didn't work.


Update:


I changed padding-top to margin-top in the plugin process_templates_complete and that worked. Now I can use negative numbers. The padding-top style specification does not allow negative numbers apparently.

sticky 01-29-2014 01:55 AM

Quote:

Originally Posted by sticky (Post 2437534)
Having a small problem where on the CMS page the article text buttons spill into the sidebar:

https://vborg.vbsupport.ru/external/2014/01/5.png

Any idea how to resolve?

Any help with this please? I like the sidebar on the CMS homepage but the formatting doesn't work.

sticky 01-29-2014 01:57 AM

^ Fixed by changing the layout

sticky 01-29-2014 02:41 AM

Actually it only works if you change the layout content to a fixed with. If you collapse the sidebar it won't expand then.

Argh...

TheLastSuperman 01-29-2014 03:32 AM

Quote:

Originally Posted by sticky (Post 2477625)
Actually it only works if you change the layout content to a fixed with. If you collapse the sidebar it won't expand then.

Argh...

Try fiddling with .fullwidth and .article_preview in the css templates (reference the default css for each from vbulletin-chrome.css then overwrite it via additional.css, if something looks wonky after adding/editing the definitions to additional.css simply remove from additional.css to fix ;).

... content_container or similar may also need to be looked into, depending how it's displaying.

sticky 01-29-2014 07:28 AM

Quote:

Originally Posted by TheLastSuperman (Post 2477627)
Try fiddling with .fullwidth and .article_preview in the css templates (reference the default css for each from vbulletin-chrome.css then overwrite it via additional.css, if something looks wonky after adding/editing the definitions to additional.css simply remove from additional.css to fix ;).

... content_container or similar may also need to be looked into, depending how it's displaying.

Changing .fullwidth from 100% to 98% in vbcms.css did the trick! Nice suggestion, thank you.

Now the question I have is do you have any idea how to do the same for the header?

TheLastSuperman 01-29-2014 11:02 PM

Quote:

Originally Posted by sticky (Post 2477658)
Changing .fullwidth from 100% to 98% in vbcms.css did the trick! Nice suggestion, thank you.

Now the question I have is do you have any idea how to do the same for the header?

Hmm it's either what I see in the code as:

Code:

<h1 class="header">
Or

Code:

<div class="title">
So perhaps overwriting them in additional.css will do the trick with your 98% width and remember for the header class to use the h1 tag in the definition when defining it else it will mess up the actual main "header" class instead of the H1 version of it ;).

sticky 02-15-2014 11:11 PM

Quote:

Originally Posted by TheLastSuperman (Post 2477840)
Hmm it's either what I see in the code as:

Code:

<h1 class="header">
Or

Code:

<div class="title">
So perhaps overwriting them in additional.css will do the trick with your 98% width and remember for the header class to use the h1 tag in the definition when defining it else it will mess up the actual main "header" class instead of the H1 version of it ;).

Would you happen to know how to just disable the header entirely?

PattiOz 02-25-2014 10:22 PM

Is there a way to disable the collapse of the individual blocks within the sidebar?
Is there a way to remove the block titles?

greentips 02-26-2014 08:10 PM

Can someone let me know where the sidebar is called up in forumdisplay ( or somewhere else)?

I want to roll the sidebar under "pagenav" when the sidebar is displayed on the right side. Right now the pagenav numbers stops at the sidebar column and get squashed.

oldfan 03-12-2014 05:45 AM

works great with 4.2.2 thanks

30022 03-13-2014 02:10 PM

How can I get the sidebar to work with pages created by this Mod? BF Easy Pages

https://vborg.vbsupport.ru/showthread.php?p=1961076

aaronhaul 03-15-2014 11:35 PM

Can Sidebar Anywhere display 2 Sidebars (Left and Right) with fixed or flexible width at same time?

I want to have 2 Sidebars on same forum or article page display together in the right and left column.

Example: 240px, 100%, 240px

I have search all forums for this and could not find an answer to this.

Please let me know.

Disco_Stu 03-16-2014 04:02 AM

Quote:

Originally Posted by aaronhaul (Post 2487561)
Can Sidebar Anywhere display 2 Sidebars (Left and Right) with fixed or flexible width at same time?

I want to have 2 Sidebars on same forum or article page display together in the right and left column.

Example: 240px, 100%, 240px

I have search all forums for this and could not find an answer to this.

Please let me know.


I asked that same question but didn't get a response so I figured it out for myself.

You need to have your page content displayed in a table with 2 columns. Reserve the left column for the left sidebar and put the rest of your page content in the second table column.

Then create an HTML CMS widget for whatever you want. I created one that I use for several different functions.

Next, you need to change the php file that is used for the template you are adding the widget to. What this code does is allow a CMS Static widget to be made available to a template. Here's the php code:

PHP Code:

// add cms widget to template. 

bootstrap_framework();
vBCms_View_Widget::registerTemplater(vB_View::OT_XHTML, new vB_Templater_vB());
$widgetID 48// the id of the widget
$widgettype 'Static';
$widget vBCms_Widget::create('vBCms'$widgettype$widgetID);
$outputwidget $widget->getPageView()->render(); 

You can get the widget id number by looking at the cms widget table in your database. I should point out that I was only able to make this work with HTML widgets (Static). It would not work with PHP or specialized widgets like the poll or recent posts widget. For this I created my own version in html.

Then in the same php file you need to add a line to the list of variables being registered to the template:

PHP Code:

$templater->register('widget'$outputwidget); 

Now in the template you can reference the widget with {vb:raw widget}

You can also write code to add the fade in/fade out ability and have the main page content slide to the left when the widget is collapsed.

This should give you a good starting point. Good luck. I strongly suggest you back up your website including php files and database before you make any changes. I am not responsible for any changes you make based on my suggestions.

Updated 4/30/14:
You can avoid changing the php files if you want by creating a plugin like this one to add a CMS widget to a couple of pages:

PHP Code:

ob_start();
bootstrap_framework();
vBCms_View_Widget::registerTemplater(vB_View::OT_XHTML, new vB_Templater_vB());
$widgetID 48// the id of the widget
$widgettype 'Static';
$widget vBCms_Widget::create('vBCms'$widgettype$widgetID);
$output $widget->getPageView()->render();

  
ob_end_clean();
vB_Template::preRegister('ARCADE',array('widget' => $output));
vB_Template::preRegister('SHOWTHREAD',array('widget' => $output)); 

Then in the template simply add {vb:raw widget} wherever you want the widget to appear.

tpearl5 03-28-2014 03:28 PM

1 Attachment(s)
Thanks again for a great mod Joe! Any idea why this would happen with the activity stream block on all but the forum homepage? (looks like data from {vb:raw item.phrase} is not making it) I have it set to "7 days", "popular" and "forum activity".

fxdigi-cash 04-26-2014 01:10 AM

is it possible to disable by block?? not only by forum because if I want to hide a block on specific forum and show another, and vice versa on other forums...

would that be possible??

Thanks

Edit: I think I found the answer written above in the main post. Thanks

DemOnstar 04-26-2014 02:04 AM

That could possibly be a solution for me too.

I use this mod and apart from one tiny glitch, it does the job..

The issue I have is tag cloud related. It seems the tag cloud is not meant to be seen on activity.php and when this mod allows that, the tag cloud is delivered without css..
Same on forumdisplay.php

See HERE

How do I attach css to the above pages?

TA.

fxdigi-cash 04-26-2014 04:20 AM

Something else to ask. Is it possible to add a class to <li> so it goes with the sidebar no empty e.g: <li class="style">

I was trying to find out how to do that, but it doesn't seem easy at all!!

Help please!! :confused:


All times are GMT. The time now is 09:24 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.02148 seconds
  • Memory Usage 1,865KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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