Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

daniel7912

Members
  • Joined

  • Last visited

  1. lol thanks, but the design is the bit I enjoy most!
  2. I'm not really sure, it would probably take me a couple of months at least to get it going, and a normal website I would probably charge around £700-800 for, but at that rate it would be over £10,000 which seems alot for a website
  3. Hi, I have been contacted about creating a website similar to http://www.alivenetwork.com/ This is a much bigger project than I've experienced before but I think I am able to create something similar to Alive Network. Just wondering how much other people would charge to make something like this? Don't want to undersell myself and underquote. Alot of the pages look pretty much the same with just the genre changing, but then there are the more advanced features in the booking areas. Thanks for any advice.
  4. I installed it and had a look around the plugin but couldn't really see where you'd do that. I'll try setting it up properly and having a play with it to see if it can do what I want or not
  5. Hi, I am looking to create a site similar to www.alivenetwork.com, where artists/bands etc can register and post events on the website. Is there a plugin or theme out there that works in the same way as alivenetwork? Thanks for any help Edit: I did find this one - http://wp-events-plugin.com/ but I think that only lets you put events on for one artist, not multiple ones.
  6.    daniel7912 reacted to a post in a topic: How to install/use phpseclib?
  7.    daniel7912 reacted to a post in a topic: How to install/use phpseclib?
  8. managed to get it working Haven't used a lot of these PHP functions before but it's good to learn. Here's what I used in the end so hopefully it will help people in the future: <?php include('Net/SFTP.php'); $image = 'logo.jpg'; //image to be uploaded - needs to be in the same directory as this script e.g. just logo.jpg $image_contents = file_get_contents($image); // location of image to be uploaded $sftp = new Net_SFTP('***.**.**.**'); // server address to connect to if (!$sftp->login('***', '***')) { // server login details exit('Login Failed'); } echo $sftp->pwd(); $sftp->put($image, $image_contents); // upload a file $image with the image contents. ?> Couldn't get SSH working in the end so I tried SFTP and that was much easier.
  9. Thanks for your reply SniderDK. I'm actually running WAMPserver on Windows at the moment to test it out, could you explain how to use it on here please? I tried SFTP as an alternative like this: <?php include('Net/SFTP.php'); $sftp = new Net_SFTP('***.**.238.87'); if (!$sftp->login('media', '*****')) { exit('Login Failed'); } echo $sftp->pwd(); $sftp->put('test.txt', 'hello, world!'); ?> and that creates a file called test.txt which contains the hello world writing, and this uploads to the server OK. Is it possible to upload an image using this method?
  10. Hi, I need to transfer images from one server to another via SFTP/SSH and have been reading that phpseclib (http://phpseclib.sourceforge.net/) can help me do this. I've downloaded the files but to be honest I have no idea what I'm supposed to do with them...I've never used PHP libraries before either. I added them into a localhost directory I am running a script from and included them in the script like so: include('http://localhost/ftptest/SSH2.php'); Do I have to install them some other way? Or am I just doing it completely wrong? Thanks for any help.
  11.    daniel7912 reacted to a post in a topic: 2 Javascript functions clashing?
  12. Hi Skateside, thanks very much for that Works great!
  13. Hi, I am trying to implement a Javascript/PHP/AJAX clock into my website so that I can have a simple clock which can operate in different timezones (tutorial is here http://networking.mydesigntool.com/viewtopic.php?tid=373&id=31) This itself works fine, but I already have a javascript stopwatch running on the page, and the 2 seem to clash and the clock won't display while the stopwatch is working. This is the script for the clock: <script type="text/javascript"> <!-- function loadTime () { http_request = false; if(window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if(http_request.overrideMimeType) { // set type accordingly to anticipated content type //http_request.overrideMimeType('text/xml'); http_request.overrideMimeType('text/html'); } } else if(window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { } } } var parameters = "time="; http_request.onreadystatechange = alertContents; http_request.open('POST', 'time.php', true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", parameters.length); http_request.setRequestHeader("Connection", "close"); http_request.send(parameters); } function alertContents() { if (http_request.readyState == 4) { if (http_request.status == 200) { result = http_request.responseText; document.getElementById('clock').innerHTML = result; } } } // --> </script> <body onload="setInterval('loadTime()', 200);"> and this is the code for the stopwatch: <script language="JavaScript" type="text/javascript"> window.onload = function() { stopwatch('Start'); } <!-- var sec = 0; var min = 0; var hour = 0; function stopwatch(text) { sec++; if (sec == 60) { sec = 0; min = min + 1; } else { min = min; } if (min == 60) { min = 0; hour += 1; } if (sec<=9) { sec = "0" + sec; } document.clock.stwa.value = ((hour<=9) ? "0"+hour : hour) + " : " + ((min<=9) ? "0" + min : min) + " : " + sec; if (text == "Start") { document.clock.theButton.value = "Stop "; } if (text == "Stop ") { document.clock.theButton.value = "Start"; } if (document.clock.theButton.value == "Start") { window.clearTimeout(SD); return true; } SD=window.setTimeout("stopwatch();", 1000); } function resetIt() { sec = -1; min = 0; hour = 0; if (document.clock.theButton.value == "Stop ") { document.clock.theButton.value = "Start"; } window.clearTimeout(SD); } // --> </script> Could someone help me get them to work side-by-side please? Thanks for any help
  14. I'm hoping to add public holidays to this timetable now, and if for example, today is a bank holiday, the embassy would just show as closed. This is what I currently have: $rawsql = "SELECT * FROM _erc_foffices n INNER JOIN _erc_openings o ON n.id = o.branch_id AND o.dotw = DAYOFWEEK(CURRENT_DATE()) INNER JOIN _erc_openings_times t ON o.id = t.opening_id WHERE ( UNIX_TIMESTAMP(CURRENT_TIMESTAMP()) BETWEEN UNIX_TIMESTAMP(CONCAT(CURRENT_DATE(), ' ', t.open)) AND UNIX_TIMESTAMP(CONCAT(CURRENT_DATE(), ' ', t.close)) ) AND ( n.id = %d );"; $sql = sprintf($rawsql, mysql_real_escape_string($id)); $result = mysql_query($sql); /*These if & while statements decide whether or not the information should be displayed. If no results are returned from the query above then an alternative message is shown.*/ if(mysql_num_rows($result) > 0) { while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<div class='address'><p>" . $row["title"] . "<br/>"; echo $row["address_1"] . "<br/> " . $row["address_2"] . "<br/> " . $row["address_3"] . "<br/> " . $row["address_4"] . "<br/> " . $row["address_5"] . "</p>"; echo "<div class='buttons'><img src='http://localhost/erc/images/texttouser_button.png'/><br/><a href='" . $row["url"] . "'><img src='http://localhost/erc/images/website_button.png'/></a></div></div>"; echo "<div class='email'>" . $row["email"] . "</div>"; $extra_notes = $row["extra"]; } } else { $embassy_closed = mysql_query("SELECT * FROM _erc_foffices WHERE id = '$embassy_id'"); while($row = mysql_fetch_array($embassy_closed)) { echo "<div class='address'><p>" . $row["title"] . "<br/>"; echo $row["address_1"] . "<br/> " . $row["address_2"] . "<br/> " . $row["address_3"] . "<br/> " . $row["address_4"] . "<br/> " . $row["address_5"] . " <font color='red'>The embassy is closed.</font></p>"; echo "<div class='buttons'><img src='http://localhost/erc/images/texttouser_button.png'/><br/><a href='" . $row["url"] . "'><img src='http://localhost/erc/images/website_button.png'/></a></div></div>"; echo "<div class='email'>" . $row["email"] . "</div>"; $extra_notes = $row["extra"]; } } It basically shows the same result both times, but if the embassy is closed a simple 'The embassy is closed' message is shown. I've created the holidays table and included 2 holidays in there to test it out. I tried adding in the extra parts to the query as jock posted on here before like so $rawsql = "SELECT * FROM _erc_foffices n INNER JOIN _erc_openings o ON n.id = o.branch_id AND o.dotw = DAYOFWEEK(CURRENT_DATE()) INNER JOIN _erc_openings_times t ON o.id = t.opening_id LEFT JOIN _erc_holidays h ON h.branch_id = n.id WHERE ( UNIX_TIMESTAMP(CURRENT_TIMESTAMP()) BETWEEN UNIX_TIMESTAMP(CONCAT(CURRENT_DATE(), ' ', t.open)) AND UNIX_TIMESTAMP(CONCAT(CURRENT_DATE(), ' ', t.close)) ) AND ( n.id = %d ) AND ( UNIX_TIMESTAMP(CURRENT_TIMESTAMP()) NOT BETWEEN UNIX_TIMESTAMP(h.begins_at) AND UNIX_TIMESTAMP(h.ends_at) ) ;"; but with this extra code in there, it just outputs the address & email etc twice. Could someone help point out whats going wrong in the code? Thanks for any help
  15. edit: sorry, I've managed to fix this now so no need for the thread anymore.
  16. thanks all, I'll try this
  17. 0 down vote favorite Hi, I'm using Meioupload on a website built with CakePHP, and it is working fine for having multiple upload fields. The problem I have now is that if person A uploads a picture called 'me.jpg' and then person B uploads a picture called 'me.jpg', person B's will overwrite the first upload. Is there a way in Meioupload to change the filename as the picture is uploaded? E.g. add the person's username to the start so it would look like 'persona_me.jpg' and 'personb_me.jpg'? This is the code I currently have: var $actsAs = array('MeioUpload' => array( 'picture' => array( 'dir' => 'files/device_images', 'create_directory' => true, 'allowed_mime' => array('image/jpeg', 'image/pjpeg', 'image/gif', 'image/png'), 'allowed_ext' => array('.jpg', '.jpeg', '.png', '.gif'), 'thumbsizes' => array( 'small' => array('width'=>100, 'height'=>100), 'medium' => array('width'=>240, 'height'=>180), 'large' => array('width'=>640, 'height'=>480) ))); Thanks for any help

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.