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.

Add a number to the number of awards earned

+2
skouliki
كونان2000
6 posters

Go down

Add a number to the number of awards earned Empty Add a number to the number of awards earned

Post by كونان2000 May 31st 2024, 9:14 am


Hello everyone!
Add a number to the highest Earned awards in the profile

If a member receives four awards, the number will be 4
So the number of numbers is the same as the number of prizes for each member
Add a number to the number of awards earned 9aia10
-------------------------------


Having a banner above the awards  is better than nothing Very Happy



PunBB-phpBB2-ModernBB:

phpBB3-Invision:

AwesomeBB:
Save and publish Add a number to the number of awards earned 2997428975


Installing the JavaScript
--------------------------
Title : as you like
Placement : In topics
Code:
$(document).ready(function() {
    $('.dd_award').each(function() {
        var numberOfImages = $(this).find('.award').length;
        if (numberOfImages > 0) {
            var imageCountElement = $('<div class="award-body1">Earned awards:</div> <div class="award-body2">(' + numberOfImages + ')</div>');
            $(this).siblings('.award-body').append(imageCountElement);
        }});});
document.write('<style type="text/css">
.award-body {font-size: 14px;font-family: auto;font-weight: 800;color: white;background: #305431;display: flex;justify-content: center;}
.award-body1 {padding: 3px 0;margin-left: 3px;}
.award-body2 {padding: 3px 0;color: #FFC107;}      
</style>');
Don't forget to click Save
------------------------------------

We hope you liked this tutorial


You can change the background color, as well as change the number color from the CSS code in Javascript,


______________________________

banana
(1)(2)(3)(4)
كونان2000
كونان2000
Forumember

Male Posts : 223
Reputation : 103
Language : Arabic

https://anime.forumperso.com/

Joost, invisible_fa, YoshiGM, SarkZKalie, TonnyKamper and poesia-verses like this post

Back to top Go down

Add a number to the number of awards earned Empty Re: Add a number to the number of awards earned

Post by skouliki May 31st 2024, 10:03 am

A useful addition
skouliki
skouliki
Manager
Manager

Female Posts : 15242
Reputation : 1703
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

SarkZKalie and كونان2000 like this post

Back to top Go down

Add a number to the number of awards earned Empty Re: Add a number to the number of awards earned

Post by TonnyKamper May 31st 2024, 1:39 pm

Very nice job  salut
TonnyKamper
TonnyKamper
Active Poster

Female Posts : 1059
Reputation : 78
Language : Dutch/English
Location : DSF Admin

http://www.nederlandheelt.nl/forum

SarkZKalie and كونان2000 like this post

Back to top Go down

Add a number to the number of awards earned Empty Re: Add a number to the number of awards earned

Post by YoshiGM May 31st 2024, 4:01 pm

A very useful addon for the awards feature!

Thanks and good job
YoshiGM
YoshiGM
Active Poster

Male Posts : 1522
Reputation : 145
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

SarkZKalie and كونان2000 like this post

Back to top Go down

Add a number to the number of awards earned Empty Re: Add a number to the number of awards earned

Post by كونان2000 June 1st 2024, 4:14 am

@skouliki @TonnyKamper @YoshiGM
I am very happy with all your kind comments

thank you all ouou
كونان2000
كونان2000
Forumember

Male Posts : 223
Reputation : 103
Language : Arabic

https://anime.forumperso.com/

skouliki, SarkZKalie, TonnyKamper and poesia-verses like this post

Back to top Go down

Add a number to the number of awards earned Empty Re: Add a number to the number of awards earned

Post by Joost June 1st 2024, 10:20 am

Great, many thanks! Smile
Joost
Joost
Active Poster

Male Posts : 1376
Reputation : 194
Language : Dutch, English
Location : The Netherlands

https://ondersteun.actieforum.com/

SarkZKalie and كونان2000 like this post

Back to top Go down

Add a number to the number of awards earned Empty Re: Add a number to the number of awards earned

Post by Obscure June 2nd 2024, 12:36 am

I love this addition! Thank you!
Obscure
Obscure
Forumember

Female Posts : 52
Reputation : 11
Language : English
Location : USA

http://imgtest.forumotion.com/

كونان2000 likes this post

Back to top Go down

Add a number to the number of awards earned Empty Re: Add a number to the number of awards earned

Post by كونان2000 June 2nd 2024, 2:30 am

@Joost @Obscure
thanks ^^

I'm glad you all liked addition ouou
كونان2000
كونان2000
Forumember

Male Posts : 223
Reputation : 103
Language : Arabic

https://anime.forumperso.com/

Obscure likes this post

Back to top Go down

Back to top

- Similar topics

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