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.
Pages: 1
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
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
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
Adrian please help me here
how to add pagination to photos
Offline
Pages: 1