Custom Profile Field Mod

Started by winrules, March 30, 2006, 02:21:25 PM

Previous topic - Next topic

cloudpaws

I am using 1.1.10 and I have an error to report.. forgive me if its already been reported and dealt with, but here's what I get when I install the package:
QuoteError in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
and:
Quote1. Execute Modification ./Sources/ModSettings.php Test failed
2. Execute Modification ./Themes/default/Profile.template.php Test failed
3. Execute Modification ./Themes/default/Display.template.php Test successful
4. Execute Modification ./Themes/default/PersonalMessage.template.php Test successful
5. Execute Modification ./Themes/default/Register.template.php Test successful
6. Execute Modification ./Sources/Register.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Extract File ./Sources/CustomProfile.php 
9. Extract File ./Themes/default/languages/CustomProfile.english.php

Arantor

That suggests both of those files have already been modified by another mod - what mods do you already have in place?
Holder of controversial views, all of which my own.


cloudpaws

Uhm, we have:
1. Member Awards 1.1.1   
2. [HTML] Permission Mod 1.01   
3. Global Headers Footers 1.4.1
4. Custom Profile Field Mod 3.20 
currently installed.

Arantor

I suspect the Member Awards mod is interfering with the Custom Profile Field mod.

Unfortunately that means you will have do a manual install - Manual Installation of Mods
Holder of controversial views, all of which my own.


Nameless?

will this be compabilited with SMF 2.0 RC1.2 Soon?

Arantor

2.0 has this functionality - a good chunk of it - at least built in.
Holder of controversial views, all of which my own.


Nameless?

ok awesome cant wait to test it with the Other mod Profile fields on Memberlist :O

Jayman16

So I followed these instructions:

QuoteIn the text to add before and after the field you can type "%1" (without the quotes) and it will replace %1 with the content of the field. Example: If you wanted to make a MySpace Field, you could use hxxp:www.myspace.com/%1 [nonactive] in the after spot, and it would just show the username but link to the site.

Because I wanted to add a persons gamertag (Xbox Live) to there profile on the forums with it hyperlinking to there profile www.xbox.com  The trouble is it only works if there gamertag is one word, if it's two words it's broken.  For example if a gamertag is: "Justin" the link works fine but if it's "Just In" it's broken. 

Any help would be great, if you need to upload a file that cool, just let me know what file and where I can find it.


Garou

try entering it as Just%20In. The truth is that spaces in stuff like that cause problems all over the internet and should never be used. Its better to do something like JustIn or Just_In

Jayman16

Quote from: Garou on September 13, 2009, 07:00:48 AM
try entering it as Just%20In. The truth is that spaces in stuff like that cause problems all over the internet and should never be used. Its better to do something like JustIn or Just_In

The gamertag is something that is set, not to be changed.  While entering %20 might work I can expect all my users to add it, since most people wouldn't know, and I'm not doing it manually.  I know it can be done because another gaming forum has the same custom field and it works space or no space.

Kindred

a space in a url will NEVER work.   Some browsers are smart enough to convert the space to %20...

alternatively, you could modify the code to use html entities rather than straight text...   not sure how much work would be involved though.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Jayman16

So I've figured it out this was the original URL code I had:


hxxp:live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=/%1 [nonactive]

Bluey

Hi

I have been using this mod on a forum for sometime now. Works really great. I have a small question. Is it possible to have the values for a check box display in different colour. For example if the check box had a Yes and No value could Yes display as green text and No as red text

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Deb

Hi,

I have used this mod before in SMF ver. 1.1.5 and MOD ver. 3.15 with no problems at all.

NOW I have SMF-ver. 1.1.10 and MOD ver. 3.20 and have a problem..use it only for member registration.

When I have the setting "Only allow admins to edit field?" marked, it shows up as an field when a member register. BUT the data in the field wont be stored in the database..as it did before in the earlier version.
I don't want my members have the possibilty to edit this field afterwords.

.. I have attached a pic over my settings.

PLS can anyone help me with this.

Thank you from Deb :)

worthog

Is there any way to set different custom fields for different membergroups?  It does not appear so, but would it be difficult to add that functionality?

Kindred

worthog....   no, that is not possible with the mod as designed... and doing so would involve a coding to add another field for each entry, including database read and writes as well as the selection...   so, not a minor task.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

[SiNaN]

Quote from: Deb on September 21, 2009, 11:33:58 AM
Hi,

I have used this mod before in SMF ver. 1.1.5 and MOD ver. 3.15 with no problems at all.

NOW I have SMF-ver. 1.1.10 and MOD ver. 3.20 and have a problem..use it only for member registration.

When I have the setting "Only allow admins to edit field?" marked, it shows up as an field when a member register. BUT the data in the field wont be stored in the database..as it did before in the earlier version.
I don't want my members have the possibilty to edit this field afterwords.

.. I have attached a pic over my settings.

PLS can anyone help me with this.

This behavior was changed in 3.20. You can revert it back by making this change:

Sources/CustomProfile.php

Code (Find) Select
elseif ((!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . ''])) && isset($_POST['default_options'][$modSettings['CP' . $i . '_id']]))
unset($_POST['default_options'][$modSettings['CP' . $i . '_id']]);


Code (Replace) Select
// elseif ((!empty($modSettings['CP' . $i . '_edit']) || empty($modSettings['enable_CP' . $i . ''])) && isset($_POST['default_options'][$modSettings['CP' . $i . '_id']]))
// unset($_POST['default_options'][$modSettings['CP' . $i . '_id']]);
Former SMF Core Developer | My Mods | SimplePortal

Kindred

ummmm....     Sinan?   maybe I misread it, but I think both of those code bits are the same
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

[SiNaN]

There are two slashes for each line at the beginning, commenting them out. ;)
Former SMF Core Developer | My Mods | SimplePortal

Advertisement: