The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Blog Comments vBAdvanced CMPS (formatted) Details »» | |||||||||||||||||||||||||||
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
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
Show Your Support
|
Comments |
#12
|
|||
|
|||
Quote:
Admin categories will be fine. I don't mind a manual edit. Optrex - thank you for looking into this... :up: It would really be great if you are able to do it. |
#13
|
|||
|
|||
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 |
#14
|
||||
|
||||
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! |
#15
|
|||
|
|||
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
|
#16
|
|||
|
|||
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.
|
#17
|
||||
|
||||
Great Improvements, Congratulations. :up:
Thank You For Sharing Them. :up: My Best Regards. |
#18
|
|||
|
|||
Quote:
in the variables add the line $category = x; //where x is the category id number found in your AdminCP in line 35, find: Code:
$query = "SELECT {$prefix}blog.blogid, Code:
{$prefix}blog.categories, Code:
AND {$prefix}blog_text.state = 'visible' Code:
AND {$prefix}blog_text.state = 'visible' AND {$prefix}blog.categories = '{$category}' |
#19
|
|||
|
|||
Quote:
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 |
#20
|
|||
|
|||
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 ;
|
#21
|
|||
|
|||
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: PHP Code:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|