TinyPortal
Development => Resources => Modules => Topic started by: khazming on March 19, 2008, 08:09:14 PM
i need some help with the shoutbox, is there any thing that i could do to change the way the shotbox post the messages?...
Let me explain i would like to change this
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi250.photobucket.com%2Falbums%2Fgg262%2FKhazming%2Fth_08565b28.jpg&hash=272492fbe96b6897ea30c273bf89a2e56627606a) (http://i250.photobucket.com/albums/gg262/Khazming/08565b28.jpg)
and change to this
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi250.photobucket.com%2Falbums%2Fgg262%2FKhazming%2Fth_a250c352.jpg&hash=bc78919b165e20b672ea1c26190edce6cb80e109) (http://i250.photobucket.com/albums/gg262/Khazming/a250c352.jpg)
i do that with paint but i want to do it for real..
I think that is posted a few times allready.
A search will hopefully lead you to the answer/s :)
can you help me were?.. i search for some but i didn't make it... :(
edit: dont worry i found it :'(
Here you have some hints on where to look in the files.
http://www.tinyportal.net/index.php?topic=19778.msg161479#msg161479
http://www.tinyportal.net/index.php?topic=22545.msg182627#msg182627
What about removing the dotted line boxes and have something to the style of
User112(9:47): Message!
User114(9:47): Agreed!
your thinking more of a chatbox look, I'll add this to the advanced shoutbox settings TP1.0 currently has 2 shoutboxs when released you'll see simple and advanced to answer the next question and no we don't have a date yet but its definitly closer ;)
Back to the original poster's question... I am trying to do the same thing. I found the snippet of code, but am not sure what to do with it to achieve the look I want. Would someone be so kind as to guide me?
How would I get this: Name, Date: Message all on one line?
The original code is below. Thank you to anyone willing to help.
$shouts= $txt['tp-last'].' '.$limit.' '.$txt['tp-shouts'].'<hr />';
while($row = mysql_fetch_assoc($request))
{
$shouts .='<div style="margin: 4px;"><div style="border: dotted 1px; padding: 2px 4px 2px 4px;" class="windowbg2"><b>'.$row['value3'].'</b></div><div style="padding: 2px;"> '.timeformat($row['value2']).'</div><div style="padding: 4px;">';
$myshout='';
$myshout=$row['value1'];
$shouts .= doUBBC(censorText($myshout));
$shouts .= '</div></div>';
}
$context['TPortal']['shoutbox']=$shouts;
mysql_free_result($request);