Simpler implementation sought - list threads in blocks only?

silurius - October 25, 2009 - 23:12
Project:Drupal vB
Version:6.x-2.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

On a site running both Drupal 6 and vB 3.8, I am seeking a means to simply display a list of recent threads in a Drupal block (with links to the threads). I have no need to do anything else in terms of bridging the two systems (e.g. no user integration).

If I use this module, what would be a good approach? Would a standard, full-blown installation be required, or is there a simpler implementation scenario available?

#1

silurius - October 26, 2009 - 02:47

Should have clarified that I am familiar with vBulletin's External Data Provider.

Just wondering if this module might offer me a means of managing the displays via Drupal forms rather than via raw code in blocks. (And without adding other unneeded features such as user bridging).

Thanks in advance!

#2

bpirkle - October 28, 2009 - 23:04

There may be a better way, but we wrote custom SQL for this. See attached, hope it helps. We used it from a module, but I suppose you could drop the PHP into a block if you like. You'd just want to iterate the array of posts and print whatever HTML is appropriate for your site.

AttachmentSize
get-vb-posts.php_.txt 2.25 KB

#3

silurius - October 28, 2009 - 23:20

Bpirkle, your timing is fantastic. Just as you were posting the above, I was rolling up my sleeves and getting ready to begin work on something very similar to what you propose. Many thanks for the sample code! I am very grateful for the head start.

 
 

Drupal is a registered trademark of Dries Buytaert.