Page 1 of 1

Help,, Please

Posted: Sat Aug 13, 2005 10:12 pm
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

Posted: Sat Aug 13, 2005 10:17 pm
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.

Posted: Sat Aug 13, 2005 10:39 pm
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

Posted: Sat Aug 13, 2005 10:52 pm
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.

Posted: Sun Aug 14, 2005 8:46 am
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

Posted: Sun Aug 14, 2005 9:54 am
by John Cartwright
Post the relevant code to what you've changed.

Posted: Sun Aug 14, 2005 10:03 am
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.

Here is the Code

Posted: Sun Aug 14, 2005 10:51 am
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.

Posted: Sun Aug 14, 2005 11:20 am
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.

Not my thing

Posted: Mon Aug 15, 2005 9:53 am
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

Posted: Mon Aug 15, 2005 10:19 am
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..