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.

how to hide xat chat from guests

4 posters

Go down

In progress how to hide xat chat from guests

Post by girlypiechocochips 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
avatar
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 January 27th 2014, 12:07 am

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


how to hide xat chat from guests Slgray10

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

Male Posts : 51464
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips 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
avatar
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 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

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

no dtill doesnt work :/
avatar
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 January 27th 2014, 1:05 pm

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

Thanks Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips 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
avatar
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 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips 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
avatar
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 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: how to hide xat chat from guests

Post by girlypiechocochips 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
avatar
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 January 27th 2014, 1:35 pm

and now odk what happened i am unable to even login
avatar
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 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
Jophy
ForumGuru

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

Back to top Go down

Back to top

- Similar topics

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