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 2012-09-29 10:21:25

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

Photos Pagination

I have some Photo Albums with 400+ photos on each album.

check this url http://www.porngag.me/photo/508/darcy-t … ty-friend/

Instead of showing all 400 photos on single page, i want to paginate photos limit 20 to 40 photos per page.

Adrian please add this feature.

Last edited by coderphp6 (2012-09-29 10:21:58)

Offline

#2 2012-09-30 05:44:40

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

Re: Photos Pagination

Yeah...it was this way before, but we removed this feature.


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

Offline

#3 2012-09-30 10:12:42

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

Re: Photos Pagination

symtab wrote:

Yeah...it was this way before, but we removed this feature.

removed why ?

tell me how this add feature.


Edit: /modules/photo/components/album.php
from line 77

$sql			= "SELECT photo_id, caption, total_views, total_comments, rating, rated_by
		                   FROM #__photo
		                   WHERE album_id = ".$this->album_id."
		                   AND status = '1'
		                   ORDER BY photo_id ASC";
		$sql_count	= 'SELECT COUNT(*) AS total_photos
                       FROM #__photo AS p
                       WHERE p.status = \'1\'';				   

after above line i've added this code to limit the photos per page
$total_photos   = $this->db->get_field($sql_count, 'total_photos');
		$pagination     = VPagination::get($page, $total_photos, $this->vcfg['browse_per_page']); // not working tell me how to add pagination
		$sql			= $sql. ' LIMIT 20'; //limits 20 per page		

Successfully limited photos but
How to add pagination?

Offline

#4 2012-10-12 15:32:17

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

Re: Photos Pagination

Adrian please help me here
how to add pagination to photos

Offline

Board footer

Powered by FluxBB