Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Blog Comments vBAdvanced CMPS (formatted) Details »
Blog Comments vBAdvanced CMPS (formatted)
Mod Version: 2.00, by optrex (Member) optrex is offline
Developer Last Online: Mar 2011 I like it Show Printable Version Email this Page

vB Version: 3.8.1 Rating: (7 votes - 4.43 average) Installs: 29
Released: 21 Feb 2009 Last Update: 27 Feb 2009 Downloads: 262
Not Supported Additional Files  

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 http://www.vbulletin.org/forum/showthread.php?t=173381

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBulletin Blog Blog Comments vBAdvanced CMPS optrex vBulletin 3.7 Add-ons 42 21 Feb 2009 12:29
Add-On Releases vBadvanced CMPS ~ Zoints Newest Blog Entries Tigga vBulletin 3.6 Add-ons 11 02 Apr 2007 15:45

Comments
  #2  
Old 21 Feb 2009, 12:28
optrex optrex is offline
 
Join Date: Sep 2005
Additional Info

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: http://www.vbulletin.org/forum/showp...4&postcount=17

Instructions to display avatars if using vbseo: http://www.vbulletin.org/forum/showp...7&postcount=25


enjoy

Last edited by optrex; 09 Mar 2009 at 10:23.
Reply With Quote
  #3  
Old 21 Feb 2009, 16:07
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Jan 2007
Thumbs up

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

THANK YOU!!!!

Suggestion: You should change your description to say:

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!


__________________
Yotsume
Kaydev Media Productions
Check out my mods
:
EYO-AIM, FlashChat Combo-Module for vBadvanced 3.6x or 3.7x
Reply With Quote
  #4  
Old 21 Feb 2009, 17:46
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
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
__________________

Welcome to Libar
Reply With Quote
  #5  
Old 21 Feb 2009, 20:35
optrex optrex is offline
 
Join Date: Sep 2005
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.

Last edited by optrex; 21 Feb 2009 at 20:42.
Reply With Quote
  #6  
Old 21 Feb 2009, 23:29
BWJ BWJ is offline
 
Join Date: Aug 2005
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 22 Feb 2009, 15:26
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
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 22 Feb 2009, 16:37
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

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.

Reply With Quote
  #9  
Old 23 Feb 2009, 01:20
optrex optrex is offline
 
Join Date: Sep 2005
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 23 Feb 2009, 01:25
optrex optrex is offline
 
Join Date: Sep 2005
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
  #11  
Old 24 Feb 2009, 00:00
BWJ BWJ is offline
 
Join Date: Aug 2005
Originally Posted by optrex View Post
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.
Okay... I thought there was a reason...

Originally Posted by optrex View Post
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?
Admin categories will be fine. I don't mind a manual edit. Optrex - thank you for looking into this... It would really be great if you are able to do it.
Reply With Quote
  #12  
Old 27 Feb 2009, 13:36
optrex optrex is offline
 
Join Date: Sep 2005
Well it took me a while, But I have integrated the suggestions made above.

We now have word limits (better than character limits) for the number of words displayed and we also have the blog entry titles etc as requested. I have also re-written the code to be one file rather than the 2 previously. The variables are also clearer and easier to change. Install time is now less than 5 mins for a noobie

Last edited by optrex; 27 Feb 2009 at 13:42.
Reply With Quote
  #13  
Old 27 Feb 2009, 18:14
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Jan 2007
You have a typo here:

$limit = 5; //replace 5 with the umber of comments

Should say: number

I will have to update again and give this new version a try.

Thanks for the much needed great work!
__________________
Yotsume
Kaydev Media Productions
Check out my mods
:
EYO-AIM, FlashChat Combo-Module for vBadvanced 3.6x or 3.7x
Reply With Quote
  #14  
Old 28 Feb 2009, 03:26
miloheckport miloheckport is offline
 
Join Date: Oct 2004
We are just getting our blog going and comments are not frequent. Can you code a version that displays Recent Blog Entries vs. Recent Comments. and if there is a recent comment display the comment
Reply With Quote
  #15  
Old 28 Feb 2009, 03:51
optrex optrex is offline
 
Join Date: Sep 2005
I have a mod that picks up new blog entries and puts them into your "new posts". See my signature. Otherwise I need to take a look and put something fresh together, I have some ideas in mind.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 05:48.

Layout Options | Width: Wide Color: