Black Pearl

Chatango Placement - Black Pearl

Chatango Placement

by TheTekromancer » Wed Aug 31, 2011 6:47 am

Hi there! Thanks for the excellent theme. I'm really digging it so far.

I've ran into a problem and was hoping someone here had an answer. I've placed a Chatango box on my forum just below the Who Is Online section. The exact code has moved around a few times and I keep having the same effect. The chat box is only appearing halfway as wide as it should.

Here's the code placement from the index_body.html:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <br clear="all" />

   <div id="viewonline_h" style="display: none;">
   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MAX}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><h4>{L_WHO_IS_ONLINE}</h4></div></div></div></div>
   <table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
   <tr><td class="row1"><span class="gensmall">&nbsp;</span></td></tr>
   </table>
   <div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>
   </div>

   <div id="viewonline_nh">
   <script type="text/javascript">
   <!--
   tmp = 'viewonline';
   if(GetCookie(tmp) == '2')
   {
      ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');
   }
   //-->
   </script>
   <div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><img style="padding-top: 9px; padding-right: 6px; float: right; cursor: pointer;" src="{T_THEME_PATH}{$MG_MIN}" onclick="ShowHide('viewonline_nh', 'viewonline_h', 'viewonline');" alt="{L_WHO_IS_ONLINE}" /><div class="tbl-title"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></div></div></div></div>
   <table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
   <tr>
   <!-- IF LEGEND -->
      <td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/online.png" alt="{L_WHO_IS_ONLINE}" /></td>
   <!-- ELSE -->
      <td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/online.png" alt="{L_WHO_IS_ONLINE}" /></td>
   <!-- ENDIF -->
      <td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
   </tr>
   <!-- IF LEGEND -->
      <tr><td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td></tr>
   <!-- ENDIF -->
   <tr><td class="cat-bottom" colspan="2">&nbsp;</td></tr>
   </table>
    <object width="978" height="450" id="obj_1295582397868"><param name="movie" value="http://bandofbrigands.chatango.com/group"/><param  name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param  name="flashvars" value="cid=1295582397868&a=F3EFE5&b=100&c=333333&d=333333&g=333333&l=F3EFE5&m=FF8313&n=333333&p=10&q=F3EFE5&r=100&t=0&w=0"/><embed  id="emb_1295582397868" src="http://bandofbrigands.chatango.com/group" width="978" height="450" allowScriptAccess="always" allowNetworking="all"  type="application/x-shockwave-flash" allowFullScreen="true"  flashvars="cid=1295582397868&a=F3EFE5&b=100&c=333333&d=333333&g=333333&l=F3EFE5&m=FF8313&n=333333&p=10&q=F3EFE5&r=100&t=0&w=0"></embed></object><br>[  <a href="http://bandofbrigands.chatango.com/clonegroup?ts=1295582397868">Copy this</a> | <a href="http://chatango.com/creategroup? ts=1295582397868">Start New</a> | <a href="http://bandofbrigands.chatango.com">Full Size</a> ]
   <div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>


You'll notice in the code that it's set to be 978 pixels wide but it's only using half the space it could. I'm assuming the problem is related to the table size but, to be totally honest, I've never been good with tables. So, can somebody tell me what needs to change to get this thing back at the normal size?
TheTekromancer
Registered User
Posts: 4
Joined: Wed Aug 31, 2011 6:35 am

Re: Chatango Placement

by Joshua203 » Wed Aug 31, 2011 12:09 pm

Well if i look at your page i notice it's not set at 978 but at 500 (see below your real code in use)

Code: Select all

   <object width="500" height="450" id="obj_1314348898413"><param name="movie" value="http://bandofbrigands.chatango.com/group"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1314348898413&a=F3EFE5&b=100&c=333333&d=333333&g=333333&l=F3EFE5&m=FF8313&n=333333&p=10&q=F3EFE5&r=100&t=0&w=0"/><embed id="emb_1314348898413" src="http://bandofbrigands.chatango.com/group" width="500" height="450" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1314348898413&a=F3EFE5&b=100&c=333333&d=333333&g=333333&l=F3EFE5&m=FF8313&n=333333&p=10&q=F3EFE5&r=100&t=0&w=0"></embed></object><br>[ <a href="http://bandofbrigands.chatango.com/clonegroup?ts=1314348898413">Copy this</a> | <a href="http://chatango.com/creategroup?ts=1314348898413">Start New</a> | <a href="http://bandofbrigands.chatango.com">Full Size</a> ]</div>


If I look at chatango I notice you can set a width upto 999 on creation.

Have you already looked into the available phpbb3 chat/shoutbox mods instead of this?
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Chatango Placement

by Joshua203 » Wed Aug 31, 2011 1:08 pm

After roughly dumping your code at one of my boards.. I don't see the problem (beside looking very ugly :lol: )

You can even use 100% as width if you like.. which could be nice if you actually put it in a table ;) !

chatango.jpg
fast test


my guess is you need to purge the cache in acp before noticing the effect of your edits?
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Chatango Placement

by TheTekromancer » Wed Aug 31, 2011 1:18 pm

Well, I've never done that before so yeah, I'll give it a try.

I've checked out the mods but my crew has Chatango accounts already so I think I'll stick with it.

Thanks for testing that out. It's been driving me crazy.
TheTekromancer
Registered User
Posts: 4
Joined: Wed Aug 31, 2011 6:35 am

Re: Chatango Placement

by TheTekromancer » Wed Aug 31, 2011 1:27 pm

Sorry for the double-post. Just wanted to say that I manually purged the cache via FTP and that cleared it right up.

You sir, are great. Keep up the excellent work and we'll keep rocking your themes!
TheTekromancer
Registered User
Posts: 4
Joined: Wed Aug 31, 2011 6:35 am

Re: Chatango Placement

by Joshua203 » Wed Aug 31, 2011 2:05 pm

Mighty Gorgon´s themes ..not mine ;) ..but you're welcome

Suggestion to do it a little different:

Code: Select all

<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title"><h4>Chat</a></h4></div></div></div></div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr><th colspan="2">Shoutbox</th></tr>
<tr><td>
   <object width="100%" height="450" id="obj_1314348898413"><param name="movie" value="http://bandofbrigands.chatango.com/group"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1314348898413&a=F3EFE5&b=100&c=333333&d=333333&g=333333&l=F3EFE5&m=FF8313&n=333333&p=10&q=F3EFE5&r=100&t=0&w=0"/><embed id="emb_1314348898413" src="http://bandofbrigands.chatango.com/group" width="100%" height="450" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1314348898413&a=F3EFE5&b=100&c=333333&d=333333&g=333333&l=F3EFE5&m=FF8313&n=333333&p=10&q=F3EFE5&r=100&t=0&w=0"></embed></object>
<tr><td>
<tr><td class="cat-bottom">[ <a href="http://bandofbrigands.chatango.com/clonegroup?ts=1314348898413">Copy this</a> | <a href="http://chatango.com/creategroup?ts=1314348898413">Start New</a> | <a href="http://bandofbrigands.chatango.com">Full Size</a> ]</td></tr>
</table>
<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c">&nbsp;</div></div></div></div>


Any questions ..let me know
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Chatango Placement

by TheTekromancer » Wed Aug 31, 2011 8:11 pm

Swanky! I like it. I've added the new code and must say it's a nice touch. Thanks again for everything and sorry for all the confusion.
TheTekromancer
Registered User
Posts: 4
Joined: Wed Aug 31, 2011 6:35 am

Re: Chatango Placement

by Joshua203 » Wed Aug 31, 2011 8:55 pm

you sound like it's already ok now.. but it aint right yet.. I think adding this back in before the previous code would solve all mistakes:

Code: Select all

   <div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c"> </div></div></div></div>
   </div>
<!-- ENDIF -->

   <br clear="all" />


it will close the damaged block above and close it correctly so it would repair the now broken bottom of the page too (I can't see if you also removed the ENDIF in there so it may or may not already be there)

Goodluck M8 ;)

EDITED to correct and explain more!!
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203