49 Discussion / Question Topics
Remove Filter Hey guys, I recently started work on Minepress again, I'm having some problems however. I am trying to make a plugin which detects the ip of a minecraft server and results in printing out if its online or not here is display on my site: http://img545.imageshack.us/img545/4404/beaa1f33dce74c6dbee14e6.png as you can see … | |
Hi all, Been trying to do this for a while, I have a .js script which utilises node.js and socket.io. I'm trying to make it so that when I have the page localhost:3000 open and I type !follow in an IRC chat it will change the web page. **Index.html:** <!doctype … | |
I have this snippet below, I'm trying to query if a cast is online or not (That part works when I take it outside the while loop) but then in the while loop run through until I find an online cast and then keep it there. If I remove the … | |
Hey guys, <?php $url = "https://api.twitch.tv/kraken/streams/greatbritishbg"; $json = file_get_contents($url); $json = json_decode($json); var_dump($json); foreach($json->streams as $stream) { echo $stream->channel->stream . '<br />'; echo $stream->channel->display_name . ' is playing ' . $stream->channel->game . '.<br />'; echo '<a href="http://www.twitch.tv/' . $stream->channel->name . '">Watch Live</a>'; echo '<hr />'; $status = $stream->channel->stream; } //PSUEDO … | |
Hey! Long time no speak ^.^ I've been trying to make a query which would follow this logic (Which works in phpMyAdmin): UPDATE member_food SET food_id=12 WHERE member_id=4 AND food_type="breakfast" However, when I do it in PHP: $sql_breakfast1 = "UPDATE member_food SET food_id ='$breakfast1' WHERE member_id='$id' AND food_type='breakfast'"; if ($mysqli->query($sql_breakfast1) … | |
Hey guys, I have a Table which utilises Twitches API where the offset needs to be in increments of 25. I want to make it so everytime you click next in a table of data it reloads the query but adds +25 to the offset. Here is what I have: … | |
I am trying to make it so that the snippet below automatically creates extra pages to show me all the followers I have on my Twitch Channel. At the moment I have it at 25, but it does cap at 100. How can I make it so that it automatically … | |
**Having a few issues with IE8.** This is what the navigation looks like on all the browsers so far: http://puu.sh/5Jdw8.png <nav id="site-navigation" class="main-navigation" role="navigation"> <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3> <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a> <?php … | |
Working on a website which is meant to be responsive and getting a few errors which seem out of the norm. The way I would like it is to shrink the site and line everything up in single file. **Url**: http://profiledt.co.uk/SetTraining/ Index.php: <div id="frontpage-Button-Cont"> <div id="Align-content"> <div class="button-cont"> <div class="thumbnail"><div … | |
Really hate the way Moodle is written, was wondering if there was a quick way around this. $custommenu = $OUTPUT->custom_menu(); $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); <?php if ($hascustommenu) { ?> <div id="custommenu"><?php echo $custommenu; ?></div> <?php } ?> How can I add a seperator into the navigation e.g | Home … | |
I got everyone in the chat hooked, so here: http://orteil.dashnet.org/cookieclicker/ | |
Hey guys, So close to the end with this! function JobBoard_admin_edit() { echo "<h4> edit </h4>"; ?> <form name="jobboard_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> <?php echo '<select name="ID">'; $con_edit= mysqli_connect("localhost", "profiled_job","", "profiled_jobboard") or die(mysql_error()); $sql="SELECT ID,Employer FROM details"; $result =mysqli_query($con_edit,$sql); $employer_id = $_POST['ID']; while ($data=mysqli_fetch_assoc($result)) { echo … | |
Hey everyone, Having a few problems: 1. It's not populating the dropdown with all the entries (But in the delete function it is, which is a somewhat copy) 2. It doesn't post the Employer name, the result I'm getting is "Editing user: *BLANK*" Here is the code: function JobBoard_admin_edit() { … | |
Hey guys, Got this wordpress script which is bugging out for me :/ function JobBoard_admin_add() { ?> <div class="wrap"> <?php $con=mysqli_connect("localhost","profiled_job","","profiled_jobboard"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $sql="INSERT INTO details (Employer, LearningProvider, ContractedProvider, LearningDeliverySite, VacancyDescription, VacancyTitle, EmployerDescription, VacancyLocation, NoVacancies, VacancyRefNumber, … | |
Hi again, Using a web script to show the servers I have, which are working here: http://www.bradlyspicer.net/ServerStatus-master/index.php Trying to add it into wordpress. And this is happening: http://www.bradlyspicer.net/server-status/ Saying it is down and saying N/A etc. If I go to http://www.bradlyspicer.net/wp-content/themes/twentyeleven/index_server.php it works. If I go to http://www.bradlyspicer.net/server-status/ it doesn't. … | |
Hey guys, just a quick one. Got this: $memmath = $memcache + $memfree; $memmath2 = $memmath / $memtotal * 100; $memory = round($memmath2) . '%'; Which finds the % free. How would I find the % used? Been messing with algorithms and I'm screwed in the head now | |
Hey guys, Had a problem with Wordpress. When I click submit on a form for a plugin I made it says "insufficient permissions" So I can see that being a problem. I decided it might be best to use PHP_SELF. Just a question really. At the moment it is 3 … | |
Hey guys, got this weird error. I have 3 divs. Each with different forms in. Div 1 and Div 2 work fine, they sit next to each other no errors. But div 3 doesn't exist apparently. I'm unsure of where it has moved or why it's deleted. Picture: http://puu.sh/3yDRM.png As … | |
Hey guys, Got a load of computers at work and I want to neaten the system up a bit. I'm completely oblivious to this area :P Basically I have 9 machines and I want them to all be slaves of 1 machine which in turn will not allow people to … | |
hey guys, I've been working on that moodle database link and I have it somewhat working! I have it logging in and echoing the username. This is the login section: $query = "SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'"; $result = mysqli_query($con,$query) or die(mysqli_error($con)); //setup … | |
Hey all, Been trying to work this out. But I'm stumped! Got a database running on Moodle. Want to create an external script which uses the usernames and passwords from the table moodle_user and the db Profiled_Moodle. Here is my page so far: <?php include 'header/config.php';?> <div id="Container"> <?php if … | |
Just a quick question really, I'm using a database which is for Moodle, and I want to extract the login details for an Android app I am writing so they can login to that database and See their information. Part of it is in PHP... so it's Java > PHP … | |
Hi, Been working on this PHP snippet and it was fine until I changed one line. I am doing this inside Wordpress so I can't echo the problems out. "Server error" Hopefull you guys can see where my snippet has gone wrong :)) <?php //Create connection //new mysqli("localhost", "user", "password", … | |
hey all, Just a quick one (I hope). I've only ever really done this as a button from something simple like a drop down box. I have a table which is populated by a mysql db: echo "<table class=\"gridtable\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <th>Employer</th> <th>Vacancy</th> <th>Vacancy Type</th> <th>NoVacancies</th> <th>Learning Provider</th> <th>Contact … | |
Hi all, Having a small issue with some PHP i'm re-writing. I'm converting my old mysql to Mysqli for a new project. my database is called "jobboard" my table is called "details". The Idea is to have a drop down and then select the persons name (Which has the ID). … ![]() | |
Hey everyone, Got this little snippet here: <?php // did files get sent if(isset($_FILES) && (bool) $_FILES) { // define allowed extensions $allowedExtensions = array("pdf","doc","docx"); $files = array(); // loop through all the files foreach($_FILES as $name=>$file) { // define some variables $file_name = $file['name']; $temp_name = $file['tmp_name']; // check … | |
Hey all, Been re-writing the HTAccess for the Moodle software which comes as standard. This is the code I have so far: # BEGIN Moodle <IfModule rewrite_module> #Fixes Moodle issue with redirection on shared servers Options Indexes FollowSymLinks +IncludesNOEXEC RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.co.uk RewriteRule ^(.*)$ /Moodle/$1 #Redirects lowercase to … | |
Hey all, Just some questions regarding queries and the logic behind what I'm trying to achieve. So basically, I have these rows of information inside a MSQL table called Customers. The columns are as follow: id customer_name customer_name_letterhead customer_notes systype status signaltype verification address postcode telephone mobile mobiletwo email mainarea … | |
Hey guys, Was speaking to pritaeas and suggested him this site: http://thecodeplayer.com He said I should mention it to you, it's really interesting and to be honest quite a good site for reads. | |
Hey guys, got a system here which I'l try and explain in lame mans terms. Search > Customer page > Edit Customer. The problem I am having is that it is not letting me carry that ID over. E.g, I put John smith in, I get the customer Page which … | |
Hey guys, as part of my project I am trying to make it so each record in my database has it's own page in a fashion similar to: http://domain.com/Customer.php?customer_name="John Doe" And this will echo all the information in the table about John Doe. (In the future I would like to … ![]() | |
Hey, I have a form on this website: http://we-remortgage.co.uk/sitewp/ When I look at the get quote button it has duplicated itself. I can't see the reasoning behind this and was wondering if you guys could help. This happens only in IE Form Stylesheet: /* Generic Form CSS */ .formFeatureBox { … | |
Hey, Been writing my own php snippet but I'm having a few issues. I have a drop down which is populated by the mysql db however when I click delete it runs an action and throws an error. Form: <form action="deleteuserform.php"> <select> <?php $sql="SELECT id,customer_name FROM Customers"; $result =mysql_query($sql); while … | |
This isn't so much a help thread more of a discussion. I have this idea that once I have a lot of users in a database that I can then grab them from a drop down and place them into the template like a webpage etc which can be printed … ![]() | |
Hey all, Recently been working on a website which now looks REALLY good in FF and Chrome however in IE it looks absolutely terrible... is it possible to make it so anyone who goes to the site on Internet explorer is automatically taken elsewhere? like a new directory? Thanks | |
Hey, http://we-remortgage.co.uk/sitewp/ I'm trying to make the form to the right actually clickable however it seems like something is in the way. Can anyone locate the issue? Thanks! | |
Working on this site and now i'm majorly annoyed it isn't working. <div id="Mid_Content"> <div id="Left_Content"> <h2>heading </h2> <p> test </div> <div id="Mid_point_Content">asdasd</div> <div id="Right_Content">Form</div> </div> Mid_Content is a container and the rest inside it. Here is the CSS #Mid_Content { Width: 1000px; } #Left_Content { width: 33%; } Mid_point_Content … | |
Hey all, Looking for some quick guidance, Trying to make it so that I can have a field which presents how many customers the database has. E.g This is the DB: http://prntscr.com/o2vuf This is my php: <?PHP $id_customers = "SELECT id FROM Customers"; $Customeramount = mysql_query($id_customers) or die(mysql_error()); echo $Customeramount; … | |
Hey, I've been messing around with SQL And PHP recently and I've come into another problem which has blown all logic out for me. I have this form: System Type <select name="systype"> <option value="systype1">type1</option> <option value="systype2">type2</option> <option value="systype3">type3</option> <option value="systype4">type4</option> <option value="none" selected="selected">None</option> </select><br> This form will send whatever is … | |
<?PHP $time = $_POST['Time'];//The things in the [] can be anything you want, but remember these for later $xp = $_POST['X']; if($time <= 0) $time = 0; if($xp <= 0) $xp = 0; $db_handle = mysql_connect($server, $user_name, $pass_word); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $SQL = "SELECT * FROM … | |
hey guys, Having a few problems with div tags and I can't quite put my finger on it. I have 3 div tags, 1 for the header, 1 for slider and one for the logo. http://element.minepress.co.uk/ However, the slider has just pushed itself off the screen? any suggestions? Thanks! | |
Hey all, Selecting a MYSQL Database is throwing Errors. It's all correct. However, My page seems to think otherwise.. <?php ################### Server Connection / CONST ###################### define('DB_NAME', 'xtrapsp_Rhino'); define('DB_USER', 'xtrapsp_rhino'); define('DB_PASSWORD', 'Password'); define('DB_HOST', 'localhost'); ################################################################## // Note that whatever is enclosed by $_POST[""] matches the form input elements // $Value_name … | |
Hello everyone, My friend has been helping and he's been great however it's come to a halt :P I'm working with MYSQL at the moment but am having a few issues with my code. Index.php: <html><link href="stylesheet.css" rel="stylesheet" type="text/css"> <head> </head> <body> <div id="header"><img src="http://www.rhinosecurityltd.co.uk/templates/rhuk_milkyway/images/mw_joomla_logo.png" alt="Rhino Security"> </DIV> <form name="Form" … | |
Hey all. I FINALLY GOT MY PLUGIN TO *WORK*. Apart from one element... <?php /* Plugin Name: Minepress Minecraft Dynmap Plugin Plugin URI: http://minepress.co.uk Description: Minepress Minecraft Dynmap Plugin Author: Bradly spicer Version: 0.0.1 Author URI: http://minepress.co.uk */ /*Installation of Plugin */ /* What to do when the plugin is … ![]() | |
Hello, I'm looking into making an account validator for wordpress which runs off a validator for another server. Shown here: http://www.minecraftwiki.net/wiki/User:Oxguy3/Minecraft.net_API It's running in Wordpress and I just wanted to ask for your opinions on how to do this. The idea I had is that the username they signed up … | |
Hey guys! So I've been working on a plugin which allows people to add an iframe depending on the input fields and then that is displayed when a shortcode is created. However It isn't making it a shortcode. <?php /* Plugin Name: Minepress Minecraft Dynmap Plugin Plugin URI: http://minepress.co.uk Description: … | |
OK! so I got this code working, HostGator ended up allowing my sockets etc and it worked!!! However this lead to more problems... <?php /* Plugin Name: Server Status Plugin URI: http://minepress.co.uk Description: Server Status Plugin Author: Bradly spicer Version: 1.0.0 Author URI: http://minepress.co.uk */ class ServerStatus extends WP_Widget { … | |
Hello, I'm posting again regarding as to why my php code won't process the delete.php Index.php: <div id="DeleteFile"> Delete A Script: <form action="delete.php"> </html> <? $path = "uploads/"; $handle = opendir($path); echo '<select>'; while ($file = readdir($handle)) { if (substr($file,0,1) != ".") { echo "<option value ='$file'>$file</option>"; } } echo … | |
Hey everyone, Been working on a php snippet which finds the names of all the files in a Directory and populates them into a drop down box. Which would then allow me to select that file, click a submit button and delete them. Here is what I have SO <?php … |