Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Xiode
Regular
Regular


Joined: Jun 15, 2005
Posts: 78
Location: AR

PostPosted: Sat Sep 03, 2005 10:57 pm Reply with quote

Is there any way to add something to the splash page so that it tracks refferals too? Like my main site is in a sub folder from root, and I have an index.php ( splash page ) in root. wehn someone is refered to my site they hit the splash. Now if they are directly linked to my site it shows in the refferals ( ex core.xiodestudios.com ) but if they link to main url it shows the refferal as Only registered users can see links on this board! Get registered or login! wondering if there was anything I could add to the splash to catch the actual reffering site.

_________________
**Mental Note** Signature Goes Here! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sun Sep 04, 2005 4:03 am Reply with quote

no,not to my knowledge cause the splash page is outside nuke and not a part of it..
you can solve it by using an extra script to track visitors,and there a thousands that can do that...
For example Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Xiode
PostPosted: Sun Sep 04, 2005 12:51 pm Reply with quote

well if I have to use an external program I might as well just use awstats in cpanel. Was just hoping i could get my nuke running more efficient.
 
hitwalker
PostPosted: Sun Sep 04, 2005 2:26 pm Reply with quote

well thats what you get when using a splash intro page.
i use a portal as index and i get same referers so...
dont make a big fuzz out of it...
 
Xiode
PostPosted: Sun Sep 04, 2005 2:28 pm Reply with quote

what function in nuke tracks the refferals in nuke? Where is it at? Mainfile? header? maybe I can include the function into my splash?
 
hitwalker
PostPosted: Sun Sep 04, 2005 2:31 pm Reply with quote

its not realy a function...
its build in so that would be hard to do..
 
CurtisH
Life Cycles Becoming CPU Cycles


Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Sun Sep 04, 2005 3:51 pm Reply with quote

I believe this is what you are looking for:

Code:
if ($httpref==1) {

    $referer = $_SERVER["HTTP_REFERER"];
    $referer = htmlspecialchars(strip_tags($referer));
    if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
    } else {
   $result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')");
    }
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
    if($numrows>=$httprefmax) {
   $result2 = $db->sql_query("DELETE FROM ".$prefix."_referer");
    }
}


Found in index.php

_________________
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe 
View user's profile Send private message Visit poster's website Yahoo Messenger
Xiode
PostPosted: Sun Sep 04, 2005 3:55 pm Reply with quote

ok.. but what else would I need to add to this file to secure it? Cause I would have to include my mainfile and/or config file right?
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sun Sep 04, 2005 7:10 pm Reply with quote

Here is one method. I have set up what I believe are 3 different scripts to test and demonstrate what I think you are after.
Only registered users can see links on this board! Get registered or login! should represent a link to my test Splash page. When it is clicked, you will see some different Server settings that it captures. Now, remember the HTTP_REFERER setting on this second screen as it is the TRUE referer page that I think you want to capture.

Now, click the button to enter my test home page and you will see the HTTP_REFERER is reading the last screen which you don't want. However, I have captured and passed it as the POST variable referer.

There are other methods also but they are basically just variations on the same theme.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©