News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[request] Multiple badges

Started by ryan_dwight, September 08, 2013, 08:00:21 PM

Previous topic - Next topic

ryan_dwight

Badges that will appear on the left side profile of the post and of course in the members profile. If possible for v2.0.5.

Im not an advsnced user so its difficult for me to edit some templates if not on v2.0.5

Thanks in advance

Dijboy

There's already an inbuilt core feature that you can implement in the Admin panel called "Advanced Profile Fields".

1. To enable the feature, follow this syntax:  Administration Center » Configuration » Core Features » Advanced Profile Fields » Enable.

2. Once enabled, you can start creating custom profile fields by following this syntax: Administration Center » Features and Options » Profile Fields. Once there, go to the bottom of the page and click "New Field". Fill out the fields as best you want the badges to be shown on your profile.

You're almost done.

To add a badge to the designated destination on your profile (whether it just be in a signature, or profile only, or profile and topic view) you must go to the area you specified where the field must be edited to show your badge (eg, your Forum profile, account settings etc). You must enter in the img command (lowercase only) with the image. That is, [img]badge.png[/img]

3. To add badges in Profile field copy this: http://imageshack.us/a/img534/200/qdt3.png [nofollow]
3.1. To add badges under Profile picture copy this: http://imageshack.us/a/img594/1903/5v9k.png [nofollow]




4Kstore


¡¡NEW MOD: Sparkles User Names!!!

ryan_dwight

Quote from: Dijboy on October 18, 2013, 09:21:26 AM
There's already an inbuilt core feature that you can implement in the Admin panel called "Advanced Profile Fields".

1. To enable the feature, follow this syntax:  Administration Center » Configuration » Core Features » Advanced Profile Fields » Enable.

2. Once enabled, you can start creating custom profile fields by following this syntax: Administration Center » Features and Options » Profile Fields. Once there, go to the bottom of the page and click "New Field". Fill out the fields as best you want the badges to be shown on your profile.

You're almost done.

To add a badge to the designated destination on your profile (whether it just be in a signature, or profile only, or profile and topic view) you must go to the area you specified where the field must be edited to show your badge (eg, your Forum profile, account settings etc). You must enter in the img command (lowercase only) with the image. That is, [img]badge.png[/img]

3. To add badges in Profile field copy this: http://imageshack.us/a/img534/200/qdt3.png
3.1. To add badges under Profile picture copy this: http://imageshack.us/a/img594/1903/5v9k.png


thanks for the reply
but this doesnt have a membergroups. right?

Quote from: 4Kstore on October 18, 2013, 04:05:48 PM
Maybe this can help you: http://www.simplemachines.org/community/index.php?topic=510064.0
i want to try that but i dont understand the language.

Dijboy

Oh, I read it wrong ;). No, there's no membergroup in that guide. I guess you could do it manually like this but I'd follow what 4Kstore posted as this is probably what you're looking for.

ryan_dwight

when you use badges above the signature is it possible to make it

OOOOOOOOOO <= horizontal

instead of

O <= vertical
O
O
O
O

margarett

Not except in your specific setup.
The member group badges are, most of the times, wider. What you're asking can only be achieved in a case where you *know* that you'll have icon-kind badges and that it can be placed side by side...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ryan_dwight

Yes im using 25x25 icon in the profile field. Its ok when it is on the left side profile but when i sellect to be above the sig the icons are arranged vertically.

margarett

You should ask in to the author on how to achieve that.
As I've told you, your icons are quite uncommon... So you should be given a just-for-you solution.

I wouldn't mind trying to help you in that but I don't even have the mod package... 

Ask in the author's site ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ryan_dwight

Im not using a mod, im using the custom profile field of the smf

margarett

Oh, sorry, thought you were using the mod from 4K.

Are you using custom fields only for this purpose?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ryan_dwight

I want to use that link from 4k but i cant understand the language,

Yes im using the custom profile field gor this

4Kstore

Quote from: ryan_dwight on October 27, 2013, 03:36:32 PM
I want to use that link from 4k but i cant understand the language,

Yes im using the custom profile field gor this

If you need help I can help you send me a pm, the mod cost 1 usd...
Cheers

¡¡NEW MOD: Sparkles User Names!!!

margarett

But he's not using your mod as I thought, he is using custom profile fields.

It should suffice, for your case, a more-or-less simple change in display.template.php. When I get to the computer I'll take a look ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Dijboy

#14
Quote from: ryan_dwight on October 27, 2013, 10:39:45 AM
when you use badges above the signature is it possible to make it

OOOOOOOOOO <= horizontal

instead of

O <= vertical
O
O
O
O
That is possible for badges located in the signature area in profile and/or topic view. When you implement a badge and want to add another, it's as simple as pressing the space bar (in the same field you address to implement badges) and inputting the next badge url with img tags. EDIT: Actually, spacing doesn't even matter, as long as the tags surround the image url, then you're good to go.

Eg,
Code (code) Select
[img]www.example.org/test.png[/img][img]www.example.org/test2.png[/img]

It works for v2.0.5 & 2.0.6.

ryan_dwight

<a href="http://example.com/{INPUT}"><img src="http://example.com/Themes/backnblack_20g/images/orbs/A/{INPUT}.png" alt="{INPUT}" /></a>

im using this code on the profile field

admin>>>features and options>>>profile fields>>>custom profile field

margarett

That's because you are using a field for EACH image to be displayed. What Dijboy is suggesting is for you to add all the images in the same field, thus solving your issue with the alignement.

If you, for some reason, do really want to have each image in it's own field, then you need to change the way it's shown in Display.template.php
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

ryan_dwight

Correct me if i misunderstood this function. Im using this code because i want to sellect an award/badge for a member.

What i understand on the img code by dijboy is for all the members. I want it be selective.

margarett

No...

Each user has it's own "Custom Profile Fields". So, what you define to a certain user is NOT passed to others ;)
It's just a different way to put things:
- you put all your images in a single field OR
- you put each image per field
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Dijboy

Wherever you nominated the Profile Section (the section of profile this is edited in), this is where you have to input the code. i.e. "None", "Account Settings", "Forum Profile", or "Look and Layout". For example, I nominated "Forum Profile". Every time I award a member a badge, I go to their forum profile and input the code in the field provided.

Advertisement: