View Full Version : Easier way to make left column on right side of every page??
cmiller1014
02-11-2006, 02:38 AM
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6
Did it that way with 3.0. But with VB 35 cant we place that code somewhere else to just call a left column to every page on the site? Like a hook location some place?
Thanks
ConqSoft
02-11-2006, 02:54 AM
It would be nice to have that. No idea if it's possible though...
cmiller1014
02-12-2006, 09:58 PM
Bumparoo :)
Kirby
02-14-2006, 09:09 PM
It is possible to do it, though it is not thaat straight-forward actually.
cmiller1014
02-15-2006, 03:44 AM
Hey Kirby,
I am just trying to get me a solid right column on every page on my site without editing every file. The right column mod over on VB.org seems very clumsy and I just want something that will work well. I need new ad positions.
Any suggestions?
ConqSoft
02-15-2006, 01:13 PM
I was thinking we could make the changes to functions.php, then use a global_start hook with the VBA "define" code, to make EVERY page have the CMPS sidebar, but it doesn't seem to work.
Brian
02-15-2006, 01:56 PM
You're not going to be able to use hooks (unless you've come up with something I haven't thought of Kirby?). You could try adding something like this near the top of your global.php, just after the opening <? tag:
if (in_array(THIS_SCRIPT, array('index', 'forumdisplay')))
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'test');
}
You would need to alter/add the some info to the first array there to fit your needs. It will go by what "THIS_SCRIPT" is defined as in each of your vBulletin files, so to add more files you would need to open the file that you want to integrate and look for something like this near the top of the file (using showthread.php for this example):
define('THIS_SCRIPT', 'showthread');
Since THIS_SCRIPT is defined as 'showthread', you would need to add 'showthread' to the list in the first code so that it looks like this:
if (in_array(THIS_SCRIPT, array('index', 'forumdisplay', 'showthread')))
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'test');
}
Kirby
02-16-2006, 01:00 PM
I've made a post in another thread about how I did it - without file edits :)
i never thought it would work but it did
cmiller1014
02-18-2006, 02:56 AM
I've made a post in another thread about how I did it - without file edits :)
Can you link me? The left column is the single most important part of my site and I cannot get one working for anything.
Thanks!
AllanE
02-26-2006, 02:13 PM
I could really use that link too....
Thx!
cmiller1014
03-02-2006, 01:28 PM
Can someone please throw us a bone here? I'll pay for the information. Just need a left column as soon as possible from VBA.
FLMom
03-11-2006, 04:05 PM
I need it too! Can someone help?
ok, please help me out here I am just trying to do what a lot of other people have been trying to do. I used the method from the vba manual to get my left bar CMPS modules to show on my forums. Worked pretty good, and I figured I would have to suck it up and go with this method even though I was against all of the file edits...however, upon using this method I found that showthread.php and forumdisplay.php were not displaying the left column
I messed around with the code a little more and found that if I got rid of the lines:
define('THIS_SCRIPT', 'showthread');
define('THIS_SCRIPT', 'forumdisplay');
that the left module column from my CMPS would then show up. I can't do this though because I use GARS article system and that totally screws up GARS, so I went ahead and tried your method here Brian...using vb 3.5.4, and that didn't seem to work either. I added the forumdisplay and showthread to the array like you stated but the left module column just doesn't show up.
Please help me out here, Im sure a lot of people are still hoping for an easy way to integrate your CMPS side columns with your forums, and I know the construction of my site is depending on this feature. I appreciate any help with this greatly.
BTW: I saw Kirby's post here:
http://www.vbadvanced.com/forum/showthread.php?t=14647
and thats really amazing how he did that, but also I have to agree that it also seems very complicated to perform that myself...and I'm not sure if he explained it enough for me to do it even if I wanted to.
well, i've narrowed down my problem a bit more...
I'm using the GARS system and when I deactive the GARS system pulling my left CMPS bar works fine on every page (forumdisplay and showthread were the ones giving me the problem) however I'd like to use the GARS system still, so I made this post on vbgeek
http://www.thevbgeek.com/showthread.php?p=8474#post8474
hopefully I can get some assistance with this issue
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.