vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2010, 05:36 AM
qG ThaLiX qG ThaLiX is offline
Decerto eSports
 
Join Date: Oct 2007
Posts: 12
Default vBulletin Sidebar on vBadvanced CMPS

Hello,

I was wondering if it's possible to add the vBulletin Sidebar to the CMPS. I would like to use the center collumn of the CMPS, no left sidebar and then have the official sidebar as a right one.

I've been trying to get this to work:

http://www.vbulletin.org/forum/showt...233871&page=20

But it's not working. I also tried to use that addon and make my own plugin for the CMPS, but I'm unsure which hook location to specify. I got it on there a few times with various hooks, but it was in the wrong location and was outside of my actual site.

Is there any easier way to get it to work?
Reply With Quote
  #2  
Old 05-17-2010, 11:30 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

I'm sorry, but that's not something I've ever tried and I'm not really sure that it would work... Depends on how vB's sidebar is coded.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #3  
Old 05-19-2010, 05:21 AM
qG ThaLiX qG ThaLiX is offline
Decerto eSports
 
Join Date: Oct 2007
Posts: 12
Default

No worries, I got it to work now by using a combination of that addon and making my own plugin using it.
Reply With Quote
  #4  
Old 05-19-2010, 05:59 AM
cornishman cornishman is offline
Too old to worry
 
Join Date: Jun 2007
Posts: 46
Default

Quote:
Originally Posted by qG ThaLiX View Post
No worries, I got it to work now by using a combination of that addon and making my own plugin using it.
Would it be possible to share this please?
Reply With Quote
  #5  
Old 05-19-2010, 01:37 PM
qG ThaLiX qG ThaLiX is offline
Decerto eSports
 
Join Date: Oct 2007
Posts: 12
Default

Sure

http://www.vbulletin.org/forum/showt...233871&page=20

Install that addon first.

I only use the center column, so not sure if it will work if you use vBA's sidecolumns, anyway:

Go to the adv_portal template

search for

Code:
{vb:raw navbar}
add below

Code:
{vb:raw sidebaropen}
search for

Code:
{vb:raw footer}
add above

Code:
{vb:raw sidebarext}
save

Then go to plugin manager and make a new plugin with this in it:

Code:
require_once(DIR . '/includes/class_block.php');
$show['sidebar'] = false;
	$blockmanager = vB_BlockManager::create($vbulletin);
	$sidebar = $blockmanager->getSidebarHTML();
	if ($sidebar)
	{
		$show['sidebar'] = true;

$templater = vB_Template::create('sidebarext_temp'); 
$templater->register('sidebar', $sidebar);
$template_hook['sidebarext_temp']=$templater->render();
$sidebarext_add = "' . \$template_hook['sidebarext_temp'] . '";        
$sidebarext_search = '/\' \. \$footer \. \'/'; 
$sidebarext_replace =  $sidebarext_add . "' . \$footer . '";               
$vbasidebar = preg_replace($sidebarext_search, $sidebarext_replace, $vbulletin->templatecache['adv_portal']);
$sidebarext_search = '<div id="vbasidebarclass">'; 
$sidebarext_add ='<div id="content_container"><div id="content">';        
if($vbulletin->options['sidebarposition']==0)$sidebarext_add ='<div id="content_container" class="contentright"><div id="content">';  
$sidebarext_replace =  $sidebarext_add . $sidebarext_search;               
$vbasidebar = str_replace($sidebarext_search, $sidebarext_replace, $vbasidebar);
$vbulletin->templatecache['adv_portal'] = $vbasidebar;
	}
As a hook location use vba_cmps_print_output (vbacmps) and as a product select Everywhere Sidebar.

Make sure to enable custom pages are enabled for the Everywhere Sidebar addon (In the options).

Not sure if this is required, but i also added these variables to the vBA CMPS options:

$sidebarext
$sidebaropen

It might not be perfect etc, but at least i got it to work right :P?

Last edited by qG ThaLiX; 05-19-2010 at 02:57 PM.
Reply With Quote
  #6  
Old 05-19-2010, 02:29 PM
cornishman cornishman is offline
Too old to worry
 
Join Date: Jun 2007
Posts: 46
Default

many thanks, thats great. I'll have a play.
Thanks again
Reply With Quote
  #7  
Old 06-27-2011, 10:21 PM
oldfan oldfan is offline
Junior Member
 
Join Date: Aug 2004
Posts: 23
Default

No dice, anyone else get this to work?
__________________
Reply With Quote
  #8  
Old 08-10-2011, 04:52 PM
AMaNO's Avatar
AMaNO AMaNO is offline
Junior Member
 
Join Date: Dec 2005
Location: Terra
Posts: 8
Default

Nope, I've not gotten it to work either, :-( Followed the above instructions to the letter, as well as trying various other things found on the anywhere sidebar thread over at vbulletin.org.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gameroom mod on vbulletin.org Generates errors with vbadvanced cmps bouncer222 Troubleshooting & Problems 2 04-05-2010 05:35 PM
vBadvanced CMPS and vBulletin 4 Series 1361 Site Feedback & Updates 164 04-05-2010 02:58 AM
Vbulletin and VBadvanced CMPS integration! tathagata Pre-Installation Questions 5 10-25-2009 03:29 PM
2 vbadvanced CMPS sites - 1 vbulletin forum JOPA "How Do I..." Questions 7 08-01-2008 08:30 AM
Problem with vBulletin 3.5.1 and vBadvanced CMPS v2.0.0 Brubaum Troubleshooting & Problems 4 11-17-2005 06:53 AM


All times are GMT -4. The time now is 07:19 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.