Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Solved] How do I make the posts display like this?



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Nickname1

Nickname1
Punbb Rookie
Punbb Rookie
  • Description:
Hello, I like the way yours says the number the posts, for example

36 posts

http://prntscr.com/60zx18

Mine says Posts: 36

Is there a code to make it say 36 posts

Rather than Posts: 36

Thanks! Smile

  • Information:
Forum:pelikan.forumm.bizVersion:PUNBB
Type:Request a codeTags:posts,display,this?

Powered by PunBB
Currently 0 users have thanked Nickname1 for this post:

2
Offline

  Shadow

Shadow
Administrator
Administrator
JS:
Code:
[panda=js]$(".pun .post .user-info").each(function(){
$(this).html($(this).html().replace(/<span class="label/g,'<dd><div class="post_field"><span class="label'));
});
$(document).ready(function () {
    $('.user-info .post_field:contains("Posts")').each(function () {
        var PunbbPost = $(this).text().match(/\d+/g);
        $(this).replaceWith('<div class="PunbbPost">' + PunbbPost + ' posts</div>')
    });
});


Powered by PunBB
Currently 0 users have thanked Shadow for this post:

3
Offline

  Nickname1

Nickname1
Punbb Rookie
Punbb Rookie
Woah, thanks it works! Smile Solved.

Powered by PunBB
Currently 0 users have thanked Nickname1 for this post:

4
Offline

  Van-Helsing

Van-Helsing
★Moderator★
★Moderator★
[sucesso="Marked as Solved"]The question(s) in this topic have been answered and the owner has been able to solve the problem. Because of this, the topic has been marked as Solved.

If you have further questions, please open a new topic.[/sucesso]

Powered by PunBB
Currently 0 users have thanked Van-Helsing for this post:

5
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

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