Points Transactions: How to remove Page Views from the list

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Points Transactions: How to remove Page Views from the list
OzButcher
CZ Super Newbie
 Codezwiz Site Donator
OzButcher has been a member for over 17 year's 17 Year Member
australia.gif
Occupation: Painter
Gender: Male
Website:
Status: Offline
Joined: Jan 19, 2007
0.01 posts per day
Posts: 35
Points: 1,075
   
I've just installed this mod and activated it.

I had some inital trouble getting the users to show up but now they do... howeverI get a HUGE list because every time a user gets a page view thats one entry to the database.

How can I remove pages views from showing up in the point transaction log? I figured out its "ID: 13" but am unsure of how to remove it from showing up.



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Search and change this line from:


$ptrow = $db->sql_query("SELECT tid, username, point_id, points, trans_date FROM {$prefix}_points_transactions ORDER BY $orderby $dir LIMIT $offset, $ptnum");


To:


$ptrow = $db->sql_query("SELECT tid, username, point_id, points, trans_date FROM {$prefix}_points_transactions WHERE point_id != '13' ORDER BY $orderby $dir LIMIT $offset, $ptnum");




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Points Transactions: How to remove Page Views from the l
OzButcher
CZ Super Newbie
 Codezwiz Site Donator
OzButcher has been a member for over 17 year's 17 Year Member
australia.gif
Occupation: Painter
Gender: Male
Website:
Status: Offline
Joined: Jan 19, 2007
0.01 posts per day
Posts: 35
Points: 1,075
   
Thanks for that.

I just realised that the mod isnt working properly although I have 10 pages of pageviews = 0 points (mainly because I set that action to have 0 points) but no other actions are recorded, such as submitting downloads, commenting, posting etc.



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Did you edit the mainfile and make the edits in the install file?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: Points Transactions: How to remove Page Views from the l
OzButcher
CZ Super Newbie
 Codezwiz Site Donator
OzButcher has been a member for over 17 year's 17 Year Member
australia.gif
Occupation: Painter
Gender: Male
Website:
Status: Offline
Joined: Jan 19, 2007
0.01 posts per day
Posts: 35
Points: 1,075
   
yeah I followed the instructions of the mod. I copied the main files to my webserver... ran the installer which loaded the tables into my database and then I did this as per instructions:

Open mainfile.php located in the root of your Nuke site folder.

Find the following code:

         $db->sql_query("UPDATE ".$user_prefix."_users SET points=points+" . $rpoints . " WHERE username='$username'");


After that add:

         



Thats it for editing :-)



Back to top Reply with quote
#6   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Please verify that the table nuke_points_transactions is there.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   re: Points Transactions: How to remove Page Views from the l
OzButcher
CZ Super Newbie
 Codezwiz Site Donator
OzButcher has been a member for over 17 year's 17 Year Member
australia.gif
Occupation: Painter
Gender: Male
Website:
Status: Offline
Joined: Jan 19, 2007
0.01 posts per day
Posts: 35
Points: 1,075
   
ok I just checked. the table is there... and for some reason is seems to be working now weird.

I was testing it last night, during a browser refresh it counted instantly as a page refresh but no other actions such as forum posts were being counted.

I'll do some more testing with it just to make sure.

thanks for ur reply... that code now removed the page counts icon_smile.gif



Back to top Reply with quote
#8   re: Points Transactions: How to remove Page Views from the l
OzButcher
CZ Super Newbie
 Codezwiz Site Donator
OzButcher has been a member for over 17 year's 17 Year Member
australia.gif
Occupation: Painter
Gender: Male
Website:
Status: Offline
Joined: Jan 19, 2007
0.01 posts per day
Posts: 35
Points: 1,075
   
The page views are still being loaded into the database... just not displayed.

Is there a way to stop them from loading into the database? because if I choose to view a user all the page views still load up and it is also causing the id of transactions to increase rapidly. my transaction id is already over 1000. icon_smile.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum