Additional Info
Type
Package ID
Ketwaroo_D._Yaasir:GroupPostPr
First Created
February 28, 2007, 07:24:23 PM
Last Updated
July 28, 2008, 03:13:53 PM

Group prefix postfix text v1.41

Add prefix, postfix text and color to membergroup userlinks
Compatible With 1.1.2, 1.1.3, 1.1.5
Latest version v1.41
Downloads 32,655
Reviews 0
Rating 0/5
Subscribers 3
License (View License)
Author(s)
Link to Mod

edit -- mod was written under SMF 1.1.1. It has been tested and found to work under SMF 1.1.1 to 1.1.5.
!! Warnings !!
- this mod is know to conflict with the Member colour Link mod.
- Uninstall previous version before upgrading!
- As usual. Use At Your Own Risk. No Warranties. Don't Run With Scissors, etc.


And now, back to the read me.

Behind the slightly barbaric name, is a neat little trick for those of you
upgrading from free sevice like invisionfree to better free service like SMF,
you might be missing the Group name prefix and posfix feature.

This mod does 2 things.
1. Allow you to add a prefix and/or a postfix text to to all user links
   belonging to a certain membergroup.
   The results are visible on display names in the posts and personal messages.
   But not the online users list.(as of 1.3, also works on post based groups)
  
2. Make the display name the same colour as their assigned membergroups.
   whether you specify a prefix/postfix or not, the colour will be changed.

This mod will add 2 new text-boxes to the add/edit membergroup menu.
Unless your theme modifies the ManageMembergroups.template.php file, it should
work on all themes once installed.

example: you have a user with name Bruno of the membergroup monty.
you go in your admin panel, edit the Monty group.
In the Prefix box you add "King "
and in the Postfix box, you add " the Questionable"

so in the posts and personal messages, it becomes "King Bruno the Questionable"

now if there was also a member, we shall call Martin Luther in the Monty group,
He would be displayed as "King Martin Luther the Questionable".

Now the main purpose of this mod is not to add just plain text. You can add HTML
too. this example to give you 2x size fonts:

prefix: <span style="font-size:2em">
postfix: </span>

You can add pretty much what you want in HTML. For that reason, be cautious not
to insert code that will break your display. If you are using this mod, you
are most likely admins. Act like admins.

note that bbcode will not be parsed. just displayed as plain text.

note also that colour style attributes, if defined inline from within the postfix,
will override the colour field of that member group. Colour defined in classes
in the style.css will be overridden by group colour.

it's prefix style colour > menbergroup colours > css style colour

Version History:

New in 1.1 - added some checks for empty/undefined prefix and postfix strings.

fixed in 1.2 - typo which caused the prefix to be displayed in both textboxes in
the manage membergroup template

New in 1.3 - Added a hack by Alpha_Vector to include post based groups.
No longer saves empty prefix or postfix to modsettings. Already too much
junk in that table...
Regular Groups override post Count Based Membergroups.

Fixed in 1.31 - a horrendous typo.

Fixed in 1.4 - Everything.

Fixed in 1.41 - some colouring issue for post count based groups. Pointed out by mattz83.
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: