TinyPortal
Development => Support => Topic started by: rctxtreme on January 29, 2007, 06:24:34 AM
How would I edit the shoutbox so it works properly in the centre like Ultimate Shoutbox does, but for one theme only?
It would also be nice to make it resemble this (http://files.birth-online.de/sbox_v1.10.jpg) slightly due to the TP shoutbox by default being designed for being a sideblock.
Thanks if you can help.
look in Tportalblocks.template.php file in your default theme folder
I dont know IF it will work or not but you could search for
// TPortal shoutbox
function TPortal_shoutbox()
thats the whole function which defines the way the shoutbox looks, changing width in there will make it wider and stuff, so just experiment until u get desired result
MAKE A BACKUP of that file before you make any edits!
OK, I've modified the container to make it look right, but how would you modify the way the shoutbox contents are displayed, for one theme only?
You would copy the TPortalBlocks.template.php file to your theme and edit it. That way no other theme would be using that file.
TPortalBlocks.template.php does not allow me to edit how the actual contents are displayed:
if($context['TPortal']['shoutbox_usescroll']=='1')
echo '
<div id="marqueecontainer" onmouseover="copyspeed=pausespeed" onmouseout="copyspeed=marqueespeed">
<div id="vmarquee" class="smalltext" style="text-align: left;position: absolute; width: 98%;">
'.$context['TPortal']['shoutbox'].'
</div>
</div>';
else
echo '
<table cellpadding="0" cellspacing="0" style="table-layout: fixed;">
<tr><td><div class="smalltext" style="width: 750px; height: 75px; overflow: auto;">', $context['TPortal']['shoutbox'], '</div></td>
</tr>
</table>';