![]() |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
No worries, I got it to work now by using a combination of that addon and making my own plugin using it.
|
|
#4
|
|||
|
|||
|
Would it be possible to share this please?
|
|
#5
|
|||
|
|||
|
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}
Code:
{vb:raw sidebaropen}
Code:
{vb:raw footer}
Code:
{vb:raw sidebarext}
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;
}
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. |
|
#6
|
|||
|
|||
|
many thanks, thats great. I'll have a play.
Thanks again
|
|
#7
|
|||
|
|||
|
No dice, anyone else get this to work?
|
|
#8
|
||||
|
||||
|
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.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |