Firefox PHP

Module: Enhanced Custom Profiles

Posted by Joe Curia 
Module: Enhanced Custom Profiles v5.2.1.02 - Fields in View My Profile
June 22, 2008 12:51AM
I have completed v5.2.1.02 with these changes:

- Added the ability to show custom profile fields on the "View My Profile" page.

- Fixed a bug which would cause errors if a field was set to show in new user registration and was subsequently deleted.

- Fixed a bug which could lead to the loss of certain field data if apostrophes were entered.

The latest version is available above. Please see the README for help with the new features.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
noe
Re: Module: Enhanced Custom Profiles
July 26, 2008 05:42PM
hi!

I noticed some strange behavior when using a custom field with the dropdown input:

I set 11 choices - though that works - the last option (in this case value 11) isn't stored in the database - it always "falls back" to value 10.

The same thing happens when I add one more option to the dropdown (So I have 12 options) - 11 is stored, 12 is not.

My problem: I use the phorum_db_user_search_custom_profile_field() function to get all users depending on the selected option. - And that only works as long as I do not use the last option (my case value 11) - there I get 0 returned;

Any tips? ;)
Re: Module: Enhanced Custom Profiles
July 26, 2008 06:30PM
Hmm. . . I have tested the dropdown with t1,t2,...,t11 and it seems to work fine for me. I also added, t12, then t13, then t14 and it work for each.
  1. What are the choices you are giving (pm if needed)?
  2. Could you check the "Show in User Admin" box and see what is being stored for the last selection?
  3. Could you try creating a new dropdown with this as your "Dropdown Choices" (t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11) and see if that works?


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
noe
Re: Module: Enhanced Custom Profiles
July 26, 2008 06:41PM
Thanks for the fast reply,

Quote
Azumandias
Hmm. . . I have tested the dropdown with t1,t2,...,t11 and it seems to work fine for me. I also added, t12, then t13, then t14 and it work for each.
  1. What are the choices you are giving (pm if needed)?
  2. Could you check the "Show in User Admin" box and see what is being stored for the last selection?
  3. Could you try creating a new dropdown with this as your "Dropdown Choices" (t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11) and see if that works?


ad 1)
bitte auswählen,Wien,Niederösterreich,Oberösterreich,Tirol,Kärnten,Salzburg,Vorarlberg,Burgenland,Ausland
(these are austrian states, german language)

ad 2) Yep I already checked that - and it always displays the penultimate value. (as described - in my case it is the 10)

ad 3) ok! I will try that
noe
Re: Module: Enhanced Custom Profiles
July 26, 2008 06:54PM
Ok - I now tried it with "t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11" - and that seems to work... hmmm

so perhaps it doesn't work because of the strings?
Re: Module: Enhanced Custom Profiles
July 26, 2008 09:11PM
Quote
noe
ad 1)
bitte auswählen,Wien,Niederösterreich,Oberösterreich,Tirol,Kärnten,Salzburg,Vorarlberg,Burgenland,Ausland
(these are austrian states, german language)

Perhaps I am misunderstanding, but I am only counting 10 choices at most here. Is there an eleventh? Is "bitte auswählen" the first choice, to be subsqently ignored if selected?


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
noe
Re: Module: Enhanced Custom Profiles
July 27, 2008 01:04PM
Quote
Azumandias
Perhaps I am misunderstanding, but I am only counting 10 choices at most here. Is there an eleventh?

oh I am sorry - I forgot one choice to list. so my dropdown list is:

bitte auswählen,Wien,Niederösterreich,Oberösterreich,Tirol,Kärnten,Salzburg,Steiermark,Vorarlberg,Burgenland,Ausland

Quote
Azumandias
Is "bitte auswählen" the first choice, to be subsqently ignored if selected?

yep! ("bitte auswählen"= "please select" in english)
noe
Re: Module: Enhanced Custom Profiles
July 27, 2008 01:14PM
*hmpf*

Mea Culpa! That was it! Though I was really sure I checked that several times, ....sorry for bothering you with my mistake ;-)
Re: Module: Enhanced Custom Profiles
July 27, 2008 01:30PM
noe
Re: Module: Enhanced Custom Profiles
July 28, 2008 10:09PM
hi,

Once again a strange issue with this mod - I hope it's not my fault again (like it was with the drop down issue) ;)

I have several custom profile fields (type textarea), where users can put in some more personal description. This works fine as long as users do not put ampersands in it.

If they use ampersands, all "&" get encoded into &
But *not* - and that's quite strange - directly after submitting the form, but some minutes(?) later...
and then - some time later again - the "&" become "&" and so on - but without doing any changes in the custom profile field. (just reloading the profile site of the user)

This is how I display the fields on the Users Profile page:

{IF PROFILE->user_profil_musik}
  <strong>Musik</strong><br />
  <p>{PROFILE->user_profil_musik}</p>
{/IF}


So ... any ideas? ;)

(btw html is disabled for these fields).
Sorry, only registered users may post in this forum.

Click here to login