View Full Version : CJPRO question.....sending to root domain
specwar
07-18-2001, 09:36 PM
Hey new to cjpro......just wanted to know if anybody could tell me how i can send hits from my partners to my root domain instead of that long one that i have to change for every partner i trade with?
thanks
e-van
07-18-2001, 09:44 PM
look back in last week's posts, the question was posted and answered there...
This file will unzip to become index.cgi. If you can run cgi programs OUTSITE of your cgi-bin folder (which is not always recommended) this will correct problems you may have with the javacode inside of frames. Because not all browsers support java code, this should also track your visitors more accurately.
Simply download, unzip this file, change the SECOND line, which now reads
require "/home/htdocs/users/triplex/triplex/americanhoes.com/cgi-bin/cjpro/cjproconfigure.cgi";&configure:
so that it points to the server path to cjproconfigure.cgi.
What is there now is the correct server path for my server, and yours will be different. If you dont know what your server path is, just run cjprofindpath.cgi, and it will tell you.
Now upload index.cgi to your server in your root directory. Chmod the file index.cgi to 755, and rename your current index.html(shtml,htm) to index2.html(shtml,htm), then go into cjprosetup and make sure that your mainpage url points to the file you just renamed (index2.html(shtml,htm)
That should be it./
also add this inside your <head> tag
<script language="JavaScript">
<!--
refer=""+escape(document.referrer);
function isNotDefined(v) {return((v=="undefined")?true:false);}
if ((isNotDefined(refer)==true)||(refer=="")||(refer=="bookmarks")) {refer="Bookmark";}
else {wl=window.location.href;
if(wl.lastIndexOf('/')!=(wl.length-1)) {wl=wl+"/";}
tdr=document.referrer;
if(tdr.lastIndexOf('/')!=(tdr.length-1)) {tdr=tdr+"/";}
if(tdr==wl) {refer="na";}}
u="refer="+refer;
if(document.bgColor!=null) {
itag="<font color=\""+document.bgColor+"\">";
} else {itag=""; }
itag=itag+"<img height='1' width='1' border='0' alt='' "+"src=\"http://yourdomain.com/cjpro/cjproin2.cgi?"+u+"\">";
if(document.bgColor!=null) {itag=itag+"</font>";}
document.write(itag+"\n");
//--></script>
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.