
Re: FlashChat - How To Get It Working In ICY
All works well but I like to know how to open a popup with the flashchat.
I mean, I made a link on forum header (near to "home", "forum" etc.) named "chat".
I'd like, if someone can help me, when the user click on "chat" the chat popup should be opened with automathic user login...
BAgs!!!
Something like this (in the header links "Chat")?
If so, then follow these instructions
First open overall_header.tpl (or overall_header_mx.tpl or overall_header_sc.tpl [overall_header_xx.tpl], depending what templates you installed) in your template folder (ex. templates/mg_themes)
Then search for
After, add
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=600,width=800');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
You change the height and width to meet what you need
Then search for
<a href="{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
One line after (or enter on your keyboard) add
<a href="url/to/chat" onclick="return popitup('url/to/chat')">{L_CHAT}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
Change url/to/chat to the directory your chat is located, along with the script (ex. chat/flashchat.php)
Save and upload
Next go to the directory "includes/"
Find page_header.php
Open it
Find
'L_SEARCH_EXPLAIN' => $lang['Search_Explain'],
After add
'L_CHAT' => $lang['Chat'],
Save and upload