Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Empty Profile Field Notification! 1.0.0 Details »»
Empty Profile Field Notification! 1.0.0
Version: 1.0.0, by Stangsta Stangsta is offline
Developer Last Online: Feb 2017 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 02-24-2006 Last Update: 02-24-2006 Installs: 24
Template Edits
 
No support by the author.

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
Below, add:
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 -->
Step 2 This can get tricky for beginners. Now, customize the Hex color for the word "ATTENTION:" to whatever color you wish. I just made it a different color to help it stand out, you may remove the color formatting if you wish. Now select the profile field number you wish to produce a warning with.
ex.
Code:
<if condition="$bbuserinfo[fieldXX]==''">
*NOTE: Make sure you change the URL to match yours.

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 -->
Hopefully this was informative and helpful. I will support this the best I can, but I am no expert. Feel free to improve upon this, all I ask is you share the improvements with others in this thread.

PLEASE PLEASE PLEASE....If you use this hack CLICK INSTALL!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-12-2006, 02:26 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow this sounds great but can someone make this a plugin as I hate template mods.
Reply With Quote
  #23  
Old 04-12-2006, 02:40 AM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing
Wow this sounds great but can someone make this a plugin as I hate template mods.
If someone would be so kind in showing me how to make a plugin, I would do that.
Reply With Quote
  #24  
Old 04-12-2006, 03:01 PM
arossphoto arossphoto is offline
 
Join Date: Jan 2006
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any suggestions regarding my problems with the vBadvanced right column? Am I out of luck?

Cheers,

Andrew
Reply With Quote
  #25  
Old 04-12-2006, 03:45 PM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by arossphoto
Any suggestions regarding my problems with the vBadvanced right column? Am I out of luck?

Cheers,

Andrew
I have no idea, I don't use VBA.
Reply With Quote
  #26  
Old 04-12-2006, 05:17 PM
arossphoto arossphoto is offline
 
Join Date: Jan 2006
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks,

I ended up using the other mod here to force users to fill in the fields. I prefered your more gentle approach, but I'm glad I found something that works. It's always nice to have options.

Cheers.
Reply With Quote
  #27  
Old 04-13-2006, 09:16 PM
arossphoto arossphoto is offline
 
Join Date: Jan 2006
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just reinstalled this. Using vBadvanced to add columns to the forum pages seemed to be causing other weird layout problems so I got rid of it.

Thanks for a great mod!
Reply With Quote
  #28  
Old 04-17-2006, 12:14 AM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hurm, I was looking at this and I was wondering why you did this
Code:
<if condition="$bbuserinfo[usergroupid] == 1">
<else />
And not this

Code:
<if condition="$vbulletin->userinfo['userid'] != '0' AND THIS_SCRIPT == 'index'">
Or you could use something even simpler

Code:
	<if condition="$show['member']">
Reply With Quote
  #29  
Old 04-17-2006, 12:27 AM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HR3rdGen
Hurm, I was looking at this and I was wondering why you did this
Gotta start somewhere

Good looking out.
Reply With Quote
  #30  
Old 05-04-2006, 09:22 PM
truCido truCido is offline
 
Join Date: Sep 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks like a great hack exactly what I've been after but how would I get this to work with the email field?
Reply With Quote
  #31  
Old 05-04-2006, 09:41 PM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
This looks great, just what I am looking for. I'd like to gently remind folks to upload an avatar.

So how is this done? What is the profile field # for avatar?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05032 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete