Help,, Please

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

Help,, Please

Post by crazy_carl »

I guess the best way to ask this is just to ask. First I have NO experience in PHP.
And the descriptive language just frustrates me to no end.

Question:
How do I change the "I agree 13" to "I Agree 18" when someone tries to register.

Please keep it simple, I have been trying to do this for 12 days. With and with out downloaded editors... They are scary!

Thank you in advance for any help
CC
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it's either in the register.php file or in the lang_main.php file... I'd imagine it's in the latter..

Moved to PHP - Code.
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

Post by crazy_carl »

feyd wrote:it's either in the register.php file or in the lang_main.php file... I'd imagine it's in the latter..

Moved to PHP - Code.
Thank you for the reply/answer but that doesn't help. Even if I knew where to look, I wouldn't know how, or what to use to change it.

And that is really my question, where is what ever I have to change, and what do I need to change it.

Thanks for trying though
CC
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

a simple text editor.. like notepad is all that's needed.. my local copy of phpbb has the lines located in and at:

Code: Select all

language/lang_english/lang_main.php:644:$lang['Agree_under_13'] = 'I Agree to t...
language/lang_english/lang_main.php:645:$lang['Agree_over_13'] = 'I Agree to th...
changing the text from those two lines (simply search the file for 'Agree_under_13') replace the sentance/html contained within the string with whatever you wish.. and you should be good to go.
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

Post by crazy_carl »

feyd wrote:a simple text editor.. like notepad is all that's needed.. my local copy of phpbb has the lines located in and at:

Code: Select all

language/lang_english/lang_main.php:644:$lang['Agree_under_13'] = 'I Agree to t...
language/lang_english/lang_main.php:645:$lang['Agree_over_13'] = 'I Agree to th...
changing the text from those two lines (simply search the file for 'Agree_under_13') replace the sentance/html contained within the string with whatever you wish.. and you should be good to go.
Thank you for your time and effort, and I do mean that.
But when I change the 13 to 18, save and upload the file, the 2 lines no longer are there.

I think the answer is to write a page in html, and hyperlink it to the Forum. I have crashed this mess 5 times trying to get things to work, and I'm not sure i am qualified to figure it out even with the best of help.

Again, Thank You,, Oh that noice, that was me banging my head on the desk in frustration. :oops:
Crazy_Carl
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Post the relevant code to what you've changed.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

The simplest thing is to probably only change the 13 to 18 after the equal sign, while not changing the one inside the []'s. That way the later parts of the code that look for the string still find it and just displays the new information.
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

Here is the Code

Post by crazy_carl »

This is from the "agreement.tpl{REGISTRATION}</th>
</tr>
<tr>
<td class="row1" align="center"><table width="80%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td><span class="genmed"><br />{AGREEMENT}<br /><br /><br /><div align="center"><a href="{U_AGREE_OVER13}" class="genmed">{AGREE_OVER_13}</a><br /><br /><a href="{U_AGREE_UNDER13}" class="genmed">{AGREE_UNDER_13}</a><br /><br /><a href="{U_INDEX}" class="genmed">{DO_NOT_AGREE}</a></div><br /></span></td>
</tr>
</table></td>
</tr>
</table>

This is from the lang_main.php

clicking Register below you agree to be bound by these conditions.';

$lang['Agree_under_13'] = 'I Agree to these terms and am <b>under</b> 13 years of age';
$lang['Agree_over_13'] = 'I Agree to these terms and am <b>over</b> or <b>exactly</b> 13 years of age';
$lang['Agree_not'] = 'I do not agree to these terms';


If I change any of the above text / code? the lines to click disapear.

If I change any of the Disclaimer text, the forum crashes.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

try:

Code: Select all

$lang['Agree_under_13'] = 'I Agree to these terms and am <b>under</b> 18 years of age';
$lang['Agree_over_13'] = 'I Agree to these terms and am <b>over</b> or <b>exactly</b> 18 years of age';
$lang['Agree_not'] = 'I do not agree to these terms';
Don't bother changing the var name Agree_under_13 because it can turn other themes incompatable.
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

Not my thing

Post by crazy_carl »

I would like to Thank All that have offered help on this.

I have decided to look for a commercially available software.

My reason for this is I want something that is, Up & Running without a need to rebuild it. I made the changes suggested and it looked like it worked, untill I got an email that no one could join because it took out an other part of the system.

I know this is open source, although I am not sure I comprehend exactly what that means.. What it has ment to me is utter frustration.

I do want to thank all that tried, and I do mean that.

Again Thank You Very much
Crazy_Carl
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the changes should not have affected any other areas of the forum.. the only change should have literally been the strings. No index or variable name changes..
Post Reply