SafariAl wrote:got it to work by re-uploading rules.php
anyway what I'm getting now is this after the mysql:
- Code: Select all
#1062 - Duplicate entry '1-1' for key 1
i know this has to do something with the field ID but i've only got one custom profile field (the rules one) so i left it at 1.
That is okay your are almost good to go. Don't worry about the sql query, the ACP has inserted the query already. Now to get a link to your rules from the Registration page, you need to work with your database.
1.open up your database in phpmyadmin
2.On the left, look for the table phpbb_profile_lang and click on it.
3.Click on Browse
4.Click on the pencil(edit) on the row with lang_name "Do you agree to our rules?" (if this is your only custom profile it should be field ID 1)
5.Now there will be a big box under the value column and the row to look for will be language explain. If you followed the DIY instructions in making the custom field it will have "Click to display" in it. You can click in that box and replace those words with
<a href="http://YOURSITE.COM/YOURFORUMDIR/rules.php" target="_blank">Click to display them</a>
Don't forget to replace Yoursite.com with your forum url and directory
6.Click on "Go" to run the database update.
Now go to your forum(make sure you are logged out) and test to see if you can click on the words Click to display to see if the rules open up in a new window for you. If not double check your url to the rules page in the database.