Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add "Post Comment" buttons to CMS Articles & Blogs for guests Details »
Add "Post Comment" buttons to CMS Articles & Blogs for guests
Mod Version: 1.00, by tpearl5 (Coder/Designer) tpearl5 is offline
Developer Last Online: Jun 2018 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (1 vote - 5.00 average) Installs: 15
Released: 19 Jan 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

The default templates for the CMS and Blog don't display any indication to the guest that comments can be posted, especially if no comments exist for that article or blog post.

Two simple template edits adds a "Post Comment" button for guests to the CMS and Blog pages. It simply links to the register page. The button will not show up for logged in users; the reply box will appear as normal for them. For CMS Articles and Blogs that do not allow comments, it will not show up.

Here is an example of it working on a CMS Article:
http://cellphoneforums.net/content/c...ten-years.html

And a blog post:
http://nikonites.com/blogs/jdeg/73-a...portation.html


Here's how to do it:

In template vbcms_comments_page find:

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

Add after:

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


In blog_show_entry find:

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

Add after:

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

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.
Comments
  #2  
Old 23 Jan 2012, 12:17
Merenguista's Avatar
Merenguista Merenguista is offline
 
Join Date: Sep 2010
thanks
Reply With Quote
  #3  
Old 23 Jan 2012, 16:08
Mr_Running Mr_Running is offline
 
Join Date: May 2010
I do not allow comments on the CMS but
I will use the Post Comment for the Blogs
and guests can now say hello to my register page.

Thanks for Sharing
Reply With Quote
  #4  
Old 14 Mar 2012, 20:28
sspeed sspeed is offline
 
Join Date: Nov 2011
Thank you! This should be an integral part of the vBulletin software. Since moving to vBulletin I get ZERO comments...
Reply With Quote
  #5  
Old 22 Apr 2012, 23:21
jerde jerde is offline
 
Join Date: Jun 2010
How would I do this for mobile style as well?
__________________
The #1 Site for BlackBerry Users... www.BlackBerryOS.com
Reply With Quote
  #6  
Old 02 Aug 2014, 03:11
hotdogcooker hotdogcooker is offline
 
Join Date: Jul 2014
I can't find where you are supposed to be able to edit the "vbcms_comments_page", is it in "Style Manager"?. Or, where is the place you edit that?.
Reply With Quote
  #7  
Old 02 Aug 2014, 03:36
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Real name: John
Originally Posted by hotdogcooker View Post
I can't find where you are supposed to be able to edit the "vbcms_comments_page", is it in "Style Manager"?. Or, where is the place you edit that?.
Style Manager > select "Edit Templates" for the style you want to edit > "vBulletin CMS Templates"
__________________
John
Reply With Quote
  #8  
Old 02 Aug 2014, 03:48
hotdogcooker hotdogcooker is offline
 
Join Date: Jul 2014
Originally Posted by tpearl5 View Post
Style Manager > select "Edit Templates" for the style you want to edit > "vBulletin CMS Templates"
I found it by Expanding "Blog Temples". I didn't know there were templates hidden within templates. After adding all of the code, now people can comment on my "blog":

http://bloggingforum.org/entry.php?3...n-In-vBulletin

Thanks so much for this tutorial!. Hope my problem and solution will help others out.
Reply With Quote
  #9  
Old 02 Aug 2014, 15:00
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Real name: John
Originally Posted by hotdogcooker View Post
I found it by Expanding "Blog Temples". I didn't know there were templates hidden within templates. After adding all of the code, now people can comment on my "blog":

http://bloggingforum.org/entry.php?3...n-In-vBulletin

Thanks so much for this tutorial!. Hope my problem and solution will help others out.
Well, no, this just adds the comment button for guests which links to register.php. They can't actually comment until they register...

Also, if you want to edit a template in the future and you already have some code, it may be easier to use the search feature on a bit of the code to find the template.
__________________
John
Reply With Quote
  #10  
Old 03 Aug 2014, 03:04
hotdogcooker hotdogcooker is offline
 
Join Date: Jul 2014
Originally Posted by tpearl5 View Post
Well, no, this just adds the comment button for guests which links to register.php. They can't actually comment until they register...

Also, if you want to edit a template in the future and you already have some code, it may be easier to use the search feature on a bit of the code to find the template.
Well, I guess like most big sites you have to register before you comment on stuff. Well, in this case I found the template without searching, I'll try next time but I guess it was obvious that the templates expand, they had to be somewhere. Thanks.

BEFORE doing this fix, there was no comment box there at all, NOTHING. I tried other browsers too, it was messed up!.
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 12:26.

Layout Options | Width: Wide Color: