Removing Words From Post's Date and Time Section
4 posters
Page 1 of 1
Removing Words From Post's Date and Time Section
Technical Details
Forum version : #phpBB3Position : Administrator
Concerned browser(s) : Google Chrome
Screenshot of problem : http://image.prntscr.com/image/8746901a29354e81b9a0a57fcde183b3.png
Who the problem concerns : All members
When the problem appeared : When it began.
Forum link : http://www.ardentartforum.com/
Description of problem
Hello! So, I was wondering if there's a way to remove words from the area on a post that says(Small Post Image) by Kelso on Mon May 23, 2016 11:00 am
What I would like to remove is the image and the words "by Kelso on" and just keep the day, date, and time.
Thanks for any help!
Last edited by Kelso on May 29th 2016, 8:05 pm; edited 1 time in total
Re: Removing Words From Post's Date and Time Section
You have to do some template editing for this
Go to
and edit viewtopic_body
Find
Hit save and don't forget to publish the template!
Go to
|
Find
- Code:
<p class="author"><img src="{postrow.displayed.MINI_POST_IMG}" alt="{postrow.displayed.L_MINI_POST_ALT}" title="{postrow.displayed.L_MINI_POST_ALT}" /> {L_TOPIC_BY} {postrow.displayed.POSTER_NAME} {postrow.displayed.POST_DATE_NEW}</p>
- Code:
<p class="author">{postrow.displayed.POST_DATE_NEW}</p>
Hit save and don't forget to publish the template!
Re: Removing Words From Post's Date and Time Section
@Rhino.Freak
Thank you!! It worked amazingly. Also, I apologize for the delay on the reply. I've been working a lot this weekend!
I was wondering if there was a way to take out the word "on"? I know I sound very picky, haha. If not, this looks really good either way.
Thank you!! It worked amazingly. Also, I apologize for the delay on the reply. I've been working a lot this weekend!
I was wondering if there was a way to take out the word "on"? I know I sound very picky, haha. If not, this looks really good either way.
Re: Removing Words From Post's Date and Time Section
Actually
is hardcoded.
It automatically gets replaced by:
"on 29.05.2016" or whatever the time was.
Some JavaScript might be able to slice initial 3 characters but I don't know how to do it
|
It automatically gets replaced by:
"on 29.05.2016" or whatever the time was.
Some JavaScript might be able to slice initial 3 characters but I don't know how to do it
Re: Removing Words From Post's Date and Time Section
That's perfectly fine! Thank you for that, I didn't know that at all, haha.
Solved!
Big thanks to Rhino.Freak, always saving my life on here. :-)
Solved!
Big thanks to Rhino.Freak, always saving my life on here. :-)
Re: Removing Words From Post's Date and Time Section
Liiiiike this ?Rhino.Freak wrote:Actuallyis hardcoded.
- Code:
{postrow.displayed.POST_DATE_NEW}
It automatically gets replaced by:
"on 29.05.2016" or whatever the time was.
Some JavaScript might be able to slice initial 3 characters but I don't know how to do it
- Code:
<noscript>{postrow.displayed.POST_DATE_NEW}</noscript>
<script type="text/javascript">document.write('{postrow.displayed.POST_DATE_NEW}'.replace(/^on /, ''));</script>
Well, I wouldn't recommend that in this case, because you can remove "on " by removing "_NEW" from the variable. Like this :
- Code:
{postrow.displayed.POST_DATE}
Re: Removing Words From Post's Date and Time Section
Problem solved & topic archived.
|
Similar topics
» Removing Current Time/Date from PHPBB 3
» Date and time in posts
» Current date/time & Your last visit was
» Time & Date & URL
» Date & Time
» Date and time in posts
» Current date/time & Your last visit was
» Time & Date & URL
» Date & Time
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum