The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

The "Time" In All Posts Not To Show

View previous topic View next topic Go down

Solved The "Time" In All Posts Not To Show

Post by inallsorts on January 18th 2015, 11:35 am

Greetings everyone,

Ange or Twisted, I'm sure you can be of help. I came across a topic here asking to remove the "time" of when messages have been posted, and decided to apply the code to my forum.
Itremoves the time from the posts onceyou enter an actual topic (to view or reply), but I does not remove the time from the Homepage nor when you click a forum title (to see all the topics relative to the forum title).

I've used this code In the JavaScript code management and the placement Is "In all the pages"
Here's the code:
Code:
$(function(){
$(".author").html(function (index, value) {
return value.replace(/( - | at )\d{1,2}:\d{2}/ig, '');
});
});

I'm running phpBB3.
My forum link (you can viewposts as a guest): http://www.tenforum.net/

Many thanks In advance for all help given.


Last edited by inallsorts on January 19th 2015, 9:49 pm; edited 1 time in total (Reason for editing : Marked as solved)

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

Solved Re: The "Time" In All Posts Not To Show

Post by inallsorts on January 19th 2015, 1:13 pm

Friendly bump...

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

Solved Re: The "Time" In All Posts Not To Show

Post by _Twisted_Mods_ on January 19th 2015, 1:44 pm

sorry didnt see this post

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

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: The "Time" In All Posts Not To Show

Post by inallsorts on January 19th 2015, 9:47 pm

@_Twisted_Mods_ wrote:sorry didnt see this post

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

Thank you very very much Twisted, the code works perfectly.

/Topic.

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

Solved Re: The "Time" In All Posts Not To Show

Post by Base on January 20th 2015, 12:27 am

Solved => Archived

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


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