Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 08-23-2007, 01:06 PM
New Pligger
Pligg Version: 9.0
Pligg Template: DN
 
Join Date: Jul 2006
Location: Slovenia
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
nah it screwed the site :\ now the voting doesnt work bcz of some wrong key and access to user.php gives error.

I have a backup so....
Is there something i can do to prevent the pageviews table to grow bigger on 9.0 with digitalnature template??
Reply With Quote
  #22 (permalink)  
Old 08-23-2007, 02:00 PM
New Pligger
Pligg Version: 9.0
Pligg Template: DN
 
Join Date: Jul 2006
Location: Slovenia
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
i did something by my self but im not sure if its okay...
i commented in libs/pageview.php the:

Quote:
function last_viewers($viewercount = 1){
global $db, $current_user;
$sql = "SELECT DISTINCT pv_user_id FROM " . table_pageviews . "
WHERE pv_type='$this->type' AND pv_page_id=$this->page_id AND pv_user_id > 0
ORDER BY pv_datetime DESC LIMIT " . $viewercount;
$last_viewers = $db->get_col($sql);
return $last_viewers;
}
and than error came up in user.php line 62 so i commented that to
and now at least user profiles is working without last 5 user.
can that be good anyone?
Reply With Quote
  #23 (permalink)  
Old 08-26-2007, 12:42 PM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
Thanks: 26
Thanked 1 Time in 1 Post
Hi Ashdigg, another quick question on the pageviews table. I'm migrating to a new host, and I've noticed that my sql backup file has about a 101904 lines of insert queries in the pageviews table. As I've removed the function altogether, can I do away with these queries?
Many thanks
Reply With Quote
  #24 (permalink)  
Old 12-26-2007, 03:00 AM
New Pligger
 
Join Date: Oct 2007
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
I also have server issues and I guess it's because of Pligg, has this been fixed in latest version ?

Thanks.
Reply With Quote
  #25 (permalink)  
Old 01-15-2008, 08:05 PM
New Pligger
 
Join Date: Feb 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
I just truncated the whole table. It was killing my server all day today.
Reply With Quote
  #26 (permalink)  
Old 01-16-2008, 02:30 AM
fhelik's Avatar
Casual Pligger
Pligg Version: 9.82
Pligg Template: jget
 
Join Date: Dec 2007
Location: Boston
Posts: 43
Thanks: 2
Thanked 4 Times in 2 Posts
Exclamation

this problem is fixed in 9.9?
Reply With Quote
  #27 (permalink)  
Old 01-17-2008, 06:27 AM
r3ddr's Avatar
Banned
Pligg Version: 9.8.2
Pligg Template: cobalt
 
Join Date: Nov 2007
Posts: 46
Thanks: 4
Thanked 1 Time in 1 Post
I would guess this is fixed alread in 9.8, therefore also in 9.9

anyone guess confirm this? :D
Reply With Quote
  #28 (permalink)  
Old 03-06-2008, 01:19 PM
Pligg Donor
Pligg Version: 9.8.2 +
Pligg Template: yget
 
Join Date: Jul 2007
Posts: 116
Thanks: 8
Thanked 35 Times in 8 Posts
Having the "Show the last 5 people to view a profile" is a nice feature, but I don't understand why all pageviews have to be dumped into one table. If profile views were a separate table, you could still have the feature with a much lower CPU load.
Reply With Quote
  #29 (permalink)  
Old 04-20-2008, 04:09 AM
New Pligger
 
Join Date: Feb 2008
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nothingman View Post
realest, I have done the following and well, i think it has worked.
Go to the the sourceforge repository that ashdigg talked about. Once there, do the following:

Step1: Download the sourceforge files and replace your current templates/yget/user_center.tpl, and <siteroot>/user.php files.
Step2: Also replace the /install/upgrade.php, under your install folder (i.e. assuming it is stil there.
Step3: Execute /install/upgrade.php

That worked for me and it'd help if the pligg masters confirmed it :)
When i`ve done this i got critical error in upgrade.php line 95
Reply With Quote
  #30 (permalink)  
Old 04-20-2008, 05:55 AM
New Pligger
 
Join Date: Feb 2008
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb

Hello i think i fix it :smile: my pligg_pageviews table is not getting bigger anymore

If i fix it.... here is the way how i did it

(it worked for me on Pligg 9.8)

first copy your user.php and story.php files somewhere.

root/user.php delete
Quote:
1. line 64
root/libs/story.php delete
Quote:
lines from 60 to 74
:pfew: i hope i helped

Last edited by maiti; 04-20-2008 at 12:08 PM..
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore Mysql Database from your Backup folder computerbar Modification Tutorials 0 08-22-2008 03:57 PM
Transferring mySQL database phrankle General Help 1 07-15-2008 06:44 PM
Web Host Yankidank Wiki Articles 2 06-26-2008 02:31 PM
Database name, username, password = what?!?! starguy Installation and Upgrade Help 4 06-10-2007 03:29 AM
Installing Pligg on Same MySQL Database as Wordpress Votamli Installation and Upgrade Help 3 05-21-2007 12:18 AM


Search Engine Friendly URLs by vBSEO 3.2.0