Jump to content

acornrevolution

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

acornrevolution's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This problem is seriously hampering the way I have set-up navigating my site. I have been using the code below for some time, successfully, but have had to avoid adding more than one category to a post because if I do, posts from all categories listed are shown in the Recent Posts section - a dynamic portion of the sidebar.php which displays the recent posts for whatever category is being browsed. I only want that categories posts to show, and no others. Is there any way to modify this so it shows the current category's recent posts and ONLY those posts? Here's the code: http://wordpress.pastebin.com/x9uwXGmr Thanks! Much appreciated!
  2. Thanks, both codes worked, but leave me with a few questions: john010117: The the user types in a username (which is essentially typing in a diretory) that doesn't exist, how can I have the form recognize this and redirect the user to a different page. alecks: The AJAX code worked great and was exactly what I was looking for! Is it cross broser-compatible, and what exactly is: /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(E){ xmlhttp = false; } } @else xmlhttp = false; @end @*/ ?? Thanks, Acorn
  3. I'll try that out and see how it works, let you know in a few days!!!
  4. Hopefully I don't make this sound stupid. The form will just have a username box. Say the username is xj. Submitting the form will bring the user to /users/xj. That page will prompt for password. On process.php, what is form.php pointing too? Is that the form, and it redirects back if the username is incorrect?
  5. Thanks for the quick reply. I tried using Iframes but it kept throwing off my layout and creating an empty white space under all my work. I have a side bar of about 200px, a header of 250, and a menu under that of 20. Under that is the main content. I size the iframes for 100% (100% of the remaining space right?) but it throws everything off and with different browsers, creates 2 slidebars on the right - which is ugly. If you have a better suggestion on how to fix it, I would love to hear it! Where do I insert the header tag exactly? How does it work?
  6. Hi. I'm trying to do a few different things on different pages with PHP and wondering if I could get some help. First, I'm using a php include script in which all other consecutive pages load into the first index page (index.php?page=x). At the top is a small flash presentation. When a link is clicked, the correct page is loaded, and the movie starts over, because basically it is being loaded again. Is there any way around this? Second, I am trying to make a simple login page. On the front page, I would like to be able to allow a user to enter their username, which then would direct them to their folder (username = hello, folder is users/hello) and on that page, I will use a php password script I have. How can I do this? Thanks for any help!!!!! (A)corn
  7. All right! It works. I'm using the following code: <?php $page = $_GET['page']; if ($page && file_exists("$page.htm")) { @ require_once ("$page.htm"); } else { $page = "content/home"; @ require_once ("$page.htm"); } ?> If the page is missing, how do I get it to go to an error page or at least display an error message? Also, if I want the title to change with the links, I know there is some php title command. How do I do that?
  8. by the way, i never expected such fast replies and I am very grateful for them. I've been using html and css for a while, but I'm pretty new to PHP so all this help is great! THANKS AGAIN!
  9. This is what I used: <a href="index.php?page=green">Green</a><br> <a href="index.php?page=black">Black</a><br> <a href="index.php?page=red.htm">Red</a> <?php $page = $_GET['page']; if ($page && file_exists("$page.htm")) { @ require_once ("$page.htm"); } else { $page = "white.php"; @ require_once ("$page.htm"); } ?> I used colors to help see the changes better. It seems to be working, loading different pages in the same space, like I wanted, but only the text of the linked-to page comes up, and not a different bg color. Also, if I wanted the title to change with each page/link, is that possible?
  10. It just isn't working. Just a blank page.
  11. Hi everyone! I'm just starting to use PHP and am trying to figure out a simple (i think) code that uses the include() function. I want the index.php to automatically include the main content page, and then each link on my menu loads in the space where the main content page loaded. I had something like this, which didn't work: <?php if ($page && file_exists("$page.htm")) { @ require_once ("$page.htm"); } else { $page = "misc/intro"; @ require_once ("$page.htm"); } ?> Basically I want it to call up content.php automatically, and when a menu link is clicked on, it loads in that same space without changing index.php. How can I do this? Acorn!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.