The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

remove 'time' from posts

4 posters

Go down

In progress remove 'time' from posts

Post by filbert1993 January 5th 2015, 5:47 am

Hello I want to remove the 'time' from posts in the homepage and the posts . But leave the date there. So it can only show the date of posts and not the ' time" of when it was posted. Its for phpbb3 forum.
avatar
filbert1993
New Member

Posts : 16
Reputation : 3
Language : english

Back to top Go down

In progress Re: remove 'time' from posts

Post by inallsorts January 6th 2015, 12:34 pm

If I understand correctly, you wish to display (for example) "Today" Instead of "Today at 2:30pm".

Would this be correct?
avatar
inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

In progress Re: remove 'time' from posts

Post by _Twisted_Mods_ January 6th 2015, 12:48 pm

acp>modules>javascript managment

turn on javascript

create a name script
title: whatever
placement : in the topics

Code:
$(function(){
$(".author").html(function (index, value) {
    return value.replace(/( - | at )\d{1,2}:\d{2}/ig, '');
});
});

submit
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: remove 'time' from posts

Post by filbert1993 January 7th 2015, 7:55 am

Thanks worked in the "post" topics not the !homepage" Can remove the  time from " homepage" to please?
avatar
filbert1993
New Member

Posts : 16
Reputation : 3
Language : english

Back to top Go down

In progress Re: remove 'time' from posts

Post by _Twisted_Mods_ January 7th 2015, 8:32 am

just change placement to all pages and should work everywhere time is displayed on the site
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: remove 'time' from posts

Post by filbert1993 January 7th 2015, 10:48 am

The all pages I tried it already but not working. Ange should be able to solve this. Thanks for Your help I will wait for a code
avatar
filbert1993
New Member

Posts : 16
Reputation : 3
Language : english

Back to top Go down

In progress Re: remove 'time' from posts

Post by filbert1993 January 8th 2015, 12:27 pm

Bumping.....
avatar
filbert1993
New Member

Posts : 16
Reputation : 3
Language : english

Back to top Go down

In progress Re: remove 'time' from posts

Post by Ange Tuteur January 8th 2015, 11:10 pm

Hello @filbert1993,

Could you provide a link to your forum ?

Thanks
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum