SimplePortal

Customization => Custom Coding => Topic started by: MAD_MOH on September 25, 2009, 04:29:06 AM

Title: Shoutbox -- UPDATE
Post by: MAD_MOH on September 25, 2009, 04:29:06 AM
SMF 2.0 RC1.2
SimplePortal 2.3

----


I hope iam in the correct board  :nervous-happy:

I´ve modified your shoutbox a little bit, to save space (my users hate scroll bars  :D )

So i modified the PortalShoutbox.template.php, to get the shout in a single row.

Code: [Select]
if (!empty($shoutbox['shouts']))
foreach ($shoutbox['shouts'] as $shout)
echo '
<li class="smalltext">', !$shout['is_me'] ? '<strong>' . $shout['author']['link'] . '</strong> ' : '', '(', $shout['time'], '):   ', $shout['text'], !empty($shout['delete_link_js']) ? '<span class="shoutbox_delete">' . $shout['delete_link_js'] . '</span>' : '';

This is the Result (its german):

deKay84 (Heute um 09:45:32): bis später

Thats OK, but sometimes when i press the REFRESH or the POST button, it shows the original format (with the time stamp in the second row) :

deKay84: bis später
Heute um 09:45:32


Now i press the refresh of the browser and it shows the one row version again. How can I fix this ?

===========

Is there a possibility to modify the time stamp from:

Heute um 09:45:32

to

Heute 09:45

Greets MOH

==================================
UPDATE 28.Sep. 2009
==================================

I solved the first problem by myself. It was located in portal.js.
No it works perfect  ;D

2nd problem stays. Where can i modify the format of the Shoutbox TIMESTAMP ??
SimplePortal 2.3.8 © 2008-2024, SimplePortal