Edit date/time text
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1 • Share •
Edit date/time text
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.
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.
mahdy- Forumember
-
Posts : 33
Reputation : 1
Language : :'(
Location : London
Re: Edit date/time text
You can access them both easily on a phpbb3 board.
I laid it out nicely to make it easier to understand.
- 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.
Last edited by LGforum on January 19th 2012, 12:42 am; edited 1 time in total
Re: Edit date/time text
How about PunBB
!_NICK_!- Active Poster
-
Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Edit date/time text
Your last visit was on
Where is the 'current date/time' bit on punBB?
- 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?
Re: Edit date/time text
It works
Thank You, LGforum

Thank You, LGforum
mahdy- Forumember
-
Posts : 33
Reputation : 1
Language : :'(
Location : London
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum