View Full Version : I need a little help with something
echo_unlimited
12-26-2006, 12:12 AM
Hello,
I've just bought a website and domain name.
Website: http://getmypr.com
I've found a script which is perfect, but I need to know a way of integrating it into my site. The script is uploaded here: http://getmypr.com/linkcheck.php
How can I integrate it so when everything is checked it will integrate into my sites main page (getmypr.com/index.php)
If you look at my main page it has submit button, I was hoping to integrate it with that. I'm not very good at coding, so...
Any help would be appreciated.
djr33
12-26-2006, 08:22 AM
Please define 'integrate'.
echo_unlimited
12-26-2006, 10:26 AM
Please define 'integrate'.
Hello,
What I mean is I want to get: http://getmypr.com to work using the script that is on: http://getmypr.com/linkcheck.php - Both pages have forms on them, only one works, which is the second link, I want to get that form onto the other page without damaging the current form which is in the first link!
I don't know what to call it, but wouldn't intergrate be the perfect word, seeing as you're taking a php script from another page and 'adding' it to my main page. :)
Thanks,
-echo
djr33
12-26-2006, 10:31 AM
CHANGE: <form method="get" action="" onsubmit="">
TO: <form method="get" action="linkcheck.php" onsubmit="">
echo_unlimited
12-26-2006, 10:48 AM
Thank you it worked :)
But is there anyway of getting the Google, Alexa, msn and all that information on the same page?
Sorry if I'm requesting to much,
-echo
djr33
12-26-2006, 11:48 AM
Your page loads INCREDIBLY slowly. Like 3 minutes.
I don't get the question... they all apear there, but several of the sources give errors, rather than reporting a number.
echo_unlimited
12-26-2006, 01:05 PM
Your page loads INCREDIBLY slowly. Like 3 minutes.
I don't get the question... they all appear there, but several of the sources give errors, rather than reporting a number.
I think the slowness is to do with my host. I'm getting a VPS today, so hopefully I shall move everything over and see how it goes!
What I'm saying is that I want the results to display on http://getmypr.com/index.php
If it can, if can't then okay...! :)
Also, I downloaded this: http://www.dynamicdrive.com/dynamicindex1/switchmenu2.htm
Uploaded here: http://getmypr.com/menu.htm
How may I get those two 'menus' on the left hand side of my Main page?
I promise this is my last request about this :)
Thanks again for all the help!
djr33
12-26-2006, 01:39 PM
Just place the code on your page where you want it... follow the directions on the page for the menus.
As for having the form go to the same page, add this to the stop of your page:
<?php
if ($_POST['site'] != "") {
include('lincheck.php');
exit();
else
?>
That assumes the fieldname for the website was 'site'.
echo_unlimited
12-26-2006, 03:19 PM
I think I'll give that second one a miss! :p I keep getting these errors:
Parse error: syntax error, unexpected T_ELSE in /home2/getmypr/public_html/test.php on line 19
http://www.getmypr.com/test.php
But I still do not know how to do those menus; even when reading the directions. :(
Edit:
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.
djr33
12-26-2006, 04:15 PM
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.
echo_unlimited
12-26-2006, 04:57 PM
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.
djr33
12-26-2006, 05:53 PM
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.
<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.
echo_unlimited
01-02-2007, 01:37 AM
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:
<!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="© 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 © 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"><a href="<? print"$site"; ?>"><img src="<? print"$site"; ?>show.php?qk=<? print "$key"; ?>" border="0"></a>
</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()"><a href="<? print"$site"; ?>"><img src="<? print"$site"; ?>showa.php?qk=<? print "$key"; ?>" border="0"></a>
</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"><a href="<? print"$site"; ?>"><img src="<? print"$site"; ?>showv.php?qk=<? print "$key"; ?>" border="0"></a>
</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 © 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!
djr33
01-02-2007, 11:11 PM
Looking at that quickly, seems just fine, but you never set $url. Should get $_POST['url'], or something.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.