Module: Enhanced Custom Profiles
Posted by Joe Curia
July 28, 2008 05:37PM |
Registered: 16 years ago Posts: 1,301 |
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
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
July 28, 2008 08:37PM |
Registered: 16 years ago Posts: 1,301 |
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
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 28, 2008 09:37PM |
Registered: 19 years ago Posts: 50 |
July 28, 2008 10:28PM |
Registered: 16 years ago Posts: 1,301 |
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:
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
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
Re: Module: Enhanced Custom Profiles July 29, 2008 01:33PM |
Registered: 19 years ago Posts: 50 |
Re: Module: Enhanced Custom Profiles August 01, 2008 12:35PM |
Registered: 15 years ago Posts: 2 |
August 01, 2008 01:25PM |
Registered: 16 years ago Posts: 1,301 |
try adding this line to the ./mods/enhanced_custom_profiles/info.txt:
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 01:26PM by Azumandias.
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 01:26PM by Azumandias.
Re: Module: Enhanced Custom Profiles August 01, 2008 01:46PM |
Registered: 15 years ago Posts: 2 |
Re: Module: Enhanced Custom Profiles December 09, 2008 05:40PM |
Registered: 16 years ago Posts: 38 |
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
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
December 09, 2008 08:51PM |
Registered: 16 years ago Posts: 1,301 |
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:
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
<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}: </dt>
<dd>{PROFILE->posts}</dd>
{/IF}
{IF PROFILE->date_added}
<dt>{LANG->DateReg}: </dt>
<dd>{PROFILE->date_added}</dd>
{/IF}
{IF PROFILE->date_last_active}
<dt>{LANG->DateActive}: </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.