News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom Profile Field Mod

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

Previous topic - Next topic

Bluey

#1680
I have installed this on V1.1.4 and got a test failed on modsettings.php on install.  I used package parser to edit that file but now when I try to load features and options I get this on the page.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/uams1/public_html/SMF/Sources/ModSettings.php on line 121

When I open in notepad this is what I have

$subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'googlemap' => 'ModifyGoogleMapSettings',
      'karma' => 'ModifyKarmaSettings',
                                'googlebot' => 'ModifyGooglebotSettings'
         'profile' => 'ModifyProfileSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

This is what I had to do

Find:

   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';


Replace with:


      'profile' => 'ModifyProfileSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';


Any ideas?

BTW I have the Google Member Maps mod loaded and when I loaded that prior to this mod it said it would conflict with this mod.  I really would like to have both mods if possible.

Kindred

you need a comma after:
'googlebot' => 'ModifyGooglebotSettings'

looks like that mod did a bad code bit there...
Слова
Украина

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

Bluey

Bargain.....worked like a charm.  You know I looked at that code a dozen times and missed it.  I will get the hang of this yet.  Thanks mate

Iuri Morandini

qual é a area para mudar as opçoes?

Kindred

Слова
Украина

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

Iuri Morandini

Quote from: Kindred on January 20, 2008, 02:46:14 AM
in English, please?

I made all the changes needed
But, do not think in the ADM setting the options Profile

Kindred

If you are using a language other than English, you will have to make your own translations (phrases need to be added to Themes/default/languages/modifications.YOURLANG.php to match modifications.english.php)
Слова
Украина

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

Jade Elizabeth

okay i went all the way back to page 68 and i cant find code changes or anything, im tired..can i please have a copy of the 3-16 version?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

TrueSatan

OK...you're in luck as I have it handy.

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

MrPrise

Hello,
How can I have a field's value on every page (in the index.template.php)?
Thank you

mikeach

Hey Everyone,

I installed this mod, then due to an outside error I had to uninstall then reinstall the mod, now I get the fields I created displayed twice in the Profile, but they are only listed once in the Admin>Features and Options>Custom Profile Fields.  I assume that it changed a template during the first install but some how it didn't get removed during the uninstall, then was put in again during the reinstall, I also had to edit out double entries in the ModSettings.php and Profile.php files due to "Cannot redeclare" errors but don't know where to look for this one.

Thanks for any help!

Mike

TrueSatan

First back up your files!

Please use the Package Parser:

http://www.smfhelper.info/forum/package.php5

...to output the details of the edits this mod makes then check all of your files editing as needed to remove duplicated code added by the mod...that said the specific problem sounds like duplicate code in profile.template.php in your theme directory

mikeach


Geezer

Hi love this mod, just wondered how I would go about adding the field to members list. Is this possible?
[nofollow]

TrueSatan

Please see replies #1668 and #1670


Reyd

i installed this packages today but it's not working!!!
i've version 1.1.4
if i go on features & options there is nothing where i can add some profile fields

Kindred

As stated at least once on nearly every page of this thread:

Mods only install into the default theme automatically. If you are running a theme other than "default", you may have to manually apply the code changes into that theme's xyz.template.php files.

If you are running in a lan guage other than "english" (and "english utf-8" is different from "english") then you will have to manually add the language strings into Themes/default/language/modifications.YourLanguage.php
Слова
Украина

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


Advertisement: