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.

ELITE

Privileged
  • Joined

  • Last visited

Reputation Activity

  1. Like
    ELITE reacted to BrowserBugs in URL Token   
    I would say yes to store a session against a user and you should also store where the requests came from. This data is great to work out usage and also helpful to detect abnormal behaviour. As to the token length of time or if to refresh, i'm guessing this is some sort of api connecting from their end so the token validates the request, if so then there's no point in changing it.
  2. Like
    ELITE got a reaction from ChrisSoutham in htaccess friendly url problem   
    RewriteEngine On RewriteRule ^oak-furniture/([A-Za-z0-9-]+)/?$ oak-furniture.php?oak-furniture=$1 [NC] this worked for me thanks for pointing out my copy and paste error
  3. Like
    ELITE reacted to ChrisSoutham in htaccess friendly url problem   
    You didn't say there was an error?
    Add something like print_r($_GET) or var_dump($_GET) and see if the variable is being passed though. In your original call you say ?oak-furniture= whereas your .htaccess file says ?id=
  4. Like
    ELITE reacted to mteam in JQuery cycle no longer with prev and next buttons   
    You've got a minus z-index on your container
  5. Like
    ELITE got a reaction from deanlynn in Duplicate Content   
    If it is of any use to you from Googleing around i found that you can report duplicate content to Google and you can also use an adon to Google Chrome to make it easier
     

    https://chrome.google.com/webstore/detail/google-webspam-report-by-/efinmbicabejjhjafeidhfbojhnfiepj
  6. Like
    ELITE got a reaction from Kaskhautual in unzip a zipped folder into the root   
    Hi All, i am trying to unzip the contents of a zipped folder into the root of the site, i can only make it work by extracting the contents and creating a directory with the same name of the zipped folder, so i have a directory called zip when i run the below php
    <?php $zip = new ZipArchive; if ($zip->open('zip.zip') === TRUE) { $zip->extractTo('unzip.dev'); $zip->close(); echo 'ok'; } else { echo 'failed'; } ?> what i woluld like is the contents of zip.zip to be in the unzip.dev directory
     
    any ideas?
     
    Thanks
  7. Like
    ELITE reacted to Sendoushi in sublime 2 and transmit   
    Transmit lets you make a "drive folder" from your ftp ("Mount favorite as disk"). Then you just have to open the file you want and code directly. I also use both apps (considering Brackets for dev).
  8. Like
    ELITE got a reaction from predatorx in Foundation 3 navigation and Fancybox javascript clash   
    you have the jquery library included twice i have removed line 306 and it seems to be working for me
  9. Like
    ELITE got a reaction from Nillervision in Foundation 3 navigation and Fancybox javascript clash   
    you have the jquery library included twice i have removed line 306 and it seems to be working for me
  10. Like
    ELITE got a reaction from jerOpporpViof in sublime 2 and transmit   
    Hi All, i have been using dreamweaver for 5 years in code view, i decided to look for something more suitable for PHP and i went for Sublime 2 and for ftp i used transmit, i have seen it used when you save your file it puts it to the server, i have looked for tutorial for this but cant find it, does any one know how to do this?
     
    Thanks
  11. Like
    ELITE reacted to Skateside in ajax count files in directory   
    if (Array.isArray(data.files)) { data.files.forEach(function (file) { console.log(file); }); } Essentially, that's how you want to do it.
  12. Like
    ELITE got a reaction from KalobTaulien in Array loop not working   
    solved it

    $list[] = array("$file");
  13. Like
    ELITE got a reaction from adsegzy in How do I pull rows from mysql with Javascript onchange function   
    one way i think may work for you is to use Jquery onchange
     
    http://api.jquery.com/change/
     
    from there you can use Jquery Ajax to post the drop down value to another file containing your select query to fetch the correct states to populate your select drop down options
     
    http://api.jquery.com/jQuery.post/
     
    hope it helps
  14. Like
    ELITE reacted to jec in Mastering Javascript   
    Please do not do this. jQuery is an absolutely great library but nothing will beat having a very firm understanding and grasp of JS. Learn JS and everything else will fall into place. JS has been around since 95 I think, jQuery is fairly new and as with anything new some things become fads and others replaced on a regular basis by something new and better. I am not saying jQuery will become obsolete anytime soon, or if ever; it is no secret that jQuery has greatly improved upon the downfalls of JS, but it is good to keep in mind that it is important to learn the foundation of a language and build upon it from there. There is nothing saying you can't learn both together as well.
     
    Regardless of what direction you take, good luck!
  15. Like
    ELITE reacted to heydanreeves in What property am I missing?   
    Add
    overflow:hidden; to #container_un.
     
    Edit: For clarification, elements whose children are all floated collapse their height. Adding overflow:hidden; is a fix for this.
  16. Like
    or you can use file_get_contents and file_put_contents
  17. Like
    ELITE reacted to Jason Dexter in ahrefs.com   
    I'd say he's paying for nothing. There might be the odd occassion where backlinks aren't picked up but they have to be pretty obscure.
     
    Ask him to request work reports. Any seo will keep a record of everything they do
  18. Like
    ELITE got a reaction from darrenbale in Edit css from within website, like wordpress editor   
    Hi, this may get you started.

    <?php $test = "test.css"; $fh = fopen($test, 'r'); $newcss = fgets($fh); fclose($fh); ?>
     
    that opens the file
    put $newcss inside an editor

    <textarea><?php echo $newcss; ?></textarea>
    so they can edit the css file
    When they submit call the below php that will overwrite the css file

    <?php $test = "test.css"; $fh = fopen($test, 'w') or die("can't open file"); $css = "$newcss"; fwrite($fh, $css); fclose($fh); ?>
     
    not tested but not far off
  19. Like
    ELITE got a reaction from AlexsDesign in Get external file....   
    Hi, is there a good reason why you cant have the javascript file on your server
     
    or try this you can work around it
     

    <?php $file = file_get_contents('http://www.example.com/js/required-file.js'); echo $file; ?>
     
     
    I think this will still give you a problem with SSL
  20. Like
    ELITE got a reaction from AlexsDesign in Get external file....   
    I have just tried it on a site with an SSL and it is working with file_get_contents
  21. Like
    ELITE reacted to Renaissance-Design in Styleing Select   
    For future reference, always put the official CSS version of a property after any vendor-prefixed versions:
     

    -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px;
     
    Browsers always implement the last version of a property they recognise, so it makes sense to ensure that the last version the browser encounters is the official one.
     
    Selects do accept border-radius, so what I think you're experiencing there is some sort of clash or bug that's only manifesting itself in Webkit.
  22. Like
    ELITE reacted to webdeveloper93 in how to include Random numbers from GD(captcha)   
    mm the most common way is
    <img src="captcha.php" width="140" height="30" />
     
    since captcha.php is outputting an image it can be treated like an image
  23. Like
    ELITE got a reaction from Pete Prosper in Website not working on PC   
    may be worth looking at this

    <!--[if IE]> <style> body {background: #EEE; color: #000; behavior: url(csshover.htc);} div#nav ul.level1 li.submenu:hover ul.level2 {display:block;border:none;} div#nav li.end{ width: 9.2em; border-right:none; line-height:1.3em;} <![endif]-->
     
    you seem to be missing </style>
  24. Like
    ELITE reacted to Pete Prosper in Help With OOP   
    In terms of coding, it's still not an ideal class.
     
    There's no constructor, no access modifiers, no getters or setters, etc etc. Also, you're using the "var" keyword which is deprecated and not needed and your methods aren't being used properly.
     
    That's at a quick glance.
     
    Edit: I realized I didn't really give a good explanation of what I meant when I said the "your methods aren't being used properly". Some users above me wrote about the the proper use of properties and methods and how they relate to the class.
  25. Like
    ELITE reacted to webdeveloper93 in Help With OOP   
    theres not a whole bunch you can do with a simple class like yours but heres a little better version
     

    <?php class tax { private $tax; private $price; private $addedTax; /** *Our construct **/ public function __construct($tax){ $this->tax = $tax; } /** *Add the tax **/ public function add() { $this->addedTax = number_format($this->tax/100*20, 2, '.', ''); return $this->addedTax; } /** *Get the price **/ public function get_price() { $this->addedTax = number_format($this->tax/100*20, 2, '.', ''); $this->price = number_format($this->tax-$this->addedTax,2,'.',''); return $this->price; } } ?>

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.