Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2013-03-21 07:35:52

coderphp6
Member
Registered: 2011-04-20
Posts: 65

How to disable Photo and pornstar views tracking

Just like videos i want to disable photos, pornstar views tracking

Because it takes large DB space.

following tables size too high for me

photo_views
photo_album_views
model_views

Also add this as a feature.

Offline

#2 2013-03-21 16:10:12

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: How to disable Photo and pornstar views tracking

Edit modules/photo/components/album.php and remove:

            $this->db->query("INSERT INTO #__photo_album_views
                              SET album_id = ".$this->album_id.",
                                  user_id = ".$user_id.",
                                  ip = ".$ip.",
                                  view_date = '".date('Y-m-d h:i:s')."'");

Edit modules/photo/components/photo.php and remove:

            $this->db->query("INSERT INTO #__photo_views
                              SET photo_id = ".$photo_id.",
                                  user_id = ".$user_id.",
                                  ip = ".$ip.",
                                  view_date = '".date('Y-m-d h:i:s')."'");

Edit modules/pornstar/components/view.php and remove:

       $this->db->query("INSERT INTO #__model_views
                          SET model_id = ".$model_id.",
                              user_id = ".$user_id.",
                              ip = ".VServer::ip(true).",
                              view_date = '".date('Y-m-d h:i:s')."'");

I wanted a lot of info sad


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB