News:

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

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

jako7444

I have no idea why I did this, but I went into tracking IP addresses and found some error messages.

8: Undefined index: cp_cpfields
File: /home/ebook/public_html/forum/Sources/ModSettings.php
Line: 142
?action=featuresettings;sa=layout;sesc

Unable to load the 'CustomProfile.english-utf8' language file.
?action=featuresettings;sa=layout;sesc

2: fclose(): supplied argument is not a valid stream resource
File: /home/ebook/public_html/forum/Sources/Subs-Package.php
Line: 1908
?action=packages;sa=install;package=customprofile3-19.zip

2: fopen(/home/ebook/public_html/forum/Sources/Register.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/ebook/public_html/forum/Sources/Subs-Package.php
Line: 1901
?action=packages;sa=install;package=customprofile3-19.zip

I realy don't know what they mean, except that obviously there are errors in these docs on the lines mentioned.  Would this be my problem?  If so, any clues?

Cheers

Di

steiger

Quote from: wmcintosh on August 28, 2008, 05:20:58 AM
Quote from: steiger on August 28, 2008, 03:32:26 AM
I have made two additional settings and contacted winrules twice if he is interested.
No reply, no feedback, just ignorance.

Take note of his signature "Please do not PM me for support."
I did not need support and this was not the reason for my PM.
It was only about possible inclusion of my enhancements.

jako7444

I thought maybe I needed to change permissions on the pages, so I did this.  I then uninstalled the package and then re-installed.  The test shows everything is OK and I get a message that everything is installed OK, but I still don't get the Fields.

Also, do I need to post this somewhere else as I know this isn't supposed to be a support area.

Many apologies for my inexperience.  I really don't wish to be a nuisance.

Cheers

Di

steiger

Quote from: jako7444 on August 28, 2008, 06:27:18 AM
Unable to load the 'CustomProfile.english-utf8' language file.
?action=featuresettings;sa=layout;sesc
This mod only ships english but not english-utf8.
It seems that you are running smf configured for utf8. Therefore the language file is missing.

jako7444

Since re-installing, I went to my error log to have a look and there now only seems to be 2 problems

The first is

http://mokolesneymatchbox.com/forum/index.php?action=featuresettings [nofollow]

8: Undefined index: cp_cpfields
File: /home/ebook/public_html/forum/Sources/ModSettings.php
Line: 142 


I had a look and Line 142 reads .........             'title' => $txt['cp_cpfields'],


The second is

http://mokolesneymatchbox.com/forum/index.php?action=featuresettings [nofollow]

Unable to load the 'CustomProfile.english-utf8' language file.

Thanks Steiger for pointing out the issue with this last one.  Any clue as to how I change this?  And does it matter if I do?

Cheers

Di

jako7444

I had a look at my server settings and yes, the default language is English-utf8.

I also got the message " These settings cannot be changed because Settings.php is read only."

Can I just change the settings to write and then change it, or will I screw something up?

Cheers

Di

steiger

Quote from: jako7444 on August 28, 2008, 07:15:24 AM
I had a look at my server settings and yes, the default language is English-utf8.

I also got the message " These settings cannot be changed because Settings.php is read only."

Can I just change the settings to write and then change it, or will I screw something up?
Did you configure smf for english-utf8 on purpose?
If not, change Settings.php to r/w and change to english

jako7444

Yippee!!!!!

Thanks for pointing me in the right direction.

I changed the permission on settings.php.  Changed the language to English.  Uninstalled mod.  Reinstalled mod.

And voila - I have Custome Fields.

THANKS, THANKS, THANKS

I am a very happy little vegemite!!!!

Cheers from Oz

Di

bfeo

So there isn't any known solution for this duplication bug?  I've tried everything.  Deleting all CP rows, using IDs that haven't been previously used... everything.  Could there somehow be code that's been duplicated from a reinstall?  I had to reinstall my forums a while back.  I don't think I pulled over any of the old code, but idk... I'm lost now.

It makes this mod useless.

Kindred

Jako...   why did you uninstall?   With all that uninstalling and reinstalling, there is a very good chance that something got messed up (i.e. code was not completely removed and is now duplicated)

Remember... computers do not learn through repetition.

BFEO... the "bug" that you report, I suspect (as I indicated to Jacko above) is due to your uninstalling and reinstalling the mod multiple times.

At this point, I would suggest loading clean SMF files (thus removing ALL your mods) and re-installing your mods once each, one at a a time.


Brans,  As steiger notes: What you request is not part of the mod...   It is possible, but you'll have to modify the mod to code it yourself.

Сл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."

Contra


sectit.com

#2151
Hello,

Firstly, thank you for sharing your mods with us...

I am using this mod in my web site hxxp:www.sectit.com [nonactive], i have a little question, i am writing contest mod ( or extension) for smf and i will use some extra profile information from your mod. I search my DB for collecting and showing informaion on Contest Page, but i just found mod content ( description, field name etc..) in smf_settings CP_XX_XX...So,  I need to know where is user records ? where saved in table?

My sql query will be like this...

$member_hobbies_sql ="SELECT cp_tbl_hobbies from smf_????? where CP???_MEMBER_ID = 1"....

thanks for now...

bfeo

QuoteAt this point, I would suggest loading clean SMF files (thus removing ALL your mods) and re-installing your mods once each, one at a a time.

Yea,... no.

No way that I'm gonna reinstall all of those manual installations and custom mod edits for this one.  I appreciate the help, but that's simply not an option.  55 mods.  A good many custom edits too. 

Perhaps it's duplicated code, and not related to the database.  If so, where do you suggest I look?  There haven't been any duplicated code complaints from the forums, but perhaps it doesn't matter with this mod.

It doesn't duplicate in admin panel, just in the profile, for both the input fields and for viewing the summary.

steiger

Quote from: bfeo on August 29, 2008, 09:43:00 AM
It doesn't duplicate in admin panel, just in the profile, for both the input fields and for viewing the summary.
Have you looked at the smf_settings table if the CP rows are duplicated there?

sectit.com

Quote from: sectit.com on August 29, 2008, 08:38:34 AM
Hello,

Firstly, thank you for sharing your mods with us...

I am using this mod in my web site hxxp:www.sectit.com [nonactive], i have a little question, i am writing contest mod ( or extension) for smf and i will use some extra profile information from your mod. I search my DB for collecting and showing informaion on Contest Page, but i just found mod content ( description, field name etc..) in smf_settings CP_XX_XX...So,  I need to know where is user records ? where saved in table?

My sql query will be like this...

$member_hobbies_sql ="SELECT cp_tbl_hobbies from smf_????? where CP???_MEMBER_ID = 1"....

thanks for now...

OK i solve problem, i found records in smf_themes :)
thanks...

bfeo

I've deleted every single row with the letters CP in them.  That's not where the problem is.

Either there is more information somewhere else in database, or it has to do with reinstalling the mod.  Perhaps duplicated code that did not delete as it should have or something.

steiger

#2156
Quote from: bfeo on August 29, 2008, 09:58:04 AM
I've deleted every single row with the letters CP in them.  That's not where the problem is.

Either there is more information somewhere else in database, or it has to do with reinstalling the mod.  Perhaps duplicated code that did not delete as it should have or something.
Could you post a screenshot of a profile containing the duplicated entries?

Edit: Does it also show duplicates in Postings?

bfeo

I'll reinstall the mod and take some screenies.  As for that, I haven't tested with a value visible in posts.

bfeo

Ok.  I already had it still installed.

Uhm... it appears to duplicate the ID THREE times in posts.  And one of them in a different spot.  None of them are in the correct spot anyway.  I chose for it to be under the post count.


steiger

OK, I don't know what happened to the posts but first let's compare the installed CustomProfile.php with the file from the package.
Then look at Profile.template.php of your theme where "DisplayFieldsProfile();" is found.
The same in Display.template.php for "DisplayFieldPostsPictures();" and "DisplayFieldPosts();"

You could also post these theme files but I am only able to look in a few hours.

Advertisement: