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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,003
  • Total Topics: 21,330
  • Online today: 187
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 161
  • Total: 161

Shoutbox change

Started by khazming, March 19, 2008, 08:09:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

khazming

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


and change to this



i do that with paint but i want to do it for real..

G6Cad

I think that is posted a few times allready.
A search will hopefully lead you to the answer/s  :)

khazming

#2
can you help me were?.. i search for some but i didn't make it... :(

edit: dont worry i found it  :'(


failquail

What about removing the dotted line boxes and have something to the style of

User112(9:47): Message!
User114(9:47): Agreed!

stormlrd

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

jackgordon

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

This website is proudly hosted on Crocweb Cloud Website Hosting.