Previous Thread
Next Thread
Print Thread
Hop To
#256114 11/18/2014 7:04 PM
Joined: Oct 2006
Posts: 358
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
I was just informed that my site is forcing people to ACCEPT the "Board Rules" TWICE. Once immediately after they click on REGISTER and then again after they complete the application form. Wow.

I just created two new accounts and verified that this is happening - and both "Board" statements are the same.

Can't find anything in the CP to modify this.

Any suggestions? Thanks.


--BIll B
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
search your admin section for "Board Rules"
this is what it is named. there are two settings for these, one for new registrations (UBBT default is set to YES) and one is at first login after registration approval and the user signs in for the first time (UBBT default as OFF)



Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
control panel > registration settings
"force users to accept rules on next visit?" (at the bottom) uncheck this.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2006
Posts: 358
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
Thanks.
Just to clarify... I DO want them to accept the Rules ONCE -- but not twice.

Under control panel > registration settings, the box is UNchecked. I've never had it checked.

I see the BOARD RULES section at the bottom of the REGISTRATION SETTINGS page and this is the text that is presented both times. (Previously I tweaked it to make sure that both instances are coming from here - and they are.)

But -- again, I don't want to do away with the Acceptance of Board Rules, I only want it to prompt them ONCE.

???


--BIll B
Joined: Oct 2006
Posts: 358
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
Quote
search your admin section for "Board Rules"
this is what it is named. there are two settings for these, one for new registrations (UBBT default is set to YES) and one is at first login after registration approval and the user signs in for the first time (UBBT default as OFF)

Thanks. This is sort of what I remember too... but I'll be danged if I can find it. I even searched using "Languages" and only found it in two places - one which appears to be used in both displays.


--BIll B
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by Bill B
Just to clarify... I DO want them to accept the Rules ONCE -- but not twice.
Yeah, this feature is for when you change your rules and want members to re-agree to them.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2006
Posts: 358
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
It would appear that there is no Admin setting to change this... So now I probably need to go in and rem-out a line of code in the http://vcca.org/forum/ubbthreads.php/ubb/newuser
page.

Any last thoughts before I hack it? :-)


--BIll B
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
"REM" - another BASIC programmer from the 80s era?
If so, cheers to you cool


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
I just created an account on your site and saw first-hand exactly what you're dealing with.

Three places to look within:

---
1.
Could you load your scripts/boardrules.inc.php and confirm that it matches the same information that is in the stock UBBT 7.5.8 boardrules.inc.php

The key I am looking at is, "USER_RULES_ACCEPTED" -- for some reason, during the newuser registration, it's not setting a date (or a "0") within your ubbt_USERS.USER_RULES_ACCEPTED database table.

---
2.
Revisit: Control Panel > Registration Settings
Toggle ON "Force users to accept rules on next visit?" (at the bottom). Submit the page.
Now toggle it back OFF again. Submit the page once again.

When you have this box checked-ON, a DATE (of acceptance) is entered in ubbt_USERS.USER_RULES_ACCEPTED database table; otherwise it should usually have a "0" in it.

---
3.
If you believe you've tried everything and still nothing is working for you, the bit of code that is causing the Board Rules to be displayed again is located within /ubbthreads.php (root of your forums directory) near line 256.

Code
	// Does this user need to accept the board rules?
	if ((($user['USER_RULES_ACCEPTED'] < array_get($config, 'FORCE_RULES', 0)) && $ubb != "boardrules" & $ubb != "logout") && $user['USER_ID']) {
		$html->give_rules();
		exit;
	} // end if

Last edited by id242; 11/19/2014 3:03 AM.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
SIDE NOTE: LOL @ the "// end if" REMarks all over the stock UBBT code.

Joined: Oct 2006
Posts: 358
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
Thanks.... I just tried number 2 -- thought about that earlier today.

a) Checked it and saved (Submit)...
b) came back and there's NO check-mark -- so saved it again WithOut the mark.
c) Created new account. It still required TWO approvals. Dang it.

New topic.
Looked at the database. in the two accounts that I created this afternoon, ONE of them had a date in the USER_RULES_ACCEPTED field - and- the other account has a "0". And they both required double acceptance. Interesting.

I need to hit the sack... have to attend a 3-year-old's dance recital at 8:30 am about 25 miles away tomorrow.... !!! Don't ask. :-)

I'll tackle this tomorrow. A million thanks for the suggestions and code reference.

REM You're a good guy.



--BIll B
Joined: Oct 2006
Posts: 358
enthusiast
enthusiast
Joined: Oct 2006
Posts: 358
A followup.

I looked at Option 1 above. The file was original with no modifications to it.

As I stated earlier, Option 2 didn't fix it -- although it forced all of my users to now accept upon their next visit!!! And I only had it checked for one minute. Ha!

So, on to Option 3. I remarked-out the lines that seek the second approval. //
This worked! I just created a new account and only had to approve the RULES once.

I'm currious as to whether anyone else has ever notice this?
Or is there something in my MySQL that isn't working properly? I did upgrade during the summer. Arghhhhh......

Thanks a million id242 for the support. Hopefully this will cut down on some of the support calls that we get!!!


--BIll B

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 458 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)