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 06-12-2013 05:50 PM

You need to go to Admin CP -> Settings -> Options -> General Settings

Turn Template Names in HTML comments to YES

Then go back to: www.dimmicosacerchi.it/forum/forms.php

In your web browser, view the page source

At the top of the page will be a template name, maybe something like form_view

You then use the template name in the mod, something like

forms | form_view

Once its done and working go back and turn off template names in comments again.

dimmicosacerchi 06-12-2013 06:27 PM

I am so thankful! I solved it in a second with this method!
The name of the template (it may be helpful to others) is "shell_blank."
Thank you thank you thank you! :D:D

rumas 06-12-2013 09:28 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2427705)
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?

I have no phrases or translations of any kind. (All phrases are up-to-date.)

If I load activity.php the Activity Stream block does function on my site. However its not functioning in individual forums or in threads.

I noticed you do not have the sidebar turned on for forums or threads on your site. Please enable it on forums and threads on your site to test, or anybody else for that matter.
Maybe its just me and I have to hunt down another issue.

I love the mod, you did a great job and it should be a option in default VB. I just turned off the Activity Stream block until I discover if its me or the mod.

Thanks!

ArcadeSyndicate 07-07-2013 08:37 PM

awesome mod, works fine execpt with ibpro-arcade...

Parse error: syntax error, unexpected T_STRING in /www/htdocs/**********/includes/class_core.php(4716) : eval()'d code on line 2

anybody got a solution?

thanks in advance :)

BirdOPrey5 07-07-2013 08:44 PM

What version of VB are you using exactly? If you disable the sidebar mod the error goes away? It only happens on arcade.php?

What are you using to enable it in the arcade?

Grimes 07-14-2013 03:46 PM

Not sure if this has been discussed, but how can I hide certain blocks from a usergroup using this mod. For example, if I want to have a block containing ads only show to guests etc.. Thanks.

BirdOPrey5 07-14-2013 06:57 PM

This mod doesn't handle displaying different blocks to usergroups just like the built in sidebar does not have that option.

However the same tricks can be used- namely editing the template of the block(s) and using a template conditional to show or hide the content to the usergroup.


Show only to guests
Code:

<vb:if condition="$show['guest']">

** ORIGINAL TEMPLATE CODE HERE

</vb:if>



Show only to members
Code:

<vb:if condition="$show['member']">

** ORIGINAL TEMPLATE CODE HERE

</vb:if>



Show only to mods, admins, super-mods
Code:

<vb:if condition="is_member_of($bbuserinfo, 5,6,7)">

** ORIGINAL TEMPLATE CODE HERE

</vb:if>


Grimes 07-14-2013 07:55 PM

Gotcha. That really helps- thanks for taking the time.

Grimes 07-16-2013 01:14 AM

Worked like a charm and does exactly what I hoped it would. Guests see ads in the sidebar, and registered users don't. There are so many possibilities with this. :D

I have another question, and I realize it's probably a long shot- is it possible for me to make a code edit somewhere to make the sidebar not collapsible in just one forum?

For example: Not collapsible to guests at all. Collapsible for logged in users on forum.php, showthread, and everywhere else except in one forum.

BirdOPrey5 07-17-2013 06:02 PM

In the Sibbar Anywhere Edits plugin is this line that controls who sees the collapse option-

Code:

if (is_member_of($vbulletin->userinfo, explode(',' , $vbulletin->options['bop5sbas_collapsegrooups'])))
So maybe try changing that line to

Code:

if (is_member_of($vbulletin->userinfo, explode(',' , $vbulletin->options['bop5sbas_collapsegrooups'])) AND $GLOBALS['forumid'] != 99)
Where 99 is the forum id of the 1 forum.


All times are GMT. The time now is 07:25 PM.

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.01524 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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