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 05-21-2012 10:00 PM

Sidebar Anywhere (Formerly Sidebar for Activity Stream) by BOP5
 
1 Attachment(s)
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! ;)

BirdOPrey5 05-22-2012 12:52 PM

Reserved.

BlueCheri 05-22-2012 12:53 PM

Good idea, will use after updating.

G!

Trangalleiro 05-22-2012 04:03 PM

Thanks Joe, awesome as always

BirdOPrey5 05-22-2012 05:57 PM

Thanks all.

I noticed the forum blocks templates weren't being cached on the AS so I updated this to version 1.1 to force the caching.

Gemma 05-22-2012 06:17 PM

I got all excited when I read the thread title, I thought you had converted the activity stream into a sideblock!

However, this is a pretty cool wee add-on in its own right. Thanks for releasing it :)

kylek 05-22-2012 08:27 PM

I did too, hopefully someone comes up with one. But this works great also!

Dr.osamA 05-22-2012 09:39 PM

nice worke as always bro

working in VB 4.1.12 ???

Hippy 05-22-2012 09:42 PM

thanks neighbor

Much needed improvement

BirdOPrey5 05-22-2012 10:03 PM

Quote:

Originally Posted by Dr.osamA (Post 2331701)
nice worke as always bro

working in VB 4.1.12 ???

No, 4.2.0+ as it says in the title. There is no activity stream in 4.1.12.

Dr.osamA 05-22-2012 10:24 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2331716)
No, 4.2.0+ as it says in the title. There is no activity stream in 4.1.12.

thank you bro

but i see this in sorce

PHP Code:

    <dependencies>
        <
dependency dependencytype="vbulletin" minversion="4.2.0 Alpha 1" maxversion="5.0.0" />
    </
dependencies

for that i asked

Hippy 05-22-2012 10:30 PM

Quote:

Originally Posted by Trangalleiro (Post 2331603)
Thanks Joe, awesome as always

Off topic .....house is da man that avatar rules. ..

Back on topic. I been following this B2B beta and this a must have that again BOP5

BirdOPrey5 05-22-2012 11:32 PM

Quote:

Originally Posted by Dr.osamA (Post 2331720)
thank you bro

but i see this in sorce

PHP Code:

    <dependencies>
        <
dependency dependencytype="vbulletin" minversion="4.2.0 Alpha 1" maxversion="5.0.0" />
    </
dependencies

for that i asked


"minversion" means "Minimum Version" so it says 4.2.0 Alpha is the Minimum version.

4.2.0 is greater than 4.1.12 because 2 is greater than 1. The 12 doesn't matter in this case.

Hippy 05-23-2012 12:38 AM

@ BirdOPrey5
cosmetically the sidebar is a tad high compared to the forum home
works perfect tho..
thanks

gremrock 05-23-2012 07:01 AM

Thanks checked the code works fine! Good idea too considering this is relatively new!

joyboy2001 05-23-2012 11:33 AM

A mod for 4.20 so soon ... Brilliant :)

BirdOPrey5 05-25-2012 01:10 AM

Quote:

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

Do you have a screenshot? (if it's something you want me to look at... if not don't worry about it.)

Quote:

Originally Posted by gremrock (Post 2331844)
Thanks checked the code works fine! Good idea too considering this is relatively new!

Quote:

Originally Posted by joyboy2001 (Post 2331904)
A mod for 4.20 so soon ... Brilliant :)

Thanks everyone. :)

espacioprofundo 05-25-2012 01:26 AM

1 Attachment(s)
Hi Joe,

Yes, the sidebar it's a bit higher.

Thanks anyway for the mod!

Hippy 05-25-2012 01:54 AM

sorry BOP5 too much reading .. seems espacioprofundo beat me to the screenshot

seem the padding under #sidebar_container
in the sidebar.css does not work on both pages

BirdOPrey5 05-25-2012 04:56 PM

I see what you are saying. Personally I like it better as is, but I have released a new zip with an 'alternate' version aligned like it is in the forums. No version number change.

Hippy 05-25-2012 05:09 PM

No rush.. it still good / perfect as you made it..

Your mod and efforts are much appreciated.

BirdOPrey5 05-25-2012 05:13 PM

It's already released. ;)

Hippy 05-25-2012 08:51 PM

thanks I noticed after I posted
had to see it all on a cell

thanks for the update
( wonder why I did not get a email about the update)
weird

thanks BOP5

BirdOPrey5 05-25-2012 10:21 PM

I didn't send an email for such a small update- didn't want to "spam" people.

gremrock 05-26-2012 08:40 AM

Thanks for the update Bird

CoZmicShReddeR 05-26-2012 03:24 PM

BirdOPrey5, why you keep making awesome stuff??

RSNF 05-26-2012 03:27 PM

Not sure if this was already asked but is this a live feed update or more of a refresh and see what's new?

BirdOPrey5 05-26-2012 03:56 PM

Quote:

Originally Posted by CoZmicShReddeR (Post 2333132)
BirdOPrey5, why you keep making awesome stuff??

I'm over-compensating for other things lacking in my personal life.

Quote:

Originally Posted by RSNF (Post 2333138)
Not sure if this was already asked but is this a live feed update or more of a refresh and see what's new?

The Activity Stream is built into 4.2.0, this only adds a sidebar to it. The Activity Stream as designed doesn't "live stream" - it will tell you there are X # of new items but you have to click on that notice to load them into view.

rafiul 05-26-2012 09:51 PM

Getting this Error.

Code:

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 129

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 131

Warning: Invalid argument supplied for foreach() in [path]/includes/block/blogentries.php on line 139


BirdOPrey5 05-26-2012 10:00 PM

Quote:

Originally Posted by rafiul (Post 2333291)
Getting this Error.

Code:

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 129

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 131

Warning: Invalid argument supplied for foreach() in [path]/includes/block/blogentries.php on line 139


I don't believe it is caused by this mod.

I get it even on your forums page: http://www.amazingadda.com/forum.php

And my mod isn't ever active on the forums page...

If you disable my mod can you see if the error goes away on the forum page?


Also, please "Mark as Installed" if you are going to use it.

rafiul 05-27-2012 03:59 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2333292)
I don't believe it is caused by this mod.

I get it even on your forums page: http://www.amazingadda.com/forum.php

And my mod isn't ever active on the forums page...

If you disable my mod can you see if the error goes away on the forum page?


Also, please "Mark as Installed" if you are going to use it.

I have installed your mod. And uninstall it for this erorr. You see that erorr because the block is still there. I have delete the block and the erorr gone. And ofcourse i will mark as installed when i use it.

What could be the issue?

Hippy 05-27-2012 04:07 PM

the mod is well coded and works perfect
I have installed this on every site I have updated to date,
some sites I am waiting becasue of complex navbars
I still have to figure out all the In's and outs to this new Nav manager
most likely it's conflicting with something else

BirdOPrey5 05-27-2012 06:59 PM

Quote:

Originally Posted by rafiul (Post 2333537)
I have installed your mod. And uninstall it for this erorr. You see that erorr because the block is still there. I have delete the block and the erorr gone. And ofcourse i will mark as installed when i use it.

What could be the issue?

If you get the error on http://www.amazingadda.com/forum.php with the blog block enabled, it's not because of this mod. Please leave my mod uninstalled and enable the blog block.

Mark.B 05-27-2012 08:04 PM

Thanks, this works very well.

Only thing I've noticed, is that if you "collapse" the sidebar in the Activity Stream, the cookie doesn't seem to get saved...you can refresh the page and it will no longer be collapsed. This is different to the normal forumhome sidebar which will set a cookie and keep the sidebar collapsed.

rafiul 05-27-2012 08:20 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2333591)
If you get the error on http://www.amazingadda.com/forum.php with the blog block enabled, it's not because of this mod. Please leave my mod uninstalled and enable the blog block.

Did you get me? where i tell i have problem with blog block? I am not blaming you, Did i? And i am not telling you that your mod has problem. Its my forum thats getting in problem when i installed your mod. Dont get me wrong. Actually i have also have same issue with another latest mod( activity stream on sidebar) .

And that sidebar block is making this problem. I have delete that. And now i installed your mod. And it works without any problem!

Bottom line is. Thanks for the mod.And i click installed. :)

BirdOPrey5 05-27-2012 09:26 PM

Thank you. I'm sorry when you posted about the error in this thread I assumed you meant my mod was causing the problem.

I am glad you are working/happy now. :up:

Mark - Will look into the cookie issue.

kfyonur 06-01-2012 06:15 AM

Can we limit the number of characters? it didn,t work why..

Mark.B 06-01-2012 06:24 AM

Quote:

Originally Posted by kfyonur (Post 2335333)
Can we limit the number of characters?

The number of characters in what?

This mod simply adds your existing forum sidebar to the activity stream.

BirdOPrey5 06-01-2012 11:40 AM

The preview text on the sidebar itself should be exactly the same as the preview text when the sidebar is shown on your forum home. I'm not sure what setting changes that, if any, but in my testing they are identical.

If you are using this mod please "Mark as Installed." :)

moshekan 06-09-2012 05:53 PM

very nice.
its work fine in my forum.
marked as installed


All times are GMT. The time now is 04:42 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.01734 seconds
  • Memory Usage 1,836KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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