![]() |
Force Current Members To Fill Out Required Profile Field
So you add a new required profile field, and members who join afterwards are forced to fill out the field, but you want your current members to fill out that field too. Well unless your current members go edit their profile, the new field sits and waits for them to take action. This mod will force your current members to fill out the field by prompting them for action before allowing them to return to normal site use. Here are some further details:
Mod Update (03 September 2005): - changed mod from plugin/hack to product Mod Update (01 October 2005): - changed mod to have better output display Mod Update (10 October 2005): - changed mod to use required, editable fields Mod Update (02 February 2006): - added vB v.3.5.3 force profile update mod |
thanks ....
|
You can do this as a plugin. I just looked and should work.
|
@Barakat: You're welcome.
@eXtremeTim: Thanks for checking, plugin added. |
Umm, is it just me or is there no Phrase Type: Front-End Error Messages???
There is a Front-End Redirect Messages type! |
@TruckMuddr: Use "Error Messages" as the Phrase Type.
|
Receiving the following error message. You help is appericated
Code:
print_standard_error(...) |
Very usefull hack calorie!
|
nice job :squareeyed:
|
@clearchannel: Download again and reinstall.
@Live Wire and Svenna: Thanks. |
That worked very nice.
Thank you, this is a much needed addition. |
Hmm. I installed this hack as a plugin, and I dont get the screen looking as you do. It appears out of format on a while screen with black text and a forum jump menu. It also does not allow you to log out until you edit your profile, which you should be able to do.
|
@Nukey: Make sure you have a fresh download. It should look like this except with the message in the screenshot. If you want to allow logout use:
Code:
$zzz_regex = "(profile|usercp|login)\.php"; |
calorie, I just downloaded it a few minutes ago. Im not sure why it looks like it does in the screenshot. Any other ideas? I have the phrase as a "Front End Error Message"
|
When I go to the Plugin section and choose edit plugin, this is what I see:
Code:
// #### Force Current Members To Fill Out Required Profile Field #### |
The plugin you are using looks good, except if you want to add login to the $zzz_regex variable. Try using "Error Messages" not "Front End Error Messages" as the Phrase Type.
|
I don't have Error Messages in my list? This is baffling. I want to be able to use the plugin but for some reason its just giving me the white screen instead of the error box.
|
What does the HTML look like (just around the message)?
|
After looking at the HTML of the page that loads, it appears that everything above the three <br /> does not appear. Ie. none of these sections of code that are in the showthread error message are in this plugin's error message.
Code:
<!-- CSS Stylesheet --> Or maybe I missed something...I downloaded the file and uploaded it through the "import plugin" part of the admin cp, and I made the phrase in the phrase manager "Front End Error Messages". There is no "Error Messages". Did I miss something? Thanks Again! |
Try moving the plugin from global_start to global_complete.
|
That gives me an error:
Code:
Fatal error: Call to a member function on a non-object in /mydir/httpdocs/forums/includes/functions.php(4118) : eval()'d code on line 7 |
Sorry I can't test right now. What if you move it from global_start to navbits?
|
Same type of error again. Oh well. Thanks for trying. If you come up with anything I'll be watching this thread :)
|
Well I use a sort of workaround. I replaced the eval(error message) code and just had it redirect to a page that looks exactly like the error that I made lol :)
|
I should have a fix soon, if you can give it a test?
|
Okay, redownload the attached plugin for use at global_start and let me know if you are missing any part of the page like you were before.
|
Thank You, working prefectly on my forum.
|
Quote:
|
Instead of
PHP Code:
PHP Code:
Btw: Did you consider releasing this as a Product? Would make installation and maintenace easier :) |
Thanks Kirby, marked for later...
|
I personally think this is one of the neatest hacks around! Thanks calorie.
|
When I try and do step two and add the phrase the Error message is not an option.
|
When this goes product, I will definately be installing it. )
|
PHP Code:
PHP Code:
|
@KirbyDE: Thanks, edited and producted.
@Darth Gill: Thanks, glad you like the mod. @ajpritch: Try the latest XML attachment. @Boofo: Producted, wink, time to install. @nexialys: Thanks, but use AND not OR. |
Quote:
|
Quote:
PHP Code:
AND is correct. |
Quote:
|
Code:
A AND B = result A OR B = result Edit: PS: Note that you cannot be F F F so if you use OR you are trapped. ;) |
You might want to throw some instructions on setting up the profile field in a text file and ZIP it up for those that might have to re-install vb sometime. ;)
|
All times are GMT. The time now is 09:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|