Jump to content
MakeWebGames

Script47

Members
  • Posts

    1,150
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Script47

  1. So I looked in to Ghost and it was very sweet, I have to say I liked it a lot. However it ran of Node.JS like you said so that sucked as I can't use that. I wasn't exactly looking for something really fancy, so when I came across AnchorCMS I was pleased, it was clean, simple and effective. It's still very new and looks promising so I checked it out and I liked it. So I thought I would use this one.
  2. I get this: [ATTACH=CONFIG]1287[/ATTACH]
  3. Which one would you suggest?
  4. Does anyone know any good free blogging systems which have a good UI?
  5. Sorry pal, I thought I made it clear. :)   Thanks Dayo, this is what I mean't. :)
  6. Updated OP to make it more clear.
  7. Title is pretty clear, is it possible? If so any tutorials or examples which show it? Edit Getting PHP table values and storing it in a JS array.
  8. The link actually does work.
  9. Not the first time or the last time I'll be told this. But I do it because I like text areas to display like that and tables too. I don't get what you mean by the last comment you made? You mean having "<br/>" in between them?
  10. That's what I put didn't I? Unless I've misunderstood what you mean't?
  11. I think he added to global_funcs so it's called, he did it because it's easier that way instead of manually adding it to each page but that makes KG's thing quite impossible to unless he's willing to add check_travel() in every file manually except mailbox and events.
  12. Finished, try this. Edit MWG still messed up: PasteBin Code breport.php   <html> <head> <title>Bug Report</title> </head> <style> textarea { resize: none; } table { border-collapse: collapse; } </style> </html> <?php /* * Developer: Script47 * Module Name: Bug Reports Centre Re-Coded * Description: Allows users to report bugs. * Price: Free * Support: [email protected] * MWG Contact: http://makewebgames.io/member.php/69670-Script47 * Thread: http://makewebgames.io/showthread.php/43393-Bug-Reports-Centre-Mod */ include 'globals.php'; echo '<h3>Bug Reports</h3>'; if($ir['userid'] == 1) { echo '[<a href="breport.php?truncate=true"><font color="blue">Truncate Table</font></a>]'; } if(isset($_GET['truncate'])) { if($ir['userid'] != 1) { header("Location: breport.php"); exit(); } else { $truncate = $db->query("TRUNCATE TABLE `bug_reports`"); if($truncate) { header("Location: breport.php"); exit(); } else { echo 'Something went wrong.'; header("Refresh:1; URL=breport.php"); exit(); } } } echo '<br/>'; echo '<br/>'; echo 'Spotted a bug? Report it <a href="breport.php?report=true"><font color="blue">here</font></a>.'; if(isset($_GET['report'])) { echo '<br/>'; echo '<form method="post"> <input type="text" name="Title" placeholder="Title" title="Title" spellcheck="true" required autofocus> <br/> <textarea rows="10" cols="45" name="Description" placeholder="Detailed explanation of error, page and code if possible." title="Description" spellcheck="true" required></textarea> <br/> <input type="submit" name="report" value="Report"> </form>'; if(isset($_POST['report'])) { if(!isset($_POST['Title']) || empty($_POST['Title'])) { echo 'Title field empty!'; exit(); } else if(!isset($_POST['Description']) || empty($_POST['Description'])) { echo 'Description field empty!'; exit(); } else { $title = htmlspecialchars(trim($db->escape($_POST['Title']))); $description = htmlspecialchars(trim($db->escape($_POST['Description']))); $user = $db->escape($ir['username']); $insertReport = $db->query("INSERT INTO `bug_reports` (Title, Description, Reporter) VALUES ('$title', '$description', '$user')"); if($insertReport) { header("Location: breport.php"); exit(); } else { echo 'Something went wrong.'; header("Refresh:1; URL=breport.php"); exit(); } } } } echo '<br/>'; echo '<br/>'; $getReports = $db->query("SELECT * FROM `bug_reports`"); echo '<table align="center" cellpadding="10" border="1">'; echo '<th>ID</th>'; echo '<th>Title</th>'; echo '<th>Description</th>'; echo '<th>Reporter</th>'; echo '<th>Status</th>'; echo '<th>Date</th>'; if($ir['user_level'] == 2) { echo '<th>Actions</th>'; } $status = array( '1' => '<font color="red">Queued</font>', '2' => '<font color="orange">Pending</font>', '3' => '<font color="green">Fixed</font>', '4' => '<font color="#A9A9A9">Not a Bug</font>' ); while ($results = $db->fetch_row($getReports)) { echo '<tr><td>'; echo $results['ID']; echo '</td><td>'; echo $results['Title']; echo '</td><td>'; echo $results['Description']; echo '</td><td>'; echo $results['Reporter']; echo '</td><td>'; echo $status[$results['Status']]; echo '</td><td>'; echo date('d/m/Y g:i:s A', strtotime($results['Created'])); echo '</td><td>'; if($ir['user_level'] == 2) { echo "[<a href='breport.php?delete=true&rID={$results['ID']}'><font color='blue'>Delete Report</font></a>] <br/>"; echo "<br/>[<a href='breport.php?edit=true&rID={$results['ID']}'><font color='blue'>Edit Report Status</font></a>]"; } } echo '</table>'; if(isset($_GET['delete'])) { if(!ctype_digit($_GET['rID'])) { header("Location: breport.php"); exit(); } else { $ID = htmlspecialchars($_GET['rID'])+0; $deleteReport = $db->query("DELETE FROM `bug_reports` WHERE ID=$ID"); if($deleteReport) { header("Location: breport.php"); exit(); } else { echo 'Something went wrong.'; header("Refresh:1; URL=breport.php"); exit(); } } } if(isset($_GET['edit'])) { if(!ctype_digit($_GET['rID'])) { header("Location: breport.php"); exit(); } else { echo '<br/>'; $ID = htmlspecialchars($_GET['rID'])+0; echo '<form method="post"> <select name="status"> <option value="1">Queued</option> <option value="2">Pending</option> <option value="3">Fixed</option> <option value="4">Not a Bug</option> </select> <br/> <input type="submit" name="editReport" value="Edit"> </form>'; if(isset($_POST['editReport'])) { $newStatus = htmlspecialchars($_POST['status'])+0; $changeStatus = $db->query("UPDATE `bug_reports` SET Status=$newStatus WHERE ID=$ID"); if($changeStatus) { header("Location: breport.php"); exit(); } else { echo 'Something went wrong.'; header("Refresh:1; URL=breport.php"); exit(); } } } } ?>   SQLs   CREATE TABLE IF NOT EXISTS `bug_reports` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Title` varchar(100) NOT NULL, `Description` text NOT NULL, `Reporter` varchar(100) NOT NULL, `Status` int(11) NOT NULL DEFAULT '1', `Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  13. I'm already re-coding it.
  14. Since I made this mod, my laptop has been wiped twice, and I lost all the files. What I can suggest is the place where I got the image from. Silk If you can't find the images just remove all the "img" tags.
  15. I thought the same things. Scripts script hehehe :D
  16. I checked the original source and I have not got that variable, so it must be something you have changed or someone else has.
  17. I posted on your other thread about it.
  18. Script47

    People.....

    Script47 (alias) - Been learning web development for around a year and a bit maybe. Recently got in to Android app development using PhoneGap.     So can I. You should see him in the chat - Saying that One/Sniko_/Lithuim isn't much better! ;)
  19. As always, great job MTG. :)
  20. Make sure all the field names are the same form the table and the code. After checking I see you have a error, no row with that name (BANKCRYSTALS) exists. [ATTACH=CONFIG]1278[/ATTACH] Try this:   UPDATE `users` SET money=money-10000, crystals=0 WHERE userid=1   Note your query will cause it to set all the crystals to 0 regardless, you might want to fix that.
  21. Really getting in to the AJAX/jQuery ain't ya pal! I just don't get it haha. Looks like you're doing fine though. :)
  22. Oh hahahaha Kyle. :D On topic, what have you tried? Or have you even tried something?
  23. Well from what Seker has said, the function imagettftext() is missing or cannot be found, maybe you removed something? Look for it in the other file from the back up maybe?
  24. Please format code to make it easier for others to read by using the [php*] [/php*] tags without the "*".
  25. Good job mate.
×
×
  • Create New...