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
  #212  
Old 04-09-2013, 01:15 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PHP FAN View Post
Hi

In Right to Left style:

If the HomePage sidebar show in the left, the "Sidebar Anywhere" will show in the right.
And if the HomePage sidebar show in the right, the "Sidebar Anywhere" will show in the left.
Sorry about that, I don't have any RTL boards to test off of.

Go to Admin CP -> Plugin Manager -> Sidebar Anywhere Edits plugin

Find the 4 instances of:

Code:
$vboptions[\'sidebarposition\'] == 0
and change them to

Code:
$vboptions[\'sidebarposition\'] == 1
See if that fixes the issue.

Quote:
Originally Posted by ps2wiz View Post
Does this mod give the option to enable both left and right sidebars at the same time?
Quote:
Originally Posted by Hippy View Post
years ???????
this mod was only released May 22 2012

reinstall it..
Reinstall is good advice.
Reply With Quote
  #213  
Old 04-16-2013, 06:59 PM
Bluefin221 Bluefin221 is offline
 
Join Date: Jul 2008
Location: Scotland
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seem to be having a bit of trouble for the main template, so just to make sure I believe I am supposed to take the template name from this part of the file.

Code:
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array('vbfixer_cpn_temp',);
// pre-cache templates used by specific actions
$actiontemplates = array();
As you can see only one thing I can take from that which I use like so.
multi_custom_page|vbfixer_cpn_temp

Cannot get the blocks to show at all though I have tried a variety of different combinations.

The this script is defined like this: 'multi_custom_page'.$scrpt

So I'm not 100% sure what I should be placing in both sides due to this.
Reply With Quote
  #214  
Old 04-16-2013, 11:25 PM
mikesafl's Avatar
mikesafl mikesafl is offline
 
Join Date: Mar 2013
Location: Philippines
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im going crazy trying to figure this out, Can i add certain blocks to certain page, BUT disable that block from showing on the main page of the site?
Reply With Quote
  #215  
Old 04-17-2013, 12:18 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bluefin221 View Post
I seem to be having a bit of trouble for the main template, so just to make sure I believe I am supposed to take the template name from this part of the file.

Code:
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array('vbfixer_cpn_temp',);
// pre-cache templates used by specific actions
$actiontemplates = array();
As you can see only one thing I can take from that which I use like so.
multi_custom_page|vbfixer_cpn_temp

Cannot get the blocks to show at all though I have tried a variety of different combinations.

The this script is defined like this: 'multi_custom_page'.$scrpt

So I'm not 100% sure what I should be placing in both sides due to this.
I'd really need to see the THIS_SCRIPT line in the php file to figure out the script name.

To determine the template name go to your Admin CP -> Settings -> Options -> General Settings, and turn on the setting that puts Template Names in HTML comments...

Then reload the custom page you want the sidebar to appear on, view the HTML source. The first comment for the first template at the top of the page is going to be the template name you need.

Disable the setting once you have found it.


Quote:
Originally Posted by mikesafl View Post
Im going crazy trying to figure this out, Can i add certain blocks to certain page, BUT disable that block from showing on the main page of the site?
No, the same blocks appear on all pages.
Reply With Quote
  #216  
Old 04-17-2013, 10:12 PM
Bluefin221 Bluefin221 is offline
 
Join Date: Jul 2008
Location: Scotland
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
I'd really need to see the THIS_SCRIPT line in the php file to figure out the script name.
I had the template name correct here is the THIS_SCRIPT part.

Code:
define('THIS_SCRIPT', 'multi_custom_page'.$scrpt);
I have tried various variations for this but cannot appear to get it working.
Reply With Quote
  #217  
Old 04-18-2013, 06:58 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried just multi_custom_page as the script name?
Reply With Quote
  #218  
Old 04-18-2013, 07:44 PM
Bluefin221 Bluefin221 is offline
 
Join Date: Jul 2008
Location: Scotland
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Have you tried just multi_custom_page as the script name?
Yes this is what I had originally: multi_custom_page|vbfixer_cpn_temp

It doesn't work though.
Reply With Quote
Благодарность от:
Azonaco
  #219  
Old 04-19-2013, 01:20 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on 4.2.1?
Reply With Quote
  #220  
Old 04-19-2013, 12:59 PM
rhody401's Avatar
rhody401 rhody401 is offline
 
Join Date: Feb 2012
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using it on my forum with 4.2.1, and have no problems to report
Reply With Quote
2 благодарности(ей) от:
AusPhotography, BirdOPrey5
  #221  
Old 04-19-2013, 01:41 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bluefin221 View Post
Yes this is what I had originally: multi_custom_page|vbfixer_cpn_temp

It doesn't work though.
Anyway of knowing what the value of $script it? If it changes often then this mod won't work with it. If there is one or a few values it should still work if you can figure out what it is,

Quote:
Originally Posted by ricktas View Post
Will this work on 4.2.1?
Working fine on 4.2.1 for me.
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 02:32 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.08557 seconds
  • Memory Usage 2,383KB
  • Queries Executed 28 (?)
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
  • (5)bbcode_code
  • (9)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
  • (18)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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