SimplePortal
Customization => Custom Coding => Topic started by: dry3210 on September 24, 2009, 09:34:17 AM
-
What code to edit to remove timestamp from shoutbox?
I'm guessings its in the PortalShoutbox template page and I don't mind it in the history but I'd like to remove the date/time stamp off the shoutbox....any help?
-
Find and remove the code below from your 'Themes/default/PortalShoutbox.template.php' file:
<span class="smalltext shoutbox_time">', $shout['time'], '</span>
-
Find and remove the code below from your 'Themes/default/PortalShoutbox.template.php' file:
<span class="smalltext shoutbox_time">', $shout['time'], '</span>
That works except when you type a message it shows the timestamp again until its refreshed...
Also, how can I bump the font up a bit
And finally...
No scroll for people on the iphone and ipods in the shoutbox?
Thanks for the help
-
Remove the code below from your 'Themes/default/portal.js'
<span class="smalltext shoutbox_time">' + time + '</span>
Find this code (same file as above):
<li class="smalltext"
Replace with this code:
<li class="normaltext"
Find this code (Themes/default/PortalShoutbox.template.php);
<li class="smalltext">', !$shout['is_me']
Replace with this code:
<li class="normaltext">', !$shout['is_me']
-
Is it possible to move the timstamp?
I would like it before the username, so shouts would be 1 line only.
1 more quick one, can the format of the time be changed, or does it follow the general board settings?
Thnaks
-
I would like it before the username, so shouts would be 1 line only.
I know it is an old thread, but I could not find it anywhere else. Is it possible to put it on 1 line? I think it is better in 1 line when the shoutbox is in the top block (instead of a side block, than is the normal view better).
-
I would like it before the username, so shouts would be 1 line only.
I know it is an old thread, but I could not find it anywhere else. Is it possible to put it on 1 line? I think it is better in 1 line when the shoutbox is in the top block (instead of a side block, than is the normal view better).
Bump, I'd like this too.
-
Sorry about getting up an old thread. But I haven't realy found any other thread that fits thат I want, so im posting it here.
I figured out how to change it so date will appear before the name, you have to change this line in portal.js:
new_body += '<li class="smalltext">
to
new_body += '<li class="smalltext"><span class="smalltext shoutbox_time">' + '[' + time + '] ' + (is_me == 0 ? '</span><strong>' + author + ':</strong> ' : '') + body + '<br />' + (delete_link != 0 ? ('<span class="shoutbox_delete">' + delete_link + '</span>') : '') + '</li>';
This makes the date appear before name, but the problem is that this only applyes only when the shout is made.
Thing I haven't figured out is how to make the date next to name on shoutbox load. It seems like it's somewhere, but where... checked throw bunch of files already.
This is how it looks
On load, when user loads shoutbox:
(http://i208.photobucket.com/albums/bb43/noober42/1.png)
On shout:
(http://i208.photobucket.com/albums/bb43/noober42/2.png)
-
Themes/default/PortalShoutbox.template.php
<span class="smalltext shoutbox_time">', $shout['time'], '</span></li>
</li>
<li class="smalltext">', !
<li class="smalltext"><span class="smalltext shoutbox_time">', $shout['time'], '</span>', !
-
Meh, im blind. Thank you. ;D
-
Guys, I'm using the SP 2.3.4 and I has made the modification on the PortalShoutbox.template.php. Look http://kagbrasil.com/forum/index.php?action=forum
But, after I post any message, the shoutbox comes to the old style, with the timestamp under the nick and message.
Whats going on?