TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 695
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 221
  • Total: 221

Make shoutbox work in centre block?

Started by rctxtreme, January 29, 2007, 06:24:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rctxtreme

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 slightly due to the TP shoutbox by default being designed for being a sideblock.

Thanks if you can help.

akulion

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!

rctxtreme

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?

IchBin

You would copy the TPortalBlocks.template.php file to your theme and edit it. That way no other theme would be using that file.

rctxtreme

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>';

This website is proudly hosted on Crocweb Cloud Website Hosting.