Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: I need a little help with something

  1. #11
    Join Date
    Dec 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33 View Post
    That comes from me being tired. I missed a close bracket. Also, adding brackets around the else, just to be safe.
    <?php
    if ($_POST['site'] != "") {
    include('lincheck.php');
    exit();
    }
    else {
    ?>

    And post this at the very bottom of your page.
    <?php } ?>
    That will make it so that all the rest of the page is part of the else.
    Hello, that didn't seem to work either, it didn't change anything. I've uploaded all of what you said here: http://test.z1b.net
    But it doesn't matter about that. I more in the subject of those menus:


    I've established what coding needed to be incorparated into the site. You can look here: http://getmypr.com/index1.php
    If you look there it's all messed up. I was wondering if there was a way to get it like this:

    http://img329.imageshack.us/img329/333/getmypreh1.png

    Thanks for your expert help! And sorry for my ignorance.

  2. #12
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If you were wanting to point the page back to itself, then you'd need to change the action of the form. That's the page the data gets sent.

    Not sure about the menus... there are directions on the pages there. I'd just have to read and play with them until it worked.

    EDIT: Hmm.. that page doesn't seem to have any directions on it.

    Ok....
    1. download the .zip (*You seem to have done this.)
    2. upload the images and .js files to the SAME DIRECTORY as your page. (*You seem to have done this, too.)
    3. menu.htm is a demo. Follow the code in that as an example for how to code your page.
    Here's a bit more explanation, with a code exerpt from that page.
    Code:
    <div class="navbar"> //seems this div starts of the menus... actually not sure if it's needed.
    <!-- *********************************Start Menu****************************** -->  //just a note to you
    <div class="mainDiv" > //setting up the framework for the menu, I supppose
    <div class="topItem" >Demo Menu 1</div> //title for the menu... change as you want
    
    <div class="dropMenu" ><!-- --> //starts the dropmenu list, basically. extra comment at the end... dunno why
    	<div class="subMenu" style="display:inline;"> //starts the submenu items
    		<div class="subItem"><a href="#">Configuration</a></div> //an item
    	        <div class="subItem"><a href="#">Tool Box</a></div>  //like this for each item
    		<div class="subItem"><a href="#">Contact Us</a></div> ///like this...
    		<div class="subItem"><a href="#">Sub Menu 4</a></div> ///and this
    		<div class="subItem"><a href="#">Sub Menu 5</a></div> //etc
    
    	</div> //ends submenu
    </div> //closes dropmenu
    </div> //closes maindiv
    <!-- *********************************End Menu****************************** -->  //just a note
    <br> //nothing important for the menus... just for spacing
    <!-- *********************************Start Menu****************************** --> //note
    <div class="mainDiv" > //like above
    <div class="topItem"  >Demo Menu 2</div>    ///etc
    <div class="dropMenu" ><!-- --> //....
    	<div class="subMenu" style="display:none;">
    		<div class="subItem"><a href="#">Configuration</a></div>
    		<div class="subItem"><a href="#">Sub Menu 2</a></div>
    
    		<div class="subItem"><a href="#">Sub Menu 3</a></div>
    		<div class="subItem"><a href="#">Sub Menu 4</a></div>
            </div>
    </div>
    </div>
    <!-- *********************************End Menu****************************** --> //etc....
    <script type="text/javascript" src="xpmenuv21.js"></script> //IMPORTANT this calls the javascript so it does the actions and such
    </div> //ends the menus, I suppose, ending 'navbar' div from above
    Note: I'm using PHP-style comments, so <something> //COMMENT HERE on each line.

    Basically, just copy the above format.

    In the end, you only need one menu if you want (or you could add more).

    The <br> between them seperates them by a line, and likewise you can do what you want with spacing and put them where you want to. So.... just position the outermost div to where you want in the page/html and that's good.
    It's a lot of text, but nothing more complex than a simple <div>...</div>, or <p>, or even just a character, since html is all about just placing chunks of stuff where you want it to go.

    Good luck.
    Last edited by djr33; 12-26-2006 at 06:50 PM. Reason: clarification
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #13
    Join Date
    Dec 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    Sorry for the late reply. But I've read all that, but I cannot seem to add this to my site. Here is my INDEX.PHP Code:

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <title>GetMyPR.com - A Pagerank Checking Service</title>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
        <meta name="author" content="Momal Linux"/>
        <meta name="Copyright" content="&copy; 2006 GetMyPR.com" />
        <meta name="Description" content="A Pagerank Checking Service" />
        <meta name="Keywords" content="Google, MSN, Yahoo, Alexa, Pagerank, PR, Get, My, Web, Site, Rank" />
        <link rel="stylesheet" href="stylesheet.css" type="text/css" />
    </head>

    <body bgcolor="white">
    <? if($url == NULL) {?>
         <div id="logo"><img src="images/logo.gif" alt="Visual Eternity Logo" /></div>
            <div id="border">
                <div id="container">        
                        <div id="maincontent">
                            <p>
                            Welcome to <strong><a href="http://www.getmypr.com">GetMyPR.com</a></strong>, a site that checks your 
                            Google Pagerank, Alexa Rank, AlltheWeb, AltaVista and even Yahoo! Feel free to test out the ranking of all of your sites 
                            here!
                            </p>
                            <form method="POST" action="index.php" onsubmit="">
                            <p>
                                <input type="text" name="url" class="input" value="http://" size="10" maxlength="35" />
                                <input type="submit" name="browse" class="submit" value="" />
                            </p>
                            </form>
                            <p>
                            <br /><br />
                            <center>
    <script type="text/javascript"><!--
    google_ad_client = "pub-4497809777528354";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel = "";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "E1771E";
    google_color_text = "000000";
    google_color_url = "3D81EE";
    //--></script>
     <script type="text/javascript"
     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">                        
                            </center>
                            </p>
                        </div>
                </div>
            </div>
      <br /><Br />
      <? include('stats.php'); ?>
      <br>

        <div id="footer">
            <p>Website Copyright &copy; 2006 <a href="http://www.getmypr.com">GetMyPR.com</a>. All Rights Reserved.</p>
        </div>  
      <?} else {
    include(
    'test.php');
    if(
    $liczba '0') {
    include(
    'db.php');
    $zapytanie="SELECT * FROM catch WHERE url='$url' ORDER BY 'id' DESC LIMIT 0,1";
    $wynik mysql_query ("$zapytanie") or ("b-ad w pytaniu");
    while (
    $rekord mysql_fetch_assoc($wynik))
    {
    $key=$rekord['key'];
    $url=$rekord['url'];
    }
    } else {
    include(
    'c.php');
    include(
    'key.php');
    include(
    'num.php');
    include(
    'dodaj2.php');
    }
    ?>
         <div id="logo"><img src="images/logo.gif" alt="Visual Eternity Logo" /></div>
            <div id="border">
                <div id="container">        
                        <div id="maincontent">
                            <p>
                            Welcome to <strong><a href="http://www.getmypr.com">GetMyPR.com</a></strong>, a site that checks your 
                            Google Pagerank, Alexa Rank, as well as Yahoo and MSN backlinks. Feel free to test out the ranking of all of your sites 
                            here!
                            </p>
                            <form method="POST" action="index.php" onsubmit="">
                            <p>
                                <input type="text" name="url" class="input" value="http://" size="10" maxlength="35" />
                                <input type="submit" name="browse" class="submit" value="" />
                            </p>
                            </form>
                            <p>
                            <br /><br />
    <center>
    <script type="text/javascript"><!--
    google_ad_client = "pub-4497809777528354";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text_image";
    google_ad_channel = "";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "E1771E";
    google_color_text = "000000";
    google_color_url = "3D81EE";
    //--></script>
     <script type="text/javascript"
     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </center>                    
                            </p>
                            <p><center>
    <br /><br />
    <? print"<a href=\"$url\" target=\"_blank\"><img src=\"show_thumb.php?qk=$key\" border=1 /></a><br /><br />"?>

    Your website Alexa and Google PageRank is<BR>
    <img src="show.php?qk=<? print"$key";?>" border="0" alt="Google PageRank"?>
    <img src="showa.php?qk=<? print"$key";?>" border="0" alt="Alexa PageRank"?><br />
    Your website Estimated Domain Value<br />
    <img src="showv.php?qk=<? print"$key";?>" border="0" alt="Site Appraisal"?><br>
    You may copy this code to your page to get real-time based banner<br>
    <table border="0"><tr><td bgcolor="#666666"><font size="3" color="#FFFFFF">Google banner code</font></td></tr>
    <tr><td>
    <textarea readonly rows="3" cols="55" onClick="this.focus();this.select()" id="code">&lt;a href="<? print"$site"?>"&gt;&lt;img src=&quot;<? print"$site"?>show.php?qk=<? print "$key"?>&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
    </textarea></td></tr>
    <tr><td bgcolor="#666666"><font size="3" color="#FFFFFF">Alexa banner code</font></td></tr><tr><td><textarea name="textarea" cols="55" rows="3" readonly id="textarea" onClick="this.focus();this.select()">&lt;a href="<? print"$site"?>"&gt;&lt;img src=&quot;<? print"$site"?>showa.php?qk=<? print "$key"?>&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
    </textarea></td>
    </tr>
    <tr><td bgcolor="#666666"><font size="3" color="#FFFFFF">Site Appraisal banner code</font></td></tr><tr><td>
    <textarea readonly rows="3" cols="55" onClick="this.focus();this.select()" id="code">&lt;a href="<? print"$site"?>"&gt;&lt;img src=&quot;<? print"$site"?>showv.php?qk=<? print "$key"?>&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
    </textarea></td></tr>
    </table>
    <br>
    <?
    $urla
    =$url;
    include(
    'rap.php');
    ?>
    </center></p>
                        </div>
                </div>
            </div>
      <br /><Br />
      <? include('stats.php'); ?>

    <br>
        <div id="footer">
            <p>Website Copyright &copy; 2006 <a href="http://www.getmypr.com">GetMyPR.com</a>. All Rights Reserved.</p>
        </div>

    <? ?>
    It's really quite annoying, I've fiddled with it all I can but I cannot seem to find a solution. Even when I follow your directions, I cannot seem to get this right. Anyhelp is appreciated!

  4. #14
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Looking at that quickly, seems just fine, but you never set $url. Should get $_POST['url'], or something.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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