XFileSharing Pro - premiums that have no affiliate id

Message
Author
joebloggs
Posts: 50
Joined: Mar 13, 2012 3:40 pm

premiums that have no affiliate id

#1 Postby joebloggs » Apr 21, 2012 12:39 pm

With premiums that have no affil id we tend to look for the files that they download instantly and can tell which affiliate these premiums should belong too.

It is not happening that often, but how can we move these premiums to their correct affiliate???

Is this possible in the script or have to do it directly to the database.

We know a few other people that have this issue lately too with their xfs but they dont know how to solve it either.

Jaychew
Posts: 28
Joined: Feb 25, 2012 1:27 am

#2 Postby Jaychew » Apr 22, 2012 6:54 am

It's all about cookie, a few premium users don't enable cookie or don't accetp cookie from your site so xfs can not track the sale from which aff id.
sound like you are shaving , so you should happy with this :)

I suggest you modify index_dl.pm, put the cookie on download0.html if you have premium plan on it.

Code: Select all

   

   if($file->{usr_id})
   {
      $ses->setCookie("aff",$file->{usr_id},'+14d');
   }
return $ses->PrintTemplate("download0.html", 
                              %{$file},
                              %cc,
                              'referer' => $f->{referer} );

joebloggs
Posts: 50
Joined: Mar 13, 2012 3:40 pm

#3 Postby joebloggs » Apr 22, 2012 11:40 am

thanks for reply we will put that on all of our pages.

Is it possible to put premiums to their correct affiliate in the script??


Our do we have to do this manually in the database? We didn't want to go manually into the database but then we do want to credit our affiliates with there premiums they earned/

Anyone know how to do this??

Stefanzm
Posts: 85
Joined: Apr 08, 2012 3:41 pm

#4 Postby Stefanzm » Apr 23, 2012 8:48 am

Heyas , sorry for the lame question , but where exactly you put this code ?
Tryed to put it directly in download0 , showed it as plain text , in index_dl.pm saw download1 and download 2 options , but not and download0.

Will appreciate little help on that , thanks

Jaychew
Posts: 28
Joined: Feb 25, 2012 1:27 am

#5 Postby Jaychew » Apr 23, 2012 2:39 pm

just search "download0.html" in index_dl.pm

put

Code: Select all

   if($file->{usr_id}) 
   { 
      $ses->setCookie("aff",$file->{usr_id},'+14d'); 
   } 
before

Code: Select all

return $ses->PrintTemplate("download0.html", 
                              %{$file}, 
                              %cc, 
                              'referer' => $f->{referer} );

Stefanzm
Posts: 85
Joined: Apr 08, 2012 3:41 pm

#6 Postby Stefanzm » Apr 23, 2012 3:54 pm

Thanks Jaychew , will do that. Already assigned the missing affiliate numbers thru the logs , hope that will save me some time in the future.

joebloggs
Posts: 50
Joined: Mar 13, 2012 3:40 pm

#7 Postby joebloggs » Apr 23, 2012 11:35 pm

Jaychew wrote:just search "download0.html" in index_dl.pm

put

Code: Select all

   if($file->{usr_id}) 
   { 
      $ses->setCookie("aff",$file->{usr_id},'+14d'); 
   } 
before

Code: Select all

return $ses->PrintTemplate("download0.html", 
                              %{$file}, 
                              %cc, 
                              'referer' => $f->{referer} );

Thanks for that tip :)

ufkabakan
Posts: 332
Joined: Apr 13, 2011 9:37 pm

#8 Postby ufkabakan » Dec 06, 2012 10:34 pm

This hack working on v2.0 ?
I saw rare non aff id persons, but i dont want any non aff id premium users.