how to hide xat chat from guests
4 posters
Page 1 of 1
how to hide xat chat from guests
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
Re: how to hide xat chat from guests
Is it in a widget? If it is then change the permissions by unchecking the guests box.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: how to hide xat chat from guests
no it is not in the widget it is being coded seperately in the homepage generalities present in display
Re: how to hide xat chat from guests
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 :
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();
}
});
Re: how to hide xat chat from guests
Could you post the link of your forum you're applying this to ?
Thanks
Thanks
Re: how to hide xat chat from guests
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
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
Re: how to hide xat chat from guests
See if this works :
- Code:
$(window).load(function() {
if (!document.getElementById('logout')) {
$('.forumline:has(embed[name="chat"])').remove();
}
});
Re: how to hide xat chat from guests
- 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>
Re: how to hide xat chat from guests
Place this at the beginning of your chat box code :
and this at the end of it :
then add this to your javascript :
- 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();
}
});
Re: how to hide xat chat from guests
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
Re: how to hide xat chat from guests
girlypiechocochips wrote:o srry ty it worked some glitch due to text box
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.girlypiechocochips wrote:and now odk what happened i am unable to even login
(1st Reminder)
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» hide links just from guests
» How do I hide codes from guests?
» HOW TO HIDE TOPICS FROM GUESTS
» How do you hide Announcements from guests?
» Can't hide Who's Online from guests
» How do I hide codes from guests?
» HOW TO HIDE TOPICS FROM GUESTS
» How do you hide Announcements from guests?
» Can't hide Who's Online from guests
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum