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: 264
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

  #16  
Old 28 Feb 2009, 05:16
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Thumbs up

Great Improvements, Congratulations.

Thank You For Sharing Them.

My Best Regards.

Reply With Quote
  #17  
Old 28 Feb 2009, 07:35
optrex optrex is offline
 
Join Date: Sep 2005
Originally Posted by BWJ View Post
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.
Here is the edit to list by a category

in the variables add the line

$category = x; //where x is the category id number found in your AdminCP

in line 35, find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and AFTER add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

then in line 38 find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and REPLACE with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This should result in only comments from the category selected being displayed. Please let me know how you get on.

Last edited by optrex; 03 Mar 2009 at 08:59.
Reply With Quote
  #18  
Old 03 Mar 2009, 00:03
BWJ BWJ is offline
 
Join Date: Aug 2005
Originally Posted by optrex View Post
This should result in only comments from the category selected being displayed. Please let me know how you get on.
Thank you for your hard work! With the default solution (all categories) it works very fine.

But if I try with the changes for a specific category:

Fatal error: Cannot redeclare shorten_string() in /home/xxx/public_html/forum/modules/blog_comments.php on line 18
Reply With Quote
  #19  
Old 03 Mar 2009, 09:02
optrex optrex is offline
 
Join Date: Sep 2005
Originally Posted by BWJ View Post
Thank you for your hard work! With the default solution (all categories) it works very fine.

But if I try with the changes for a specific category:

Fatal error: Cannot redeclare shorten_string() in /home/xxx/public_html/forum/modules/blog_comments.php on line 18
I've changed the code in the above post. I had a stray , and category should have been categories. Tested and working 100%. Om the additional variable, don't forget the ;
Reply With Quote
  #20  
Old 03 Mar 2009, 11:44
BWJ BWJ is offline
 
Join Date: Aug 2005
Sorry doesn't work for me. I have tried for 1 hour now:

Now I get this error:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/modules/blog_comments_cars.php on line 31
I cannot connect to the database

I am 100% sure the password is correct - as I use it with success with e.g. your default version. This is the code I use with your changes:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #21  
Old 03 Mar 2009, 21:17
optrex optrex is offline
 
Join Date: Sep 2005
I'll PM you the code/file with the parts inserted. Make sure you use notepad, not word or wordpad for editing as it looks like you have returns and extra spaces all over, that or there is a wordwrap issue or something.

The only other notes I can see that are worth mentioning is that the website url should stop as follows

$website = "http://xxx.com/forum";

and is your database table prefix really forum?
$prefix = forum;

Last edited by optrex; 03 Mar 2009 at 21:27.
Reply With Quote
  #22  
Old 04 Mar 2009, 21:48
BWJ BWJ is offline
 
Join Date: Aug 2005
Thank you very much for your superb support!

First of all the code you sent me works!

One interesting note is that the initial error message I received after implementing your original specific category code (before the code from you pm) was:

Fatal error: Cannot redeclare shorten_string() in /home/xxx/public_html/forum/modules/blog_comments.php on line 17

Then I think I messed with things too much (as you said it works 100%) Then I suddenly got the new error message I wrote about:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/modules/blog_comments_cars.php on line 31
I cannot connect to the database


Probably due to the messing around.
Okay, then I used the code you sent me by pm and then I receive the same error as initially:

Fatal error: Cannot redeclare shorten_string() in /home/xxx/public_html/forum/modules/blog_comments.php on line 17

Then I found out I had two instances of your mod on the same cmps page - one with blog_comments.php and one new file for the specific category blog_comments_cars.php

Then I removed the "get all blog comments" file: blog_comments.php

And then it worked!

Thank you again! I am sure other people will find this mod interesting.

PS: yes it is forum :-)
Reply With Quote
  #23  
Old 06 Mar 2009, 08:21
optrex optrex is offline
 
Join Date: Sep 2005
Excellent, glad you are all sorted.

PS if anyone has vbseo, then it makes adding the avatars easy
Reply With Quote
  #24  
Old 09 Mar 2009, 05:22
goxy63 goxy63 is offline
 
Join Date: Oct 2008
How to disable shown images in this module !?
And pls few words about user avatars infront of comment

Thanks
__________________
VB5-- WHO HAS VISITED TODAY(last 24h) PLEASE VOTE HERE
VB5--FIRST POST ON EVERY PAGE PLEASE VOTE HERE
Reply With Quote
  #25  
Old 09 Mar 2009, 10:22
optrex optrex is offline
 
Join Date: Sep 2005
To remove images you would need to change

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I've not tested this but basically the first 0 turns off html and the last 0 turns off image code. Please try it and feedback.

VBSEO for avatars:

My avatars are in the format url/avatars/username.gif?datelinestamp
I can use this method, due to the fact that usernames are unique.

The code I use on the hack is

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

place is where you want the avatar to show

Last edited by optrex; 09 Mar 2009 at 20:09.
Reply With Quote
  #26  
Old 09 Mar 2009, 14:13
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Just changed code regarding to images, works like charm


But I think with avatars I dont have much luck, its on my side for shure as Iam noobish to all this

I have installed VBSEO for my forums, free version...I guess I should install addon for CMPS in order that this avatr thing work out for me

Thank you very much for this mod
__________________
VB5-- WHO HAS VISITED TODAY(last 24h) PLEASE VOTE HERE
VB5--FIRST POST ON EVERY PAGE PLEASE VOTE HERE
Reply With Quote
  #27  
Old 09 Mar 2009, 20:09
optrex optrex is offline
 
Join Date: Sep 2005
AFAIK there is not a free version for VBSEO, unless you are on about the sitemaps generator, which is not the same thing.
Reply With Quote
  #28  
Old 09 Mar 2009, 23:44
goxy63 goxy63 is offline
 
Join Date: Oct 2008

Yes my mistake .... was thinking about sitemap generator

Thanks again for great mod
__________________
VB5-- WHO HAS VISITED TODAY(last 24h) PLEASE VOTE HERE
VB5--FIRST POST ON EVERY PAGE PLEASE VOTE HERE
Reply With Quote
  #29  
Old 11 Mar 2009, 21:34
joerns joerns is offline
 
Join Date: Feb 2005
I've followed the installation instructions but get a blank page at the moment. I've checked my variables, and they seem to correspond with those in the config.php file. Any ideas?
__________________
MopaneTree.com - The People's Place: Namibia's Online Community & Message Boards
http://www.mopanetree.com

Last edited by joerns; 11 Mar 2009 at 22:36.
Reply With Quote
  #30  
Old 12 Mar 2009, 02:16
optrex optrex is offline
 
Join Date: Sep 2005
You need to click install for support
but to point you in the right direction
http://www.theshebeen.org/blogs/ has no blog comments displaying either
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 20:03.

Layout Options | Width: Wide Color: