PDA

View Full Version : Miscellaneous Hacks - Sidebar Anywhere (Formerly Sidebar for Activity Stream) by BOP5


Pages : [1] 2

BirdOPrey5
05-21-2012, 10:00 PM
Brought to you by BirdOPrey5
www.Qapla.com (http://www.qapla.com/mods/)

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 (https://vborg.vbsupport.ru/showthread.php?t=292704) mod.

Live Demo: Qapla.com Activity Stream (http://www.qapla.com/mods/activity.php)

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 (https://vborg.vbsupport.ru/showthread.php?t=296104).

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 (https://vborg.vbsupport.ru/showthread.php?t=284617)" 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_anywhere_setttings_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
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
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

<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
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
thank you bro

but i see this in sorce

<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
@ 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.)

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

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

Thanks everyone. :)

espacioprofundo
05-25-2012, 01:26 AM
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
BirdOPrey5, why you keep making awesome stuff??

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

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.

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
Getting this Error.

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
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
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
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
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

Toorak Times
06-11-2012, 07:06 AM
Thanks for this mod. I like the idea of the Activity Wall is great and this mod adds a bit of variety to the page. I hope they make the page more interactive like the other live wall mods I have seen and installed. Love your work!

BirdOPrey5
06-11-2012, 10:17 AM
Thank You ;)

Disco_Dave
06-11-2012, 10:37 AM
@ BirdOPrey5
cosmetically the sidebar is a tad high compared to the forum home
works perfect tho..
thanks

Yeah it's also like that on our forum also, is there a way to correct this??

BirdOPrey5
06-11-2012, 10:40 AM
In the zip file there is an "alternate" XML file, install that one instead.

Disco_Dave
06-11-2012, 10:44 AM
Hi Joe

Yes still the same.....



http://www.nirc.co.uk/forums/activity.php


That's it now sorry for the hassle

Cheers
Dave

Hippy
06-11-2012, 11:24 AM
Worked for me right of the bat with the alternate XML

BirdOPrey5
06-11-2012, 01:49 PM
Hi Joe

Yes still the same.....

user name:tester
password: retset

http://www.nirc.co.uk/forums/activity.php


That's it now sorry for the hassle

Cheers
Dave

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:
42px

ans chabe it to

36px

Disco_Dave
06-11-2012, 01:58 PM
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:
42px

ans chabe it to

36px

Thanks a million great addon.

Cheers,
Dave

tsptom
06-11-2012, 08:13 PM
Just as an FYI, I thought this was a great idea and I installed it, but I had to make mine inactive and go back to the "Recent Posts" sidebar because the members almost unanimously prefered to see the first sentence of the post in the sidebar like the recent post sidebar.

You can PM me BirdOPrey5, if you want a link to their discussion about it.

BirdOPrey5
06-12-2012, 09:45 AM
Are you saying using this mod changed how your regular forum sidebar worked? :confused:

AusPhotography
06-12-2012, 10:05 AM
We have the 'alternate' version installed very nice!!

tsptom
06-12-2012, 12:27 PM
Are you saying using this mod changed how your regular forum sidebar worked? :confused:
I had exchanged the Recent Post [regular forum] sidebar with the new Activity Stream sidebar. Some didn't like that new format so I went back. They wanted that first sentence to show.

Damsella
06-14-2012, 11:40 AM
Hi, does this mod work alongside Everywhere Sidebar? I have ES installed but would need your mod for the Activity Stream as ES doesn't work there automatically. Thanks!

BirdOPrey5
06-14-2012, 12:09 PM
I've never tried it with Everywhere Sidebar. I don't imagine there being a problem with any mod through. Doesn't hurt to try.

Damsella
06-15-2012, 12:25 PM
Well I have installed it alonside Everywhere Sidebar and it seems to work fine! Thanks for this great mod.

Jimandbob
06-15-2012, 12:44 PM
great work BOP, Thanks :)

BirdOPrey5
07-04-2012, 05:42 PM
All new version 2.0 Released.

Now called "Sidebar Anywhere" because you can enable it on *ANY* vBulletin powered page.

Now remembers if it is collapsed or not between different pages.

A bunch of new options.

Please read the instructions included if you have any questions on how it works, the instructions answer most questions. :)

Nirjonadda
07-04-2012, 06:15 PM
Installed Sidebar Anywhere work on 4.1.10 !

Pure Dope
07-04-2012, 08:17 PM
Wondering for what reason might this not be showing up at all on my forum. I have vb4.2

BirdOPrey5
07-04-2012, 08:39 PM
Is it showing up on any pages? By default it is only enabled on The Activity Stream.

Do you have the forum home sidebar collapsed? It uses the same cookie so it will be collapsed as well.

If you don't have the forum home sidebar enabled it is likely you don't have any forum sideblocks enabled- at least one sideblock must be active for the sidebar to show.

Can you post a link to your forum?

AusPhotography
07-04-2012, 11:07 PM
Installed v2 on our vB4.2.0 site all goodness.
We've added the SB to a custom page - excellent hack!

Hippy
07-05-2012, 09:17 AM
your efforts and work BirdOPrey5 is much appreciated ..
I have not tested the new release yet but I am sure it will come in handy

BirdOPrey5
07-05-2012, 09:52 AM
your efforts and work BirdOPrey5 is much appreciated ..
I have not tested the new release yet but I am sure it will come in handy

Thank you Hippy. It is appreciated. ;)

imported_polygrinder
07-06-2012, 03:25 PM
I have an "Articles" page which is content.php. The sidebar does not show up on that page. Otherwise the Sidebar Anywhere works as expected. Also, I noticed the page has it's own settings for the sidebar width which is locked in the grid manager to a max of 300 pix. My Sidebar is 400 pix in the Forum Sidebar Width. Any ideas how to get the sidebar to show up on this page?

BirdOPrey5
07-06-2012, 10:52 PM
I didn't include CMS pages in this because CMS pages are made to use widgets.

The sidebar width is using the forum_sidebar_width stylevar which should work on all pages the sidebar shows on. What page has its own setting?

karlm
07-10-2012, 02:19 AM
Excellent. I've been looking for something to this effect for a while. The similar hack didn't do it for me, I can't recall why but it was problematic. This does the job nicely!

Thanks.

karlm
07-10-2012, 05:11 PM
One minor issue. When using a unique skin, it appears to not grab all images.

However, once you click the non-showing image to collapse the side-bar, it then shows up. Clicking again to show the side-bar allows the image to show this time around.

Bizarre.

BirdOPrey5
07-10-2012, 11:07 PM
Hmmm... I will need to look into that- it's looking for the image in a hard coded location, I guess it needs to be a stylevar.

I'll add it to the next update- thanks for the feedback.

Temp fix is to right click on the broken image, get the URL, and copy the image to that location for now.

karlm
07-11-2012, 01:54 AM
Temp fix is to right click on the broken image, get the URL, and copy the image to that location for now.

That doesn't appear to be the resolve...

I copied the location and pasted it directly to the address bar so I could physically see where it was looking and noted it has doubled the format extension.

.../images/styles/Modern/misc/tab-collapsed.png.png

For some reason, png comes up twice. I don't know if I'm the only one encountering this, so it may be an issue my side.

Also, if I collapse the side bar - the screen expands correctly.. I move onto my next thread/different subforum/etc. and instead of the side bar is a blank column where the side-bar would be if it were visible... so my viewers aren't gaining anything if they collapse the bar as the space remains (as white space) on a page change.

tommyxv
07-11-2012, 05:30 AM
Is this mod XHTML valid? Also, is there a setting to always show the sidebar. I don't want anyone to be able to collapse it. There is a css trick to remove the collapse button if not.

Thanks.

BirdOPrey5
07-11-2012, 10:47 AM
That doesn't appear to be the resolve...

I copied the location and pasted it directly to the address bar so I could physically see where it was looking and noted it has doubled the format extension.

.../images/styles/Modern/misc/tab-collapsed.png.png

For some reason, png comes up twice. I don't know if I'm the only one encountering this, so it may be an issue my side.

Also, if I collapse the side bar - the screen expands correctly.. I move onto my next thread/different subforum/etc. and instead of the side bar is a blank column where the side-bar would be if it were visible... so my viewers aren't gaining anything if they collapse the bar as the space remains (as white space) on a page change.

I can't reproduce these issues anywhere else. Have you tried it on the default style? If you want to PM me admin access I will take a look when I get a chance.

Is this mod XHTML valid? Also, is there a setting to always show the sidebar. I don't want anyone to be able to collapse it. There is a css trick to remove the collapse button if not.

Thanks.

Yes there is a never-collapse option.

Honestly I don't know if it's XHTML valid or not, I don't care about such things.

Mukashi
07-11-2012, 12:17 PM
Experiencing the same error as karlm. The collapse button doesn't show up except on the forum home, and when the sidebar is collapsed from there then you have a wide blank space where the sidebar would otherwise be when you click through to a page set to have it.

BirdOPrey5
07-11-2012, 03:32 PM
Question for you guys with this issue-

If you go to: http://www.qapla.com/mods/forum.php

and collapse the sidebar,

and then go to the activity stream (click on What's New in the navbar) - do you have the same problem?

CharlieDelta
07-11-2012, 04:20 PM
I don't seem to be having these issues either. All is working fine for me.

PattiOz
07-12-2012, 12:13 AM
Fantastic mod.

A couple of things - I noticed that I need to have the default sidebar enabled in order for it to show on forumhome. If I turn off the VB sidebar, no sidebar shows on forumhome. That's not a big deal though.

Also where is the option to disable the vertical collapse?

karlm
07-12-2012, 09:51 AM
Question for you guys with this issue-

If you go to: http://www.qapla.com/mods/forum.php

and collapse the sidebar,

and then go to the activity stream (click on What's New in the navbar) - do you have the same problem?

I suspect the issue is when sidebar is shown on threads or subforums. However, to answer the Q, no, there is no problem on your site. I'll pm you the access as requested.

The below attachment is a snapshot taken while using the default skin.

BirdOPrey5
07-12-2012, 10:59 AM
Fantastic mod.

A couple of things - I noticed that I need to have the default sidebar enabled in order for it to show on forumhome. If I turn off the VB sidebar, no sidebar shows on forumhome. That's not a big deal though.

Also where is the option to disable the vertical collapse?

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.

I suspect the issue is when sidebar is shown on threads or subforums. However, to answer the Q, no, there is no problem on your site. I'll pm you the access as requested.

The below attachment is a snapshot taken while using the default skin.

I will check out your forum but could not reproduce on any forum I tested it with even on forumdisplay and showthread pages.

BirdOPrey5
07-12-2012, 11:55 AM
Confirmed issue and working on a fix. (Issue is I never tested the sidebar on the left to begin with)

BirdOPrey5
07-12-2012, 12:20 PM
Updated to version 2.0.1 - Fixed the bugs mentioned above- all associated with the sidebars positioned on the left.

Gemma
07-12-2012, 01:07 PM
Finally got around to installing v2.x

Very nice, great work! Added some conditionals to some blocks so they don't appear on certain pages (mainly in the arcade).

djbaxter
07-12-2012, 09:55 PM
@ BirdOPrey5
cosmetically the sidebar is a tad high compared to the forum home
works perfect tho..
thanks

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:
42px

ans chabe it to

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) 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:


<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.

You would need to edit each block_ template and remove the code in red.

EDIT- Better solution in post #85

BirdOPrey5
07-13-2012, 03:19 PM
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
You would need to edit each block_ template and remove the code in red.
or write the following in the additional.css

#sidebar_container a.collapse {
display: none;
}

djbaxter
07-13-2012, 05:17 PM
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
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:


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


change it to


<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
or write the following in the additional.css

#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:

#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-

display: none !important;

moonfox
07-15-2012, 02:30 PM
Looks very nice!

I tried it but on my custom style I have sidebar width var set to 300px (because of ads I have that are that width). It works on forum home but on all other pages shows as the default 270px. Let me know if I am missing something.

I reverted to using everywhere sidebar. It has an option within the mod cp to set sidebar width.

moonfox
07-15-2012, 03:01 PM
I am also getting the vertical collapse button in my custom style with your mod. I don't get this in ESB although I don't remember if I had to change anything to achieve this, and there is no setting in ESB mentioning it.

djbaxter
07-15-2012, 03:58 PM
I am also getting the vertical collapse button in my custom style with your mod. I don't get this in ESB although I don't remember if I had to change anything to achieve this, and there is no setting in ESB mentioning it.


Add the following to additionalcss.css

#sidebar_button_link {
display:none !important;
}

#sidebar_container a.collapse {
display: none !important;
}

karlm
07-15-2012, 11:44 PM
Option in ACP for width would be good to implement in future release..cough cough :)

djbaxter
07-15-2012, 11:59 PM
True. But that's not gonna help that cough of yours...

In the meantime:

AdminCP -> Style Manager -> Style Variable Editor -> Sidebar -> forum_sidebar_width

and repeat for cms and blog if you have the suite and use those elements.

BirdOPrey5
07-16-2012, 09:58 AM
OK width will be picked up off the stylevar in the next version- will look into implemented a disable for vertical collapse as well.

tpearl5
07-16-2012, 03:07 PM
BOP, would consider adding the ability to specify different blocks based on "THIS SCRIPT ="?

BirdOPrey5
07-16-2012, 09:50 PM
Not likely to happen, no idea how that code works.

tpearl5
07-17-2012, 06:53 PM
Not likely to happen, no idea how that code works.

It's just the code that identifies what pages are what. For example, showthread, index, etc.

BirdOPrey5
07-17-2012, 07:53 PM
My bad- I understand how "THIS_SCRIPT" works- that is in most of my mods. I meant in my programming of this mod I didn't come across anything that would let me choose which forum-blocks load per page. I know everywhere sidebar has that option but at this moment I don't know how I would begin to implement such an option- truth be told this is a fairly simple mod all things considered- I was not planning on complicating it by allowing per-script options.

SimonB
07-18-2012, 10:01 AM
I have tried to add the sidebar on custom pages (or at least a page associated with another product)

In this case it is DownloadsII, which has a THIS_SCRIPT name defined as below

define('THIS_SCRIPT', 'downloads2');

So for the "custom" page I have the following in the config

register|register*30 <-- this was here originally
downloads2|smoothred

Now this is being ignored. So I assume it is because of the incorrect template name, which is actually Smooth Red. I have tried enclosing in quotes but this doesn't work either.

Is this a problem with the specified template name, or is the problem likely somewhere else?

Thanks

moonfox
07-18-2012, 10:19 AM
True. But that's not gonna help that cough of yours...

In the meantime:

AdminCP -> Style Manager -> Style Variable Editor -> Sidebar -> forum_sidebar_width

and repeat for cms and blog if you have the suite and use those elements.

FYI - I am not able to change width. I am using custom style.

tpearl5
07-18-2012, 12:56 PM
My bad- I understand how "THIS_SCRIPT" works- that is in most of my mods. I meant in my programming of this mod I didn't come across anything that would let me choose which forum-blocks load per page. I know everywhere sidebar has that option but at this moment I don't know how I would begin to implement such an option- truth be told this is a fairly simple mod all things considered- I was not planning on complicating it by allowing per-script options.

gotcha :) No prob, I was just hoping to see something that is put together better ;)

wolfe
07-18-2012, 06:22 PM
1) That is by design- why add code to do something vbulletin already does itself?


it looks better when it shows up next to the shoutbox how can i make it work on the forums index i tried

index|forumhome now luck also tried FORUMHOME

BirdOPrey5
07-18-2012, 08:12 PM
I have tried to add the sidebar on custom pages (or at least a page associated with another product)

In this case it is DownloadsII, which has a THIS_SCRIPT name defined as below

define('THIS_SCRIPT', 'downloads2');

So for the "custom" page I have the following in the config

register|register*30 <-- this was here originally
downloads2|smoothred

Now this is being ignored. So I assume it is because of the incorrect template name, which is actually Smooth Red. I have tried enclosing in quotes but this doesn't work either.

Is this a problem with the specified template name, or is the problem likely somewhere else?

Thanks

Smooth Red sounds like the name of a style... I am certain the Template Name of downloads2 is not "smoothred."

To find out the template name go to Admin CP -> Settings -> Options -> General Settings -> Add Template Name in HTML Comments -> Yes

Now open the Downloads II page, and view the source in your web browser.

The first or second line will be something like:

<!-- BEGIN TEMPLATE: iframer_bop5_vb4 -->

In this example the template name is iframer_bop5_vb4. (An example from my IFRAMEr mod.)

FYI - I am not able to change width. I am using custom style.

Custom width hasn't been implemented yet.

it looks better when it shows up next to the shoutbox how can i make it work on the forums index i tried

index|forumhome now luck also tried FORUMHOME

To use it on Forum Index turn on the default vBulletin Forum Sideblock. It will be the same thing.

pete_brady
07-18-2012, 10:23 PM
A quick request: Would it be possible to show / hide the sidebar collapse button based on group membership?

thecore762
07-18-2012, 11:07 PM
A quick request: Would it be possible to show / hide the sidebar collapse button based on group membership?

At this point based on BOP5's last post I'd suggest putting this suggestion vBulletin's JIRA.

SimonB
07-19-2012, 11:17 AM
Smooth Red sounds like the name of a style... I am certain the Template Name of downloads2 is not "smoothred."

DOH!!!! There is a phrase in my home country that, loosely translated, means "There ain't no pills for stupidity":erm::erm:

Yes, I had templates and styles confused

BirdOPrey5
07-19-2012, 05:24 PM
A quick request: Would it be possible to show / hide the sidebar collapse button based on group membership?

I can probably add that in, yes. Next update.

pete_brady
07-19-2012, 05:35 PM
I can probably add that in, yes. Next update.

awesome, thanks

SimonB
07-20-2012, 08:22 AM
For fear of asking another silly question, but why would my sidebar be on the right of the CMS section, but on the left in the activity and forum modules?

Looks to me like a vBulletin issue and not specifically one of this mod, but not sure..

EDIT, ok I understand the CMS doesn't use the LHS/RHS sidebar configuration at all and this is rather embedded in the grid structure... more work for me to do :)

BirdOPrey5
07-22-2012, 01:22 PM
After further investigation it seems setting the width via the stylevar forum_sidebar_width does indeed work to re-size the sidebar width on all pages.

If that is not working for you please link me to an example page.

gedsta
07-22-2012, 02:27 PM
I can probably add that in, yes. Next update.

This would be a great addition.

I currently use the other coder's mod and so would be interested to see if yours provides any performance increase etc

pyes
07-31-2012, 05:28 PM
this works great ty

BirdOPrey5
07-31-2012, 08:38 PM
this works great ty

Thanks. If you are using it please "Mark as Installed" : https://vborg.vbsupport.ru/external/2013/09/18.jpg

Killhunter
08-03-2012, 09:30 AM
@Bird: My suggestion for this mod: https://vborg.vbsupport.ru/showthread.php?p=2353847#post2353847

BirdOPrey5
08-03-2012, 01:37 PM
@Bird: My suggestion for this mod: https://vborg.vbsupport.ru/showthread.php?p=2353847#post2353847

That wouldn't be a suggestion for this mod- that would be a separate forum sideblock that works as you request.

BGN64
08-03-2012, 04:55 PM
I can probably add that in, yes. Next update.

A quick request: Would it be possible to show / hide the sidebar collapse button based on group membership?

Add this and I'm in... tagged for now.

BirdOPrey5
08-03-2012, 06:59 PM
Updated to version 2.1.0

Added option to prevent collapsing of sidebar by usergroup (including FORUMHOME sidebar)

If upgrading be sure to go back to the settings to set which usergroups have permission to collapse the sidebar. By default all the built in usergroups (besides banned) have permission.

Gemma
08-03-2012, 07:34 PM
Thanks for the update :)

Hippy
08-03-2012, 11:59 PM
Thanks Brotha

Killhunter
08-04-2012, 07:41 PM
That wouldn't be a suggestion for this mod- that would be a separate forum sideblock that works as you request.

Well, you cant do that? :o

sweetpotato
08-05-2012, 02:51 AM
Is there anyway to excluded threads/posts of certain forums being showed on sidebar?
Thanks,

BirdOPrey5
08-05-2012, 10:46 AM
Well, you cant do that? :o

No, sorry.

Is there anyway to excluded threads/posts of certain forums being showed on sidebar?
Thanks,

You can edit the forum block in Forum Blocks Manager and restrict which forum's posts/threads get pulled from for each block.

Anygma
08-10-2012, 03:27 PM
the sidebar sudden didnt work on subpages except in forum.php...
but when Im logged out, its working fine..
What are the probable cause?

Thanks

BirdOPrey5
08-10-2012, 04:55 PM
Make sure it is enabled for your usergroup in the Admin CP Settings.

Anygma
08-11-2012, 03:58 AM
Its already enabled for ALL uergroups...

BirdOPrey5
08-11-2012, 07:08 PM
I can't think of any other reason it would not show if you were logged in. If you want to PM me a link to your site and Amin CP access I can take a look.

gedsta
08-15-2012, 12:42 PM
Installed and working fine on our beta website, thanks for the latest update.

Couple more useful additions maybe?

1) The ability to place the sidebar to the left or right hand side of the forums?
2) The ability to also change the width of the sidebar etc eg 200, 210, 230 etc?
3) The ability to also change the width of the gap between the sidebar and the forums etc?

Thanks again.

BirdOPrey5
08-15-2012, 08:25 PM
Installed and working fine on our beta website, thanks for the latest update.

Couple more useful additions maybe?

1) The ability to place the sidebar to the left or right hand side of the forums?
2) The ability to also change the width of the sidebar etc eg 200, 210, 230 etc?
3) The ability to also change the width of the gap between the sidebar and the forums etc?

Thanks again.

These are all possible now.

Left or Right will work based on what you have the default forum sidebar set to (Admin CP -> Settings -> Options -> Forum Sidebar and Block Option)

The width can be changed by the stylevar- the same stylevar that changes the default sidebar width- it has been mentioned in this thread before- I think it is in Stylvar Editor -> Sidebar-> forum_sidebar_width. Just search for "sidebar" there's only a few.

Any other changes - like the gap width can be done via custom CSS in additional.css or stylevars if they exist.

For example this in addtional.css should narrow the gap-


#sidebar_container {
padding-right: 10px !important;
}


Note padding=right is needed for the siebar on the right of the page. If on the left of the page use padding-left.

gedsta
08-15-2012, 08:37 PM
These are all possible now.



Great news, thank you very much for the additional information.

I think there is one more thing I need to know now before we put your mod live and give it a go.

We use Logician's WebTemplates and as per your instructions, I have added the following.

view|Test Webtemplate*30 (a test one)

But I am unsure as to what the second part should be. We normally use the default template default_basic_theme1 or Default Basic Theme but adding that to the box still doesn't work. :(

ie

view|default_basic_theme1*30

Any pointers at all if possible?

BirdOPrey5
08-15-2012, 09:55 PM
1) Did you open (I assume) view.php in a text editor and confirm the "THIS_SCRIPT" name is indeed "view" ?

2) Did you go to Admin CP -> Settings -> Options -> General Settings and enable Template Names in HTML Comments, and then load/view a page on view.php, view the HTML source in your browser, and then copy the template name at the top of the code?

Those are the two pieces of info you need for it to work on a custom mod.

gedsta
08-16-2012, 11:55 AM
1) Did you open (I assume) view.php in a text editor and confirm the "THIS_SCRIPT" name is indeed "view" ?

Yes.

2) Did you go to Admin CP -> Settings -> Options -> General Settings and enable Template Names in HTML Comments, and then load/view a page on view.php, view the HTML source in your browser, and then copy the template name at the top of the code?

The template I checked after doing this is Test - adding the text;

view|Test*30

Does not show the sidebar at all.

I know on the alternative mod, the following had to be added to view.php as Logician confirmed in his thread.

Find

print_output($templater->render());

Add above

$templater->register('sidebarext', $sidebarext);

$templater->register('sidebaropen', $sidebaropen);



https://vborg.vbsupport.ru/showpost.php?p=2355756&postcount=219

BirdOPrey5
08-18-2012, 09:19 AM
Can you give me a link to a page on your site that is powered by Web templates and make sure your Template names in HTML comments are still enabled.

zascok
08-18-2012, 01:07 PM
Thanks, ones again. Actually I was looking for something to make sidebar to work somehow on vBA , this did it with no hassle. Just a tiny 4-5 px uneven with the rest of vBA lining. Don't mind tho. but if there is a way with no troubles for you , please advise

Anygma
08-20-2012, 01:57 PM
I can't think of any other reason it would not show if you were logged in. If you want to PM me a link to your site and Amin CP access I can take a look.

nvm, it only happens on chrome on my desktop..

anyway..
I added a custom code on FORUMHOME, above {vb:raw sidebar}..
But when I go to other pages it is not included on the sidebar..
How can I include my custom code show on other pages too?
My custom codes only include html, vb:raw codes, and vb phrases codes..

Thanks!

Alecsmith
08-28-2012, 08:36 AM
Hey BirdOPrey5 everywhere sidebar not working on custom skin it is working on Activity & Forumhome but not at other options like showthread, PM etc.

Gemma
08-28-2012, 08:43 AM
Hey BirdOPrey5 everywhere sidebar not working on custom skin it is working on Activity & Forumhome but not at other options like showthread, PM etc.

This might be a silly, simple question but have you set it up to show on those pages?

Alecsmith
08-28-2012, 08:54 AM
This might be a silly, simple question but have you set it up to show on those pages?

I tried but isn't working i am using Ideal Theme from Themeforest

BirdOPrey5
08-29-2012, 04:49 PM
Are you sure you downloaded the right version?

You need to download the second Zip fie: Sidebar Anywhere by BOP5v210.zip

The top one works only on the Acitivty Stream.

Alecsmith
08-30-2012, 03:37 AM
Yeah i installed same version anyway i uninstalled and then fresh installed plugin its working fine, Thanks :)

qpurser
09-04-2012, 06:33 AM
As always great MOD.
Works very well but I have a small issue.

The sidebar shows properly on most pages with sidebar activated however I found a small problem with the Calendar page.
The sidebar shows up properly when viewing the calendar in general or the detailed event view.
Only when editing the calendar event the sidebar gets moved all the way to the bottom of the page and the forum footer moves to the right top of the page as shown in the screenshot.

Any suggestions to fix this?

Thanks
Michael

ksmedia
09-11-2012, 12:34 AM
Thanks for the great Mod,

is there a possibility of displaying a block based on forum-ID, as you´ve done it with THIS_SCRIPT. For example:

block_html_2|forum-id1
block_html_3|forum-id2
..etc

Thanks in Advance

BirdOPrey5
09-11-2012, 11:44 AM
No way of specify specific blocks as it is current designed.

JAnders
09-14-2012, 05:46 PM
the sidebar displays pretty much anywhere fine except when reading posts. in some cases it just shows way at the bottom of the page, in other instances it overlaps with the rest of the page.

BirdOPrey5
09-17-2012, 08:57 AM
Can you try it temporarily on the default style and see if you still have the issue?

sivaganeshk
09-23-2012, 03:25 PM
Can we display sidebar *only* on threads?
Does this sidebar loads only recent activity? or any html/php contents?

BirdOPrey5
09-27-2012, 03:03 PM
You can enable the sidebar only on the SHOWTHREAD template if you wish.

It should load any sdebar block the regular sidebar loads.

BlogTwits
10-03-2012, 08:36 AM
Hi, sorry if this has been answered, does the activity stream block show the exact same info as the forum block or can you choose different blocks? I noticed on Qapla that both pages show the same sideblocks. Thanks

BlogTwits
10-03-2012, 08:43 AM
Never mind, just saw the info in the zip :)

se7o
10-03-2012, 04:17 PM
I have problem

the original side bar in home page is in the right side

the sections side bar is in left

i want make all pages in right

see

http://www.ng3awya.com/forum.php



http://www.ng3awya.com/forum8.html

BirdOPrey5
10-05-2012, 05:46 PM
Seems to be a bug because I didn't account for RTL languages on left/right positions.

Please go to the Admin CP -> Plugin Manager and edit the plugin: Sidebar Anywhere Edits

Find the line:
if ($vbulletin->options['sidebarposition'])

and change it to:
if (!$vbulletin->options['sidebarposition'])

(add the exclamation point)

and let me know if it works, please.

sticky
10-06-2012, 03:53 AM
I think this is coded absolutely awesome and pretty badass the only problem is, why not work on the CMS page? It works everywhere else...

BirdOPrey5
10-06-2012, 10:29 AM
It's just not a built in location because for the CMS people usually use CMS widgets in their own "sidebar" but if you add this code to the Custom Scripts... setting:


vbcms|vbcms_page


It will work on CMS pages.

sticky
10-06-2012, 04:13 PM
It's just not a built in location because for the CMS people usually use CMS widgets in their own "sidebar" but if you add this code to the Custom Scripts... setting:


vbcms|vbcms_page


It will work on CMS pages.
Perfect, going to try it now. Thanks!

sticky
10-06-2012, 05:02 PM
Had to disable the mod as for whatever reason if enabled on forum pages when trying to edit and quick save it won't work. Have to click go advanced.

This bug needs to be fixed or it may be how it plays with another mod but either way it's a big problem toward using this.

BirdOPrey5
10-06-2012, 06:35 PM
Had to disable the mod as for whatever reason if enabled on forum pages when trying to edit and quick save it won't work. Have to click go advanced.

This bug needs to be fixed or it may be how it plays with another mod but either way it's a big problem toward using this.

I'm not having that issue on my site with Chrome. What browser are you using?

And you are talking about editing posts on showthread, correct?

se7o
10-07-2012, 04:04 PM
Seems to be a bug because I didn't account for RTL languages on left/right positions.

Please go to the Admin CP -> Plugin Manager and edit the plugin: Sidebar Anywhere Edits

Find the line:
if ($vbulletin->options['sidebarposition'])

and change it to:
if (!$vbulletin->options['sidebarposition'])

(add the exclamation point)

and let me know if it works, please.




it not work


(add the exclamation point)



i don't understand this point

BirdOPrey5
10-07-2012, 08:54 PM
! = exclamation point, you need to add it to the code... Before the $.

Azonaco
10-08-2012, 09:32 PM
Is there any way to get the sidebar to display below where a thread starts? Aligned with the first post would be perfect for our site.

sticky
10-09-2012, 01:18 AM
I'm not having that issue on my site with Chrome. What browser are you using?

And you are talking about editing posts on showthread, correct?
Yes. Also using Chrome.

Only happens when I have the mod enabled....

sticky
10-10-2012, 03:18 AM
! = exclamation point, you need to add it to the code... Before the $.
Just seeing if you would like to see it in use on my forum so you understand what I mean. I was planning on purchasing some of your products anyway so let me know if you have time that way we could also install.

sticky
10-11-2012, 08:09 AM
I'm not having that issue on my site with Chrome. What browser are you using?

And you are talking about editing posts on showthread, correct?

I think I found the problem: https://vborg.vbsupport.ru/showpost.php?p=2366011&postcount=47

sticky
10-12-2012, 03:26 AM
I think I found the problem: https://vborg.vbsupport.ru/showpost.php?p=2366011&postcount=47

Yep, that was it. Compatibility issue.

sticky
10-12-2012, 05:48 AM
Any way to make it to the sidebar is disabled for iphones and ipad's? Basically all mobile devices?

BirdOPrey5
10-16-2012, 06:21 PM
There isn't any such feature.

Asok
10-18-2012, 01:03 AM
What am I doing wrong. I have installed this and it will not show up. Only the activity stream is. I am using VB 4.2.0.

Jamie G
10-19-2012, 10:37 PM
Is there a way to use this instead of the blog sidebar?

Thanks,
J

sticky
10-20-2012, 08:48 PM
There isn't any such feature.
Could it be programmed? Users are complaining the sidebar causes problems when browsing from a mobile device like an Iphone.

BirdOPrey5
10-21-2012, 09:57 PM
What am I doing wrong. I have installed this and it will not show up. Only the activity stream is. I am using VB 4.2.0.

Did you download the right version? You need to download Sidebar Anywhere by BOP5v210.zip

Then once installed you have to go to the mod settings and enable it on specific pages- by default it is only enabled in the Activity Stream.

Is there a way to use this instead of the blog sidebar?

Thanks,
J

Instead of? I'm not sure how you would disable the blog sidebar, maybe via css display:none. You can add blog as a custom page, it works, I've tested it.

Could it be programmed? Users are complaining the sidebar causes problems when browsing from a mobile device like an Iphone.

Realistically not anytime soon. I'm working on upgrading my 3.x site to VB 4 so after that I may go back and add some useful features to this mod.

piratarg
11-03-2012, 12:31 PM
Hi, Is possible to exclude blocks of pages by their ID?

example: "blockid=1" not show in forumdisplay

Good mod, very thanks for this!

sticky
12-02-2012, 10:11 PM
Any idea why having the sidebar everywhere causes formatting issues with non-desktop browsers like on phones and tablets?

BirdOPrey5
12-04-2012, 10:50 PM
My guess is because the mobile browsers do something to fake their widths, which works well most of the time.

I recently got a tablet (finally) I will be playing with it and see if there is anything I can do.

sticky
12-04-2012, 11:42 PM
My guess is because the mobile browsers do something to fake their widths, which works well most of the time.

I recently got a tablet (finally) I will be playing with it and see if there is anything I can do.
Thanks. Ya it's only tablets and phones.

BirdOPrey5
12-06-2012, 01:10 AM
Updated to Version 2.2.0

New Features:

Option to disable Sidebar Anywhere if mobile device detected
Option to disable built-in Sidebar if mobile device detected


NOTE: Both options require installation of this Mobile Browser Detector (https://vborg.vbsupport.ru/showthread.php?t=292704) mod.

fishmaster
12-06-2012, 08:39 AM
I reverted some template in the activity stream template when I was doing changes to colors, etc. after doing so, it removed your modification. Tried removing and reinstalling several time, but can never get it to display. Any tips on forcing it to work again?

Thanks!

sticky
12-06-2012, 10:24 AM
Updated to Version 2.2.0

New Features:

Option to disable Sidebar Anywhere if mobile device detected
Option to disable built-in Sidebar if mobile device detected


NOTE: Both options require installation of this Mobile Browser Detector (https://vborg.vbsupport.ru/showthread.php?t=292704) mod.
Awesome features! Just what I wanted :)

BTW, that formatting issue I posted only happens when the sidebar is not on the forum index. So, essentially anywhere else.

sticky
12-06-2012, 10:29 AM
Updated to Version 2.2.0

New Features:

Option to disable Sidebar Anywhere if mobile device detected
Option to disable built-in Sidebar if mobile device detected


NOTE: Both options require installation of this Mobile Browser Detector (https://vborg.vbsupport.ru/showthread.php?t=292704) mod.
Just tested and on my cell phone (Galaxy Note II) the sidebar still shows even with disable sidebar anywhere if mobile device detected set to yes.

BirdOPrey5
12-06-2012, 11:53 AM
I reverted some template in the activity stream template when I was doing changes to colors, etc. after doing so, it removed your modification. Tried removing and reinstalling several time, but can never get it to display. Any tips on forcing it to work again?

Thanks!

Can you see if it is working on the default style? Are you sure you re-enabled the mod in all places after uninstalling and re-installing?

Just tested and on my cell phone (Galaxy Note II) the sidebar still shows even with disable sidebar anywhere if mobile device detected set to yes.

Link to your site so I can check on my tablet?

Confirming you did install the mobile detect mod?
Is your mobile browser set to display desktop versions of sites?

fishmaster
12-06-2012, 07:09 PM
Using the default style as my template. Ensured proper user-groups selected and enabled on activity stream and a few other locations.

Mod is not showing up.

Sure the root cause is based on me reverting some templates.

BirdOPrey5
12-06-2012, 07:16 PM
Did you try uninstalling / reinstalling the mod again?

If it doesn't work on the default style after the mod is reinstalled it can't be a template issue- the mod is made to work with the default templates so reverting them should never break it.

fishmaster
12-06-2012, 08:04 PM
I have done it twice, but will try again.

Did notice, after a re-install, it remembered all my old settings.

Am running xcache if that means anything?

AusPhotography
12-07-2012, 01:22 AM
Upgrade on vB4.2.0 -- all good

Kym

fishmaster
12-07-2012, 01:34 AM
No love. Can PM log-in credentials if you would give it an inspection.

BirdOPrey5
12-07-2012, 02:11 AM
I have done it twice, but will try again.

Did notice, after a re-install, it remembered all my old settings.

Am running xcache if that means anything?

I don't know how xcache could effect it but if it "remembered" the settings it was never truly uninstalled.

You can PM me login info, I will take a look, and try to remove the product completely.

sticky
12-07-2012, 06:21 AM
Confirming you did install the mobile detect mod?
Is your mobile browser set to display desktop versions of sites?

That was my mistake, works perfectly now.

Btw, thank you for implementing my suggestion you didn't seem to like the idea at first. But... this solves all issues :)

LiveXenon
01-02-2013, 07:55 PM
@BirdOPrey5

Hey, I have installed your product and it's very useful, I love it!

I need your help, please: I want to put sliding sidebar in Forumdisplay... How can I do it?

Thank you so much!

SPVB
01-10-2013, 11:15 PM
Installed and it was so simple! Love this mod :)

SPVB
01-10-2013, 11:16 PM
Installed and it was so simple! Love this mod :)

Guest20210129
01-12-2013, 10:06 AM
Hello everyone. I have a little problem:

It seems that the style of the tag cloud (bigger font if the tag is more used) is lost when the sidebar is shown in other place different from forum.php

https://vborg.vbsupport.ru/external/2013/02/59.png

Do anyone have experienced this and have solved it?

You can also spot the difference

here: http://www.tmas.es/foro/forum.php

and here: http://www.tmas.es/foro/otros-centros/28-convocatoria-marzo-2013-cefaal.html

Thanks!

BirdOPrey5
01-12-2013, 01:56 PM
@BirdOPrey5


Hey, I have installed your product and it's very useful, I love it!

I need your help, please: I want to put sliding sidebar in Forumdisplay... How can I do it?

Thank you so much!

Make sure you downloaded: Sidebar Anywhere by BOP5 v220.zip

Forumdisplay will be a yes/no option in settings. Just choose YES.

LiveXenon
01-12-2013, 04:41 PM
Make sure you downloaded: Sidebar Anywhere by BOP5 v220.zip

Forumdisplay will be a yes/no option in settings. Just choose YES.

I mean sliding sidebar with the scroll of the page...

Mickie D
01-13-2013, 05:38 PM
Having a problem with the width when changing it in the style vars?

It works on the forumhome, but it does not work the width on any other page???

It stays at 250px, I would like to make it 200px on all pages not just the forumhome page?

EDIT

Additional problem:
It seems that turning off mobile devices is not functioning, members are reporting its still on using iphones, ipads, and androids?

Thank you for any help.
Mick

dannycutts
01-18-2013, 11:42 AM
Can the sidebar be displayed on the left side of the site instead of the right hand side?

Also.....

Can I easily adjust the width of teh sidebar?

Cheers

Danny

BirdOPrey5
01-31-2013, 08:46 PM
I mean sliding sidebar with the scroll of the page...

If it doesn't happen with the default sidebar it won't happen with this one.

Having a problem with the width when changing it in the style vars?

It works on the forumhome, but it does not work the width on any other page???

It stays at 250px, I would like to make it 200px on all pages not just the forumhome page?

EDIT

Additional problem:
It seems that turning off mobile devices is not functioning, members are reporting its still on using iphones, ipads, and androids?



Thank you for any help.
Mick

For the mobile issue- did you install the mobile detection product? Here: https://vborg.vbsupport.ru/showthread.php?t=292704

For the sidebar width it works on my forum (Here I set the width to a narrow 150 for an example on the activity stream)
https://vborg.vbsupport.ru/attachment.php?attachmentid=143555&stc=1&d=1359668720

So not sure why it wouldn't work on yours- possibly a custom style? Can you see if it works on the default style?

Can the sidebar be displayed on the left side of the site instead of the right hand side?

Also.....

Can I easily adjust the width of teh sidebar?

Cheers

Danny

In Admin CP -> Settings -> Options -> Forum Sidebar and Block Options you can choose Left or Right. Note this only works for the newer version of this mod- "Sidebar Anywhere" not Sidebar for Activity Stream.

The width should obey the stylevar forum_sidebar_width.

Guest20210129
02-01-2013, 06:45 PM
Hello everyone. I have a little problem:

It seems that the style of the tag cloud (bigger font if the tag is more used) is lost when the sidebar is shown in other place different from forum.php

https://vborg.vbsupport.ru/external/2013/02/59.png

Do anyone have experienced this and have solved it?

You can also spot the difference

here: http://www.tmas.es/foro/forum.php

and here: http://www.tmas.es/foro/otros-centros/28-convocatoria-marzo-2013-cefaal.html

Thanks!

No idea of this? :confused:

Thanks!

hugh_
02-15-2013, 08:49 PM
I have this mod working perfectly with all the pages I want except one. For some reason attachmentgallery|attachmentgallery isn't working with the following:

the scriptname: attachmentgallery

error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'attachmentgallery');
$phrasegroups = array('posting','attachment_image','album');
$specialtemplates = array();
$globaltemplates = array(
'attachmentgallery',
'ag_shell',
'ag_bit',
'attachmentgallery_advopt',

https://vborg.vbsupport.ru/showthread.php?t=264966

Any idea why?

Thank you!

BirdOPrey5
03-03-2013, 11:22 AM
I have this mod working perfectly with all the pages I want except one. For some reason attachmentgallery|attachmentgallery isn't working with the following:

the scriptname: attachmentgallery

error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'attachmentgallery');
$phrasegroups = array('posting','attachment_image','album');
$specialtemplates = array();
$globaltemplates = array(
'attachmentgallery',
'ag_shell',
'ag_bit',
'attachmentgallery_advopt',

https://vborg.vbsupport.ru/showthread.php?t=264966

Any idea why?

Thank you!

The main template name for that mod is: ag_shell not attachmentgallery.

So try:

attachmentgallery|ag_shell

BirdOPrey5
03-03-2013, 11:29 AM
No idea of this? :confused:

Thanks!

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:


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.cs s';
}

}


The tags should now be correct sizes on all pages.

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

malmazan
03-05-2013, 07:32 PM
I'm wondering how to make it work on tags.php, which gets lots of hits. The problem is that there seems to be no template associated with that.

hugh_
03-06-2013, 07:39 AM
The main template name for that mod is: ag_shell not attachmentgallery.

So try:

attachmentgallery|ag_shell

I tried that before I posted here, it didnt work.

BirdOPrey5
03-09-2013, 09:46 AM
Every vBulletin page has a template, otherwise nothing would work.

For tags.php the template it: tag_cloud_page

SO add this to the custom box-


tags|tag_cloud_page



Please "Mark as Installed" if you use this. :)

BirdOPrey5
03-09-2013, 09:57 AM
I tried that before I posted here, it didnt work.

Weird.... I guess it's not compatible then. Sorry.

Greenwoodi
03-14-2013, 09:10 AM
Hi, everybody! Prompt, please, as it is possible to move sidebar to a template a header? Thanks for the answer.

BirdOPrey5
03-14-2013, 09:12 PM
I don't understand what you want- a sidebar in the header? Not going to happen with this mod- don't see how it would work like that.

PHP FAN
03-19-2013, 11:46 PM
In Admin CP -> Settings -> Options -> Forum Sidebar and Block Options you can choose Left or Right. Note this only works for the newer version of this mod- "Sidebar Anywhere" not Sidebar for Activity Stream.

The width should obey the stylevar forum_sidebar_width.

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.

simon661
03-31-2013, 10:34 PM
it is very nice mod, work good in my forum, thanks!

Check my forum to see how it works:
http://www.railtransit-cbtc.com/CBTCcommunity/forum.php

ps2wiz
04-02-2013, 08:35 PM
Does this mod give the option to enable both left and right sidebars at the same time?

tazping2000
04-04-2013, 11:53 AM
Weird .... this mod has been working with me for a few years. The other day I disabled and today when I enabled it it no longer works!! No sidebars. I didn't change anything!! :(

I tried uninstalling, etc..

Hippy
04-05-2013, 08:55 PM
Weird .... this mod has been working with me for a few years. The other day I disabled and today when I enabled it it no longer works!! No sidebars. I didn't change anything!! :(

I tried uninstalling, etc..

years ???????
this mod was only released May 22 2012

reinstall it..

BirdOPrey5
04-09-2013, 01:15 PM
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:

$vboptions[\'sidebarposition\'] == 0

and change them to

$vboptions[\'sidebarposition\'] == 1

See if that fixes the issue.

Does this mod give the option to enable both left and right sidebars at the same time?

years ???????
this mod was only released May 22 2012

reinstall it..

Reinstall is good advice.

Bluefin221
04-16-2013, 06:59 PM
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.

// ################### 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.

mikesafl
04-16-2013, 11:25 PM
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?

BirdOPrey5
04-17-2013, 12:18 AM
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.

// ################### 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.


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.

Bluefin221
04-17-2013, 10:12 PM
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.

define('THIS_SCRIPT', 'multi_custom_page'.$scrpt);

I have tried various variations for this but cannot appear to get it working.

BirdOPrey5
04-18-2013, 06:58 PM
Have you tried just multi_custom_page as the script name?

Bluefin221
04-18-2013, 07:44 PM
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.

AusPhotography
04-19-2013, 01:20 AM
Will this work on 4.2.1?

rhody401
04-19-2013, 12:59 PM
I'm using it on my forum with 4.2.1, and have no problems to report

BirdOPrey5
04-19-2013, 01:41 PM
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,

Will this work on 4.2.1?

Working fine on 4.2.1 for me.

Bluefin221
04-19-2013, 04:19 PM
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,

Yes value of $script is ab_s=1

So it goes...

multi_custom_page.php?ab_s=1
multi_custom_page.php?ab_s=2
multi_custom_page.php?ab_s=3

Upto 10.

So I guess it probably wont work with this, I might just make the pages myself as that seems a lot easier, I was just being lazy by trying to get a mod that made vb pages for me and all I did was add the content in it.

BirdOPrey5
04-20-2013, 12:35 AM
try...

multi_custom_page1|vbfixer_cpn_temp
multi_custom_page2|vbfixer_cpn_temp
multi_custom_page3|vbfixer_cpn_temp
etc...

Bluefin221
04-20-2013, 12:59 AM
try...

multi_custom_page1|vbfixer_cpn_temp
multi_custom_page2|vbfixer_cpn_temp
multi_custom_page3|vbfixer_cpn_temp
etc...

Worked a treat.

http://www.fpcforums.com/forums/multi_custom_page.php?ab_s=1

Thank you.

PHP FAN
04-21-2013, 09:29 AM
Sorry about that, I don't have any RTL boards to test off of.

You can test RTL layout very easy:

Go to Admin CP -> Languages & Phrases -> Language Manager

Add New Language (English)

Name it RTL Test or what ever you like

But make sure you select (Right to Left) in the Text Direction filed



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

Find the 4 instances of:

$vboptions[\'sidebarposition\'] == 0

and change them to

$vboptions[\'sidebarposition\'] == 1

See if that fixes the issue.

Reinstall is good advice.



It works but the tab-collapsed.png looks not right until I click on it.


Thanks

RonH.
04-27-2013, 08:57 PM
Instead of? I'm not sure how you would disable the blog sidebar, maybe via css display:none. You can add blog as a custom page, it works, I've tested it.
I'm using the suite version of 4.2.0 and I'm interested only in using the Blog portion on my blog site. Will this mod of yours suit my purpose of using it as a customizable sidebar block on my blog page? I do hope I have asked my question in a manner that you will understand.

BirdOPrey5
04-28-2013, 12:46 PM
This mod doesn't allow for customized sidebar blocks. It displays the same sidebar blocks on every page.

You can use it only for your blog if you want but vBulletin designed the blog to have their own sidebar.

RonH.
04-28-2013, 09:25 PM
You can use it only for your blog if you want but vBulletin designed the blog to have their own sidebar.

Okay, I understand. Thanks. One more question if I may for either you or anyone else here who may know, is there a way to modify or manipulate vBs sidebar in the blog portion to allow for the addition of HTML or some other way to add sections to the existing pre-packaged blog contents? I just want to add simple html links and small images with links or just some text etc.

RonH.
04-29-2013, 08:05 PM
This mod should not be re-named from ANYWHERE but instead to Most Anywhere. It does not work on the vB 4.2 Blog page. If anyone wants to make a mod that works with or in addition to the vB version that comes with the blog contact me. Am willing to pay. It MUST actually work though. My Blog is part of the suite version of vB.

BirdOPrey5
05-12-2013, 12:13 PM
FYI-

It has come to my attention someone has figured out how to display different blocks on different pages- check it out here- https://vborg.vbsupport.ru/showthread.php?t=296104

RonH.
05-12-2013, 05:24 PM
It dosn't work on the vB Blog section either. Tried it out. I've given up on vB for my blog and decided to use WordPress Blog instead.

tagline
05-14-2013, 08:38 PM
I've an issue with my template that's not the default one. Some part of the template are missing... how to fix it?

BirdOPrey5
05-15-2013, 12:38 PM
Would suggest reverting any forum blocks templates showing issues. Backup the style first, though.

tagline
05-15-2013, 02:07 PM
Sorry, but I don't understand. :confused:
In the case, I've removed the entire template and re-installed but nothing happens. Can you post a step by step guide? Thank's

BirdOPrey5
05-15-2013, 06:14 PM
Do you have the problem on the default style?

To get the default style go to Admin CP -> Styles & Templates -> Style Manager -> Add New Style and create a new style with no parent style. This will be the default style.

Then go to Admin CP -> Settings -> Options -> Style & Language Settings and give permission for users to change styles (if it was disabled) so you can change to the default style to test it.

tagline
05-15-2013, 08:38 PM
My problem is not with default style. I've already set up my board in order to change template. I've a custom template and in the forum.php page there is no problem but if I change view (e.g. in post or thread) I lost template as you can see in previous attachement.

tagline
05-23-2013, 07:45 PM
No support, no responses for more than a week (just one but it is not the answer to my question)...

Uninstalled

BirdOPrey5
05-23-2013, 11:37 PM
If you don't have the problem with the default style then obviously the problem is due to your custom style, not the mod. So sorry, I cannot trouble shoot custom styling issues but I am not a style expert, I really have no idea what may be broken in your custom style and I do not have time to log into your site and look around. Had you posted a link to the site with the issue so I can see it happening there is a small chance I may have noticed something obvious, but you didn't. FYI - A screenshot isn't very helpful when trouble shooting styling issues.

tagline
05-24-2013, 05:10 AM
Joe, thanks anyway.

dimmicosacerchi
06-09-2013, 06:55 PM
Hi, I'm trying to add custom pages siderbar in Easy Forms and form, but the siderbar does not appear.
Could someone help me? Thank you.

bzcomputers
06-09-2013, 06:58 PM
Hi, I'm trying to add custom pages siderbar in Easy Forms and form, but the siderbar does not appear.
Could someone help me? Thank you.

post link to page

dimmicosacerchi
06-09-2013, 07:09 PM
Thanks for the reply!
This is the link to the form:
http://www.dimmicosacerchi.it/forum/forms.php?do=form&fid=1

This is a custom page:
http://www.dimmicosacerchi.it/forum/kalleis.php

BirdOPrey5
06-09-2013, 10:45 PM
What have you tried already that isn't working?

Did you enable template names in HTML comments to find the main template name?

Did you look at the kalleis.php file to find the THIS_SCRIPT value?

t-j
06-10-2013, 07:49 AM
Installed on 4.2.0 and working perfectly, good job on this one it takes the bland look from the activity stream

dimmicosacerchi
06-10-2013, 01:45 PM
Thank you for your help.
I tried inserting the following codes:
kalleis.php|KALLEIS

and with

kalleis|KALLEIS

But the siderbar not appear.

rumas
06-11-2013, 12:14 AM
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?

fxdigi-cash
06-11-2013, 06:25 AM
Thank you for your help.
I tried inserting the following codes:
kalleis.php|KALLEIS

and with

kalleis|KALLEIS

But the siderbar not appear.

if the page is kalleis.php then you type in the Filter Blocks by pages like this:

block_html_4:kalleis

nothing else is required, however, if you decided to hide it, all you need is to add page extension to it like this: kalleis.php

I hope it is clear now

P.S> change the number to what block you want to show...

dimmicosacerchi
06-11-2013, 11:05 AM
Thank you for the help, but what I ask is to bring up the whole siderbar kalleis.php the page and on the forms of Easy Form.

BirdOPrey5
06-12-2013, 04:43 PM
Did you open the file kalleis.php and find the THIS_SCRIPT value?

BirdOPrey5
06-12-2013, 04:46 PM
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?

It appears to be working OK on my 4.2.1 forum: http://www.qapla.com/mods/activity.php (at the bottom)

Did you go to Admin CP -> Languages and Phases -> Find Updated Phrases and provide new/fresh translations of anything listed?

dimmicosacerchi
06-12-2013, 05:44 PM
Did you open the file kalleis.php and find the THIS_SCRIPT value?

Thank you very much! I was able to enter it! The problem was the value of the page kalleis wrong (it's called "banner").
Instead I can not do the same thing in the pages of the form of Easy Form
The value of the form.php file is "forms".
An example page is this:
http://www.dimmicosacerchi.it/forum/forms.php?do=form&fid=1
I entered:
forms | forms
forms | forms.php
forms | Easy Forms
forms | forms.php? do = form & fid = 1

But it does not appear. : (Any suggestions?