Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
Rick can you take a look at the code for asking the users age at time of registration. I seem to be getting a PHP error when I turn that on and a person tries to register.


Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
What is the error you're recieving?


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: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
Parse error: parse error, unexpected ':' in /home/clickteam/public_html/epicenter/languages/english/adduser.php on line 4


Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Please open your languages/english/adduser.php file and the top portion should look like (from UBB.Threads7.0, lines 0-4):
Code
<?php
$ubbt_lang['EMAIL_NO_MATCH'] = "The email address you supplied does not match in both fields.  Please carefully re-type your email address.";
$ubbt_lang['PASS_BODY'] = "Thank you for registering on our forums at {$config['FULL_URL']}/ubbthreads.php . For your records, your login information is as follows: \n\n
Username: %s \n
Password: %s";

Last edited by Gizmo; 11/01/2006 5:24 PM.

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: Jun 2006
Posts: 106
member
member
Joined: Jun 2006
Posts: 106
Thanks its all fixed up smile

Something weird must have happened when I upgraded to 7.0.1

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
The strings likely where upgraded, you may want to open up that language file and be sure it has complete lines (no errors); something oculd have hiccuped during the upgrade (posibly).

Keep in mind that what i included was from 7.0 and not 7.0.1 so I'm not sure what was updated wink...


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: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
It looks like the file was updated to:
Code
<?php
$ubbt_lang['searchfilename'] = "";
$ubbt_lang['EMAIL_NO_MATCH'] = "The email address you supplied does not match in both fields.  Please carefully re-type your email address.";
$ubbt_lang['PASS_BODY'] = "Thank you for registering on our forums at {$config['FULL_URL']}/ubbthreads.php. For your records, your login information is as follows:\n\nUsername: %s\nPassword: %s";
$ubbt_lang['BAD_LNAME'] = "You can only have alphanumeric characters (A-Z, 0-9 and underscores) in your username.";


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: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
I got the above also,
now adding gizmo's fix smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Humm...

Ive just checked my file but i cant see anything diffrent?
what's changed to fix this as i get the same error.

Line 4 ??

I think this should be moved to the Bugs Forum smile

Ive had to switch off the age check for now.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
I think there is a double somthing this is what i have.

Code
$ubbt_lang['EMAIL_NO_MATCH'] = "The email address you supplied does not match in both fields.  Please carefully re-type your email address.";
$ubbt_lang['PASS_BODY'] = "Thank you for registering on our forums at {$config['FULL_URL']}/ubbthreads.php. For your records, your login information is as follows:\n\nUsername: %s\nPassword: %s";
Username: %s \n
Password: %s";

I think this needs to be removed from the last long line? (line 4)

Code
Username: %s\nPassword: %s

??

Let me know and i can ammend the file please cheers smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yes, it appears that in some cases where a language string spanned multiple lines it messed it up a bit. So the extra strings that just seem to be in the middle of nowhere need to be removed.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
The easiest way to fix this if you haven't done any changes to the adduser.php language file is to just copy over the full adduser.php language file from the 7.0.1.zip file

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by Rick
The easiest way to fix this if you haven't done any changes to the adduser.php language file is to just copy over the full adduser.php language file from the 7.0.1.zip file


Yeh, thats why I made sure to provide the first 4 lines of the 7.0.1 adduser.php lol


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: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Will do smile

Mine was an upgrade from 7.0 to 7.01

Hope that helps,
thanks for the fix.


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Works a treat smile smile smile


BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 1,165 guests, and 234 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)