Tutorials

Adding text to displayed name

This tutorial will show you how to add some text to the member names displayed on your members.php and country.php pages. For example, you could change it to the following (instead of just the names):

Ann loved it
Anna loved it
Annie loved it

You will need to slightly edit both members.php and country.php for this.

Open both files up in your HTML editor.

Find lines 37 - 38 in members.php and lines 40 - 41 in country.php, looking like this:

echo "<td>[$id]</td>
<td>$name</td>";

Change them to:

echo "<td>[$id]</td>
<td>$name loved it</td>";

You can (obviously) replace "loved it" with any text you’d like, but don’t use any quotes ( " ) or you will get an error. :)

Comments

Error Comments are closed for this entry.