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
The file is Sources/TPortal.php.
Search for where the variable $shouts is defined.
wow thanks, be really easy!
thanks, thanks, thanks :)
By
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.
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 ;)
Beware, BIG changes are coming ......
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);
}
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.