Firefox PHP

Module: Enhanced Custom Profiles

Posted by Joe Curia 
Re: Module: Enhanced Custom Profiles
July 28, 2008 11:37PM
I honestly do not believe this is caused by my module. However, looking through my test site a similar phenomenon occurred so I will run some tests/debugging and get back to you..


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Enhanced Custom Profiles
July 29, 2008 02:37AM
OK, I think I am narrowing this down and no, I do not think it is a problem with this mod. I will try to work this out in the support forum first.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
noe
Re: Module: Enhanced Custom Profiles
July 29, 2008 03:37AM
Ok! - so you were able to reproduce this problem?
Re: Module: Enhanced Custom Profiles
July 29, 2008 04:28AM
Yep, see my post in the support forum for more info. For now I can offer the following hack as a potential solution:

Edit your ./include/api/user.php file by adding the green lines starting around line 428:
    // Check if we are handling an existing or new user.
    $existing = NULL;
    if ($user['user_id'] !== NULL) {
        $existing = phorum_api_user_get($user['user_id'], TRUE);
    }
    foreach ($existing as $e_name => $value) {
	    $chk_custom = phorum_api_custom_profile_field_byname($e_name);
	    if ($chk_custom !== NULL) {
		    $value = htmlspecialchars_decode($value);
		    $existing[$e_name] = $value;
	    }
    }
    // Create a user data array that is understood by the database layer.
    // We start out with the existing record, if we have one.
    $dbuser = $existing === NULL ? array() : $existing;


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
noe
Re: Module: Enhanced Custom Profiles
July 29, 2008 07:33PM
okay... so I'll use your hack until there is a better solution / or a "fix" by the phorum team.

thank you!
Re: Module: Enhanced Custom Profiles
August 01, 2008 06:35PM
Hello. I appear to be having a problem with the Spamhurdles mod popping itself above the Enhanced Custom Profiles mod on the registration page. For the life of me I'm not finding any way to move it to the bottom. Any help would be appreciated.
Re: Module: Enhanced Custom Profiles
August 01, 2008 07:25PM
try adding this line to the ./mods/enhanced_custom_profiles/info.txt:
priority: run module before *

Afterwards, you will need to open the admin section for phorum to update the mod (you will see a message at the top of the page).


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 1 time(s). Last edit at 08/01/2008 07:26PM by Azumandias.
Re: Module: Enhanced Custom Profiles
August 01, 2008 07:46PM
Thanks! I figured that out not two minutes before I left here. Thanks for the help anyway!
Re: Module: Enhanced Custom Profiles
December 09, 2008 11:40PM
Hi!

I installed this very useful mod and generated some values in "edit my profile". When looking in my control center --> show my profile - i see these new values. Great. But when a user wants to see my profile in a post (by clicking on my name), he just see the default values (real name, posts, registered, last active) but NOT the new values I made. I checked the box "show in view my profile" - what´s wrong?
In 5.1 this worked when creating new values in admin console > Users/Groups > Custom Profiles and making some changes to cc_usersettings.tpl and profile.tpl (adding the values).

Regards,
Thorsten
Re: Module: Enhanced Custom Profiles
December 10, 2008 02:51AM
Thorsten, I am working to implement the profile view but have run into an issue. For now, please add the green line below to your profile template file in your_phorum_install/templates/your_template/profile.tpl:
        <dl>

            <dt>{LANG->Email}:</dt>
            <dd>{PROFILE->email}</dd>

            {IF PROFILE->real_name}
                <dt>{LANG->RealName}:</dt>
                <dd>{PROFILE->real_name}</dd>
            {/IF}

            {IF PROFILE->posts}
                <dt>{LANG->Posts}:&nbsp;</dt>
                <dd>{PROFILE->posts}</dd>
            {/IF}
            {IF PROFILE->date_added}
                <dt>{LANG->DateReg}:&nbsp;</dt>
                <dd>{PROFILE->date_added}</dd>
            {/IF}
            {IF PROFILE->date_last_active}
                <dt>{LANG->DateActive}:&nbsp;</dt>
                <dd>{PROFILE->date_last_active}</dd>
            {/IF}
            {hook "ecp_tpl_cc_start"}
        </dl>

    </div>

</div>
<!-- END TEMPLATE profile.tpl -->


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.

Click here to login