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)

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

Quote:

Originally Posted by djbaxter (Post 2348509)
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

Quote:

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

Quote:

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

Quote:

Originally Posted by SimonB (Post 2349220)
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:

Code:

<!-- BEGIN TEMPLATE: iframer_bop5_vb4 -->
In this example the template name is iframer_bop5_vb4. (An example from my IFRAMEr mod.)

Quote:

Originally Posted by moonfox (Post 2349222)
FYI - I am not able to change width. I am using custom style.

Custom width hasn't been implemented yet.

Quote:

Originally Posted by wolfe (Post 2349323)
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

Quote:

Originally Posted by pete_brady (Post 2349376)
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

Quote:

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

Quote:

Originally Posted by pete_brady (Post 2349376)
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

Quote:

Originally Posted by BirdOPrey5 (Post 2349589)
I can probably add that in, yes. Next update.

awesome, thanks


All times are GMT. The time now is 01:29 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.01544 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
  • (1)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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