The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Is this possible

2 posters

Go down

In progress Is this possible

Post by delmark12 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?
avatar
delmark12
New Member

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

http://delmark.meabout.com/

Back to top Go down

In progress Re: Is this possible

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

Hi,

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

Code:
$(function() {
  x=document.getElementById('i_icon_mini_login');
  y=document.getElementById('i_icon_mini_logout');
  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.
Nera.
Nera.
Energetic

Female Posts : 7078
Reputation : 2017
Language : English
Location : -

Back to top Go down

Back to top


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