The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

Is this possible

View previous topic View next topic Go down

In progress Is this possible

Post by delmark12 on November 27th 2011, 2:31 pm

can i know how to set the visibility of an object?
example i have a message for guests only of message for members only.
is it possible?

New Member

Male Posts : 22
Reputation : 1
Language : English, Tagalog, Java, HTML, CSS,, Batch
Location : Philippines

Back to top Go down

In progress Re: Is this possible

Post by Nera. on November 27th 2011, 3:13 pm


You can use this in AP > Modules > JS managment and mark all pages

$(function() {
  if(x) {
    $('#i_logo').after('<br/><span style="background:#f0e8e0;border:1px solid #c00000;font-family:Tahoma,Arial;font-size:11px;padding: 5px;text-align: center;margin-top: -3px;"><strong>text for guests to see</strong></span><br/>');
  else if(y) {
    $('#i_logo').after('<br/><span style="background:#f0e8e0;border:1px solid #c00000;font-family:Tahoma,Arial;font-size:11px;padding: 5px;text-align:center;"><strong>text for members to see</strong></span><br/>');

Change the #i_logo in the script to the selector where you want to post the message or leave #i_logo for it to be placed under logo. Change the text to fit your wishes.


Female Posts : 7077
Reputation : 2013
Language : English
Location : -

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum