Custom Profile Field Mod

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

Previous topic - Next topic

perplexed

possibly you have duplicate code in your registration file.  Check through it looking for the custom profile code that the mod adds and if you have two, remove one instance.

Also make sure you havent created two identical fields (sounds dumb but it can happen)

Harryf

Hi Quiteperplexed!

You truly deserve your huge goblet!  When you confirmed what I suspected, I initially tried looking through the code of the "register" php files and found nothing suspicious.

I proceeded to uninstall both mods that I have on my system and both uninstalled successfully with no error messages.

I then made backups of all the files that were changed when I downloaded the mod and to upload the same files from the SMF 1.1.4. that I had downloaded on my hard drive earlier today.  That had no affect (or is it effect - never can tell which ;D) on the layout and settings of my forum.

I then re-installed the Custom Field Mod and

HEY PRESTO!! :D  (with waving arms and air punching fists)

A SINGLE custom field was added to my registration page!

All of this took me less than 15 minutes - and I can't even spell HMTL . . . :-[

I heve not re-installed the other mod and will report back if it caused issues.

Thanks for the help!

Kindest possible regards

Harry
Men are apt to mistake the strength of their feelings for the strength of their arguments.  The heated mind resents the chill touch and relentless scrutiny of logic. W.E. Gladstone

perplexed

lol you're welcome Harry.  Glad you got it fixed.  Sometimes code gets left behind.

*polishes huge goblet*  :P

WRABBIT

Would someone mind helping me with adding facebook?  I just don't know what exactly I am supposed to fill out

perplexed

well I don't use facebook so I don't know what the id's look like but if you look at the first post on page one of this thread it will tell you how to add a field for myspace.  You should be able to work it out from there

eg from page one
Quote from: winrulesIn 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 in the before spot and in the after spot, and it would just show the username but link to the site.

but read the whole post :)

WRABBIT

Thanks, just two small questions.

One, how would I be able to make it so that the link is an image like other IMs are.

Two, is there any way I could move it up to the same line as the IM logos are in just a simple normal post?

Kindred

1- yes...  use the img tag along with the a href link in the before section
2- not easily.
Сл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."

WRABBIT

Hm, well I did the image tag so the code was like this

BEFORE: [url=whateverthefbookthingwas.com/%1][img]imageurl[/img]
AFTER: [/url]

And when someone inputs their id, it shows the logo AND then random numbers right after it anyways.

perplexed

Quote from: WRABBIT on April 24, 2008, 06:29:36 PM
Hm, well I did the image tag so the code was like this

BEFORE:
AFTER:

And when someone inputs their id, it shows the logo AND then random numbers right after it anyways.

I wanted something similar with amazon wishlists but my brain wasn't working well that day and Kindred helped me out.  I used html instead of bbc and it works great.  You could try this for your facebook image changing the link appropriately:

Quote from: quiteperplexed on February 26, 2008, 09:36:41 AM
Quote from: Kindred on February 26, 2008, 09:19:42 AM
in the PRE-TEXT, you would do something like

<a href="amazon.com/wishlist/

Then the field itself would be the amazon wishlist ID

in the POST-TEXT, you would then include...
"><img src="amazon.com/image.gif" alt="Amazon Wishlist" /></a>

oh thank you so much Kindred.

I had this code, but I think what I was doing wrong was splitting the code in the wrong place for the before and after text, and also I was adding the %1 which I don't think I needed.

It works great now - thanks again - I just couldn't see the wood for the trees

MissyNL

Hello,

brianjw. helped me figuring out what went wrong. It seemed that both files did not ever where om my server!!

Anyway.. I have translated the file in Dutch... I can not promise it's totally correct.. but he.. better this than nothing. The only thing was that i could not find the right translation for PARSE... maybe also because i do not even know what it means :D

See the file attached
Sorry for my poor English, but i think it's probably better then your Dutch :)

MissyNL

I see that some files needed to be translated in the modification.english.php file also

$txt['usercp_field1image'] = 'Custom UserCP veld 1 afbeelding';
$txt['usercp_field1url'] = 'URL';
$txt['usercp_field1maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field1summary'] = 'Samenvatting tekst';
$txt['usercp_field1enable'] = 'schakel 1e Custom UserCP veld in';
$txt['usercp_field2image'] = 'Custom UserCP veld 2 afbeelding';
$txt['usercp_field2url'] = 'URL';
$txt['usercp_field2maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field2summary'] = 'Samenvatting tekst';
$txt['usercp_field2enable'] = 'schakel 2e Custom UserCP veld in';
$txt['usercp_field3image'] = 'Custom UserCP veld 3 afbeelding';
$txt['usercp_field3url'] = 'URL';
$txt['usercp_field3maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field3summary'] = 'Samenvatting tekst';
$txt['usercp_field3enable'] = 'schakel 3e Custom UserCP veld in';
$txt['usercp_field4image'] = 'Custom UserCP veld 4 afbeelding';
$txt['usercp_field4url'] = 'URL';
$txt['usercp_field4maintext'] = 'Hoofd tekst ( zoals Mijn berichten )';
$txt['usercp_field4summary'] = 'Samenvatting tekst';
$txt['usercp_field4enable'] = 'schakel 4e Custom UserCP veld in';


if something is missing.. please let me know :D
Sorry for my poor English, but i think it's probably better then your Dutch :)

WRABBIT

Thank you perplexed!!!

And, so are you guys saying it IS possible to put it up on the line with other IM icons?  What would I have to do?

TJTELLEZ9

How can I set it so this custom field shows up in the member list so I can sort it when viewing the members?

Kindred

wrabbit - It would take some familiarity with coding and SQL statements in the forum to place the fields in line with the other IM icons.

tjtellez9 - again, it will take some coding to even add the fields and some more to make them sortable.  I believe that one method has been mentioned at least once in this thread.
Сл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."

Taragon

I am not sure if this is the place for this question, I have the custom profile mod installed and wanted a particular custom profile "expiry date" to show up in the memberlist. I remember coming here and searching for quite some time to get the code modification to make that happen and it does happen, the field shows up in my member list.

All is sweet except I am getting an error or hundreds of them actually but they are all the same, they say this:

8: Undefined index: CP7
File: /public_html/Themes/default/Memberlist.template.php (eval?)
Line: 129

CP7 is the custom profile field I have showing in the memberlist

How do i get rid of it, sounds like CP& needs to be defined somewhere.

Thanks in advance for any help.


Khardan

#1995
I've installed SMF 1.1.4. and recently installed (manually) Custom Profile Field Mod 3.17 (not sure if this is just coincidental or not) which seems to have resulted in the following error when receiving PMs:

Fatal error: Call to undefined function: displayfieldpostspictures() in \\nawinfs06\home\users\web\b2181\ipw.guardiansofhonor\forum\Sources\Load.php(1726) : eval()'d code on line 344

I cannot read PMs nor can I delete them by selecting the PM and pressing "Delete Selected".  When attempting to do so, I receive the following:

Session verification failed. Please try logging out and back in again, and then try again.

So, in order to delete PM's I have to use "Prune Messages".

Unfortunately, I cannot say whether or not the PMs were working prior to installing the mod.  This was the first PM received and it was done as a test to see if there were any problems.

Any suggestions would be more than greatful -- I don't have that much hair left to pull out


perplexed

ok first of all try this http://www.simplemachines.org/community/index.php?topic=234316.msg1509032#msg1509032

as the file that error is pointing to may not be the correct file.

After that, check your error log again and post up the errors with the new file name

(you could also try manually uninstalling the custom profile mod again (sorry) and then see if you still have the problem, since you said you couldn't tell whether or not it existed before you installed this mod. but let's wait to see what the error log says first )


Khardan

Thanks, Quiteperplexed.  I'll let you know what happens.

Khardan

Quiteperplexed:  Problem fixed.  When manually installing the MOD, I missed a couple of lines regarding the displayfieldpostspictures() in one of the modules.  Once I corrected that, it was smooth sailing.

Thanks for the assist.


Advertisement: