PDA

View Full Version : Force Current Members To Fill Out Required Profile Field


calorie
09 Jun 2005, 21:27
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:

Install as a vB 3.5.0 product.
Thanks to wolfyman for this (http://www.vbulletin.org/forum/showpost.php?p=791496&postcount=65) post.
Thanks to KirbyDE for this (http://www.vbulletin.org/forum/showpost.php?p=746514&postcount=29) post.
Credit is given to Revan from this (http://www.vbulletin.org/forum/showpost.php?p=625954&postcount=27) post.
Credit is given to Locutus2999 from this (http://www.vbulletin.org/forum/showthread.php?t=53397) thread.
Related vB 2.2.x from roxics in this (http://www.vbulletin.org/forum/showthread.php?t=40594) thread.
Here based off the vB 2.3.x hack by Locutus2999.
Cost to install this mod is an additional query.
Support only if/as time available, no guarantees.
Should you install, say thanks by clicking install.

Remember to set 'Field Required' to 'Yes' and 'Field Editable by User' to 'Yes' for mod to kick in (see profile how-to: http://www.vbulletin.com/docs/html/profile).

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

Barakat
09 Jun 2005, 21:37
thanks ....

eXtremeTim
09 Jun 2005, 21:42
You can do this as a plugin. I just looked and should work.

calorie
09 Jun 2005, 22:53
@Barakat: You're welcome.

@eXtremeTim: Thanks for checking, plugin added.

TruckMuddr
11 Jun 2005, 06:26
Umm, is it just me or is there no Phrase Type: Front-End Error Messages???

There is a Front-End Redirect Messages type!

calorie
11 Jun 2005, 08:41
@TruckMuddr: Use "Error Messages" as the Phrase Type.

clearchannel
11 Jun 2005, 12:23
Receiving the following error message. You help is appericated



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Logikos
11 Jun 2005, 14:30
Very usefull hack calorie!

Svenna
11 Jun 2005, 15:01
nice job :squareeyed:

calorie
11 Jun 2005, 20:04
@clearchannel: Download again and reinstall.

@Live Wire and Svenna: Thanks.

clearchannel
11 Jun 2005, 21:39
That worked very nice.

Thank you, this is a much needed addition.

Nukey
12 Jun 2005, 15:33
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.

calorie
12 Jun 2005, 15:55
@Nukey: Make sure you have a fresh download. It should look like this (http://www.vbulletin.com/forum/showthread.php?p=test) except with the message in the screenshot. If you want to allow logout use:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Nukey
12 Jun 2005, 15:59
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"

Nukey
12 Jun 2005, 16:00
When I go to the Plugin section and choose edit plugin, this is what I see:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

calorie
12 Jun 2005, 16:17
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.

Nukey
12 Jun 2005, 16:34
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.

calorie
12 Jun 2005, 16:54
What does the HTML look like (just around the message)?

Nukey
12 Jun 2005, 16:56
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Is there something I can include to get everything to appear correctly?
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!

calorie
12 Jun 2005, 17:24
Try moving the plugin from global_start to global_complete.

Nukey
12 Jun 2005, 17:33
That gives me an error:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

calorie
12 Jun 2005, 17:44
Sorry I can't test right now. What if you move it from global_start to navbits?

Nukey
12 Jun 2005, 17:47
Same type of error again. Oh well. Thanks for trying. If you come up with anything I'll be watching this thread :)

Nukey
12 Jun 2005, 18:04
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 :)

calorie
12 Jun 2005, 18:11
I should have a fix soon, if you can give it a test?

calorie
12 Jun 2005, 18:21
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.

evss
30 Jul 2005, 08:52
Thank You, working prefectly on my forum.

calorie
01 Aug 2005, 00:25
Thank You, working prefectly on my forum.

Great, glad it's now working. :)

Andreas
01 Aug 2005, 13:36
Instead of


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



why not just


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



?

Btw: Did you consider releasing this as a Product?
Would make installation and maintenace easier :)

calorie
03 Aug 2005, 20:22
Thanks Kirby, marked for later...

Darth Gill
03 Aug 2005, 21:04
I personally think this is one of the neatest hacks around! Thanks calorie.

ajpritch
31 Aug 2005, 09:19
When I try and do step two and add the phrase the Error message is not an option.

Boofo
31 Aug 2005, 10:36
When this goes product, I will definately be installing it. )

nexialys
02 Sep 2005, 22:50
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

can be simply changed to :

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

and you can then forget about all the $_SERVER['REQUEST_URI'] trash...

calorie
03 Sep 2005, 19:22
@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.

Boofo
03 Sep 2005, 19:31
@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.

Ahh, but if you use AND and it is one of those, what will happen? OR is correct. ;)

Andreas
03 Sep 2005, 19:35
can be simply changed to :

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


This can simply be changed to


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



:D

AND is correct.

Boofo
03 Sep 2005, 19:36
This can simply be changed to


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



:D

AND is correct.

But if it was an both conditions would have to be true, right? With OR, either condition.

calorie
03 Sep 2005, 19:37
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


You only want to do the IF when you are not on profile and not on usercp, so AND is what you want.

Edit: PS: Note that you cannot be F F F so if you use OR you are trapped. ;)

Boofo
03 Sep 2005, 19:46
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. ;)

Andreas
03 Sep 2005, 19:48
No.
What is the Condition for?
It should not show the Error if the Script is profile.php or usercp.php (obviously, otherwise Users would not even have the chance to edit the Fields ;))

So the Condition is


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now keeping DeMorgan #1 in mind: NOT (smth OR smth) => NOT (smth) AND NOT(smth)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Getting rid of the inner brackets


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Nothing magic, just boolean logic :)

Boofo
03 Sep 2005, 19:52
No.
What is the Condition for?
It should not show the Error if the Script is profile.php or usercp.php (obviously, otherwise Users would not even have the chance to edit the Fields ;))

So the Condition is


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now keeping DeMorgan #1 in mind: NOT (smth OR smth) => NOT (smth) AND NOT(smth)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Getting rid of the inner brackets


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Nothing magic, just boolean logic :)

You see? Once you explain it like that, now it makes sense the way it is. ;)

calorie
03 Sep 2005, 19:54
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. ;)

http://www.vbulletin.com/docs/html/profile :confused:

Boofo
03 Sep 2005, 19:56
http://www.vbulletin.com/docs/html/profile :confused:

I know how to do it, sir, but there are those that don't. It'll save you a lot of grief later on. ;)

calorie
03 Sep 2005, 20:04
@Kirby: LOL, DeMorgan's, good explanation.
@Boofo: Okay, thanks, added a how-to link.

Boofo
03 Sep 2005, 20:16
The reason I recommended a txt file was so user's wouldn't have to come back to the thread here to re-install this if they ever needed it. ;)

mcyates
18 Sep 2005, 14:54
I have uninstalled this but i still get the warning about there being new profile fields and i can't access the site.

calorie
19 Sep 2005, 13:06
@mcyates: Are you having an issue like in this (http://www.vbulletin.org/forum/showthread.php?t=95583) thread or being affected by this (http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1020) bug?

Aeolian_X
30 Sep 2005, 13:02
What a great hack. Gonna try to install it with 3.5.0 Gold tonight. Has anyone else tried it?

OmaniMan
01 Oct 2005, 09:51
Great >>> :)

silurius
01 Oct 2005, 16:07
What a great hack. Gonna try to install it with 3.5.0 Gold tonight. Has anyone else tried it?

Waiting to see a brave soul like you try it first. :nervous:

Aeolian_X
01 Oct 2005, 16:34
Seems to work on 3.5 Gold. No problems. I tested it as much as I could last night, and found nothing wrong. Great hack, because we have a lot of people who didn't fill out the required fields.

PennylessZ28
08 Oct 2005, 23:19
Works like a champ!

tanyeri24
09 Oct 2005, 00:29
really a small but powerfull hack, thanks to the coder.
*installed*

:Judge:
09 Oct 2005, 16:41
Will this work with the birthday as well?

I just added the settings in AdminCP for new users to fill it in but I have around 30% of current members who have not.

wolfyman
09 Oct 2005, 17:56
Dear Forum Love God,

I Iust tried it on 3.5 Gold, it keeps nagging at me to edit my profile even though I just did. I will leave it installed but disabled for now.

Signed,

Lost and Confused in Wisconsin.

weaver
09 Oct 2005, 19:05
I'm having the same issue. I tried the bug fix Marco suggested but that did not work.

calorie
09 Oct 2005, 22:55
@:Judge: - nope, this mod is for required profile fields.
@wolfyman - make sure to fill in all required profile fields.
@weaver - what bug fix did Marco suggest for this mod?

weaver
09 Oct 2005, 22:58
I was referring to this bug fix:

http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1020

Also, the gender profile field was my only required field other than the email and password which were both entered.

calorie
09 Oct 2005, 22:59
@weaver - oh okay, thanks.

calorie
09 Oct 2005, 23:53
@wolfyman and weaver - are you installing this mod as a product?
[ ACP > Manage Products > Add/Import Product > Import Product ]

wolfyman
09 Oct 2005, 23:59
@:Judge: - nope, this mod is for required profile fields.
@wolfyman - make sure to fill in all required profile fields.
@weaver - what bug fix did Marco suggest for this mod?

Every field on the page was filled in.

calorie
10 Oct 2005, 00:15
@wolfyman - just ran a test on 3.5 Gold and it worked okay for me. Not sure what to advise. Maybe delete/uninstall the mod, and then reinstall as a product.

wolfyman
10 Oct 2005, 00:17
ok, will try

wolfyman
10 Oct 2005, 00:25
ok, it was already installed as a product - I was pretty sure it was.

I figured out what happened though - the new field was gender, and it was set to editable only at registration.

Wich means anybody who registered after the field was added was being asked to edit something they couldn't edit.

:D

calorie
10 Oct 2005, 01:35
@wolfyman: Thanks for the info. Mod has been updated to avoid that issue.

weaver
10 Oct 2005, 01:39
ok, it was already installed as a product - I was pretty sure it was.

I figured out what happened though - the new field was gender, and it was set to editable only at registration.

Wich means anybody who registered after the field was added was being asked to edit something they couldn't edit.

:D

Yeah I thought of that too but when I changed that field to editable at any time, it still didn't fix it. I'll update with the newest copy though and maybe that will fix it. :)

wolfyman
10 Oct 2005, 01:42
@wolfyman: Thanks for the info. Mod has been updated to avoid that issue.

happy to help, thank you for the plugin. :)

weaver
10 Oct 2005, 01:45
I just uninstalled and reinstalled the updated version. It wouldn't work with it set to "edit only at registration". I did what wolfyman did and now it works.

calorie
10 Oct 2005, 02:16
@weaver: glad it's working. :)

If you set 'Field Required' or 'Field Editable by User' to something other than 'Yes' the mod will now ignore that profile field.

Loco.M
10 Oct 2005, 03:38
so not sure.. this is names product and the start of the thread says its a plug,
where is the user can edit profile option at ?
do i just upload as product ?


*edit*
I've dl, and uploaded as a product.
set up a new profile field,, checked the field is in the profile options.. i had clicked require user to fill out, and user editable.
am i missing something ?
even shanged the plugin in acp from the fix that was posted on the bug tracker.
I must be missing something

PennylessZ28
10 Oct 2005, 04:24
This was a very helpful hack. Thats for the excellent work.

ConqSoft
10 Oct 2005, 09:08
This won't let the user log out until they fill in their information either. Is that by design? If so, how can we allow them to log out?

Thanks

calorie
10 Oct 2005, 09:48
@Loco Macheen: userid one is not affected by this mod.
@HR3rdGen: thanks, glad you like. :)
@ConqSoft: just edit the following line...


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Allan
10 Oct 2005, 10:12
I will like to use this hack to force the members to update their profiles that when it want to download some attach files (extensions)

is it possible ?

calorie
10 Oct 2005, 16:16
@Allan: change the hookname from global_start to attachment_start and then use the following as the inner most if block:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Those two changes should make it so a member needs to fill out required, editable profile fields to download any attachment.

Allan
10 Oct 2005, 17:45
Thank Calorie, but i'm sorry, I not understand or I have to put this code :(

Would there be a means to choose the extensions clarify for the consideration of this hack ?

calorie
11 Oct 2005, 04:56
@Allan: you could try attachment_display as the hookname instead, and use something like the following:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Loco.M
12 Oct 2005, 07:01
i tested with id#'s other then admin
where do i see the " edit your profile" box ?
and i see it added the querry, but i just don't see the profile request ?

calorie
12 Oct 2005, 17:11
@Loco Macheen: install the mod as a product from the ACP and, on the profile fields you want to have filled out by users with userid greater than one, set 'Field Required' to 'Yes' and 'Field Editable by User' to 'Yes' for the mod to kick in.

phonexpo
13 Oct 2005, 21:08
Installed, good one. ;)

patsalko
13 Oct 2005, 21:21
thanks mate. this is a nice one!

futureye
14 Oct 2005, 07:54
thanks man i was looking for it

Devii
14 Oct 2005, 18:06
Very nice product, thank you for developing!

JagFan
17 Oct 2005, 21:42
Thank you! Nice! Installed - working great :)

bobs409
22 Oct 2005, 14:04
When I click the download link, I just get a page with code. Shouldn't I be getting an xml file?

Bob

TYorke
22 Oct 2005, 21:51
sorry for asking a dumb question here but what do I have to do to make an already-existing field required? like the MSN field for example?

calorie
26 Oct 2005, 03:09
@bobs409: try right click, save as, or left click, save to disk.

@TYorke: this mod is for ACP -> User Profile Fields where both 'Field Required' and 'Field Editable by User' are set to the 'Yes' option.

SpanishHarlem
26 Oct 2005, 03:26
When I click the download link, I just get a page with code. Shouldn't I be getting an xml file?

Bob



If you haven't figured this out yet. Right click on the file and save target as.

lionslair
06 Nov 2005, 13:30
Just what I needed thank you very much

Psionic Vision
12 Nov 2005, 20:06
Nice hack, but there is a "BIT" more code than required for this hack. Just about 21 extra lines of code that could be eliminated :)

calorie
12 Nov 2005, 22:01
@Dark Visor: sure, take out the three rows dealing with num_rows if you want, but for this hook location, try taking out the other eighteen rows and see what you get onscreen. ;)

Psionic Vision
12 Nov 2005, 22:10
Does it have to be in that hook location? :P

calorie
12 Nov 2005, 22:26
How many rows of vB code would be processed if it were in a different hook location? ;)

Psionic Vision
12 Nov 2005, 22:31
LOL. You're right. However, a lot of standard code is better than a little custom code :) Besides, it could be done as a code mod, then you would be able to choose the most appropriate place :) (do we always have to sacrifice performance for easiness of installation? hmm...).

cmiller1014
13 Nov 2005, 05:11
LOL. You're right. However, a lot of standard code is better than a little custom code :) Besides, it could be done as a code mod, then you would be able to choose the most appropriate place :) (do we always have to sacrifice performance for easiness of installation? hmm...).

Yes if you want our "friends" over at VB to support it. It's unfortunate, but they are such babies about hacks that I wont install anything unless its mod free.

Psionic Vision
13 Nov 2005, 12:39
Yes if you want our "friends" over at VB to support it. It's unfortunate, but they are such babies about hacks that I wont install anything unless its mod free.

How did we survive before 3.5.0 came out then?

banjolawyer
06 Dec 2005, 20:28
works great for me so far. Thanks.

fyjpm
12 Dec 2005, 22:44
Id like to see the users that decide to test how "required" this message really is by clicking around other links on the page to keep getting the same message screen instead of a blank html page. Can someone suggest a how-to?

Thanks,

John

ConqSoft
12 Dec 2005, 22:45
They should get the message no matter what part of vBulletin they try to browse to. They do on mine.

fyjpm
12 Dec 2005, 22:47
They should get the message no matter what part of vBulletin they try to browse to. They do on mine.

You know what I almost cross posted you because I was looking at the code and it does seem that they should keep getting it...I'm thinking its because I'm using CMPS that a blank screen is happening? I'll post back my findings, anyone else have an idea please reply.

Thanks guys!

-John

P.S. Obviously I clicked *INSTALL* and I love this hack. nuff said.

fyjpm
12 Dec 2005, 23:00
How can I get the members username in the error message like this:

"Dear so-and-so, you need to fill in the required field blah blah blah..."

Anyone?

Thanks,

John

fyjpm
12 Dec 2005, 23:45
post back my findings, anyone else have an idea please reply.

Ok I found ok that if you are running CMPS by vBAdvanced that you will not continue to get the errror message on anything besides the CMPS homepage if you have the following enabled in your other php files:

define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');

meaning that you are running vB inside of the CMPS system. I'm suprised no one has run across this yet as I thought lots of ppl used the CMPS product. Any how I still haven't figure out the solution, but I know that if I comment out those lines in all the .php files I edited it works.

Again, if anyone has any further insight that would save me some time, please reply. And thank you very much!

-John

Kuimera
13 Dec 2005, 00:28
I know this should be kind of hard request, but sometimes we get that kind of dumb users who dont know the hell what is a profile, and when that message shows, they tend to go to the profile and leave without changing anything...
Is there a way to show in the msg what are the new profile fields or something?

fyjpm
13 Dec 2005, 00:46
I know this should be kind of hard request, but sometimes we get that kind of dumb users who dont know the hell what is a profile, and when that message shows, they tend to go to the profile and leave without changing anything...
Is there a way to show in the msg what are the new profile fields or something?

Go to:

vB Control Panel > Languages & Phrases > Search in Phrases >

Search for Text :"zzz_update_profile" and tick the "Phrase Variable Name Only" box.

Now you can click "Edit", then click "Copy Default Text", and edit what you want to say to your users on the screen before they click "Edit Profile".

Worked for me!

-John

(P.S. LoL now I wish someone could answer my Q's too!~)

cbr929rrerion
13 Dec 2005, 01:25
I tried the install on 3.5 and get this message after login,



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



anyone have a fix?

Does it not add the phrase? Instrustion here seem vague? I installed the product and get the above error.. how do we fix this?

fyjpm
13 Dec 2005, 01:29
Looks like you are running vBAdvanced CMPS...make sure in your ./includes/functions.php file you have the code required from it...it looks like this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I tried the install on 3.5 and get this message after login,



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



anyone have a fix?

Does it not add the phrase? Instrustion here seem vague? I installed the product and get the above error.. how do we fix this?

cbr929rrerion
13 Dec 2005, 01:37
yes I have that



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



thats is in includes/functions.php

now what?

thanks for the quick reply also.

fyjpm
13 Dec 2005, 01:41
Do you have this at the top of your main forum homepage? (either forum.php or whatever you renamed it to...if you are not using CMPS as your homepage then look in index.php)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I think you need to just really go through the CMPS installation instructions and make sure everything is as it should be...this seems to be your trouble.

FWIW,

John

yes I have that



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



thats is in includes/functions.php

now what?

thanks for the quick reply also.

cbr929rrerion
13 Dec 2005, 01:46
I have this



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

fyjpm
13 Dec 2005, 01:50
Well if you named your CMPS page that displays all of Vbulletins pages to "forum" then you are ok with this part. You can check by going into Admin Control Panel > vBa CMPS > Edit Pages and look for "forum" if you don't see it then this is your problem and change that to what you do see there and see if that works. IF you do see it, then I'm getting at a loss for why its doing this for you...

-John

I have this



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

cbr929rrerion
13 Dec 2005, 02:04
ok... what should be named what?

it was named default, I renamed it to forum, still not work but the identifier is still default...

what where do I need to check?

Kuimera
13 Dec 2005, 02:41
So you have to change it manualy, every time I add a new profile field I go there and change in the text what I added, that a good idea.
Tks a lot, now plz ppl, anwser is questions :P

fyjpm
13 Dec 2005, 04:18
ok... what should be named what?

it was named default, I renamed it to forum, still not work but the identifier is still default...

what where do I need to check?

before we continue on, please make sure you've followed the instructions carefully at:

http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6

Then you just have to make sure that the :

<?php
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');

is the same as the module's identifier you created.

fyjpm
13 Dec 2005, 05:26
How can I get the members username in the error message like this:

"Dear so-and-so, you need to fill in the required field blah blah blah..."

Anyone?

Thanks,

John

"There's no help like self help" so in case anybody else wants get fancy like me find this line in the hook for this mod:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



change to this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Now in your Phrase manager search for : zzz_update_profile

change to



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



There. Personalized error message. ;)

-John

EDIT: see next post for combined features: http://www.vbulletin.org/forum/showthread.php?p=847554#post847554

fyjpm
13 Dec 2005, 06:29
I know this should be kind of hard request, but sometimes we get that kind of dumb users who dont know the hell what is a profile, and when that message shows, they tend to go to the profile and leave without changing anything...
Is there a way to show in the msg what are the new profile fields or something?

I modified the code to expose 2 additional parameters you can use in the zzz_update_profile phrase "{3}" (username) and "{4}" (list of required fields needing attention). So one could do something like this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Here's the modified "Force Profile Update" hook code: ( Plugin System > Plugin Manager > Hook Location: global_start )



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

fyjpm
13 Dec 2005, 08:15
You know what I almost cross posted you because I was looking at the code and it does seem that they should keep getting it...I'm thinking its because I'm using CMPS that a blank screen is happening? I'll post back my findings, anyone else have an idea please reply.

Thanks guys!

-John

P.S. Obviously I clicked *INSTALL* and I love this hack. nuff said.

FIXED this issue with vBA CMPS: see my self-answering thread here:
http://www.vbadvanced.com/forum/showthread.php?p=74589

But here's the quick fix:

add:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



right before:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

cbr929rrerion
13 Dec 2005, 22:24
Im sad to say I wish I could get it to work but I cant, I named the part in the index.php file the same as the identifier and all else checks out.. I guess I cant use this

fyjpm
13 Dec 2005, 23:09
Im sad to say I wish I could get it to work but I cant, I named the part in the index.php file the same as the identifier and all else checks out.. I guess I cant use this

PM me with your login info, I'll take a look for you... we can finish this in instant messenger or PM.

ConKien
19 Dec 2005, 09:14
Is there a way to force users to pick their avatar OR upload their profile's picture?

*Click Install*

EricaJoy
02 Jan 2006, 00:27
/me clicks install

CodeRed
05 Jan 2006, 14:54
this is a newbie question...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



what do i need to add to that code in order to multiple lines of text...

ex:

Hello,

Please take a second to update your profile with your current "Location" by clicking here. Once the profile is updated you will be returned to the forum yada yada etc etc..

Thank you,
Administrator.


forgive me for im a complete noob when it comes to coding etc... hehe

thanks in advance!

ConqSoft
05 Jan 2006, 14:57
Edit the phrase in the Phrase Manager and you can make it say anything you like.

CodeRed
05 Jan 2006, 15:43
got it thanks...

i didnt even know there was a 'phrase manager' !!

goes to show how much of a noob i am... hehe took me like 5 minutes to find it. :nervous:

thanks!

trancetopia
08 Jan 2006, 18:42
Hi,

I've finally got round to installing this hack and it seems to be working apart from one odd thing. When a member is warned they need to fill out some details, it takes them to their profile edit options page but in a floating layer, it loads the forums again in this layer. I'll get a screenshot of this in 5.

What is causing this to happen or better still how can I fix it?

NexDog
11 Jan 2006, 13:00
Perfect. Installs. :)

Alfa1
11 Jan 2006, 19:44
Many of my members have not filled in their age. This is obligatory for new members. Can I use this hack to get my existing members to fill in their age? If so how do I proceed after installing it as a product?

IrPr
16 Jan 2006, 19:17
Hi,

I've finally got round to installing this hack and it seems to be working apart from one odd thing. When a member is warned they need to fill out some details, it takes them to their profile edit options page but in a floating layer, it loads the forums again in this layer. I'll get a screenshot of this in 5.

What is causing this to happen or better still how can I fix it?

same here :(

Darth Gill
21 Jan 2006, 13:22
same here :(
Ugh, how do you fix this? 3.5.3

mustang_lex
28 Jan 2006, 03:13
Does anyone have this hack for us old school 3.0.X people. I see the hack for 2V and 3.5 is there a way to mod this one for 3.0.X (mine is 3.0.7)

bulbasnore
30 Jan 2006, 18:39
Hmm. Kinda stalling on installing til I find out if the fix is in for the 'reloads home page in profile' issue. :squareeyed:

JayJay
02 Feb 2006, 11:47
same here :(

This is happening to me also.

calorie
02 Feb 2006, 17:48
FYI: added a vB 3.5.3 version of the mod

dutchbb
03 Feb 2006, 20:29
calorie: great hack

something in the line of this, and it would also be very appreciated: when the administrator updates the board rules for example, redirect to a rules page with a checkbox on the bottom to agree with the rules and then a button with redirect to the forumhome again.

Mikecp421
04 Feb 2006, 01:17
nice, thanks!

libertate
04 Feb 2006, 02:10
This is very nice.

It is unfortunate about vB CMPS issues, but once that's fix I will definitely use it!

XtremeOffroad
04 Feb 2006, 02:34
Hi,

I've finally got round to installing this hack and it seems to be working apart from one odd thing. When a member is warned they need to fill out some details, it takes them to their profile edit options page but in a floating layer, it loads the forums again in this layer. I'll get a screenshot of this in 5.

What is causing this to happen or better still how can I fix it?

I have the same issue.
Disabled till a fix is found

lanc3lot
04 Feb 2006, 20:04
Can u add a feature on this, to use usergroups instead of users ? I mean to ask specific usergroups to fill specific profile fields, not all of them...

Thnx:)

bada_bing
04 Feb 2006, 23:28
I like the usergroup idea...

SnickersTK
05 Feb 2006, 11:52
yep, me too (usergroup)

but which one of the xml should I install when using verson 3.5.2? LOL

IrPr
07 Feb 2006, 07:39
Thanks for Update Calorie;)

bada_bing
07 Feb 2006, 12:39
Any news if this hack will have usergroup permisions?

TECNiA
09 Feb 2006, 20:03
Thanks calorie, this is a really helpful plugin, we very much appreciate it mate!

o0Hubba0o
12 Feb 2006, 15:35
Installed and working great, this should be a vB default feature. ;)

Chris-777
12 Feb 2006, 15:46
Is there a way to change this from requiring, to constantly nagging instead? :)

Aeolian
19 Feb 2006, 22:47
added the plugin.. added an extra field in user profile....
but when i logged in to forum the script din ask me to fill in that field...
am i missing anything?

farhanAG
20 Feb 2006, 11:46
what would i need to change if i want to apply this plugin for a specific usergroup?

should i change:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



on a side note, where could i get details on the $vbulletin array?

thanks in advance

Mr Chad
28 Feb 2006, 23:37
Workin on 3.5.4 :)

Stangsta
01 Mar 2006, 00:09
Is there a way to change this from requiring, to constantly nagging instead? :)I have an alternative in my signature that is annoying, rather than requiring. It doesn't confuse new members.

Joey805
12 Mar 2006, 17:51
How would we be able to force members to fill out their birthday?

meissenation
14 Mar 2006, 22:15
I've had many members complain since I installed this plugin that it screws up their browser window when they try to edit their profile. I've narrowed it down that this only occurs if they registered on the message board BEFORE switching to vbulletin and their userinfo was imported, thus no birthday field. When they try to edit their profile by being forced to update, they get a window over it and it makes it so they can't actually update it.

CodeRed
22 Mar 2006, 20:29
I have this hack installed and I have found it very useful… I currently have a new issue that I would like some feedback on.

Like I said I currently have the hack installed to prompt users to fill in the LOCATION field but I would also like to add a required field (first and last name) at the point of registration from here on out leaving the original existing members to be “grandfathered” in meaning they do not have to fill in that new custom field when visiting to the site.

Is that possible?

Any help is greatly appreciated. Thanks

Mдяc
01 Apr 2006, 02:26
thanz !

Stangsta
01 Apr 2006, 03:07
I've had many members complain since I installed this plugin that it screws up their browser window when they try to edit their profile. I've narrowed it down that this only occurs if they registered on the message board BEFORE switching to vbulletin and their userinfo was imported, thus no birthday field. When they try to edit their profile by being forced to update, they get a window over it and it makes it so they can't actually update it.[shameless plug]

You can try the one in my sig, its less intrusive and doesn't force the user, only annoys them.

[/shameless plug]

arossphoto
11 Apr 2006, 16:44
I've had many members complain since I installed this plugin that it screws up their browser window when they try to edit their profile. I've narrowed it down that this only occurs if they registered on the message board BEFORE switching to vbulletin and their userinfo was imported, thus no birthday field. When they try to edit their profile by being forced to update, they get a window over it and it makes it so they can't actually update it.

I was just about to install this, and then I read this post. I have imported an Ikonboard forum and real names where not imported, so I when I go live I want to force members to fill in this field. Am I going to have problems?

Thanks.

SHalliday
11 Apr 2006, 18:21
Thank you for such a great plugin! Installed without a problem.

arossphoto
12 Apr 2006, 18:12
I was just about to install this, and then I read this post. I have imported an Ikonboard forum and real names where not imported, so I when I go live I want to force members to fill in this field. Am I going to have problems?


I just installed and test it with members imported from ikonboard and new members created after the import and everything works fine in both IE and Firefox.

The only glitch I saw was two nav bars when the page first loads as you can see in the attached image.

arossphoto
13 Apr 2006, 03:15
The glitch I referred to above has nothing to do with this plugin. I noticed it was happening with other vBulletin messages and traced it a modification I had installed to ad right column using vBadvanced CMPS.

Great plugin by the way. Installed with one click!

Zachariah
17 Apr 2006, 22:44
Ideas Sir.

Have the profile area field with a Star * next to required fields or hi-light it some color .

Konstantinos
22 Apr 2006, 16:38
can u plz update this for 3.5.4 ?

ShadowOne
24 Apr 2006, 16:47
this does work on 3.5.4.... but it causes my members not to be able to login...at all even after they change it, but when i tested it...it worked...

dutchbb
24 Apr 2006, 17:28
Ideas Sir.

Have the profile area field with a Star * next to required fields or hi-light it some color .
Good idea!

haytham
04 May 2006, 14:44
Tried to try it but after telling me to eedit my profile it told me my password was old and had to be changed. If I click to change , the message keeps comming back and nothing happens. I am stuck on the " change your password" page. Any ideas?

Tralala
04 May 2006, 22:54
Is there a way to force users to pick their avatar


I came here wanting to ask the same question. Can this be used to force folks to pick (or upload) an avatar? That's precisely what I am looking for, but don't know how to make this work with that "field."

Sculli
05 May 2006, 08:02
Anyone have this properly working under 3.5.4?

vinzphua
13 Jul 2006, 04:24
I have it on 3.5.4. No complaints so far.

Neo_obs
01 Aug 2006, 08:46
using it and its awesome but how hard would it be to make it check for birthdate instead of a profile field?

rady
02 Aug 2006, 13:45
i instelled it but it doesn't work.. does it need activation or something?
i'm on 3.5.4

Neo_obs
02 Aug 2006, 16:13
I used it on 3.5.4 and it worked flawlessly. Which version did you use? and are you sure you have a required profile field?

rady
02 Aug 2006, 17:34
product vB353 force profile update 1.xml

this is the product i downloaded. i installed it from the product manager and i am pretty sure that new registrations require birthday.
i went to my profile and cleared by DOB. after that i logged out and when i logged back in it didn;t required me to do anything. I also tried it with a test account, that has no admin/moderator proviledges

Neo_obs
02 Aug 2006, 18:31
it doesnt work on birthdates only the custom required fields

we were trying to use it for the same thing but now have resolved to making a custom field asking if they were over 18 and just trusting the members. Also if you make it in the same area as the DOB it makes them enter a DOB

rady
02 Aug 2006, 19:03
how exactly do i ask fro DOB? what are the steps?

Neo_obs
03 Aug 2006, 02:32
well we created a new radio field called "Are you 18 years of age or older?" with two options Yes and No. We made it a required field which is editable at anytime and placed it in the edit profile area. We also have DOB set up and only editable on register. Now if someone already has registered and has entered their DOB this hack will force them to go to the profile page and they have to fill out both DOB and and the new custom field.

Kuimera
30 Aug 2006, 11:51
Does this work on 3.6 ?

VTXCafe.com
31 Aug 2006, 02:11
I came here wanting to ask the same question. Can this be used to force folks to pick (or upload) an avatar? That's precisely what I am looking for, but don't know how to make this work with that "field."

Same here...I made the edits but it keeps asking me to make them again, can't view the forum till I disabled it.

WoodiE
04 Sep 2006, 21:04
Does this work on 3.6 ?

No need to install this on 3.6 - it's built into it.

Loco.M
18 Oct 2006, 19:52
No need to install this on 3.6 - it's built into it.
where at ?
I added some profile fields after about 100 users have signed up, and they are required fields. yet no one is updating..

thank you

RaceJunkie
03 Nov 2006, 14:55
No need to install this on 3.6 - it's built into it.

Yea where at?:confused:

bulbasnore
09 Jan 2007, 03:39
If you go to the "User Profile Fields" => "User Profile Manager" and edit one of your fields, then you'll see these options:

Yes, at registration and profile updating - User will be required to complete this field at registration and when updating their profile.

Yes, always - User will be required to complete this field at registration. Enabling this setting will force all users to complete it before they can continue using your forum.

No - Completion of this field is optional.

No, but display at registration - Completion of this field is optional but it will appear at registration.Yes, at registration and profile updating - User will be required to complete this field at registration and when updating their profile.


Since I installed vb3.6:

*clicks* uninstall

Ski-Whiz
10 Jan 2007, 04:07
If you go to the "User Profile Fields" => "User Profile Manager" and edit one of your fields, then you'll see these options:



Since I installed vb3.6:

*clicks* uninstall

But it doesn't force them to update that field until they want to touch their profile.

I just created a field, using that in 3.6.4, and I can do as I please..

This hack forces members to update this "new" field before moving onto anything..

Correct me if I'm wrong..

jwashburn
10 Jan 2007, 20:43
I cant seem to get the required field for old users to work either

VTXCafe.com
13 Jan 2007, 08:37
**** To get this to work with the Date of birth Field ****

First I made it mandatory for members to fill out their age. Then I simply added a new profile field that asked their age range, I added several and made them also mandatory. Then when this Plugin makes then edit the custom field they are now in their profile and they have to edit their date of birth also.

Sorry if this may have been posted, saw it asked several times and may have missed this solution.

provedel
02 Jul 2007, 22:29
Its works on 3.6.7?

Bro_Joey_Gowdy
31 Jul 2007, 20:28
Any updates for vb 3.6.8 ?

BreezeDK
06 Aug 2007, 13:36
this doesnt look like it works for 3.6.8..

edit:
i take it back, it suddenly started working for no apparent reason!

Roonie
02 Oct 2007, 01:09
this doesnt look like it works for 3.6.8..

edit:
i take it back, it suddenly started working for no apparent reason!

How did you do?

I can not manage to success!!!! :(

haytham
27 Oct 2007, 12:08
works on 3.6.8 great. Thaaaaaaaaaaaaaaanks. Just imported the 3.5.3 as a product checked my profile fields as being required and editable and all is good.

Bro_Joey_Gowdy
07 Jan 2008, 09:54
Any updates for 3.7.0. ??

TheoMessinis
30 Jan 2008, 10:56
works 100% in 3.6.8.PL2

Davey-UK
01 Feb 2008, 10:39
Any updates for 3.7.0. ??

Same here, i really need this one.

rolandogomez
14 Mar 2008, 01:25
Does this work for 3.7B6? Would love to know. Thanks, rg.

Boofo
14 Mar 2008, 01:57
Why don't you guys try it and let everyone else know if it works?

rolandogomez
14 Mar 2008, 02:27
Yeah, last time I did that, I had to hire a programmer/coder to fix it, I'm not a programmer, or coder, but a bit of a webmaster, and sometimes I get in over my head. I've hired at least three coders or more from here in the past two weeks. I don't mind paying, but with five kids, I have to watch the pennies too. (grin) You guys are the experts, I prefer to hear it from you so I don't break things again. I know enough html to be dangerous.

BTW, as a former Army Soldier and Desert Storm vet (my bio at Wiki (http://en.wikipedia.org/wiki/Rolando_Gomez)), I always love seeing your signature. Thanks, rg sends! (sends is a military old commo thing, fyi)

Boofo
14 Mar 2008, 02:34
As with most products, if it doesn't work, I disable it and then uninstall it. I haven't tried this yet as I'm not fond of the hack. I keep getting nailed with it on test boards when I am trying to help someone fix something. Very frustrating. ;)

Thanks for the sig comment. Not many notice that or even know what it means. And yes, sir, I know sends. 'Nam Vet here. ;)

rolandogomez
14 Mar 2008, 03:17
Thanks, I will keep that in mind. I salute you for your service too, in my blog I always mention our veterans, past and present and never fail to say thanks to service members in uniform when I travel. Sometimes I miss, sometimes I don't, but I don't regret it either. Thanks, and I do love all the help you give here, I've read many hacks/mods, some I've installed, other's I haven't, but I see your interaction a lot and that helps. All the best, rg sends!

Boofo
14 Mar 2008, 03:31
I don't have a real life. ;)

Thank you for the nice words. It's hearing things like that that make it all worthwhile. ;)

NeuroLancer
14 Mar 2008, 06:12
3.7? Am I missing something here? vBulletin 3.7 already does this. Just set the field requirement to "Always". When an existing member logs in, they get a message and it will take them to the page they must edit.

Boofo
14 Mar 2008, 06:15
Cool! Thanks! I didn't know that. That's what I get for going from 3.5 to 3.7. ;)

Lionel
18 Mar 2008, 22:01
3.7? Am I missing something here? vBulletin 3.7 already does this. Just set the field requirement to "Always". When an existing member logs in, they get a message and it will take them to the page they must edit.

That does not apply to admin? I did like you said, logged out and logged back in as admin, and nothing ...

futureye
19 Aug 2009, 17:40
even when I uninstall the product its still apper