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.

Omit Time

+2
Pizza Boi
itoh
6 posters

Go down

Omit Time Empty Omit Time

Post by itoh March 3rd 2014, 01:59

We notice when someone posts a message, the date and time of the message is indicated on the right side of the screen. Is there any way for us to show only the date and not the time when the message was posted?
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Omit Time Empty Re: Omit Time

Post by Pizza Boi March 3rd 2014, 14:23

Hi Very Happy

Can you please post your Forum URL, version, and the screen shot of your problem? If anything to be seen is restricted to the guests, please unrestrict them if they are related to your problem Smile.

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Omit Time Empty Re: Omit Time

Post by JScript March 3rd 2014, 14:24

@itoh

Hi!

You can be assured that yes! Will be using JavaScript with "regex", but for this we need to know which version of your forum.

So long,

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by itoh March 4th 2014, 01:21

Theme version  phpBB3 (prosilver)

 
Sorry my English is not so good. Here is picture and the time showing which we want to remove. Any way to remove the time in every post?
 
Omit Time Jhg6fp
 
https://2img.net/h/oi61.tinypic.com/jhg6fp.jpg
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Omit Time Empty Re: Omit Time

Post by JScript March 4th 2014, 18:38

@itoh

No problems with your English friend, what matters is your question solved!

Just add the code below in the JavaScript section with investment in the index or all pages:
Code:

jQuery(function() {
    target = jQuery('.topiclist.forums .icon dd.lastpost');
    target.each(function(index) {
        var oThis = jQuery(this);
        var regex = /<span>([\s\S]*?)<\/span>/im;
        var lastEdit = null;

        var aArray = regex.exec(oThis.html())[1];
        aArray = aArray.split('<br>');
       
        sSearch = aArray[0].indexOf(' at ');
        if (sSearch == -1) {
            sSearch = aArray[0].indexOf(':') - 2;
        }
       
        aArray[0] = aArray[0].substr(0, sSearch);
        aArray = aArray.join('<br>');
        oThis.find('span').html(aArray);
    });
});

Result:
Omit Time 5qq2XXo

So long,

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by gotaro March 5th 2014, 03:42

Yes, thank you.
 
Your = "Just add the code below in the JavaScript section with investment in the index or all pages"
 
Where in the Admin do we add this code? Where is the JavaScript section with investment in the index or all pages?
 
Sorry for our not understanding.


Last edited by gotaro on March 8th 2014, 03:44; edited 1 time in total
avatar
gotaro
Forumember

Male Posts : 33
Reputation : 0
Language : english

Back to top Go down

Omit Time Empty Re: Omit Time

Post by SLGray March 5th 2014, 06:39

Administration Panel > Modules > HTML/JavaScript > JavaScript Management


Omit Time Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by gotaro March 6th 2014, 05:35

SLGray wrote:Administration Panel > Modules > HTML/JavaScript > JavaScript Management
 
We went there and all we see is the following. We don't know how to insert code that was given to us (above).
 
 
Omit Time 2dw6sgi
 
 
 
https://2img.net/h/oi60.tinypic.com/2dw6sgi.jpg


Last edited by gotaro on March 8th 2014, 03:43; edited 2 times in total
avatar
gotaro
Forumember

Male Posts : 33
Reputation : 0
Language : english

Back to top Go down

Omit Time Empty Re: Omit Time

Post by SLGray March 6th 2014, 05:37

Press the button called Create a New JavaScript. The fill in the information.


Omit Time Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by gotaro March 6th 2014, 06:01

SLGray wrote:Press the button called Create a New JavaScript.  The fill in the information.
 
 
Thank you for kind help. If we do click on the Create and insert that script code that was given to us, will it delete the time in all categories for all postings?
 
And, if it does not work, can we remove that script later?
 
Thank you.


Last edited by gotaro on March 8th 2014, 03:42; edited 1 time in total
avatar
gotaro
Forumember

Male Posts : 33
Reputation : 0
Language : english

Back to top Go down

Omit Time Empty Re: Omit Time

Post by SLGray March 6th 2014, 06:42

You can delete any time you want.


Omit Time Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by gotaro March 6th 2014, 20:00

SLGray wrote:You can delete any time you want.
 
Thank you. We went to that page and clicked "In all pages" in the placement area and inserted the following code, but the time still shows in all posts on all pages. Did we do something incorrect?
 
 
jQuery(function() {
    target = jQuery('.topiclist.forums .icon dd.lastpost');
    target.each(function(index) {
        var oThis = jQuery(this);
        var regex = /<span>([\s\S]*?)<\/span>/im;
        var lastEdit = null;
 
        var aArray = regex.exec(oThis.html())[1];
        aArray = aArray.split('<br>');
       
        sSearch = aArray[0].indexOf(' at ');
        if (sSearch == -1) {
            sSearch = aArray[0].indexOf(':') - 2;
        }
       
        aArray[0] = aArray[0].substr(0, sSearch);
        aArray = aArray.join('<br>');
        oThis.find('span').html(aArray);
    });
});


Last edited by gotaro on March 8th 2014, 03:41; edited 1 time in total
avatar
gotaro
Forumember

Male Posts : 33
Reputation : 0
Language : english

Back to top Go down

Omit Time Empty Re: Omit Time

Post by itoh March 8th 2014, 03:39

Can anyone help us by answering above question. How to delete the time from all the posts on forum? We input the code, but time is still showing. Thank you.
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Omit Time Empty Re: Omit Time

Post by Ange Tuteur March 8th 2014, 03:49

Try adding document ready to his code :
Code:
jQuery(document).ready(function() {
    target = jQuery('.topiclist.forums .icon dd.lastpost');
    target.each(function(index) {
        var oThis = jQuery(this);
        var regex = /<span>([\s\S]*?)<\/span>/im;
        var lastEdit = null;

        var aArray = regex.exec(oThis.html())[1];
        aArray = aArray.split('<br>');
       
        sSearch = aArray[0].indexOf(' at ');
        if (sSearch == -1) {
            sSearch = aArray[0].indexOf(':') - 2;
        }
       
        aArray[0] = aArray[0].substr(0, sSearch);
        aArray = aArray.join('<br>');
        oThis.find('span').html(aArray);
    });
});
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Omit Time Empty Re: Omit Time

Post by itoh March 8th 2014, 04:34

Thanki you. Tried new code, but time still showing.
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Omit Time Empty Re: Omit Time

Post by JScript March 8th 2014, 05:11

@Ange Tuteur
"jQuery(document).ready(function() {" === "jQuery(function() {"

@itoh
Hello friend!
There is an error in your forum, for this reason my code does not work, see:
Omit Time 3SBkUxV

Remove the following JavaScript: 99041.js that contains the code below:
Spoiler:

So long,

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by itoh March 8th 2014, 05:20

Thank you.
 
Sorry for all problems and confusion. We don't know where the following is
 
"Remove the following JavaScript: 99041.js that contains the code below:"
 
 
We did delete the following that appears in our JavaScript Codes section?:
 
Right click has been disabled. etc......

But the time still showing.
Maybe we better forget about trying to delete the time as it is not seem to working.

As you can tell, we don't know much about these things.
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Omit Time Empty Re: Omit Time

Post by SLGray March 8th 2014, 05:59

Why do you want to remove the time. Would it not be helpful when you have issues with members?


Omit Time Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by itoh March 8th 2014, 06:06

We all agreed that time is not needed that much. Only date, as time shows different for different areas/country and confusuing to many members. (For us it also shows on seperate line.)
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Omit Time Empty Re: Omit Time

Post by SLGray March 8th 2014, 06:07

Please post a link to a topic that guests can see.


Omit Time Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by itoh March 8th 2014, 06:34

This is the way it look now. We would like just the date and name and no time:
 
Omit Time 2vcuicn
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Omit Time Empty Re: Omit Time

Post by JScript March 8th 2014, 14:12

@itoh
Hello!
I guess now you could make my code work in your forum:
Omit Time Zv0AMou

So long,

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Omit Time Empty Re: Omit Time

Post by itoh March 8th 2014, 16:50

JScript wrote:@itoh
Hello!
I guess now you could make my code work in your forum:
Omit Time Zv0AMou

So long,

JS
 
Put your code back but time still shows.

I did remove the "Right Click Disabled" script, but it did not remove the time in all the posts. I put the "Right Click Disalbed" script back, but now that does not work. We can now do a right click. How do we get back our "Right Click Disabled" so no one can right click on pages of fourm?
The "Right Click Disabled" script we put it (which does not work now) is:
Why doesn't it work now?


var message="Sorry, right-click has been disabled";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
itoh
itoh
Forumember

Posts : 207
Reputation : 0
Language : english
Location : Japan

Back to top Go down

Back to top

- Similar topics

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