SMF Support > SMF 1.1.x Support

Multiple post count rank/group images

(1/1)

fury-s12:
hi everyone, firstly not sure if this is the right place to ask, if not sorry

what we would like to do at our forum is have two sets of "post count" group images, currently just the default stars, that toggle off a profile field, so two member with the same post count could have the same amount of stars but the stars are different depending on the profile field

in simple terms a member who ticks the field to say they are "RED team" with 500posts has 3 RED stars
but a member who ticks the field to say they are "BLUE team" with 500posts has 3 BLUE stars

ive already found how to add the new profile field but i couldnt find any mod or hint that the rest of it is possible, so i am wondering if it is indeed possible at all?

fury-s12:
so i hav found the $context['group']['star_image'] variable which is used to print out the stars, but i cant for the life of me find where this is created so that i can edit it

does anyone have any idea?

Arantor:
It's defined in the depths of loadMemberContext, in Load.php which gets its data from loadMemberData in the same file. Editing that is a nightmare.

Possible to do, of course, but complicated and prone to errors (and if you ever upgrade to SMF 2, you'll have to do it all again)

fury-s12:
interesting thanks ill look into those methods, if i can find the variable creation it should ba simple if x make image path x otherwise make it y so hopefully not too hard haha

Arantor:
That's the point, it's not a simple change at all.

Navigation

[0] Message Index

Go to full version