Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hardlinks Seo
29-06-2011, 06:01 PM
Post: #1
Hardlinks Seo
Hi!
I would like to know how can i add links only to my home page(index), not sitewide.
Is it possible?
Find all posts by this user
Quote this message in a reply
30-06-2011, 07:55 AM
Post: #2
RE: Hardlinks Seo
do you mean menu links?
if so, im not sure if it will work, but some php stuff like PPHP_SELF (i think)
may work, it would just take some trial and error...
later tonight i will see if i can get it working, and bring back my results...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
30-06-2011, 12:40 PM
Post: #3
RE: Hardlinks Seo
I mean some of my trade partner ask me to put their links only to my homepage not all of my pages.
And as i see there is only index.php in this script and everything will be visible on all pages...
Find all posts by this user
Quote this message in a reply
01-07-2011, 09:47 AM
Post: #4
RE: Hardlinks Seo
ahh ok, i know what you mean now...
umm where about are you preferring to put these links?
sidebar? footer? etc...

then i can work with the exact area you wish to show these links...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
01-07-2011, 11:32 AM
Post: #5
RE: Hardlinks Seo
In the footer if possible but sidebar fine as well...Thanks!
Find all posts by this user
Quote this message in a reply
01-07-2011, 12:30 PM
Post: #6
RE: Hardlinks Seo
php_self seems to be always returning index.php...
even on other pages...

i will continue looking for an answer to this, because i am sure it is possible...

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
01-07-2011, 05:36 PM (This post was last modified: 01-07-2011 05:36 PM by admin.)
Post: #7
RE: Hardlinks Seo
'PATH_INFO'
Contains any client-provided pathname information trailing the actual script filename but preceding the query string, if available. For instance, if the current script was accessed via the URL http://www.example.com/php/path_info.php...f?foo=bar, then $_SERVER['PATH_INFO'] would contain /some/stuff.

http://php.net/manual/en/reserved.variables.server.php
Find all posts by this user
Quote this message in a reply
01-07-2011, 06:09 PM (This post was last modified: 01-07-2011 06:25 PM by Punktured.)
Post: #8
RE: Hardlinks Seo
you can place this code, in your templates index.php fle...
just above or below where you see
Code:
<? footer(); ?>
or something like that...

i had to include an "else" for some reason, i dont know why...

Code:
<?php
$page = $_SERVER['QUERY_STRING'];
  if (empty($page)) {
?>

HTML CODE HERE

<?php
  } else {
}
?>

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
01-07-2011, 11:20 PM
Post: #9
RE: Hardlinks Seo
php codes are also work in free html areas
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: