Order Custom Profile Fields

Started by Nathaniel, August 14, 2008, 03:56:15 AM

Previous topic - Next topic

Nathaniel

Link to Mod

Order Custom Profile Fields 1.1.1 by Nathaniel
Overview:

This Mod allows you to reorder your Custom Profile Fields, so that they have the order that you want. You can order them where you normally create/edit Custom Profile Fields, in the admin panel under "Configuration" -> "Features And Options" -> "Profile Fields". The order that you specify will be used for the Profile Pages and for the Registration Page, if you have enabled "Show on Registration" for some of the fields. The order will also be used for the topic display template if you have selected the "display on topic view" option for the specific fields.

Please remember that you have to enable the "Advanced Profile Fields" option in the admin panel under  "Configuration" -> "Core Features", before you will be able to add/edit/view your Custom Profile Fields.

When dragging a field, don't try to drag it by the name/title which is a link, drag it via the main body of the table row.

You can change the colour of a field that is being dragged, with a simple edit to your "Themes/{themename}/Admin.template.php" file. Do a search for "custom_profile_field_selected_color" (the rest should be obvious, don't forget that the colour needs to be in hexadecimal).

SMF Version Support
This mod is officially supported for SMF 2.0 final and above only. Below is a list of available versions of this mod and the previous versions of SMF that they supported. Use them at your own risk. The mod author will not be supporting or upgrading this mod in any way for versions of SMF below 2.0 final.

Version 1.01: SMF 2 Beta 3.1 Public and Beta 4.
Version 1.1: SMF 2 RC2 (possibly), SMF 2 RC3 and RC4.
Version 1.1.1: SMF 2 RC5.

Donate
If this mod has helped you, then feel free to support the developer by Donating. Any amount of money is welcome.

Browser Support
This is only relevant to the AJAX for the admin page. If the javascript/ajax does not work, then the old method of ordering custom profile fields (using up/down arrows) will be displayed.

These are the browsers that I have confirmed the AJAX/javascript works for, as well as the OS I tested them under (I didn't test any browser with Mac OS).
Chrome 5 (under windows xp and linux)
Opera 10 (under windows xp and linux)
Firefox 3.6 (under windows xp and linux)
Safari 5 (under windows xp)
Internet Explorer 6/7/8 (under windows xp)

Version Changes:
v1.1.1 - 21 July 2011
Support for SMF 2.0 final.

v1.1 - 12 June 2010
Updated for SMF 2 RC3.
Added ajax/javascript reordering.

v1.01 - 10 September 2008
Updated for SMF 2 Beta 4.0.

v1.0 - 10 August 2008
Original Mod release.

Thank you to ccbtimewiz for giving me the idea for this mod. I actually really wanted to call it "The ccbtimewiz Mod", but he wouldn't allow it. ;D
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

ninedoors

A government big enough to give you everything you want is big enough to take everything you have!

SMF 2.0
BMHL custom theme

SMF community is a great bunch of people!

Nathaniel

@ninedoors                         ,
Short answer: No.

Long Answer:
This mod edits the Custom Profile Field Feature for SMF 2 Beta, this feature is not included with SMF 1.1.5 so there is no point in having a mod for it. The Custom Profile Field Mod is designed to allow people to use the Custom Profile Field Feature for SMF 1.1.x, so that is probably what you are looking for, if you want those fields to be ordered, then you should request that in the support topic for that mod.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

ninedoors

A government big enough to give you everything you want is big enough to take everything you have!

SMF 2.0
BMHL custom theme

SMF community is a great bunch of people!

ccbtimewiz

Quote from: LHVWB on August 14, 2008, 03:56:15 AM
Thank you to ccbtimewiz for giving me the idea for this mod. I actually really wanted to call it "The ccbtimewiz Mod", but he wouldn't allow it. ;D

:P

Regardless, great mod. =D

Nathaniel

@ccbtimewiz,
I am glad you like it, especially seeing as you requested it. :P
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Nathaniel

SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

wakewatcher

You must first uninstall the "custom field on member list" mod or this installation will fail. (I haven't yet tried re-installing cfoml to see if it has problems.
smf 2.0.18

fyndler

This mod is gretae gj

Only thing is that it says show under post count but they are showing over instead :/

Any idea how to fix that ?

Thanks

Nathaniel

@wakewatcher,
Which version of SMF are you running?

@fyndler,
Which exact page are you referring to? Could you please describe you issue a little bit more, I can't clearly see what the issue is. Also, Which version of SMF are you running?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

wakewatcher

smf 2.0.18

Nathaniel

@wakewatcher,
Try installing this mod and then the "Custom Fields On Memberlist" mod. I have tested that and it works fine for me.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

chinclub

Is custom profiles avalible for version Custom Fields 1.1.7?

willerby

LHVWB,

Great mod, much needed.  Bit cheeky this one but related to Mod.  I want to display one of my custom profile field's output (Membership Number) within the display.template user info box next to each post.

Because custom profile fields are named and stored separately, I can't work out the code to just pick up an output from a custom field for given member.

Can you help or should this be posted elsewhere (in 2.0b4 board?)

W
What type of washing machine is September?

An autumnatic. :)

Nathaniel

@chinclub,
No. This mod is only for the SMF 2 inbuilt feature, not the SMF 1.1.7 mod.

@willerby,
I think you are looking for the 'Show on Topic View' option, its available when you edit a profile field in the admin pannel.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

LadyC

doesn't seem to work with rc1... i'm crossing my fingers it will get updated soon :)

Nathaniel

Quote from: LadyC on February 05, 2009, 08:08:53 PM
doesn't seem to work with rc1... i'm crossing my fingers it will get updated soon :)

Um, yeah. This is a fairly large mod, so it will get updated when I find the time. Might happen in the next day, might take me a bit longer (also depends on what the issue is with RC1). Ironically I have no planned changes for this mod, so it should be fairly early in my list of mods to update. ;D

Basically RC1 rocks! So I'll get around to updating it sometime. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

wakewatcher

While you are at it why don't you ajax-ize it and make the re-ordering drag and drop.  :D
smf 2.0.18

Nathaniel

Quote from: wakewatcher on February 06, 2009, 01:08:44 AM
While you are at it why don't you ajax-ize it and make the re-ordering drag and drop.  :D

I could, but that would delay the next update by a fair chunk of time, while I find the extra time to learn enough Ajax to do that - ie. probably not going to happen in the near future. A compatibility update should suffice for now. :P
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

wakewatcher

Yeah I know there isn't enough time in the day to do it all!  Anyway when you get around to it here's a nice tutorial.  I just added something similar to something I'm working on and actually thought about your mod as I was doing it. (If I ever get to the point of understanding the mod packaging stuff I might be able to help.)

http://www.phpriot.com/articles/sortable-lists-with-php-and-ajax
smf 2.0.18

Advertisement: