Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Drupal addon - vbList Details »»
vB Drupal addon - vbList
Version: 1.0, by El_Muerte El_Muerte is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-11-2005 Last Update: 12-19-2005 Installs: 11
Additional Files  
No support by the author.

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)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-12-2005, 08:26 AM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Changes since v0.1:
  • [new] forum permission can be respected, settable via the settings page
  • [new] rendered pages can be cached, this will reduce SQL queries and time needed to parse the vB code
  • [fixed] unicode shouldn't cause any issues anymore

Changes since v0.2:
  • [added] permission category for viewing the page: "access forum"
  • [fixed] smilies and relative links are properly prefixed
  • [added] new setting: "Use forum title" to use the forum title instead of the configured title
  • [added] support for subpages: "vblist/1,2,3", this must be enabled first. It's adviced to enable forums titles and forum permissions when using this.

Changes since v0.3
  • [fixed] forgot to convert the body text to UTF8
  • [fixed] attach vbcode is now correctly handled
  • [added] more node fields, listed above, that can be used in the drupal theme
Reply With Quote
  #3  
Old 12-12-2005, 10:42 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man I'm definitely going to use this!
Reply With Quote
  #4  
Old 12-12-2005, 11:44 AM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aftermath
Man I'm definitely going to use this!
I installed it on a friends site
http://www.hybridtalk.com

If you need a live demo (another one)
Reply With Quote
  #5  
Old 12-12-2005, 01:34 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-13-2005, 06:05 AM
Zhen-Xjell's Avatar
Zhen-Xjell Zhen-Xjell is offline
 
Join Date: Oct 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I second the well done.
Reply With Quote
  #7  
Old 12-17-2005, 05:07 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 12-18-2005, 12:16 PM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dodgechargerfan
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.
There's a vbulletin template called drupal_node that is used for the display.
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:
Originally Posted by dodgechargerfan
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
good catch, didn't think of that.
Reply With Quote
  #9  
Old 12-19-2005, 01:59 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by El_Muerte
There's a vbulletin template called drupal_node that is used for the display.
This plugin create a node and then simply calls the normal node display routine of drupal.
But I guess I could improve certain things.
It's not so much a criticism, but more of a "How can I format it to the way I want it" type of question.

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.
Reply With Quote
  #10  
Old 12-19-2005, 07:24 PM
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05269 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete