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

Reply
 
Thread Tools
Blog Comments vBAdvanced CMPS (formatted) Details »»
Blog Comments vBAdvanced CMPS (formatted)
Version: 2.00, by optrex optrex is offline
Developer Last Online: Mar 2011 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 3.8.1 Rating:
Released: 02-20-2009 Last Update: 02-26-2009 Installs: 31
Additional Files  
No support by the author.

Add blog comments to your portal !

One of the main problems with the vB blog module is its poor integration with the main forum. This module allows you to show the last 5 blog comments (number is configurable) in a module on your vba portal page. It displays a short version of the comment, the blog title, and the person who commented, with built in links to the commment, user profile and the blog post itself.

This was the first and is still the only blog comments module for vBAdvanced


Features
  • Comments will not display if they have not been approved.
  • Configurable number of comments
  • Includes smilies
  • Includes URL formatting
  • Allows for text format such as bold
  • Configurable word count in comments
Instructions
Click install
Download the attached zip file
Edit blog_comments.php and change the variables to allow connection to your database.
Upload blog_comments.php to your modules directory.


From your admincp - vba cmps
Add new module
PHP file
Title - call it what you want
Active - yes
File to include - blog_comments.php
Identifier - call it what you want
Initialize BB Code Parser - YES
Select clean file output
Link - choose either blog home or comments page as you wish
Save and add to the page of your choice, the module has been designed to be a center block on the basis that long URL titles will push the margins. You can however place it where you want.

28th Feb 2009 - VERSION 2
Version 2 has been completely re-coded to make install land confiuration simpler. Rather than 2 files, there is now only one. This must be installed in the modules folder.
Allows blog titles
Allows configurable word count to be displayed
Links to user profile, blog and comment included.
Made variable changes easier in file.


22nd Feb 2009
Version upgrade from https://vborg.vbsupport.ru/showthread.php?t=173381

Allows smilies
Allows URL's
Allows formatting [BBCODE] Bold etc

Download Now

File Type: zip blog_comments.zip (1.2 KB, 256 views)

Show Your Support

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

Comments
  #2  
Old 02-21-2009, 10:28 AM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working example at Midlands Weather Forum

Version 2: Upgrade path
Delete the 2 files previously used and start again with this new single file install.

Now added
Configurable word limit in latest comments
Blog titles and links to blog areas - profile, blog post, comment etc.


Instructions to display comments from specific category: https://vborg.vbsupport.ru/showpost....4&postcount=17

Instructions to display avatars if using vbseo: https://vborg.vbsupport.ru/showpost....7&postcount=25


enjoy
Reply With Quote
  #3  
Old 02-21-2009, 02:07 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated to this new fixed version and it works perfectly!

THANK YOU!!!!

Suggestion: You should change your description to say:

Quote:
This module allows you to show the last 5 blog comments (the amount is configurable)
Now all we need is a updated Latest Blogs module for vba to match the recent threads vba module and the blogs will be truly finally pimped!


Reply With Quote
  #4  
Old 02-21-2009, 03:46 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello!

tried but works not ... what must change in comments.php (mean table prefix)?

my database have no table prefix - "FROM " . TABLE_PREFIX . "blog_text.." - what make here?

get comments in top of my cmps page .... ??

must be center block?

regards

macc
Reply With Quote
  #5  
Old 02-21-2009, 06:35 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Macc,

If its appearing at the top of the page, you need to select the clean output from within vba (as per vba instructions with any php module). This also means it must be working, so no need to change " . TABLE_PREFIX . " however you can remove it if you want (exactly what I put in bold)

You can place the block where you like, but long URL titles (not the length of the URL themselves) will push the margins, hence its been "designed" for center placement.

**Updated** to those who have already installed this version, there is no need to update, I just re-uploaded the file with some typo corrections in the comments.
Reply With Quote
  #6  
Old 02-21-2009, 09:29 PM
BWJ BWJ is offline
 
Join Date: Aug 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this mod!...

1) Question/suggestion:

How about including the title and author of the blog entry? To make it easier for the viewer to see what the comment is all about.

Example from your homepage:

If we take the latest comment in this latest blog comment module

Comment by Stourbridge Weather
Thanks. The Snow was quite bad near you Dolly.


Suggestion 1A:

SW's Ski Trip to Italy by Stourbridge Weather
Comment by Stourbridge Weather
Thanks. The Snow was quite bad near you Dolly.


or like this - Suggestion 1B:

Comment by Stourbridge Weather in SW's Ski Trip to Italy by Stourbridge Weather
Thanks. The Snow was quite bad near you Dolly.


2) Question:

Is it possible to take advantage of the blog categories and only retrieve the information from entries from only one specific blog category (instead of all the categories as it is now)?
Reply With Quote
  #7  
Old 02-22-2009, 01:26 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BWJ, I agree with your suggestion about adding the title of the blog post.

Great job optrex! I'll be watching this one
Reply With Quote
  #8  
Old 02-22-2009, 02:37 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ideas: Can You Add 2 Options?

1. Option to Limit the Number of Characters Displayed on the Comment. (Imagine a Comment of 1,000 or more Characters to be Displayed on CMPS )

2. Option to Limit the Length of Words in the Comments. Very Big Words or Words that are not Separated would Break the CMPS Layout, so it'd be Good to be able to Limit that.

Good Improvements, Thank You For Sharing Them. :up:

Reply With Quote
  #9  
Old 02-22-2009, 11:20 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BWJ View Post
Thank you for this mod!...

1) Question/suggestion:

How about including the title and author of the blog entry? To make it easier for the viewer to see what the comment is all about.

Example from your homepage:

If we take the latest comment in this latest blog comment module

Comment by Stourbridge Weather
Thanks. The Snow was quite bad near you Dolly.


Suggestion 1A:

or like this - Suggestion 1B:

2) Question:

Is it possible to take advantage of the blog categories and only retrieve the information from entries from only one specific blog category (instead of all the categories as it is now)?
Q1 - That's something I've tried to do before. I think it is possible, because vb does something similar in the "all blogs comments" pages. But as yet, I can't work it out with my basic php knowledge as the blog text table displays a blank title field for comments.

Q2 I will look into, but it may have to be a manual edit based on category id rather than name. I take it you are also thinking admin categories rather than user ones - or both?
Reply With Quote
  #10  
Old 02-22-2009, 11:25 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by inciarco View Post

1. Option to Limit the Number of Characters Displayed on the Comment. (Imagine a Comment of 1,000 or more Characters to be Displayed on CMPS )

2. Option to Limit the Length of Words in the Comments. Very Big Words or Words that are not Separated would Break the CMPS Layout, so it'd be Good to be able to Limit that.
1) Good suggestion, I'll have a look.
2) This one I think is more difficult. Can you give a legit example that would break a center column positioning?
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 10:47 AM.


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.04674 seconds
  • Memory Usage 2,331KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (1)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete