68 Discussion / Question Topics

Remove Filter
Member Avatar for mmcdonald

Hi all, I'm building a multi-tenant web application in PHP which is hosted on a dedicated Ubuntu 14.04 server (LAMP). I'm trying to figure out the simplest method of allowing my customers (SME's) to connect the application to their active directory server to authenticate users. The only issue is, I …

Member Avatar for jay56
0
247
Member Avatar for mmcdonald

Boo! Meh you knew it was me. After all, I post 99% of the dumass questions around here... I have a modal that's being a teenager and isn't doing as it's being told: http://i.imgur.com/7PcLQCS.png *As you can see from the image, it's half off of the screen!* # Here's the …

Member Avatar for YtuMamaTambien
0
3K
Member Avatar for mmcdonald

Hey all, I'm not a mechanic and I know nothing of the topic. I am however looking to replace the legs on my computer desk with some electronic cylinders so that I can raise and lower the desk at the press of a button. The only issue is, I don't …

Member Avatar for HiHe
0
381
Member Avatar for mmcdonald

Hi all, I've decided to work on a new project in my spare time and it involves capturing 30 seconds of video from each registered user. Does anyone have any suggestions as to the most widely accepted/compatible method of capturing video in the browser and storing it somewhere such as …

Member Avatar for mmcdonald
0
288
Member Avatar for mmcdonald

Hi all, I've just started to work on a lazy mans network - everything is unmanaged. I've now been asked to install a media server so that we can provide a source for the 90+ TV screens in our thirty remote offices, a system such as this: http://www.cabletime.com/how-it-works/ The only …

Member Avatar for mmcdonald
0
209
Member Avatar for mmcdonald

Hi all, I'm looking into the management of duplicate records in MySQL, but this case is a little bit more specific. A record is only duplicated if column A and column B have the same value. So a record is only a duplicate if two specific columns have the same …

Member Avatar for mmcdonald
0
5K
Member Avatar for mmcdonald

Hi all, I'm working on an old project of mine that I used to self-study PHP which used Bootstrap 2. Revisiting the project a year on I'm looking to restrict the max-height of dropdown.js but can't - for the life of me - get it done. The best solution would …

Member Avatar for mmcdonald
0
673
Member Avatar for mmcdonald

Geeks, My client, an international online modelling agency, needs to state the following: "Age restrictions depend on the juristiction over your nationality". He has a section where applicants can apply for Nude photography (Nude Artistic, Nude Erotic, Adult Nude and semi-nude). Some countries require you to be 21 and some …

Member Avatar for G_Waddell
0
337
Member Avatar for mmcdonald

Hi all, I'm currently building a questionnaire and I've run into a head scratcher. Some of the questions require the user to give a number to represent the importance of the answer. Example: Instruction: Please select the radio buttons according to your preferred option, with 1 representing the most important …

Member Avatar for pritaeas
0
225
Member Avatar for mmcdonald

ello ello, I'm currently calling a file using JQuery but every so often (very randomly) Google Chrome would crash (Just the tab, not the browser). Soooo I began investigating and discovered that browsers cache AJAX calls? This would mean that the tab would be using a stupid amount of memory …

Member Avatar for mmcdonald
0
188
Member Avatar for mmcdonald

Hi all. I'm having a mad issue... totally mad. I mean I've never had this before. I have the following HTML form: <form action="" method="POST" name="createForumCategory"> <label>Create a new category:</label> <input type="text" name="category" class="m-wrap placeholder-no-fix" /> <input type="hidden" name="id" id="id" value="<?php echo $forumOrange['id']; ?>" /> <button class="btn green" type="submit">Add Category</button> …

Member Avatar for mmcdonald
0
283
Member Avatar for mmcdonald

Boo! Yeah sorry it's me again... I'm launching a modal with: <a data-toggle="modal" data-target="#loginModal" href="javascript:;">Register</a> The modal has 3 tabs. It should usually open on tab one (it does), but in this instance I would like it to automatically open on tab 2 when a particular link is followed... so …

Member Avatar for JorgeM
0
138
Member Avatar for mmcdonald

Hi all, I have a hidden division that is supposed to appear when the button, as shown below, is clicked by the user. The division is hidden on page load, and does actually appear when the button is clicked, but nothing happens on the first click. To clarify, you have …

Member Avatar for JorgeM
0
13K
Member Avatar for mmcdonald

Hi all, I have been looking into making a website that has a timelapse video as its background, something similar to: http://www.thecowisgonemoo.com/nervaq/index-video.html The question is - how does one set a video as the background of a website!? Some of these timelapse videos are 100's of MBs or even 1000's! …

Member Avatar for mmcdonald
0
82
Member Avatar for mmcdonald

Hi all, I'm trying to add spacing between the <option> tags by padding, height and margin - yet none have worked. Does anyone have any ideas? It's the simple things that stop me in my tracks haha. All of the options look cramped up and untidy, I'd like to give …

Member Avatar for mmcdonald
0
127
Member Avatar for mmcdonald

Hi all, This is so simple and it's driving me mad. I've done it many of time before but at this moment in time - blank! How does one display the text: &copy; and stop it from changing to a copyright symbol? Thanks, M

Member Avatar for mmcdonald
0
148
Member Avatar for mmcdonald

I'm having difficulty opening message content for each unique message because I'm struggling to get the PHP variable `$message['id']` to a url defined in a javascript file. My foreach loop that echos out all of the messages for the user: foreach($mess_data as $message){ echo' <tr '.(($message["read"] == '0') ? 'class="unread"' …

Member Avatar for htmlearner
0
2K
Member Avatar for mmcdonald

Had no idea where to stick this, so I'll try here :) I have created a CNAME for domain1 to direct traffic to domain2 that has the value of `*` (so `*.domain1.com` goes to `domain2.com`). This works if the user types `www.domain1.com` but not if they just type `domain1.com` which …

Member Avatar for JorgeM
0
134
Member Avatar for mmcdonald

Hi all, I'm using AJAX to reload a div within my script. However it frequently causes the browser to crash. It's happened on two different local environments and I've only been able to test using chrome. Chrome presents this screen: http://i.imgur.com/wq2v7SJ.png The code used to reload the div is: <script …

Member Avatar for mmcdonald
0
210
Member Avatar for mmcdonald

Hi all, the following PHP MysSQLi query works in XAMPP but not in WAMP: <?php include('../../inc/config.php'); $mysqli = mysqli_connect($config['host'], $config['user'], $config['pass'], $config['db']); $responseQuery = "SELECT tr.id as trid,tr.topicid,tr.usersid,DATE_FORMAT(tr.date_added,'%b %d, %Y %H:%i') AS format_date_added,tr.date_added,tr.response,tr.status, t.id, t.usersid as creatorid, u.id, u.authuser, u.memtype, u.fn,u.ln,u.avatar FROM topic_response tr LEFT OUTER JOIN topic t ON …

Member Avatar for Atli
0
893
Member Avatar for mmcdonald

Hey hey! I'm about 70% into completing a web application that will allow our clients to white label our service. They can then in turn resell the service to their audiences without any involvement from me or my colleagues. Now, something I need to figure out is how to allow …

Member Avatar for JorgeM
0
267
Member Avatar for mmcdonald

I've focused my night on better grapsing authentication security and believe I have made good progress. To date I have simply relied on SHA1 hashing and prepared statements - not much, right... So I knew it was time to pick up some new skills. What I came across was very …

Member Avatar for diafol
0
293
Member Avatar for mmcdonald

I'm about 80% into my first attack on JQuery/AJAX... how would one correctly write this function: function reloadResponses(){ $('#responses').load('pages/community/load-responses.php?id=<?php echo $id;?>'){ window.setTimeout(reloadResponses, 10000); }; }; I would like to reload `<div id="reponses"></div>` every 10 seconds. Is this the best way? I am currently using this to reload the div every …

Member Avatar for mmcdonald
0
216
Member Avatar for mmcdonald

Should be simple right? Well I've been at the PC for 16 hours so far and the answer is probably screaming at me in the face, but I can't hear it... # This code... # $differenceInSeconds = 448005; if($differenceInSeconds >= "86400"){ $calcDays = floor($differenceInSeconds / 86400); if($calcDays = "1"){ $daysPlural …

Member Avatar for mmcdonald
0
277
Member Avatar for mmcdonald

Hi all, I'm having that oldschool issue with saving rich text content to MySQL and then retreiving it. As far as I'm concerned I thought I was doing it correctly - but one of you lucky devils is about to tell me otherwise :D When I'm saving to DB: if(isset($_SESSION['auth'], …

Member Avatar for mmcdonald
0
3K
Member Avatar for mmcdonald

G'day daniwebers! I just ran into this: http://www.daniweb.com/web-development/web-design-html-and-css/threads/463119/responsive-web-designing- and it made me think about a community driven and maintained resource database? Is this something that's been thought of before and swept under the carpet? If so - could we bring it back in to the light? I'm always crawling the …

Member Avatar for mmcdonald
1
290
Member Avatar for mmcdonald

DaniWebers, We have a category for Jobs and Resumes in the Business Exchange and it's used regularly for recruitment, however all over the forums I find and repsond to people in search for careers advice. Could we possibly add a new category 'Careers Advice' under the Business Exchange parent? Cheers, …

Member Avatar for mmcdonald
0
140
Member Avatar for mmcdonald

[Image of design issue](http://imgur.com/seWlte0) Hi peeps, Struggling to locate the source of this issue. The dropdown for ALL of the menu items appears on the far left of the nav and not below te menu item selected. For example, in the image above I clicked programming and the dropdown appeared …

Member Avatar for mmcdonald
0
139
Member Avatar for mmcdonald

Hi all, I'm still playing around with OOP and to be totally honest really enjoying it! I can't believe I haven't made the switch from procedural earlier... Something I would like to know is, how can I set default arguments for methods / functions? What i'm getting at is, if …

Member Avatar for mmcdonald
0
174
Member Avatar for mmcdonald

Hi all, I've literally JUST dived into OOP and it's a totally different world. I've written some pretty awful code just to grasp OOP basics. The following code is all in the same file and runes fine, there are no warnings, errors, notices and so forth yet it doesn't work …

Member Avatar for mmcdonald
0
311
Member Avatar for mmcdonald

Hello DaniWebers! I'm absolutely shocking when it comes to JavaScript/JQuery and have run into an occurance when I would like to use it. Now before you slap me on the wrist I **DO** intend to learn JS in 2014 (Scouts honour!). I am using this slider: [JQuery - Snap To …

Member Avatar for mmcdonald
0
378
Member Avatar for mmcdonald

Been trying to get this working for a few hours now but can't seem to get a result. Any advice would be welcomed with open arms! I'm using the JQuery Validation Plugin: [http://jqueryvalidation.org/validate/](http://jqueryvalidation.org/validate/). I have included the following into my file: <script src="assets/plugins/jquery-1.10.1.min.js" type="text/javascript"></script> <script src="assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script> <script src="assets/plugins/jquery-validation/dist/jquery.validate.min.js" type="text/javascript"></script> …

Member Avatar for imBaCodes
0
330
Member Avatar for mmcdonald

Hi all, I've been playing around with PHP for a while now and never really studied hardcore (Just used it as best as I could on a whim) but I've now decided to sharpen the skill and get much better. I'm playing around with my first class and would like …

Member Avatar for mmcdonald
0
509
Member Avatar for mmcdonald

Hi all! I'm trying to validate this form: <form action="<?php $_SERVER['PHP_SELF'] ?>" class="horizontal-form" name="settings" id="settings" method="post"> <div class="row-fluid"> <div class="span4 "> <div class="control-group"> <label class="control-label" for="firstName">First Name</label> <div class="controls"> <input type="text" id="fn" class="m-wrap span12" value="<?php echo $userInfo['fn']; ?>"> </div> </div> </div> </div> </form> I've added my validation js files.. These …

Member Avatar for LastMitch
0
164
Member Avatar for mmcdonald

Hi all, I'm currently looking at this [JSFIDDLE](http://jsfiddle.net/MH8e4/6/) and it's 50% of what I need. I have a series of Accordions on my page (a list of courses). What I would like to do is assign these accordians to categories so that when a checkbox is pressed with the id …

Member Avatar for mmcdonald
0
378
Member Avatar for mmcdonald

Hi all, My local development project has been working perfectly for...6 days now? I haven't even touched the login/register page for 2 days+ yet all of a sudden all JavaScript has seized up! I've been using the page to login all day and only now has it stopped working. I'm …

Member Avatar for mmcdonald
0
183
Member Avatar for mmcdonald

Hey all, I'm trying to make a link outside of the nav-tabs class, specifically in a paragraph, that changes to another tab on the same page. Granted that I know this requires JS and that I know nothing of JS (Another book i ordered this morning :) ) here is …

Member Avatar for mmcdonald
0
230
Member Avatar for mmcdonald

Good'ay all, I'm looking for a method of saving a users session (I.e. automatically logging them back into the same page they logged out from). But I have a few things to consider: 1) Will they logout or will they just close the browser? This means I can't add the …

Member Avatar for mmcdonald
0
178
Member Avatar for mmcdonald

There has got to be a better way of doing this. First of all pay no attention to the lack of validation and error checking. I just want the core of the script to work first. Also, Block 1 and Block 2 execute, Block 3 does not. Whats the best …

Member Avatar for mmcdonald
0
1K
Member Avatar for mmcdonald

Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete …

Member Avatar for Atli
0
478
Member Avatar for mmcdonald

Kill me now! I have two tables in my DB. One has a list of certifications and one has a list of exam boards. I need to list the exam boards in a foreach loop giving each one an accordion. The certifications must be listed under their correct exam board. …

Member Avatar for mmcdonald
0
847
Member Avatar for mmcdonald

Hi all, I've been playing around with this for 30 odd minutes now and basically been making a right fool of myself... I want to make a function called `userInfo()` that uses the users email address, stored in `$_SESSION['auth'];`, to get any information required from sql. I'm using **MySQLi** and …

Member Avatar for mmcdonald
0
290
Member Avatar for mmcdonald

Hi all, I'm using crontab on Ubuntu 10.04 and I have had 7 tasks running smoothly for about 6 months. I've now created a new script but for some frustrating reason it will be execute. It's a small task that needs to run every two minutes. The issue doesn't reside …

Member Avatar for CimmerianX
0
237
Member Avatar for mmcdonald

My form won't submit... nothing happens when clicking the submit button. Any ideas? N.B. I am knackered, I've been up 26 hours :/ Thanks in advance for any suggestions! <form action="contact_me.php" method="post" class="contact-form" id="contactForm"> <div class="controls controls-row"> <div class="control-group span6"> <input class="span12" name="name" placeholder="your name" type="text" /> </div> <div class="control-group …

Member Avatar for mmcdonald
0
259
Member Avatar for mmcdonald

Hi all, I have a website that allows users to vote once every hour and I've run into a weird issue. When a user votes for a listing their IP is collected and stored along with the time of the vote. An hour later they are able to vote again. …

Member Avatar for Atli
0
153
Member Avatar for mmcdonald

Hey all, cant get this very very simple query to work but I have been going 26 hours and my thoughts are numb. Please assist? I have error reporting on and request mysql errors but I'm getting nothing. Contents of config.php $db_host = 'localhost'; //IP of database server (most likely …

Member Avatar for JorgeM
0
141
Member Avatar for mmcdonald

Hi all, I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications. However what I can't figure out …

Member Avatar for diafol
0
295
Member Avatar for mmcdonald

Hi all, I have a very nasty issue here where SQL values are changing but I haven't been hacked because the changes are just too abnormal. People vote for their servers and every so often the top few servers values roll back. For example at 03:00 a server has 66 …

Member Avatar for diafol
0
179
Member Avatar for mmcdonald

Would you say its time to increase the RAM on this lil machine or is it okay? Could you please explain this output? free -m -s 5 total used free shared buffers cached Mem: 496 439 57 0 20 250 -/+ buffers/cache: 167 328 Swap: 511 5 506 Thanks, M

Member Avatar for mmcdonald
0
164
Member Avatar for mmcdonald

My crontab states: PATH=/var/www 00 00 * * * php -q /tasks/script1.php */5 * * * * php -q /cycle/script2.php */1 * * * * php -q /tasks/script3.php script 1 doesnt run, but I need to to run every midnight script 2 doesnt run but works fine when executed manually. …

Member Avatar for ammonsutherland
0
205

The End.