vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   vBulletin Blog - Blog Comments vBAdvanced CMPS (formatted) (https://vborg.vbsupport.ru/showthread.php?t=206103)

optrex 02-20-2009 10:00 PM

Blog Comments vBAdvanced CMPS (formatted)
 
1 Attachment(s)
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

optrex 02-21-2009 10:28 AM

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

yotsume 02-21-2009 02:07 PM

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!



macc 02-21-2009 03:46 PM

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

optrex 02-21-2009 06:35 PM

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.

BWJ 02-21-2009 09:29 PM

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)?

ArnyVee 02-22-2009 01:26 PM

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

Great job optrex! I'll be watching this one ;)

inciarco 02-22-2009 02:37 PM

Ideas: Can You Add 2 Options? :confused:

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 :eek:)

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:

:)

optrex 02-22-2009 11:20 PM

Quote:

Originally Posted by BWJ (Post 1750996)
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?

optrex 02-22-2009 11:25 PM

Quote:

Originally Posted by inciarco (Post 1751462)

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 :eek:)

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?


All times are GMT. The time now is 04:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01207 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete