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

Reply
 
Thread Tools
Sidebar Anywhere (Formerly Sidebar for Activity Stream) by BOP5 Details »»
Sidebar Anywhere (Formerly Sidebar for Activity Stream) by BOP5
Version: 2.2.0, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 05-21-2012 Last Update: 12-05-2012 Installs: 370
Uses Plugins Auto-Templates
Translations  
No support by the author.

Brought to you by BirdOPrey5
www.Qapla.com


Version 2.2.0

The new Activity Stream for VB 4.2.0 is very nice but it feels like it is missing something- and what it is missing is a sidebar. Ideally at some point VB will release a custom sidebar built just for the Activity Stream but until then this quick mod will let you use the built in forum sidebar on the Activity Stream.

As of version 2.0 besides just working on the Activity Stream the mod can now add a sidebar to ANY vBulletin page including forums, threads, groups, albums, who's online, forum leaders, and more. In fact you can easily add the sidebar even to custom pages from custom mods.

New Features
  • Now works on ANY vBulletin Page (except blogs which have their own sidebar)
  • Option to align sidebar with page content or top of page
  • Option to Disable Sidebar Collapse Option (By Usergroup in 2.1.0)
  • Collapsed sidebar state now "remembered" on different pages
  • Option to enable Sidebar by Usergroup
  • Option to disable Sidebar by Forum (if enabled for forums/threads)
  • Option to disable Sidebar in specific styles
  • Options to disable sidebars if mobile devices detected*

NOTE: To enable mobile device detection options you must install the Mobile Browser Detector mod.

Live Demo: Qapla.com Activity Stream

You can enable or disable the Sidebar Anywhere independently of the forum sidebar but they will both display the same content (blocks.)

NEW - If you need to have different blocks on different pages check out this add-on.

You must have at least 1 block setup and active for the sidebar to show.

Unlike most of my other mods this mod is enabled by default upon installation. Be default it is setup to show only on the Activity Stream and register.php pages.

I am aware there is already a mod out there "Everywhere Sidebar" by another coder. This is completely different code and I made this because my "Staff Online Sideblock" mod did not work on Sidebar Everywhere but it does work on this mod.

This mod requires at least VB 4.2.0 to work on the Activity Stream but should work on older VB 4.x.x versions on other pages.

Full view of admin cp options: http://www.qapla.com/mods/ss/sidebar...tings_full.jpg.

The old version Zip file Sidebar for Activity Stream by BOP5 v11.zip works only on the Activity Stream.

PLEASE READ THE INSTRUCTIONS INCLUDED WITH THIS MOD- THEY ANSWER MOST OF THE QUESTIONS ABOUT HOW TO USE IT.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated. :up:
Nominate MOTM if you LOVE it!

Download Now

File Type: zip Sidebar for Activity Stream by BOP5 v11alt.zip (6.0 KB, 784 views)
File Type: zip Sidebar Anywhere by BOP5 v220.zip (9.2 KB, 1841 views)

Screenshots

File Type: jpg sidebar_anywhere_activity.jpg (148.5 KB, 0 views)
File Type: jpg sidebar_anywhere_forumdisplay.jpg (126.4 KB, 0 views)

Show Your Support

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

Comments
  #312  
Old 02-25-2014, 10:22 PM
PattiOz PattiOz is offline
 
Join Date: May 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to disable the collapse of the individual blocks within the sidebar?
Is there a way to remove the block titles?
Reply With Quote
  #313  
Old 02-26-2014, 08:10 PM
greentips greentips is offline
 
Join Date: Jun 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #314  
Old 03-12-2014, 05:45 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great with 4.2.2 thanks
Reply With Quote
  #315  
Old 03-13-2014, 02:10 PM
30022 30022 is offline
 
Join Date: Apr 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #316  
Old 03-15-2014, 11:35 PM
aaronhaul aaronhaul is offline
 
Join Date: Mar 2014
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #317  
Old 03-16-2014, 04:02 AM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aaronhaul View Post
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.
Reply With Quote
  #318  
Old 03-28-2014, 03:28 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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".
Attached Images
File Type: png activity_stream.PNG (20.6 KB, 0 views)
Reply With Quote
  #319  
Old 04-26-2014, 01:10 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #320  
Old 04-26-2014, 02:04 AM
DemOnstar's Avatar
DemOnstar DemOnstar is offline
 
Join Date: Dec 2012
Posts: 859
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
fxdigi-cash
  #321  
Old 04-26-2014, 04:20 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
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 04:19 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.08179 seconds
  • Memory Usage 2,384KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (16)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete