+ Reply to Thread
Results 1 to 7 of 7

Thread: Hide content

  1. #1
    monky91 is offline x10 Lieutenant monky91 is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    353

    Hide content

    I have a site and the index.php is full of words, but now I just want it to show : Site under construction....

    How to hide the other contents? Using what html code?

    Actually, it is not a must to use html code, if you know how to let those members view "under construction " word and hide the other content using javascript or php, it can do too.

    Thanks
    Last edited by monky91; 12-14-2006 at 09:25 PM.

  2. #2
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Hide content

    you could just wrap your other text in <?php and ?>, that's probably the simplest thing to do, just put those tags around all the text that you don't want to be viewed
    -Chris Z
    Retired Account Manager


  3. #3
    dyfuse's Avatar
    dyfuse is offline x10 Sophmore dyfuse is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    196

    Re: Hide content

    Or possibly put a <div></div> around the text with the CSS property "display"

    Code:
    <div style="display: none;">
    Your whole bunch of plenty of text.
    </div>
    Don't worry, this will work in a HTML-based page.

    Hope this helps!

  4. #4
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Hide content

    i guess that would work too then...lol sorry i ain't familiar with CSS
    -Chris Z
    Retired Account Manager


  5. #5
    dyfuse's Avatar
    dyfuse is offline x10 Sophmore dyfuse is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    196

    Re: Hide content

    Yeah, that's no problem...CSS is very easy to pick up...you'll have in under wraps in no-time!!

    It's just if you wrap the chunk of text in "<?php" and "?>" tags, you will get errors, especially if it's a PHP-format page, if it's a HTML-format page...I believe it'll most likely print out all the text regardless, because it won't recognise the PHP opening/closing tags.

  6. #6
    lambada's Avatar
    lambada is offline x10 Elder lambada is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    Caister, Gt Yarmouth, Norfolk, ENGLAND
    Posts
    1,222

    Re: Hide content

    OYu could always use the trusty HTML comment tags

    <!-- -->
    Lambada - the former Account Manager (before I resigned)




  7. #7
    dyfuse's Avatar
    dyfuse is offline x10 Sophmore dyfuse is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    196

    Re: Hide content

    It's funny how one sometimes forgets the basics...;)

    "How to hide contents within a HTML page"
    In summary:

    CSS
    Code:
    <div style="display: none;">
    Your whole bunch of plenty of text.
    </div>
    HTML
    Code:
    <!-- Your whole bunch of plenty of text. -->

    If the page was in PHP format:
    Code:
    /* Your whole bunch of plenty of text.
    (Multiple Lines) */
    or
    Code:
    // Your whole bunch of plenty of text. (Single Line)
    Hope this all helps!

+ Reply to Thread

Similar Threads

  1. content
    By swirly in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 06-19-2006, 09:23 AM
  2. Content Manager
    By AKValle26 in forum Scripts & 3rd Party Apps
    Replies: 12
    Last Post: 12-08-2005, 08:38 PM
  3. Interoperability of Content Management System
    By Wai_Wai in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 09-14-2005, 09:14 PM
  4. Website Content
    By Chris in forum Off Topic
    Replies: 9
    Last Post: 03-20-2005, 07:47 PM
  5. Which Content Maneger?!
    By MicrotechXP in forum Scripts & 3rd Party Apps
    Replies: 12
    Last Post: 03-20-2005, 09:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers