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.

Vreaking

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Vreaking reacted to Wickham in CSS Beginner, stumbled upon a problem.   
    Give us a link to your online page so that we can download images and test.
     
    To get elements side by side in CSS, if they are inline elements like <img> tags, then just coding one after the other like text should make them side by side if there is enough width in a container element.
     
    If they are block elements (or you have made <img> tags block by using display: block; in a class or id style), and then used float: left for all items, then they should float side by side if there is enough width in the container element.
  2. Like
    Vreaking reacted to Alias in Button that sets page to homepage?   
    Not a clue, but a quick google:
     

    <FORM> <INPUT TYPE="button" VALUE="Make This Site Your Home Page" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('Page URL beginning with http:// here');"> </FORM>
     
    Assuming it works
  3. Like
    Vreaking reacted to Alias in Need help with changing submit button.   
    The obvious first, is the image in the same directory as the file your loading? Also, you may want to set the height and width manually with specific pixels.
  4. Like
    Vreaking reacted to zed in Hiding a textbox, and make it appear by clicking   
    something like this? and put each of your textboxes in the DIV that is open/closed? http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm'>http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
     
     
    other similar ones here http://www.dynamicdrive.com/dynamicindex17/
  5. Like
    Vreaking reacted to mrchristoph in How to costumize your button?   
    In CSS you can set the background of this to an image of your choosing:
     

    #submit{ background: url(images/whater.jpg) top left no-repeat; border: none; height: whatever; width: whatever }
     
    you get the idea
  6. Like
    Like I said you can use anything to write PHP code, notepad or even conTEXT. But that won't give you any way of actually testing the web page on your computer. I'm not sure if you understand the difference between PHP code and a testing server.
     
    Other than the tutorials and FAQ's I gave you the links to I don't know what else to suggest, sorry.
  7. Like
    I understand it can get complicated, but really you only need two. One for writing code, one for testing. In my case Dreamweaver and MAMP.
     
    It'll get easier trust me, I was super confused when I first started out. You just need to know, that you can't write in PHP if you don't have a testing server.
  8. Like
    Not entirely true because you don't need to access MySQL for the script I wrote for you. PHP and MySQL do go hand in hand but you're not required to access it just to code in PHP.
     
    Xampp and other testing servers all have everything ready to go, just put your site folder (root) inside the htdoc folder which will be set up for you when you install the servers. Once you've done that you will have to type localhost: into your browser, followed by your port (can't remember what this is off the top of my head but it's something like 8080) followed by your sire folder name followed by your index.php file.
     
    http://localhost:8080/yoursite/index.php
     
    I'm giving you these instructions from my memory because I'm at work so they could be slightly wrong, especially as I set up my testing server in Dreamweaver so all I have to do is click preview in browser!
     
    Is there anyone who doesn't use Dreamweaver who can confirm or change my instructions above for Vreaking?
     
    [Edit]
    A quick search on the xampp FAQ shows that apparently you don't need to specify a port
     
    http://www.apachefriends.org/en/faq-xampp-windows.html#startpage
     
    So you can just use http://localhost/yoursite/index.php in your browser.
     
    Hope that helps.
  9. Like
    Could you not just use WAMP (or MAMP for a Mac) to create an Apache testing server with PHP, MySQL and MyPHPAdmin with it? Or is that not what you're trying to do?
    [Edit]
    http://www.wampserver.com/en/
    http://www.apachefriends.org/en/xampp-windows.html
     
    And a tutorial from Adobe to set them up:
     
    http://www.adobe.com/devnet/dreamweaver/articles/setup_testing_server.html
     
    Hopefully point you in the right direction
  10. Like
    I'm not sure what you mean, you can use anything to write PHP like notepad or notepad++, Dreamweaver does a great job of making PHP easier to read so if you have it I would recommend you keep using it.
     
    It doesn't matter what you write PHP in though, to view it in a browser on your computer you will still need to install a testing server like xampp or wamp.
     
    To clarify, PHP is just another language that you can use to code a web page, like HTML and JavaScipt, the only difference is that it gets executed on the server before the browser interprets it.
  11. Like
    Vreaking reacted to MarkJenner in How do one test his work with conTEXT?   
    File - Open File - Scroll to your .html file you've created
  12. Like
    Vreaking reacted to welshhuw in How do one test his work with conTEXT?   
    To run anything with PHP code you need to install WAMP or XAMMP or MAMP(mac).
     
    Follow the instructions and you should be good to go!
  13. Like
    Vreaking reacted to iKane in Help making a Link with dreamweave sc5   
    Haha you're more than welcome. Glad I could help! Let me know if you need anything else.
  14. Like
    Vreaking reacted to iKane in Help making a Link with dreamweave sc5   
    Do you mean, that there would be an option for a visitor to define a link to whatever page they wanted (http://www.example.com), and it saves it for that visitor? So even when they close the site, if they reopen that site the link they defined as www.example.com would still be there?
  15. Like
    Vreaking reacted to iKane in Help making a Link with dreamweave sc5   
    No problem!
     
    Well, off the top of my head if there's no log in options for the website that will have the link, which would be used store user data, then I think you would have to do it with cookies. The problem with this of course being that as soon as a user clears his or her browsing history along with all the cookies, or if they haven't even got cookies enabled, then it will only last that long and they would have to re enter the link.
     
    If you wanted to make it permanent (like being able to customize Google's home page) then you would have to have some sort of log in procedure.
     
    You couldn't even store users IP addresses in a database to choose what to show because IP addresses change all the time, or they might one day be looking at it on a PC and the next on an iPhone.
     
    I hope I've understood what it is exactly you're trying to do, if not I could be giving you completely pointless advice
     
    Let me know if this helps!
  16. Like
    Vreaking reacted to iKane in Help making a Link with dreamweave sc5   
    Lol, okay. What do you code in? PHP would be useful here! I can give you some pointers but you'll need to have some way of testing out your PHP script on your computer (otherwise you'd have to keep uploading it to a server which would get harsh when debugging etc)
  17. Like
    Vreaking reacted to iKane in Help making a Link with dreamweave sc5   
    I think you mean Dreamweaver CS5 not SC5?
    I'm working on a little script for you, but you will only be able to use it on a webpage that has .php at the end, not .html.
  18. Like
    Vreaking reacted to iKane in Help making a Link with dreamweave sc5   
    You're welcome!
     
    This isn't much but hopefully it will steer you in the right direction. If you need any help let me know but I've tried to comment on everything so you know. You can copy and paste this into a .php file and poke and prod away as much as you like (it's how I learned).
     
    This example assumes that the page this is on is index.php, so change that to whatever you want your actual page to be called.
     
    This has to be BEFORE the doctype declaration, so it has the chance to execute on the server before the page loads:

    <?php //Check if submit button was clicked $submitted = $_POST['submit']; //If it was, start setting the cookie, if not just carry on loading the page as normal if ($submitted == "Set") { //Decide on options for cookie $name = "link"; //Make the cookie value whatever was entered in the text input field $value = $_POST['linktoremember']; //Make expire time a super duper long way into the future $expire = mktime(0, 0, 0, 12, 31, 2015); //Set cookie with above values setcookie($name, $value, $expire); //Then reload the page header("location:index.php"); } ?>
     
    And this code goes between the <body></body> tags:

    <?php //Check if cookie exists if (isset($_COOKIE["link"])) { //If it does, display the link that was stored in the cookie echo("<a href='" . $_COOKIE["link"] . "'>" . $_COOKIE["link"] . "</a>"); } //And if it's not, then display the form to enter the link else { ?> <form action="index.php" method="post"> Enter a link to save for your homepage: <input id="linktoremember" type="text" name="linktoremember" /> <input id="submit" type="submit" name="submit" value="Set" /> </form> <?php //End of "else" statement } ?> </body>
     
    And you can see it working at http://testingground.../cookielink.php
     
    Let me know how you get on.
  19. Like
    Vreaking reacted to iKane in Help making a Link with dreamweave sc5   
    Yup, apologies for the output looking ugly but it's just to give you an idea!
     
    Add this just before " //Check if submit button was clicked $submitted = $_POST['submit'];":

    //Check if X link was clicked $delete = $_GET['q']; //If it was then delete the cookie if ($delete == true) { //Delete the existing cookie (by setting it's expiry date to a past time) setcookie("link", "", time()-3600); //Then reload the page header("location:index.php"); }
     
    And then replace "echo("<a href='" . $_COOKIE["link"] . "'>" . $_COOKIE["link"] . "</a>");" with:

    echo("<a href='" . $_COOKIE["link"] . "'>" . $_COOKIE["link"] . "</a>" . " <a href='index.php?q=true'>X</a>");
     
    And you should get an X link which you can click to delete the link from the cookie and start again.
     
    Try it here:
    http://testingground.../cookielink.php
     
    [Edit] Don't forget to click on the green + if you feel like I've helped! It's much appreciated

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.