Like SystemiConnectFri 15 Oct 2021, 04:50
Auto Save MessagesLGforumFri 26 Feb 2021, 13:31
New tutorial questionTheCrowMon 15 Feb 2021, 08:12
Support iOS Emojis (and other platforms)LGforumSun 14 Feb 2021, 01:25
LGforum (2806)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
Mr.Easybb (1587)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
Bloodbath (745)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
Rukiafan (533)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
Dom (513)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
puppycheese (446)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
pedro (330)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
Neymar (301)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
Hitsu (281)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 
Flora (275)
Link to open the chat Vote_lcapLink to open the chat Voting_barLink to open the chat Vote_rcap 


Link to open the chat

radiatorsradiators
Status : No status yet...

Posts : 18
Join date : 2013-02-16
Sat 16 Feb 2013, 16:01
I discovered your chat addon today, and I really like it a lot. Congratulations for the nice work.

I noticed that to open the chat, when you are on the forum, you need to click on the Chat button on the bottom right of the forum, and it will open the chat.
My question is if it's possible to have a direct link to have the chat opened directly. I would like to have a direct link from my website to open the chat directly. At the moment I'm force do link to the forum and ask the user to click on the Chat button.

Thanks for your support
avatarGuest
Sat 16 Feb 2013, 16:51
If you didn't block it yet, you could use /chatbox behind your site's URL as a link to get the full-screen version, for instance http://www.whateveryoursitenameis.com/chatbox

Perhaps there is a way to stick the chat button into a widget at the top or bottom of the forums and have it overlayed with another picture instead of the chat button.

The program is based on JS and CSS for most of it, so there is no real link to it, I guess. You'd have to ask others. My knowledge on that is too restricted.

Samantha
LGforumLGforum
Status : Working to restore AWC!

Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Sat 16 Feb 2013, 17:59
Just put this wherever you want the link:
[ic]<a href="#" onclick="avacweb_chat.toggle(); return false;">Chatbox</a>[/ic] and that link will open and close the chatbox.
radiatorsradiators
Status : No status yet...

Posts : 18
Join date : 2013-02-16
Sat 16 Feb 2013, 18:08
Thanks for your reply, Samantha. The main reason I was looking for a different chat is because I didn't like the built in /chatbox Smile. Thanks for the suggestion anyway.

For me would be enough to have something that would make sure the Avacweb Chat visible at startup.

Unfortunately my knowledge on this is really limited, but I was thinking if it was possible to have an additional HTML page on the forum with a modified java script that would open the chat by default (using the same function that is associated to that button i.e. onclick="avacweb_chat.toggle()" )

So having 2 js one for the forum, as the one provided, and one for this new page (that I would link from my website). The only difference between the 2 js would be that the second would open the chat by default.

Do you think that this can work. Can you help me with that?
radiatorsradiators
Status : No status yet...

Posts : 18
Join date : 2013-02-16
Sat 16 Feb 2013, 18:11
Cool! I was writing while you posted, LGforum. Thanks a lot. I'll try immediately.
avatarGuest
Sat 16 Feb 2013, 18:26
Cool, next, I want to make every forum to have it's own link to a certain dedicated chat tab (channel), so I can link it to the forums (HTML) in ACP > General > Forum > Categories and Forums > Description per forum. So everyone will be linked to that dedicated channel (TBM). haha! Wink
LGforumLGforum
Status : Working to restore AWC!

Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Sat 16 Feb 2013, 18:33
To have it open by default, use this:
Code:
[panda=js]avacweb_chat_config.add_event('onload', function() {
    if(!avacweb_chat.open) avacweb_chat.toggle();
});
Hope this doesn't annoy your members.
radiatorsradiators
Status : No status yet...

Posts : 18
Join date : 2013-02-16
Sat 16 Feb 2013, 19:04
opening the chat by default on the forum for sure it would annoy my members. That's why I was thinking about 2 different js. one for the forum that would work in the normal way, and one for the new HTML page dedicated to the Chat that would load automatically the chat as you mention. Not sure if this can work, though!
LGforumLGforum
Status : Working to restore AWC!

Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Sat 16 Feb 2013, 19:13
Javascript can not do anything with Avacweb chat on pages where avacweb chat isn't. So if the AWC isn't on the HTML page... Javascript can do nothing to it...
Mr.EasybbMr.Easybb
Status : Love this site, that's why I'm back each day again... lol Samantha's co-owner now. Well deserved!

Posts : 1587
Join date : 2013-01-04
Sat 16 Feb 2013, 19:14
If you want a dedication on an html page. Be sure to use your sites foot and header in the settings. If you don't want them to show, you can easily override the CSS and what not on that certain HTML page. The onClick event is for really anywhere on the site. If you want your chat to be an exclusive pop up or something in the html page just do as I said. Then wrap the Chatbox code given by LG for the AWC in script tags. Let me know how this goes for you.
radiatorsradiators
Status : No status yet...

Posts : 18
Join date : 2013-02-16
Sat 16 Feb 2013, 20:06
Thanks a lot for you help guys. Starting from your suggestions I got to what I wanted at the beginning
Here is the step by step guide of the solution:

ACP> modules > HTML pages management > new HTML page

use your forum header and footer = YES

HTML source:
Code:

<script>
function load()
 {
    if(!avacweb_chat.open) avacweb_chat.toggle();
};
</script>

<body onload="load()">

</body>


This will allow to have one more page dedicated to your chat, that can be easily linked from the outside of your forum.

Once more, thank a lot to all of you for the great support.
Sponsored content