-
Posts
290 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by Dustin Rohel
-
I feel like im being hated on about learning, iv'e stated i have a learning disability and am a slow learner and people still making comments about me not trying, I AM TRYING, i ask lots of questions to find answers and learn, so please.... if you don't like my questions- don't comment on them. Thanks! I'm using Regular Notepad.
-
Thanks and thanks for tips, i did change the guard to defense. But now that you say that, i might change all the wroding. ๐
-
-
grpg-v1 [GRPG] Gang Points Vault [MOD]
Dustin Rohel replied to SlanderDesign's topic in Free Plugins
Yes i believe so -
grpg-v1 [GRPG] Gang Points Vault [MOD]
Dustin Rohel replied to SlanderDesign's topic in Free Plugins
Nice! The Points Vault does not show amount of points that are in there.. -
Domain.com has decent looking hosting too I apparently need a code from current registrar to transfer domain
-
ok, thank you. <?php /** * Bandos Attempt At A Fight List * File: fight_list.php * Date: Thur, 27 July/2023 */ require_once('globals.php'); $st = (isset($_GET['st']) && is_numeric($_GET['st'])) ? abs(intval($_GET['st'])) : 0; $allowed_by = array('userid', 'username', 'level'); $by = (isset($_GET['by']) & in_array($_GET['by'], $allowed_by, true)) ? $_GET['by'] : 'userid'; $allowed_ord = array('asc', 'desc', 'ASC', 'DESC'); $ord = (isset($_GET['ord']) && in_array($_GET['ord'], $allowed_ord, true)) ? $_GET['ord'] : 'ASC'; echo "<h2>Fight List</h2>"; $cnt = $db->query("SELECT COUNT(`userid`) FROM `users`"); $membs = $db->fetch_single($cnt); $db->free_result($cnt); $pages = (int) ($membs / 50) + 1; if ($membs % 100 == 0) { $pages--; } echo 'Pages: '; for ($i = 1; $i <= $pages; $i++) { $stl = ($i - 1) * 50; echo '<a href='fight_list.php?st=$stl&by=$by&ord=$ord'>$i</a> '; } echo '<br /> Order By: <a href='fight_list.php?st=$st&by=userid&ord=$ord'>User ID</a> | <a href='fight_list.php?st=$st&by=username&ord=$ord'>Username</a> | <br /> <br /><br />'; $q = $db->query( "SELECT `username`, `userid`, `gangPREF`, `laston` FROM `users` AS `u` LEFT JOIN `gangs` AS `g` ON `u`.`gang` = `g`.`gangID` ORDER BY `$by` $ord LIMIT $st, 50"); $no1 = $st + 1; $no2 = min($st + 50, $membs); echo " Showing users $no1 to $no2 by order of $by $ord. <table width='80%' cellspacing='1' cellpadding='1' border='2' bordercolor='yellow' class='table'> <tr> <th>ID</th> <th>Name</th> <th>Level</th> </tr> "; while ($r = $db->fetch_row($q)) { $r['username'] = $r['username'] echo '' <tr> <td>' . $r['userid'] . '</td> <td><a href="viewuser.php?u=' . $r['userid'] . '">' . $r['gangPREF'] . ' ' . $r['username'] . '</a></td> <td>' . $r['level'] . '</td> <td>' . (($r['laston'] >= $_SERVER['REQUEST_TIME'] - 15 * 60) ? '<span style='color: green; font-weight:bold;'>Online</span>' : '<span style='color: red; font-weight:bold;'>Offline</span>') . ' </td> </tr> '; } $db->free_result($q); echo '</table>'; $h->endpage(); Still don't work
-
I have tried making a fight by mixing some of the userlist from mccodes and the attack in grpg, very first time trying somthing like this. Please let me know if i did a bad thing or not. People here dont think im actually trying, but i am thanks. I've been editing and trying by TRIAL AND ERROR as someone on MWG told me to do, this person is also not like others that call me dumb and make fun of me for learning slowly, so.... if you wanna say im not trying, then Piss off cuz i have been, i ask questions so i can learn, thanks for making me feel dumb again people... <?php /** * Bandos Attempt At A Fight List * File: fight_list.php * Date: Thur, 27 July/2023 */ require_once("globals.php"); $st = (isset($_GET["st"]) && is_numeric($_GET["st"])) ? abs(intval($_GET["st"])) : 0; $allowed_by = array("userid", "username", "level"); $by = (isset($_GET["by"]) & in_array($_GET["by"], $allowed_by, true)) ? $_GET['by'] : 'userid'; $allowed_ord = array('asc', 'desc', 'ASC', 'DESC'); $ord = (isset($_GET['ord']) && in_array($_GET['ord'], $allowed_ord, true)) ? $_GET['ord'] : 'ASC'; echo "<h2>Fight List</h2>"; $cnt = $db->query("SELECT COUNT(`userid`) FROM `users`"); $membs = $db->fetch_single($cnt); $db->free_result($cnt); $pages = (int) ($membs / 50) + 1; if ($membs % 100 == 0) { $pages--; } echo "Pages: "; for ($i = 1; $i <= $pages; $i++) { $stl = ($i - 1) * 50; echo "<a href='fight_list.php?st=$stl&by=$by&ord=$ord'>$i</a> "; } echo "<br /> Order By: <a href='fight_list.php?st=$st&by=userid&ord=$ord'>User ID</a> | <a href='fight_list.php?st=$st&by=username&ord=$ord'>Username</a> | <br /> <br /><br />"; $q = $db->query( "SELECT `username`, `userid`, `gangPREF`, `laston` FROM `users` AS `u` LEFT JOIN `gangs` AS `g` ON `u`.`gang` = `g`.`gangID` ORDER BY `$by` $ord LIMIT $st, 50"); $no1 = $st + 1; $no2 = min($st + 50, $membs); echo " Showing users $no1 to $no2 by order of $by $ord. <table width='80%' cellspacing='1' cellpadding='1' border='2' bordercolor='yellow' class='table'> <tr><td class="contenthead">Fight List</td></tr> <tr> <th>ID</th> <th>Name</th> <th>Level</th> </tr> "; while ($r = $db->fetch_row($q)) { $r['username'] = ? '<span style="color:red; font-weight:bold;">' . $r['username'] echo ' <tr> <td>' . $r['userid'] . '</td> <td><a href="viewuser.php?u=' . $r['userid'] . '">' . $r['gangPREF'] . ' ' . $r['username'] . '</a></td> <td>' . $r['level'] . '</td> <td>' . (($r['laston'] >= $_SERVER['REQUEST_TIME'] - 15 * 60) ? '<span style="color: green; font-weight:bold;">Online</span>' : '<span style="color: red; font-weight:bold;">Offline</span>') . ' </td> </tr> '; } $db->free_result($q); echo '</table>'; $h->endpage();
-
yeah, thanks but i'd like to keep the warranty on my chromebook. Developer mode takes that away, i'll have to save for something better.
-
Can we create modules from the Cpanels? My chromebook won't allow the downloads for the apps to create with php such as xampp etc.
-
Thanks guys! i'll check out youtube and some of those links to start learning better. Much appreciated for the tips everyone!
-
i learn best by being told or shown, what you just said give me an idea on how to start, but some code i dont understand what it does, i think i'll pay for a course to learn code better. Once again, than ks everyone I am going to give it a go after doctors tomorrow. ๐
-
sounds good, i've tried making modules for mccodes with help from a chatbot ai with no success, I am sticking with the 2 engines i'm using now. I'll check out chatGPT soon, thanks i learn better by being shown what to do, i have a learning disability so this stuff is sorta hard to learn (Takes awhile)
-
i have no idea on how to start making it, i'm still learning. i have not made any modules myself yet.
-
what do you mean?
-
Awesome, thanks @Dave! I will be getting a domain for my other site tho as well. ๐