Ok.
Step 1:
Open your file
functions.php (you can find it in the map
functionsThen you check if you have this code in it :
If you have this code, then you can continue to the next step. If not, then add this function to the file.
Step 2:
Open your
index.php (the one you can see in the root)
And check if you see this code
- <?php
- require ('functions/config.php');
- require ('functions/functions.php');
Step 3:
Open your
user.php, and add this
- <p>Donation points: <?php user(nb_donation); ?></p>
where you want to display the number of donation points.
Here is the
user.php like it should be :
- <?php
- /*
- DynastyCMS
- Copyrigt (C) 2007 dynastycms
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
- if(!session_is_registered(User_Name)) {
- die('You must log in you noob!');
- }
-
- if(!session_is_registered(User_Pass)) {
- die('You must log in you noob!');
- }
-
- ?>
-
- <form action="?op=edit-char" method="post">
- <p align="center" class="b01">Welcome: <?php echo $_SESSION['account']; ?><br />
- <br />
- <br />
- <p>Donation points: <?php user(nb_donation); ?></p>
- <br />
- <em><br />
- </em><a href="?op=password">Change Password</a><br />
- <a href="?op=cuser-delete">Delete my character</a><br />
- <a href="?op=delete_acc">Delete my account</a><br />
- <a href="?op=change_class">Change my class </a><br />
- <a href="?op=logout">Logout</a></p>
- </form>