Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Posts
    3
    Tokens
    0

    Default Need some basic coding help!

    This is for a completely unrelated habbo website but since i was on this forum before when i played habbo i though it would be the best play to ask =D


    They are only basic things i need doing so if someone can help please add me to msn [email protected] because im completely useless and if i try and ill mess the whole thing up and have to start all over again =D


    Thanks
    Mark

  2. #2
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Why take it to msn? Post what you need help with here and we'll help you out.

  3. #3
    Join Date
    Aug 2004
    Location
    United Kingdom
    Posts
    5,769
    Tokens
    1,249
    Habbo
    Beneficial

    Latest Awards:

    Default

    Added you, Mark. Although, I do agree with Trinity, you could've posted your problem here and it would've been fixed.
    what is fetch gretchen?

  4. #4
    Join Date
    Mar 2011
    Posts
    3
    Tokens
    0

    Default

    Just thought it would be easier to explain and show on msn rather than on here, i can try and post it on here but it might not make sense haha
    Last edited by NewbieMe; 16-03-2011 at 11:06 PM.

  5. #5
    Join Date
    Aug 2004
    Location
    United Kingdom
    Posts
    5,769
    Tokens
    1,249
    Habbo
    Beneficial

    Latest Awards:

    Default

    Okay, NewbieMe.
    what is fetch gretchen?

  6. #6
    Join Date
    Mar 2011
    Posts
    3
    Tokens
    0

    Default

    Right okay here goes nothing =D

    What i need is
    - For each of the links when you click on them just the content box to refresh.
    - Some way of posting news/updates easy, but for it to be short snippet then once clicked on that it takes you to the news and update page.
    - and to link the pages up haha.

    Once I've got that under control im pretty sure i can figure out the rest.

    Heres the code.

    HTML Code:
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Heritage Stud</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <div id="wrapper">
        <div id="header">
            <h1>Heritage Stud</h1>
            <h2></h2>
        </div>
        <div id="menu" style="WIDTH: 800px; HEIGHT: 44px">
            <ul>
                <li><a href="index.html">Home</a></li>
                            <li><a href="#" >Animals</a></li>
                  <li><a href="#">News/Updates</a>
                <li><a href="#">For Sale</a>
                            <li><a href="#">Rescue</a>
                <li><a href="#">Links</a>
                <li><a href="#">Contact Us</a>
                </li>
            </ul>
        </div>
        <div id="content">
            <div id="right">
                <div class="post">
                    <h2>Welcome to Heritage Stud. </h2>
                    <p>Text to go here =D
    hgjggggggggggggggggggggggggggggggghjhgj </p>
                </div>
            </div>
            <div id="left">
                <h2>Recent Updates</h2>
                <p>Updates to go here =D
    hjkhjkhjkhjkhjkjhk</p>
            </div>
        </div>
        <div id="footer">
    <div align="center">
            <p class="copyright" style="WIDTH: 0px; HEIGHT: 26px">
    <div align="center">Copyright © 2011 Heritage 
    Stud.</div>
    <p></p></div>
        </div>
    </div>
    </body>
    </html>
    Thanks Mark.

    P.S Im a breeder of Rabbits, Rats and Mice =D
    Last edited by NewbieMe; 16-03-2011 at 11:22 PM.

  7. #7

    Default PHP+AJAX

    You can make a content updater in php and AJAX, its not all that hard.
    HTML File:
    Code:
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Heritage Stud</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <script type="text/javascript" src="http://aidantaylor.net/javascript/jquery-1.5.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $("#update").html("Refresh");
      $("#update").click(function(){
        $("#updates").load('PHPfile.php');
      });
    });
    </script>
    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
            <div id="left">
              <a id="update" href=" "></a>
    <h2>Recent Updates</h2>
              <div id="updates">
                  <p>Updates to go here =D<br /></p>
               </div>
            </div>
    </body>
    </html>
    The php file will depend on what the update div is reading, if it is an xml file, then get the date of the latest post, and do the date() function to format it, and mach it, if it dosent match to the latest inside the update xml file, then the ajax will replace the content thats inside the #updates div.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •