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 login or register.

* Who's Online

  • Dot Guests: 420
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: What code to edit to remove timestamp from shoutbox?  (Read 9937 times)

0 Members and 1 Guest are viewing this topic.

Offline dry3210

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.2
What code to edit to remove timestamp from shoutbox?
« 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?

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: What code to edit to remove timestamp from shoutbox?
« Reply #1 on: September 25, 2009, 01:36:33 AM »
Find and remove the code below from your 'Themes/default/PortalShoutbox.template.php' file:
Code: [Select]
<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.

Offline dry3210

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 1.1.8
  • SP Version: 2.2
Re: What code to edit to remove timestamp from shoutbox?
« Reply #2 on: September 25, 2009, 12:51:03 PM »
Find and remove the code below from your 'Themes/default/PortalShoutbox.template.php' file:
Code: [Select]
<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

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: What code to edit to remove timestamp from shoutbox?
« Reply #3 on: September 25, 2009, 09:17:35 PM »
Remove the code below from your 'Themes/default/portal.js'
Code: [Select]
<span class="smalltext shoutbox_time">' + time + '</span>
Find this code (same file as above):
Code: [Select]
<li class="smalltext"
Replace with this code:
Code: [Select]
<li class="normaltext"
Find this code (Themes/default/PortalShoutbox.template.php);
Code: [Select]
<li class="smalltext">', !$shout['is_me']
Replace with this code:
Code: [Select]
<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.

Offline dt1

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: What code to edit to remove timestamp from shoutbox?
« Reply #4 on: November 30, 2009, 06:57:18 AM »
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

Offline lakechurch

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: None
  • SP Version: None
Re: What code to edit to remove timestamp from shoutbox?
« Reply #5 on: May 04, 2010, 08:35:22 PM »
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).

Offline Westlund

  • Semi Newbie
  • *
  • Posts: 7
  • Gender: Male
    • MetaGaming Community
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: What code to edit to remove timestamp from shoutbox?
« Reply #6 on: October 25, 2010, 03:11:25 PM »
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.

Offline Infernus

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: What code to edit to remove timestamp from shoutbox?
« Reply #7 on: November 13, 2011, 11:58:00 PM »
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:
Code: [Select]
new_body += '<li class="smalltext">to
Code: [Select]
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:
« Last Edit: November 14, 2011, 12:40:39 AM by Infernus »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: What code to edit to remove timestamp from shoutbox?
« Reply #8 on: November 14, 2011, 04:20:08 AM »
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...

Offline Infernus

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: What code to edit to remove timestamp from shoutbox?
« Reply #9 on: November 14, 2011, 07:15:03 AM »
Meh, im blind. Thank you.  ;D

Offline duzzzstar

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: What code to edit to remove timestamp from shoutbox?
« Reply #10 on: February 28, 2012, 02:05:58 AM »
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?