Newbie Spellweaver
- Joined
- Oct 1, 2019
- Messages
- 12
- Reaction score
- 0
Hello dear friends of ragezone today I have a problem that I would like someone to help me, I want to activate my players from the server administration, but I do not know how to do it nor do I know what php code I need to place, I have the file on Admin/Templates/notregistered .tpl, but I wish that someone could modify it to be able to activate the server administration players, if someone help me I can offer a pay reward through paypal,I use the version t3.6 8.0.0
THIS IS THE FILE notregistered.tpl:
<table cellpadding="1" cellspacing="1" id="member"> <thead> <tr> <th colspan="10">Players Not Activated</th> </tr> <tr> <td class="on">#</td> <td class="on">ID</td> <td class="on">Username</td> <td class="on">Email</td> <td class="on">Tribe</td> <td class="on">Activation Code</td> <td class="on">Act 2??</td> <td class="on">Time</td> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM ".TB_PREFIX."activate"; $result = mysqli_query($GLOBALS["link"], $sql); while($row = mysqli_fetch_assoc($result)) { $i++; if($row['tribe'] == 1) {$tribe = "Roman"; } elseif($row['tribe'] == 2) {$tribe = "Teuton"; } elseif($row['tribe'] == 3) {$tribe = "Gaul"; } echo " <tr> <td>".$i."</td> <td>".$row['id']."</td> <td>".$row['username']."</td> <td><a href="mailto:".$row['email']."">".$row['email']."</a></td> <td>".$tribe."</td> <td>".$row['act']."</td> <td>".$row['act2']."</td> <td class="hab">".date('d:m:Y H:i', $row['timestamp'])."</td> </tr>"; } ?> </tbody></table>
You must be registered to see links
TravianZ-by-Shadow-master, PLEASE SOMEBODY CAN HELP ME!! THANK YOU VERY MUCH!!! =)THIS IS THE FILE notregistered.tpl:
<table cellpadding="1" cellspacing="1" id="member"> <thead> <tr> <th colspan="10">Players Not Activated</th> </tr> <tr> <td class="on">#</td> <td class="on">ID</td> <td class="on">Username</td> <td class="on">Email</td> <td class="on">Tribe</td> <td class="on">Activation Code</td> <td class="on">Act 2??</td> <td class="on">Time</td> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM ".TB_PREFIX."activate"; $result = mysqli_query($GLOBALS["link"], $sql); while($row = mysqli_fetch_assoc($result)) { $i++; if($row['tribe'] == 1) {$tribe = "Roman"; } elseif($row['tribe'] == 2) {$tribe = "Teuton"; } elseif($row['tribe'] == 3) {$tribe = "Gaul"; } echo " <tr> <td>".$i."</td> <td>".$row['id']."</td> <td>".$row['username']."</td> <td><a href="mailto:".$row['email']."">".$row['email']."</a></td> <td>".$tribe."</td> <td>".$row['act']."</td> <td>".$row['act2']."</td> <td class="hab">".date('d:m:Y H:i', $row['timestamp'])."</td> </tr>"; } ?> </tbody></table>
Last edited: