1. Fill out user profile empty fields

Fill out user profile empty fields

  |   1
Fill out user profile empty fields
The description: When the user does not fill the information on in a profile that is blank, sometime it doesn't look professionally for your site, so let's make it look professional by using this hack.

Compatible Version: Tested on 9.4. On older versions will work too.

1. Open the file: engine/modules/profile.php
2. Find: (Approximately 383 line)

3. Insert the following code BEFORE:
$user_fullname = $row['fullname'];if ( ! $user_fullname ) $user_fullname = "It is not specified";$user_land = $row['land'];if ( ! $user_land ) $user_land = "It is not specified";$user_info_info = $row['info']; if ( ! $user_info_info ) $user_infoinfo = "It is not specified";$user_icq_icq = $row['icq'];if ( ! $user_icq_icq ) $user_icqicq = "It is not specified";else$user_icq_icq = "[url=http://www.icq.com/people/about_me.php?uin=]".$row['icq']."[/url]";

4. Next find: (in the same file)
В В В В  $tpl->set( '{fullname}', stripslashes( $row['fullname'] ) );В В В В  $tpl->set( '{icq}', stripslashes( $row['icq'] ) );В В В В  $tpl->set( '{land}', stripslashes( $row['land'] ) );В В В В  $tpl->set( '{info}', stripslashes( $row['info'] ) );

5. Replace with:
В В В В  $tpl->set( '{fullname}', stripslashes( $user_fullname ) );В В В В  $tpl->set( '{icq}', stripslashes( $user_icq_icq ) );В В В В  $tpl->set( '{land}', stripslashes( $user_land ) );В В В В  $tpl->set( '{info}', stripslashes( $user_info_info ) );

For a popup windows profile (profile_popup.tpl):
1. Open file engine/ajax/profile.php
2. To find a line:
$tpl->set( '{fullname}', stripslashes( $row['fullname'] ) );

3. Replace with:
$user_fullname = $row['fullname'];if ( ! $user_fullname ) $user_fullname = "It is not specified";$tpl->set( '{fullname}', stripslashes( $user_fullname ) );
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.



Comments 1

Commented By romeoluv56 on November 26, 2011 (2:31 am)
Tested on 9.3, working fine.

Thanks man.
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.