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.

how to hide xat chat from guests

View previous topic View next topic Go down

In progress how to hide xat chat from guests

Post by girlypiechocochips on January 26th 2014, 8:26 pm

I need a way to hide xat chat from guest since its on homepage who ever visit my site logins in the xat chat so is there anyway that i can hide it plus is there anyway to make a popup xatchat

girlypiechocochips
New Member

Posts : 23
Reputation : 1
Language : english

http://gxacademy.4rumer.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by SLGray on January 27th 2014, 12:07 am

Is it in a widget? If it is then change the permissions by unchecking the guests box.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips on January 27th 2014, 1:11 am

no it is not in the widget it is being coded seperately in the homepage generalities present in display

girlypiechocochips
New Member

Posts : 23
Reputation : 1
Language : english

http://gxacademy.4rumer.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by Ange Tuteur on January 27th 2014, 8:35 am

Hi,

You can give this a try :
Administration panel > Modules > Javascript codes management > Create a new script

Title : what you wish
Placement : in the home page, or all pages. It depends where you have it.
Paste the script below and save :
Code:
$(document).ready(function() {
    if (!document.getElementById('logout')) {
        $('.forumline:has(embed[name="chat"])').remove();
    }
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips on January 27th 2014, 12:51 pm

no dtill doesnt work :/

girlypiechocochips
New Member

Posts : 23
Reputation : 1
Language : english

http://gxacademy.4rumer.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by Ange Tuteur on January 27th 2014, 1:05 pm

Could you post the link of your forum you're applying this to ?

Thanks Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips on January 27th 2014, 1:06 pm

http://gxacademy.4rumer.com/

you will see when the page opens you directly login there i just need a way that guests do not get access to that chat

girlypiechocochips
New Member

Posts : 23
Reputation : 1
Language : english

http://gxacademy.4rumer.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by Ange Tuteur on January 27th 2014, 1:14 pm

See if this works :
Code:
$(window).load(function() {
    if (!document.getElementById('logout')) {
        $('.forumline:has(embed[name="chat"])').remove();
    }
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips on January 27th 2014, 1:18 pm

Code:
img style="visibility: hidden; width: 0px; height: 0px;" border="0" src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEzOTA*ODkwNzM4OTEmcHQ9MTM5MDQ4OTA3NzQwMiZwPTUzMTUxJmQ9Jmc9MQ==.gif" /><embed wmode="transparent" src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" name="chat" flashvars="id=205071412" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.php" style="width: 540px; height: 405px;" /><br /><span style="font-size: smaller;"><a target="_BLANK" href="http://xat.com/web_gear/?cb">Get your own Chat Box!</a> <a target="_BLANK" href="http://xat.com/web_gear/chat/go_large.php?id=205071412">Go Large!</a></span><br /> <script src="http://static.tumblr.com/hhedat8/OUkmkh864/script.js"></script><script src="http://static.tumblr.com/hhedat8/cfemkh9df/script.js"></script><link rel="stylesheet" href="http://static.tumblr.com/hhedat8/FpYmkhikx/chatbox.css" />
<div id="modal">
   
   <div id="content1">
       <object data="/chatbox/index.forum?page=front&" id="frame_chatbox" scrolling="yes" type="text/html" style="width: 100%; height: 100%;"> </object>
   </div>
</div>
thT DID not work just incase this is the code am using

girlypiechocochips
New Member

Posts : 23
Reputation : 1
Language : english

http://gxacademy.4rumer.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by Ange Tuteur on January 27th 2014, 1:26 pm

Place this at the beginning of your chat box code :
Code:
<span id="xatChat">

and this at the end of it :
Code:
</span>

then add this to your javascript :
Code:
$(function() {
    if (!document.getElementById('logout')) {
        $('#xatChat').remove();
    }
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips on January 27th 2014, 1:33 pm

o srry ty it worked some glitch due to text box


Last edited by girlypiechocochips on January 27th 2014, 1:40 pm; edited 1 time in total

girlypiechocochips
New Member

Posts : 23
Reputation : 1
Language : english

http://gxacademy.4rumer.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips on January 27th 2014, 1:35 pm

and now odk what happened i am unable to even login

girlypiechocochips
New Member

Posts : 23
Reputation : 1
Language : english

http://gxacademy.4rumer.com/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by Jophy on January 27th 2014, 3:31 pm

@girlypiechocochips wrote:o srry ty it worked some glitch due to text box

@girlypiechocochips wrote:and now odk what happened i am unable to even login
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead.

(1st Reminder)

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

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