Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1309
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

What code to edit to remove timestamp from shoutbox?

Started by dry3210, September 24, 2009, 09:34:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dry3210

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?

Nathaniel

Find and remove the code below from your 'Themes/default/PortalShoutbox.template.php' file:
<span class="smalltext shoutbox_time">', $shout['time'], '</span>
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

dry3210

Quote from: Nathaniel on September 25, 2009, 01:36:33 AM
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

Nathaniel

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']
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

dt1

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

lakechurch

Quote from: dt1 on November 30, 2009, 06:57:18 AM
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).

Westlund

Quote from: lakechurch on May 04, 2010, 08:35:22 PM
Quote from: dt1 on November 30, 2009, 06:57:18 AM
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.

Infernus

#7
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:

On shout:

[SiNaN]

Themes/default/PortalShoutbox.template.php

Code (Find) Select
<span class="smalltext shoutbox_time">', $shout['time'], '</span></li>

Code (Replace) Select
</li>

Code (Find) Select
<li class="smalltext">', !

Code (Replace) Select
<li class="smalltext"><span class="smalltext shoutbox_time">', $shout['time'], '</span>', !
And slowly, you come to realize... It's all as it should be...


duzzzstar

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?