TinyPortal

Development => Support => Topic started by: ibernet on November 01, 2007, 08:12:21 PM

Title: Change to the shoutbox.. Help
Post by: ibernet on November 01, 2007, 08:12:21 PM
Hi everybody,

I've installed tp and smf but I want to make a change to the shoutbox

I'll explain in a few words hot it works and how I want it to be:

Actual one
Write a message and press shout!
The text compare in the the shout as below:
Nick
date/time
text

This is is what I want
Write a message and press shout!
The text compare in this way:
date/time Nick: text

Could you please tell me what have I got to modify? Even the file it's ok, I'm wandering in the dark

Thk

-----------------------------------------------------------------------------------------

Ciao a tutti,

ho installato tp ed smf però volevo apportare una modifica alla shoutbox

Spiego brevemente come funziona e poi come vorrei che funzionasse:

Attuale
Scrivo un messaggio premo shout!
Il testo compare in shout con questo formato:
Nick
data/ora
testo

Modifica
Scrivo un messaggio premo shout
Il testo compare in shout con questo formato:
data/ora Nick: testo

sapete indicarmi anche solo il file da modificare? sto cercando un po' al buio...

Grazie dell'attenzione
Title: Re: Change to the shoutbox.. Help
Post by: JPDeni on November 01, 2007, 08:35:17 PM
The file is Sources/TPortal.php.

Search for where the variable $shouts is defined.
Title: Re: Change to the shoutbox.. Help
Post by: ibernet on November 01, 2007, 09:48:54 PM
wow  thanks,  be really easy!

thanks, thanks, thanks :)

By
Title: Re: Change to the shoutbox.. Help
Post by: JPDeni on November 02, 2007, 02:30:09 AM
Glad to help. Be aware that, when you upgrade to another version of TP, you'll have to make the same change again. We usually suggest that people don't edit the files in the Sources directory, but that's the only way to get what you want.
Title: Re: Change to the shoutbox.. Help
Post by: ibernet on November 02, 2007, 07:55:50 AM
 I have brought a lot of changes to the portal in if.

When I adjourn everything, I do in local and then load as soon as it is operational  ;)
Title: Re: Change to the shoutbox.. Help
Post by: Crip on November 02, 2007, 08:59:56 AM
Beware, BIG changes are coming ......
Title: Re: Change to the shoutbox.. Help
Post by: Przemek84 on September 30, 2008, 10:12:00 PM
Ok... So I want to do the same thing but I have no idea how to do it :/ I managed to incorporate date next to the nickname but I have problems with the content of the shout

Here is the code:

{
$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>
'.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);
}
Title: Re: Change to the shoutbox.. Help
Post by: IchBin on September 30, 2008, 10:13:33 PM
Please use the search. This has been covered a few times already. As well as read the Posting Guidelines (http://www.tinyportal.net/index.php/topic,581) while you're at it.