View Full Version : Drupal modules on forum pages?
Jeff Hester
02-16-2006, 12:20 PM
I haven't implemented vbdrupal yet, but wanted to know if I can created a layout that incorporates an extra "column" either on the left or right of my forum that includes Drupal modules.
tamarian
02-16-2006, 06:11 PM
No. This will require customization on the vBulletin side.
myetalk
02-17-2006, 10:51 AM
I haven't implemented vbdrupal yet, but wanted to know if I can created a layout that incorporates an extra "column" either on the left or right of my forum that includes Drupal modules.
ah, yeah, never tried it yet, this would be pretty hard to do I think...
GrantHorizons
03-18-2006, 05:51 AM
Seems to me this is something a lot of people would want - I certainly do! It is a REQUIREMENT to get my site running properly.
If anyone has any insight, or would like to make some money and has expertise in this area, or has a theme or SOMETHING to plug into vBulletin, I'd love to hear from you!
Grant
elmuerte
03-19-2006, 03:29 PM
I've looked into it for a bit. The problem is that besides vbulletin also the whole drupal backend has to be loaded. This could introduce quite some overhead.
Anyway, I've made a test plugin for vbulletin to load the sideblocks. I haven't fully tested it tho.
Attached is a seperate vBulletin plugin that will load the blocks if it's enabled.
Note: you will have to set the path to the drupal system dir and set the "load blocks" to yes.
When this is done properly the loaded block (the generated HTML code by drupal) will be available to all templates with the variables:
$drupal_blocks[left]
$drupal_blocks[right]
You will have to manually adjust the templates where you want the blocks to appear.
This plugin is experimental so please test it for us. If it doesn't have any side effects we might include it with the official distribution.
For my test site the generated memory overhead is about 100kb (up to 10% of an average vbulletin page)
Note: only links are updated to point to the correct drupal location. As for the rest you should make sure the style classes used by the side blocks are also available from within vbulletin.
Edit: fixed loading of the plugin in in cases where drupal was already loaded (e.g. in the non-forum part).
Edit 2: the drupal blocks are not available in the following scripts:
newreply.php
newthread.php
editpost.php
newattachment.php
attachment.php
postings.php
private.php
profile.php
This is due to a drupal and vbulletin conflict
GrantHorizons
03-19-2006, 04:08 PM
Cool -I'll have a look at that - thanks for letting me know! And please keep us posted on changes / updates. This is a VERY important feature for me.
thanks, Grant
elmuerte
03-19-2006, 04:27 PM
made a small update to fix the links, this is pretty much as far as I'm going to take this plugin for now. First have to know how 'stable' this plugin.
elmuerte
03-20-2006, 12:35 PM
updated the plugin, the drupal pages where broken because of this plugin
elmuerte
03-21-2006, 03:50 PM
hmm... ok, there seem to be a few couple of issues with duplicate function names, I'm not sure if this can be fixed without any serious code modifications to drupal
GrantHorizons
03-22-2006, 05:02 AM
Elmuerte, please keep us posted - good luck with the problem!
Grant
elmuerte
03-22-2006, 03:16 PM
Updated plugin here: http://www.vbdrupal.org/forum/showpost.php?p=525&postcount=5
So far I've only found one obscuring function. So a minor fix in drupal might be possible, or keep the current method of excluding certain vbulletin scripts.
Eric013
05-08-2006, 06:28 AM
Hi,
I have errors after upload this produit:
Warning: chdir(): No such file or directory (errno 2) in /global.php(340) : eval()'d code on line 31
Warning: Unknown(includes/bootstrap.inc): failed to open stream: No such file or directory in /global.php(340) : eval()'d code on line 41
Warning: (null)(): Failed opening 'includes/bootstrap.inc' for inclusion (include_path='.:/usr/local/php-4.4.0/lib/php') in /global.php(340) : eval()'d code on line 41
Warning: Unknown(includes/common.inc): failed to open stream: No such file or directory in /global.php(340) : eval()'d code on line 42
Warning: (null)(): Failed opening 'includes/common.inc' for inclusion (include_path='.:/usr/local/php-4.4.0/lib/php') in /global.php(340) : eval()'d code on line 42
Fatal error: Call to undefined function: theme() in /home/cmsfr/web/www/vb3/global.php(340) : eval()'d code on line 44
Help me please, how do i put vbulletin in drupal ?
Sorry i am a french :o
Thanks you.
peach
05-27-2006, 02:57 PM
is this code safe to use yet? doesn't it like double the databse calls on a Vb page when you load the drupal blocks and core?