![]() |
vB Drupal addon - vbList
Note: This is an addon module for vB Drupal: Community Plumbing
This module will allow you to list the latest X threads, including the first post from specified forums within Drupal. It was intended as a "news" modules that uses a forum as source. It is not meant for content management. I wrote it to replace "node" as default front page module. A somewhat live demo: http://el-muerte.student.utwente.nl/lba/ Entries will be display as usual nodes of type 'vblist'. Therefor modifying the durpal_node template will also have an effect on this. Note, even though it will the entries as nodes it doesn't mean all node functionality works. For example you might want to adjust your theme code to also construct "$submitted" field for this node, since this isn't configurable through the administer page. The following fields will be set on a 'vblist' node: type: always 'vblist' created: UNIX timestamp of the thread creation changed: UNIX timestamp of the last reply title: the title of the thread body: the body of the first post in the thread uid: the UID of the poster name: the name of the thread poster sticky: true if it's a sticky thread threadid: the ID of the thread links: the array contains a link to the forum thread Compatibility: This module currently only works with vBulletin 3.5 (only tested on 3.5.2) |
Changes since v0.1:
Changes since v0.2:
Changes since v0.3
|
Man I'm definitely going to use this! :)
|
Quote:
http://www.hybridtalk.com If you need a live demo (another one) |
Well done :up:
One minor issue, you need to declare $stylevar as global in vblist_page to get the utf conversion right, or some characters may look funny. |
I second the well done.
|
Excellent! This is what I have been trying to get vBDrupal to do for me.
I still want to figure out how to format each entry a little nicer. I'm lost. One problem that I have though, is that the path for smilies in the original post is incorrect. They would normally have a path like www.domaim.com/forums/images/smilies/smiley.gif but when vblist brings it up, the path changes to www.domaim.com/portal/images/smilies/smiley.gif I can see what the problem is, but I'm at a bit of a loss as to where I should make the change to fix it. Any help? Thanks again for a great piece of coding. |
Quote:
This plugin create a node and then simply calls the normal node display routine of drupal. But I guess I could improve certain things. Quote:
|
Quote:
I think you just answered it for me. I have to go play with that template. Thanks. I'll see what I can figure out. (remember, I'm a noob.) About the smilies, I've looked into incorporating a call to global.php, but that just didn't fly at all. I got sql access errors. I tried combining in vBExternals and that didn't work either. I sort of understand what needs to be done to get them working, but I have no idea how to do it elegantly - if at all. Anyway, thanks again for this add on. It's exactly what I was looking for and I think it's great. |
I have a fix for the smilies, well, sort of, it's an ugly regex fix, there are a couple of other things I want to change before releasing a new version.
|
Great! I can wait.
In the meantime, I'll just make sure that none of my news posts have smilies. Easy enough to do that! Oh and I've figured out some of what I needed to change for the template. Thanks for pointing me in the right direction. |
ok, version 1.0 released and you could consider it final, unless bugs are found
|
Excellent! Smilies work now. Thanks very much for the update.
|
I installed it, but I don't see it in my list of blocks. I activated it in the list of modules, and then ... nothing.
|
vblist isn't a block, it's a page module.
e.g. http://example.org/drupal/vblist or http://example.org/drupal/?q=vblist I use it has my frontpage module instead of the default node module |
Quote:
|
e.g. http://example.org/drupal/vblist
or http://example.org/drupal/?q=vblist same here that dosn't work on my domain. also im lost with configuring also :S |
there's a minor bug in the configuration page prevent certain people to gain access to the settings page even tho they should have it. But that aside, if you can configure the module you should be able to visit the vblist module. You'll get a page not found error if there are no threads to display
|
Here's the current template layout of my new threads on the vbdupal index page:
Thread title Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content Thread content # comments ---------------------------------- Ok, I would like to... 1. make the 'Thread title' a hyperlink to the thread. 2. Cut off the 'Thread content' after 250 characters for long threads. 3. Add a 'Post Reply' or 'register to reply' link to the left of '# comments'. (this would be using the '<if ' code i think? so that it will show 'register to reply' for Guests only. Can anyone help esp with 1. and 3.? Thanks |
I think that you go edit the template called drupal_node to add those things in. Not sure what the code would need to be, though. (I figure most of my stuff out by cutting it out from other parts of code and testing it. :cross-eyed: )
|
All times are GMT. The time now is 12:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|