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

Quote:

Originally Posted by PHP FAN (Post 2411065)
Hi

In Right to Left style:

If the HomePage sidebar show in the left, the "Sidebar Anywhere" will show in the right.
And if the HomePage sidebar show in the right, the "Sidebar Anywhere" will show in the left.

Sorry about that, I don't have any RTL boards to test off of.

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

Find the 4 instances of:

Code:

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

Code:

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

Quote:

Originally Posted by ps2wiz (Post 2413930)
Does this mod give the option to enable both left and right sidebars at the same time?

Quote:

Originally Posted by Hippy (Post 2414570)
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.

Code:

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array('vbfixer_cpn_temp',);
// pre-cache templates used by specific actions
$actiontemplates = array();

As you can see only one thing I can take from that which I use like so.
multi_custom_page|vbfixer_cpn_temp

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

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

So I'm not 100% sure what I should be placing in both sides due to this.

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

Quote:

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

Code:

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array('vbfixer_cpn_temp',);
// pre-cache templates used by specific actions
$actiontemplates = array();

As you can see only one thing I can take from that which I use like so.
multi_custom_page|vbfixer_cpn_temp

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

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

So I'm not 100% sure what I should be placing in both sides due to this.

I'd really need to see the THIS_SCRIPT line in the php file to figure out the script name.

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

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

Disable the setting once you have found it.


Quote:

Originally Posted by mikesafl (Post 2416808)
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

Quote:

Originally Posted by BirdOPrey5 (Post 2416824)
I'd really need to see the THIS_SCRIPT line in the php file to figure out the script name.

I had the template name correct here is the THIS_SCRIPT part.

Code:

define('THIS_SCRIPT', 'multi_custom_page'.$scrpt);
I have tried various variations for this but cannot appear to get it working.

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

Quote:

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

Quote:

Originally Posted by Bluefin221 (Post 2417222)
Yes this is what I had originally: multi_custom_page|vbfixer_cpn_temp

It doesn't work though.

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

Quote:

Originally Posted by ricktas (Post 2417257)
Will this work on 4.2.1?

Working fine on 4.2.1 for me.


All times are GMT. The time now is 07:15 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.01610 seconds
  • Memory Usage 1,750KB
  • 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
  • (9)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