Free Adult Tube-Video Script Forum
Hardlinks Seo - Printable Version

+- Free Adult Tube-Video Script Forum (http://freeadultscript.com/forum)
+-- Forum: My Category (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Hardlinks Seo (/showthread.php?tid=728)



Hardlinks Seo - Dreamer26 - 29-06-2011 06:01 PM

Hi!
I would like to know how can i add links only to my home page(index), not sitewide.
Is it possible?


RE: Hardlinks Seo - Punktured - 30-06-2011 07:55 AM

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...


RE: Hardlinks Seo - Dreamer26 - 30-06-2011 12:40 PM

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...


RE: Hardlinks Seo - Punktured - 01-07-2011 09:47 AM

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...


RE: Hardlinks Seo - Dreamer26 - 01-07-2011 11:32 AM

In the footer if possible but sidebar fine as well...Thanks!


RE: Hardlinks Seo - Punktured - 01-07-2011 12:30 PM

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...


RE: Hardlinks Seo - admin - 01-07-2011 05:36 PM

'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/some/stuff?foo=bar, then $_SERVER['PATH_INFO'] would contain /some/stuff.

http://php.net/manual/en/reserved.variables.server.php


RE: Hardlinks Seo - Punktured - 01-07-2011 06:09 PM

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 {
}
?>



RE: Hardlinks Seo - admin - 01-07-2011 11:20 PM

php codes are also work in free html areas