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

Recent

Welcome to TinyPortal. Please login or sign up.

June 26, 2024, 09:24:36 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,280
  • Total Topics: 21,227
  • Online today: 319
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 280
  • Total: 280

Change to the shoutbox.. Help

Started by ibernet, November 01, 2007, 08:12:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ibernet

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

JPDeni

The file is Sources/TPortal.php.

Search for where the variable $shouts is defined.

ibernet

wow  thanks,  be really easy!

thanks, thanks, thanks :)

By

JPDeni

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.

ibernet

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

Crip

Beware, BIG changes are coming ......
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Przemek84

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

IchBin

Please use the search. This has been covered a few times already. As well as read the Posting Guidelines while you're at it.