Edit date/time text

mahdy at 23h10
18
Jan
2012
Hi,

Could you please tell me how i can change the text of Current date/time with my own text. For instance, I'd like my members to see 'The date & time is' instead of 'Current date/time is'.

I also want to change 'Your last visit' text as well.

Thank You.
1 Rideem3, on 18/01/2012 at 23h11
Edit: See Lgforums post Wink
2 LGforum, on 19/01/2012 at 00h11
You can access them both easily on a phpbb3 board.

Code:

$(function() {
var x=document.getElementById('main-content');
var lastvisit=x.firstChild;
lastvisit.innerHTML=lastvisit.innerHTML.replace(/Your last visit was on/,'YOUR TEXT HERE');

var currentdatetime=lastvisit.nextSibling;
currentdatetime.innerHTML=currentdatetime.innerHTML.replace(/Current date\/time/,'NEW TEXT HERE');
});


I laid it out nicely to make it easier to understand.
3 !_NICK_!, on 19/01/2012 at 00h27
How about PunBB
4 LGforum, on 19/01/2012 at 00h41
Your last visit was on

Code:

$(function() {
var x=document.getElementById('pun-visit');
var lastvisit=x.lastChild;
lastvisit.innerHTML=lastvisit.innerHTML.replace(/Your last visit was on/,'YOUR TEXT HERE');
});


Where is the 'current date/time' bit on punBB?
5 mahdy, on 19/01/2012 at 03h42
It works :wouhou:



Thank You, LGforum
6 Rideem3, on 19/01/2012 at 03h49
Topic Solved & Locked
Similar topics
Hi, I was not sure if this question was for ETL or here ;-) This is the situation : I have created a DW and a cube for statistic for Paramedic events. I'm working for the governement of canada and they are using some unusual financial period (13
Working at a client site that would like to take a Date dimension using Day as Pk for Day_dim with some day of week, week day, month, year, etc. columns. Suggestion of making more conformed dimensions from Day_dim with Week_Day_dim and Month_day_dim an
hi guys, There is some more function in new user extension related to the date and time. It contain the following functions: 1. StoreCurrentDate : This function store current system date in MM/DD/YYYY format.If you want to change the
Replies 1 to 6 on 6 for "Edit date/time text"
See also
more_less
Informations

6 Replies For the topic :
"Edit date/time text"

This topic has been viewed 354 times.

Last message :
18/01/2012 at 23h10 by "mahdy"