HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Shout Box (Chat System)

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#88671 (In Topic #17952)

Non-joined user

Don't want guests to post!

I cannot seem to figure out how to make it so guests can see the shout box, but not post to it. Is there an option for this?
Back to the top
 
Posted
Rating:
#88672
Avatar

Community saint

There is no specific option for that, but you can replace the BLOCK_SIDE_SHOUTBOX.tpl template with the following:

Code

<div class="standardbox_classic">
   {MESSAGES}
   
   {+START,IF,{$NOT,{$IS_GUEST}}}
      <form title="{!SHOUTBOX}" onsubmit="if (checkFieldForBlankness(this.elements['shoutbox_message'],event)) { disable_button_just_clicked(this); return true; } return false;" target="_self" action="{URL*}" method="post">
         <div class="constrain_field">
            <p class="accessibility_hidden"><label for="shoutbox_message">{!MESSAGE}</label></p>
            <input value="" type="text" onfocus="if (this.value=='{!MESSAGE;}') this.value='';" id="shoutbox_message" name="shoutbox_message" alt="{!MESSAGE}" class="wide_field" />
         </div>
         <div class="proceed_button">
            <input type="submit" value="{!SEND_MESSAGE}" class="wide_button" />
         </div>
      </form>
   {+END}
   
   <script type="text/javascript">// <![CDATA[
      document.getElementById('shoutbox_message').setAttribute('autocomplete','off');
   //]]></script>
</div>


Note that' all I've done is add the following code around the from:

Code

{+START,IF,{$NOT,{$IS_GUEST}}}
...
{+END}

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: