TinyPortal

Development => Resources => Modules => Topic started by: khazming on March 19, 2008, 08:09:14 PM

Title: Shoutbox change
Post 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..
Title: Re: Shoutbox change
Post by: G6Cad on March 19, 2008, 08:25:59 PM
I think that is posted a few times allready.
A search will hopefully lead you to the answer/s  :)
Title: Re: Shoutbox change
Post by: khazming on March 19, 2008, 08:30:00 PM
can you help me were?.. i search for some but i didn't make it... :(

edit: dont worry i found it  :'(
Title: Re: Shoutbox change
Post by: G6Cad on March 19, 2008, 08:39:42 PM
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
Title: Re: Shoutbox change
Post by: failquail on March 26, 2008, 10:48:51 AM
What about removing the dotted line boxes and have something to the style of

User112(9:47): Message!
User114(9:47): Agreed!
Title: Re: Shoutbox change
Post by: stormlrd on March 26, 2008, 11:52:45 AM
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 ;)
Title: Re: Shoutbox change
Post by: jackgordon on July 25, 2008, 04:24:29 AM
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);