Controlling guest posting on the Blogs

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Caesonia

Controlling guest posting on the Blogs

Post by Caesonia »

Hi all. i don't know if I simply was blind and missed it, but I want to prevent guest posters from the Blog module. I didn't see an option to click, such as in the forums made simple area. However for this site, I really don't want guests to be able to leave comments. People have to be willing to sign up for the most basic of membership. this keeps a basic handle on the trolls.

Does anyone have any suggestions on how to handle this?

Calguy?

TIA

Caesonia
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Controlling guest posting on the Blogs

Post by calguy1000 »

use the frontend users module, and CustomContent and modify the appropriate templates so that only logged in users can see the form that allows adding comments.

I don't use the blog module so I can't be more specific than that.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
billandsonia
Forum Members
Forum Members
Posts: 13
Joined: Mon Apr 21, 2008 5:40 pm

Re: Controlling guest posting on the Blogs

Post by billandsonia »

Not sure if this is what you're looking for, but this is what I changed my Comment Form Template to:

Code: Select all

{if $customcontent_loggedin > 0}
 {$formstart}

  <div class="blogs-addcommentlabel">{$authortext}:</div>
  <div class="blogs-addcommentinput">{$authorinput}</div>
  <div class="blogs-addcommentlabel">{$commenttext}:</div>
  <div class="blogs-addcommentinput">
    {$commentinput}
  </div>
  {if $captchatext!=""}
  <div class="blogs-addcommentlabel">{$captchatext}</div>
  <div class="blogs-addcommentinput">{$captchagraphic}{$captchainput}</div>
  {/if}
  <div class="blogs-addcommentlabel"> </div>
  <div class="blogs-addcommentinput">{$submit}</div>

{$formend}

{else}
  <p>Registered users may add comments.</p>
{/if}
This shows comments to everyone, but doesn't show the comment input section unless the user is logged in at the front end. I've been trying to get some help in automatically assigning the login name as the author of the comment, but no one has yet answered my post for help. But maybe this suggestion will be of use to you, and if I find the answer to the second part I'll pass that along also.
Post Reply

Return to “Developers Discussion”