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.

drennan

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    drennan reacted to BrowserBugs in Homepage not indexing (other pages are though)   
    Ahoy. The home page IS indexed (search site:http://www.theirdomain.com with Google), just has no value as @@BlueDreamer says. If you do move the content from about to home don't forget to 301 the about back to the home.
  2. Like
    drennan reacted to BlueDreamer in Homepage not indexing (other pages are though)   
    The home page is indexed but has next to no value because there's no useful content on the page, for a general search like you suggested the about page is the most relevant, that's why you see it in search results.
     
    The solution could be to get rid of the about page and put that content on the home page, along with some clear calls to action.
  3. Like
    drennan reacted to tk-hassan in Remove file extension from URL   
    you can use mod_rewrite of apache via .htaccess file on your webhisting root folder.
  4. Like
    CodeIgniter is a popular and simple PHP framework. I've used it a few times for personal projects and found it very easy to pick up. It would work well for this mini-CMS you're creating.
     
    It may be simple, what you're building, but that doesn't stop you building it using best practices. Hopefully you'll find that using a framework will open your eyes to the object-oriented approach.
  5. Like
    drennan reacted to andy9l in Count characters in text area populated from database   
    This should work, and it's a bit more expandable. Add as many fields as you need without needing more Javascript.
     
    http://jsfiddle.net/bkXw3/
  6. Like
    drennan reacted to SniderDK in PHP echo only month from record   
    <?php
     
    $parts = explode('-', $row_events['fromdate']);
     
    echo $parts[1];
     
    ?>
     
    if thats uk format or
     
    <?php
     
    $parts = explode('-', $row_events['fromdate']);
     
    echo $parts[2];
     
    ?>
     
    if it is USA format
  7. Like
    like this? http://jsfiddle.net/mMMfn/1/
  8. Like
    drennan got a reaction from mrludable in Lightbox or something similar   
    I use colorbox which is free and you can easily customise it by changing the CSS and sprite images. There are also 5 different styles.
  9. Like
    drennan reacted to webdeveloper93 in Getting blank emails from website   
    u can use captchas or a spam trap or both such as a hidden field that if it gets filled in by a bot dont let the form be sent
  10. Like
    drennan reacted to ElanMan in Enter key not submitting form   
    Assuming your form is like this:

    <form id="myform" action=""> <p> <input name="myinput" id="myinput" autocomplete="off" type="text" /> <input type="submit" value="Submit" /> </p> </form>
    place the following js just before the </body> tag:

    <script type="text/javascript"> window.onload = function() { var myform = document.getElementById('myform'); var myinput = document.getElementById('myinput'); myinput.onchange = function() { this.value = this.value.toUpperCase(); }; myform.onsubmit = check; } function check(){ var code = document.getElementById('myinput').value; if (code == "ABC") { window.location = "yes.php"; } else { window.location = "no.php"; } return false; } </script>
  11. Like
    drennan reacted to Jock in htaccess to close site daily   
    I would guess there is significantly less overhead using .htaccess than using PHP and on a multiple entry point web application it seems the only feasible option.
     
    However if you had a single entry point application, like something built with Zend Framework or Code igniter for example where PHP is in charge of routing the request then its perfectly feasible to write some kind of date aware router or controller plugin. Which would probably be easier to write as PHP date functions are far better documented than some of the mod_rewrite conditions.
     
    If you really wanted to create rules using PHP without using a single entry point MVC setup you can use a RewriteMap to communicate directly with PHP via a STDOUT/STDIN IO stream. e.g if you had custom SEF URL's stored in a database and mapped to a physical file.
  12. Like
    drennan reacted to Jock in htaccess to close site daily   
    Had to google weekday conditions...
     

    RewriteEngine on RewriteCond %{TIME_HOUR}%{TIME_MIN} >1000 RewriteCond %{TIME_HOUR}%{TIME_MIN} <1400 RewriteCond %{TIME_WDAY} > 0 RewriteCond %{TIME_WDAY} < 6 RewriteCond %{REQUEST_URI} !^/demo.* RewriteRule !\.(js|gif|css|jpg|png)$ closed.php [NC,L]
  13. Like
    drennan reacted to Jock in htaccess to close site daily   
    actually you could try getting rid of the space after the operands...
     

    RewriteEngine on RewriteCond %{TIME_HOUR}%{TIME_MIN} >1000 RewriteCond %{TIME_HOUR}%{TIME_MIN} <1400 RewriteCond %{TIME_WDAY} >0 RewriteCond %{TIME_WDAY} <6 RewriteCond %{REQUEST_URI} !^/demo.* RewriteRule !\.(js|gif|css|jpg|png)$ closed.php [NC,L]
  14. Like
    drennan reacted to Shaun Childerley in Logout user/kill session on page load?   
    Ok, Create a page called logout.php
     
    place <?php session_destroy(); ?>
     
    go to it, and try reaccess the members area..
  15. Like
    drennan reacted to Jay Gilford in Display Server Time   
    The easiest way I can think of is to send the server time as a variable for javascript, then work out the offset to begin with, and update your javascript clock based off that There's not really any other easy way to do it tbh
  16. Like
    I try to publish at least 12 other peoples things in between each one of mine.
     
    The more value you add to your followers the more value and trust you gain.
     
    Its true you shouldnt push your message out there too forcefully - but don't lose sight of why you are in Twitter or Facebook.
     
    Have goals before you start. Are you using it to make contacts? To sell your service? To drive traffic to your site. Make sure you work towards that goal.
     
     
    There are plenty of social media guides out there - feel free to follow me and have a chat on Twitter. Would be happy to point you in the right direction.
     
     
    Charlie - http://www.twitter.com/charliesaidthat
  17. Like
    drennan reacted to Wickham in best free 'live chat' for my website   
    You could try cBox http://www.cbox.ws/
     
    You could put the whole thing inside a javascript show/hide expand/collapse code to be opened when clicking a link; or javascript to open a new window.
     
    I've never used it, but it looks OK.

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.