Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #22  
Old 03-03-2009, 07:17 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #23  
Old 03-04-2009, 07:48 PM
BWJ BWJ is offline
 
Join Date: Aug 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #24  
Old 03-06-2009, 06:21 AM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, glad you are all sorted.

PS if anyone has vbseo, then it makes adding the avatars easy
Reply With Quote
  #25  
Old 03-09-2009, 03:22 AM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to disable shown images in this module !?
And pls few words about user avatars infront of comment

Thanks
Reply With Quote
  #26  
Old 03-09-2009, 08:22 AM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To remove images you would need to change
Code:
$comment= $bbcode_parser->do_parse($longcomment, 1,1,1,1);
to
Code:
$comment= $bbcode_parser->do_parse($longcomment, 0,1,1,0);
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
Code:
<img align=\"absmiddle\" src=\"{$website}/avatars/{$row['username']}.gif\" width=\"30\" height=\"30\"></img>
place is where you want the avatar to show
Reply With Quote
  #27  
Old 03-09-2009, 12:13 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #28  
Old 03-09-2009, 06:09 PM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #29  
Old 03-09-2009, 09:44 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


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

Thanks again for great mod
Reply With Quote
  #30  
Old 03-11-2009, 07:34 PM
joerns joerns is offline
 
Join Date: Feb 2005
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #31  
Old 03-12-2009, 12:16 AM
optrex optrex is offline
 
Join Date: Sep 2005
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

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 06:16 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.04406 seconds
  • Memory Usage 2,321KB
  • 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_code
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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