Empty Profile Field Notification! 1.0.0
This modification is in the archives.
Empty Profile Field Notification! 1.0.0 WHAT IT DOES: This hack will inform your users in a somewhat annoying way that they should fill in profile fields that you specify. Once they fill in the specified fields, this message will go away. This Hack can be used for many things, for example. You can have a notice displayed if they are not a subscriber, not a member of a certain usergroup, have not selected an avatar, and more. Its up to your imagination WHY I MADE THIS: Rather than forcing users to fill out profile fields and potentially lose new members because they just didnt feel like doing it right then and there during signup, this will remind them while they are browsing the forums that "hey, its a good idea to fill this out or you have to look at this annoying message everyday"! INSTRUCTIONS: Step 1 - Go in your adminCP > Styles & Templates > Edit Templates > Forum Home Templates > FORUMHOME Find: Code:
$navbar Code:
<!-- Empty Profile Field Notification by Stangsta --> <if condition="$bbuserinfo[usergroupid] == 1"> <else /> <if condition="$bbuserinfo[fieldXX]==''"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="5"> <strong><font color="#FF9933">ATTENTION:</font> You do not have anything listed for the <a href="http://www.YOUR_DOMAIN_NAME.com/forums/profile.php?do=editprofile">"About Me" </a>field in your profile.</strong> </if> </td> </tr> </if> <!-- / Empty Profile Fields Notification by Stangsta --> ex. Code:
<if condition="$bbuserinfo[fieldXX]==''"> Step 3 This is OPTIONAL! Lets say, you want your users to fill out 2 or more profile fields. Simple, just keep adding the code like this: Code:
<!-- Empty Profile Field Notification by Stangsta --> <if condition="$bbuserinfo[usergroupid] == 1"> <else /> <if condition="$bbuserinfo[fieldXX]==''"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="5"> <strong><font color="#FF9933">ATTENTION:</font> You do not have anything listed for the <a href="http://www.YOUR_DOMAIN_NAME.com/forums/profile.php?do=editprofile">"Field 1" </a>field in your profile.</strong> </if> </td> </tr> <if condition="$bbuserinfo[fieldXX]==''"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="5"> <strong><font color="#FF9933">ATTENTION:</font> You do not have anything listed for the <a href="http://www.YOUR_DOMAIN_NAME.com/forums/profile.php?do=editprofile">"Field 2" </a>field in your profile.</strong> </if> </td> </tr> <if condition="$bbuserinfo[fieldXX]==''"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="5"> <strong><font color="#FF9933">ATTENTION:</font> You do not have anything listed for the <a href="http://www.YOUR_DOMAIN_NAME.com/forums/profile.php?do=editprofile">"Field 3" </a>field in your profile.</strong> </if> </td> </tr> </if> <!-- / Empty Profile Fields Notification by Stangsta --> PLEASE PLEASE PLEASE....If you use this hack CLICK INSTALL! Download This modification is archived and cannot be downloaded. Screenshots
|