• Welcome to Simple Machines Community Forum. Please login or sign up.
December 08, 2021, 07:18:41 AM

News:

Wondering if this will always be free?  See why free is better.


Custom Profile Field Mod

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

Previous topic - Next topic

daclina

Hi,

I have v 1.12 installed with the following packages:

   Mod Name     Version     
1.    Auto Embed Video Clips    2.1.4    [ Uninstall ] [ List Files ] [ Delete ]
2.    Custom Profile Field Mod    3.17    [ Apply Mod ] [ List Files ] [ Delete ]
3.    Skype Name Mod    2.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    Xbox Live Gamer Tag    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Google Talk Field    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
6.    WoW Character Profiles    1.5.1    [ Uninstall ] [ List Files ] [ Delete ]
7.    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
8.    Group Moderators    1.4    [ Uninstall ] [ List Files ] [ Delete ]

When attamting to install all check out except for ModSettings.php - can anybody help?

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/ModSettings.php    Test failed
2.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
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.    Extract File    ./Sources/CustomProfile.php    
8.    Extract File    ./Themes/default/languages/CustomProfile.english.php

perplexed

install the mod and then use the package parser to edit the file that had test failed.

You should really upgrade to SMF 1.1.4 for security reasons too!

Link to package parser is in my signature, very easy to do :)

daclina

March 13, 2008, 08:15:44 PM #1842 Last Edit: March 13, 2008, 08:19:54 PM by daclina
Dude u Legend!!! That worked beautifully. I am using it for a gamer's forum to display PSN ID's and Wii Codes. You see, I would upgrade in an instant, but I have the XBL mod, which I edited myself a while ago to actually pull the real XBL gamercard, and I'm not too sure how to add it back in the install package of the XBL gamerard mod - it's just not something I have time for, else I really would upgrade with pleasure.

My appologies but I do have 1 more question for you. What I'm trying to do is diplay the PSN ID (your Mod - Custom Profile Text Field) above the XBL Gamertag, however the custom field can only display next to the msn/icq etc images or above the forum posts. Can you perhaps help and show me how I can get it do display just above the XBL gamertag -see pic for details:

[nofollow]

I am actually happy to have all custom fields display there as per the image. Let me know if you can help.

Thanks again :)

4b11l

Quote from: Kindred on March 13, 2008, 08:57:16 AM
of course there IS a way...

You'll have to modify the code that displays the custom info...  (and possibly the CSS)

Will those files be one of the files after I installed the package? Or will I need to unpack the package file? Please let me know, thank you.

Kindred

I'm not sure where the custom field display function is defined...  look at the display.template.php for the function call... and then do a search of the installation XML file to see where that function was added.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

4b11l

I actually have no idea how to find where it's called or edit an xml file, that's why I'm asking; sorry. If anybody can help me out, I'd appreciate it very much.

Assistance

unpack the mod to a folder
create a new folder inside (call it 'edit')

open your FTP program and go to the Source directory
drag and drop ModSettings.php into the customprofile3-17 folder

open modifications.xml and  ModSettings.php with a php editor tool


in the modifications page the first search and edits are for ModSettings.php

do the few edits, save to the 'edit' folder
then drag and drop the new saved file to the Source directory...


install the rest of the package through the SMF admins panel
~playing poker~

Kindred

actually... the other way around...

install the mod as it stands.

now open your source files and make any changes to the mod that you want.
(if you do it your way, the mod will not correctly install)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

4b11l

Quote from: Kindred on March 15, 2008, 07:57:01 AM
actually... the other way around...

install the mod as it stands.

now open your source files and make any changes to the mod that you want.
(if you do it your way, the mod will not correctly install)

When you say the source files, did you mean the package xml file?

Kindred

no...   source files would be your actual forum
(either in the Sources directory or the Themes/default directory)

you don't want to edit the XML unless you know what you are doing, otherwise the m od won't install in the first place.


Install the mod.
Then modify the mod by editing your forum files with the mod installed.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

shumar

March 16, 2008, 05:10:21 PM #1850 Last Edit: March 16, 2008, 05:13:32 PM by shumar
I have installed 3.16 and TP 0.9.8.
I need to use some custom profile fields in one of articles, how to use that ?
To simplify my question:
How to call some of the fields from DB ?
I have CP4_desc and CP4_name

But I need values of custom fields for some members.

Thank you.

Kindred

once again... search is your friend. The code to get information from the CPF tables has been given in this thread...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Filipina

hello I noticed this on the MOD and tried to search to find the answer to my question but was not successful.

3.17-Fixed a bug with moving fields.
3.16-Added compatibillity for 1.1 final.
3.15-Fixed bug with moving fields up and down and deleting.


I have the 3.16 version and the last time a tried to add fields they shifted others around.  Has the 3.17 version which was last updated in January corrected the moving fields? So once i upgrade to 3.17 it is safe to add other fields without things shifting around?  Thanks for listening. 

protokop

I just installed this mod on a fresh install and found a bug straight away.

I was adding a selection box and noticed when I clicked on recreate field that there was a typo in the link. there is no = after the variable sesc :)

Also there is the ability to add selection box fields but no ability to take them away?

Kindred

meh... at this point, I wouldn't worry about this mod... :)   SMF 2.0 has custom fields built in, standard.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Kindred

you have installed the mod twice.

You will have to manually remove the duplicate code sections (and there are likely to be more duplicates than just the one that is causing the error)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.<br /><br />"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

res6cue

Quote from: Kindred on March 18, 2008, 09:30:26 PM
meh... at this point, I wouldn't worry about this mod... :)   SMF 2.0 has custom fields built in, standard.

The real question now becomes:  Will there be a way for us to import all the existing data from this mod into the SMF 2.0 format?  This is going to be critical for my forum to keep this data!

SunilDVR

Quote from: res6cue on March 19, 2008, 09:49:37 AM
The real question now becomes:  Will there be a way for us to import all the existing data from this mod into the SMF 2.0 format?  This is going to be critical for my forum to keep this data!

I posted a feature request a while back for this, and if I recall correctly, the response was that it would be considered.

I saw a post earlier on today suggesting that SMF2 stored the data in the same table (smf_themes) as the CPF mod.

Taking a look just now, this appears to be the case:

id_member    id_theme    variable          value
2          1          name          Mr Test Account
2          1          membersh       1111/11

In my setup of the CPF mod, a similar set of values would be:
2    1    CP1    Mr Test Account
2    1    CP2    1111/11

So - it appears all that has changed is that the "variable" field is no longer customisable, instead just taking the first 8 characters of the field name.

If I were to convert the data across, I'd just need to replace all instances of "CP1" with "name" and all of "CP2" with "membersh" in this case.

I do not have any fields which are not of type text, so I do not know how checkboxes, etc. will be handled.




There is one thing which is bugging me, though, about the SMF2 implementation of custom fields.

The "Privacy: Who can see and edit this field" option is way too limited.

There are only three options in the dropdown box:

* Users can see this field; owner can edit it
* Users can see this field; only admins can edit it
* This field is only visible to admins

The way I currently have the CPF mod set up for a particular field is that the owner can both see and edit  it (for their own profile, obviously), but that no other users can except Admins.

There does not appear to be a way to make this happen with the SMF2 core implementation of it.

Also SMF2 is feature-frozen, so I'm not sure whether this will be changed in final. I am thinking of making a "formal" feature request for more granularity of the CPF features, just in case there is time to change it. A set of check-boxes with various options for force-on-registration, visibility on posts, visibility on profile (self and others) and edit-ability (self or just admins) would do the trick.

Sunil

af4643

I've tried to search for the answer in this thread without any luck. I'm using SMF 1.1.4. The only mod I have installed is Gallery 2 Integration 1.0Beta3.1.

when I try to apply the profile mod (3.17), it gives me a Test Failed on line 1 (ModSettings.php). Every other line came up with Test Successful.

please help...thanks!


perplexed


Quote from: af4643 on March 19, 2008, 11:01:53 AM
I've tried to search for the answer in this thread without any luck. I'm using SMF 1.1.4. The only mod I have installed is Gallery 2 Integration 1.0Beta3.1.

when I try to apply the profile mod (3.17), it gives me a Test Failed on line 1 (ModSettings.php). Every other line came up with Test Successful.

please help...thanks!



please use the package parser - link in my signature - and edit that file that failed manually.  It's usually a conflict with another mod but you can install and edit the file by following the instructions for that file in the package parser.

Advertisement: