|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Chat Script. (I don't know name of this script) |
Chat Script. |
Hi all
Can anyone give me this script(I don't know name)(look image) on this site in this "box" is insert a chat,I want in this box insert Panel for Administrators,moderators etc Attachments:
5291796.jpg
(12.0 Kb)
·
6348328.jpg
(35.7 Kb)
Post edited by belmo996 - Sunday, 2012-07-29, 6:00 PM
|
belmo996, I can give you the following code for such chat box. I haven't tested it and don't know how it will work with other types of content.
1. Add the following to CSS: Code .center_dm_ru_chat { padding:0; width:388px; background:#F4F5F6; border:#7c7c7c 1px solid; } .handle{ margin:0; padding:0 } 2. Add this code to the "Bottom part of the website": Code <script type="text/javascript" src="http://www.center-dm.ru/ucoz/chat/v1/mini_chat_dm.js"></script> <div class="center_dm_ru_chat"> <a class="handle" href="#">Chat</a> $CHAT_BOX$ </div> If you need to adjust the js file manually: pathToTabImage - link to the button; imageHeight - height of the button; imageWidth - width of the button; tabLocation - location of the button (the right edge of the screen); speed - speed with which a chat box appears; topPos - top margin; fixedPosition - fixes the chat box. I'm not active on the forum anymore. Please contact other forum staff.
|
Sunny, thanks It works
Added (2012-07-30, 7:54 AM) --------------------------------------------- but How can I set permission I use this code: Code <?if($USER_GROUP$ != "5")?> <script type="text/javascript" src="http://download-baza.ucoz.com/js/expando.js"></script> <div class="center_dm_ru_chat"> <a class="handle" href="#">Chat</a> <b>Moderator Panel</b><br> </div> <?endif?> and this box is visible for all groups ? URL: www.download-baza.ucoz.com Post edited by belmo996 - Monday, 2012-07-30, 1:55 PM
|
belmo996, to hide the box from regular users use the following conditional statement around the coding.
Code <?if($USER_LOGGED_IN$ and $GROUP_ID$ == "5")?> <!-- Code Goes Here --> <?endif?> If you have further groups you would like to be able to see it copy and paste the "and ... 5" bit into the statement - remember to include spacing. Hope this helps, Jack of all trades in development, design, strategy.
Working as a Support Engineer. Been here for 13 years and counting. |
| |||
| |||