gowireless
09-14-2004, 06:19 PM
Hello All,
I hope this is the correct forum for this.
I'm looking to change the default "rules" (the set of rules that you have to accept to obtain an account), on an invision board and I cannot for the life of me figure out how to change them.
If you have any experience on this I would greatly appreciate it. We have searched the IPB site with no luck on this.
Thanks :)
vision3
09-14-2004, 06:43 PM
open lang/x/lang_registration.php
x: Your language forder.
and find:
'click_wrap' =>
That whole straight line is the aggreedment stuff. Remeber to keep it with in the quotations.
gowireless
09-14-2004, 11:11 PM
Hey, thanks so much Vision!
gowireless
09-14-2004, 11:50 PM
Well, I tried to edit it, but I guess my rules section isn't word wrapped properly. The rules portion is kinda large and i've tried to format it to work that way.
Do you know if you can put a line of code in there to pull from a text file or an html doc or something?
vision3
09-15-2004, 07:14 AM
there is a way. ill look into it when i get back from work :). Or better yet have you taken a look at http://invisionize.com ? You may want to ask them too.
gowireless
09-16-2004, 12:18 PM
Haven't received an answer over at Invisionize yet...thanks again guys...if anyone know how to do this, please let me know. Thanks :)
vision3
09-18-2004, 10:21 AM
Ok try this
Make a file called rules.txt and upload this file to your forum directory.
Then make a backup of this file under sources folder: Register.php
Then:
OPEN: /sources/Register.php
FIND
$this->output .= $this->html->ShowForm( array( 'TEXT' => $ibforums->lang['std_text'],
'RULES' => $ibforums->lang['click_wrap'],
'coppa_user' => $coppa,
) );
Replace With
$rules = file('http://www.yoursite.com/forum/rules.txt');
foreach ($rules as $line_num => $line) {
$rules2 = htmlspecialchars($line);
}
$this->output .= $this->html->ShowForm( array( 'TEXT' => $ibforums->lang['std_text'],
'RULES' => $rules2,
'coppa_user' => $coppa,
) );
Change the link where it says www.yoursite.com to your site
Save & Close
Now you may add any text in the rules.txt file you created and it will appear in the registration form.