The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Chatbox archives auto-on

View previous topic View next topic Go down

Chatbox archives auto-on

Post by tdilts on September 13th 2012, 9:49 pm

Is there a way to set the chatbox archives to be on by default?

tdilts
New Member

Posts : 2
Reputation : 1
Language : English

Back to top Go down

Re: Chatbox archives auto-on

Post by LGforum on September 13th 2012, 10:34 pm

Depends, how do you use your chatbox? As in where is it, homepage? What forum version? It would be possible just by re-declaring the function Forumotion use which inserts the chatbox.

Something like this:
Code:
window.insertChatBoxNew = function(chatbox_id, chatbox_url) {
    document.getElementById(chatbox_id).innerHTML = "<object data=\"" + chatbox_url + "archives=1\" id=\"frame_chatbox\" scrolling=\"yes\" width=\"100%\" height=\"100%\" type=\"text/html\"></object>";
}

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Chatbox archives auto-on

Post by tdilts on September 14th 2012, 1:50 am

Thanks for your quick reply! Your help is much appreciated. I am using phpBB3, and it shows up on my portal page and the forum page. I am more interested in getting it to work on the portal page which is where this code is from.

Code:
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0" id="chatbox_container">
   <tr>
      <td class="row1" valign="top" align="center">
         <div id="chatbox_portal" style="height:300px;"></div>
         <script type="text/javascript">
            insertChatBox('chatbox_portal', '{U_FRAME_CHATBOX}');
         </script>
      </td>
   </tr>
</table>

<table width="100%">
   <tr>
      <td width="100%"></td>
      <td align="right" width="20">
         <img src="http://illiweb.com/fa/resize.gif" onmousedown="javascript:resizeElement(event, 'chatbox_portal');" alt="" style="cursor:se-resize;" />
      </td>
   </tr>
</table>

tdilts
New Member

Posts : 2
Reputation : 1
Language : English

Back to top Go down

View previous topic View next topic Back to top


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