![]() |
|
#1
|
|||
|
|||
|
Is it possible to integrate vBa modules into a forum using this technique: http://www.vbadvanced.com/membersare...tid=4&pageid=6 but doing it through vB's plugin system instead of editing the files?
|
|
#2
|
||||
|
||||
|
nope
__________________
Mike Key - Lost and Confused |
|
#3
|
|||
|
|||
|
I can see that the integration into functions.php wouldn't work as there is no hook in that location.
If I was looking to add a column to every page on my forum, could I do this using a single hook that hits every page? Alternatively, is there a single file I could add this code to: Code:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');
|
|
#4
|
||||
|
||||
|
You could add that near the top of your global.php file. You would probably want to change it to something like this though so it won't affect the cmps_index.php file.
PHP Code:
|
|
#5
|
|||
|
|||
|
And if I only want it to show up on specific forumdisplay pages? I tried this in global.php:
Code:
if (!defined('VBA_PORTAL'))
{
if ($forumid=1088)
{
define('VBA_PORTAL', true);
define('VBA_PAGE', 'forumpage');
}
but had no luck. I also tried with just $f. |
|
#6
|
|||
|
|||
|
Tried dropping this code into the top of forumdisplay.php. You can't put it in the top as there are no forumid variable defined at that point. You can put it in the first hook location, however, you then get an error that print_portal_output is undefined in functions.php.
Seems like everyone has problems with this at first and then eventually gets it. Doesn't seem like the instructions as written here: http://www.vbadvanced.com/membersare...tid=4&pageid=6 work perfectly or am I just being dumb? |
|
#7
|
||||
|
||||
|
The instructions in the users manual will work perfectly if you follow them and add the exact code.
If you want to integrate the CMPS with one forum then try adding this to your forumdisplay.php file: PHP Code:
|
|
#8
|
|||
|
|||
|
I just started from scratch and did all changes on the instructions page and in this email. I am getting this error:
Fatal error: Call to undefined function: print_portal_output() in /domain.com/forum/includes/functions.php on line 2569 BTW, I know you say the instructions are perfect, however, they changed since yesterday. It didn't effect us as we had already included that line in global.php but you can see how folks would have problems. Thanks. |
|
#9
|
||||
|
||||
|
Where exactly did you add the define('VBA_PORTAL', true); code at?
Quote:
|
|
#10
|
|||
|
|||
|
just as you suggested in the above post:
if ($_REQUEST['f'] == 1088 OR $_REQUEST['forumid'] == 1088) { define('VBA_PORTAL', true); define('VBA_PAGE', 'forumpage'); } |
|
#11
|
|||
|
|||
|
can you tell me the correct place to add this code?
|
|
#12
|
||||
|
||||
|
Just below the <?php mark at the top of the file.
|
|
#13
|
|||
|
|||
|
Allright, I have been working with this edit to integrate a right colum to all my vbulletin php by editng global.php.
However i have been having this bug : the attachment.php would show the header and the column too. my cmps shoutcast players script would also load in a FULL PAGE instead of just a little popup ... basically this method ends up screwing up a lot of things .... Is there something i am missing ? or should i just go on and edit the php pages one by one instead of the global.php ? Thanks Brian
Last edited by easyskillz; 02-14-2007 at 06:06 AM. |
|
#14
|
||||
|
||||
|
Open your shoutcast player page and see what THIS_SCRIPT is defined as at the top. Then change your CMPS integration code to something like this:
PHP Code:
|
|
#15
|
|||
|
|||
|
it's a cmps module...
so where do i look ? There is no such code in shoutcast_lite.php nor in it's templates. and the players are like using this kind of templates "for mp for example" Quote:
Last edited by easyskillz; 02-14-2007 at 11:05 AM. |
|
#16
|
|||
|
|||
|
something even more simple for you i guess is this attachment bug.
My header shows in the attachment page along with the right column. is that normal ? |
![]() |
| 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 |
| integrating vb pages into vba cmps | scruby | "How Do I..." Questions | 4 | 11-21-2005 12:53 AM |
| Integrating Other vB Pages & Hacks | badblu | Troubleshooting & Problems | 4 | 10-07-2005 01:11 PM |
| Integrating Other vB pages | ncwoodworker | "How Do I..." Questions | 2 | 09-01-2005 04:27 PM |
| integrating with other pages | Lionel | Troubleshooting / "How do I..." Questions | 5 | 03-29-2005 06:21 PM |