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 T and Z from date

3 posters

Go down

Solved remove T and Z from date

Post by poesia-verses Sun Sep 08, 2024 8:34 am

remove T and Z from date Gdfgdf10
need remove this letters from date

Code:
 
<div style="background-color:#afc6bc;" class="rssfeed box-content">
</div><script type="text/javascript">
$.get('/feed/?type=atom').done(function(data) {
    var a = $(data);
    var b = a.find('entry:lt(3)').length;
    for (var z = 0; z < b; z++) {
        var e = a.find('entry:eq(' + z + ') title').text();
        var f = a.find('entry:eq(' + z + ') id').text();
        var g = a.find('entry:eq(' + z + ') name').text();
        var t = a.find('entry:eq(' + z + ') updated').text();
        var textt = a.find('entry:eq(' + z + ') content').text();
        $('.rssfeed').append('<div class="last-feed"><br><a href="' + f + '" class="title-post">' + e + '</a><div class="text-feed" style="line-height: 200%; font-size: 22px; ">' + textt + ' </div><a href="' + f + '?view=newest" ><font size="6" color="#9b3600">>>> читать посл. сообщение >>></font></a><br /><br /><div class="time-user"> ' + t + ' <a href="/profile.forum?mode=viewprofile&u=' + g + '">' + g + '</a></div><br></div>');
    }
    $('.text-feed').text(function() {
        return $(this).text().length > 270 ? $(this).text().substr(0, 270) + '...' : $(this).text();
    })
});
</script>

widget is visible only to users but I can open it. widget shows the first post of the last active topic

the widget is located at the bottom left

help please

regards
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: remove T and Z from date

Post by كونان2000 Sun Sep 08, 2024 9:59 am

hi @poesia-verses

Enable Javascript code management : Yes


Title : as you like
Placement : In all the pages
Code:
$(document).ready(function() {
    var $timeUser = $('.time-user');
    var text = $timeUser.text();
   
    // Remove the letters T and Z from the text
    var updatedText = text.replace('T', ' ').replace('Z', '');
    $timeUser.text(updatedText);
});
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: remove T and Z from date

Post by poesia-verses Sun Sep 08, 2024 10:11 am

send PM to you
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

كونان2000 likes this post

Back to top Go down

Solved Re: remove T and Z from date

Post by كونان2000 Sun Sep 08, 2024 10:44 am

poesia-verses wrote:send PM to you
Hello
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: remove T and Z from date

Post by poesia-verses Sun Sep 08, 2024 10:58 am

great thanks for help
solved
poesia-verses
poesia-verses
Forumember

Male Posts : 571
Reputation : 22
Language : and small english

https://stihi-podval.forumotion.com/

كونان2000 likes this post

Back to top Go down

Solved Re: remove T and Z from date

Post by كونان2000 Sun Sep 08, 2024 11:17 am

You’re welcome Shake
كونان2000
كونان2000
Forumember

Male Posts : 284
Reputation : 120
Language : Arabic

https://anime.forumperso.com/

poesia-verses likes this post

Back to top Go down

Solved Re: remove T and Z from date

Post by Ape Sun Sep 08, 2024 4:17 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


remove T and Z from date Left1212remove T and Z from date Center11remove T and Z from date Right112
remove T and Z from date Ape_b110
remove T and Z from date Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19451
Reputation : 2011
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

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