Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor webdorado

    (@webdorado)

    Dear robguay,

    Please be informed, that there’s no default setting for that. But we can provide a code, which you can add and be able to view more than 20 images.

    Thank you.

    Thread Starter robguay

    (@robguay)

    Yes please, I would love to have the code.

    THANKS

    I also need the same code, please.

    Thanks!

    Plugin Contributor webdorado

    (@webdorado)

    Dear robguay and TedPPL,

    In all of the bellow mentioned lines you need to replace 20 with the number of images, that you need to display.

    1. photo-gallery > admin > views folder, BWGViewGalleries_bwg.php file.

    Search the following code:

    $i = ($page_number - 1) * 20;

    2. photo-gallery > admin > models folder, BWGModelGalleries_bwg.php file. Search get_image_rows_data function, afterwards search the following:

    $limit = ((int) $_POST['page_number'] - 1) * 20;

    3. photo-gallery > admin > models folder, BWGModelGalleries_bwg.php file, please search:

    $row = $wpdb->get_results("SELECT * FROM " . $wpdb->prefix . "bwg_image "
    
    . $where . " AND gallery_id='" . $gallery_id . "' " . $image_order_by . "
    
    LIMIT " . $limit . ",20");

    4. photo-gallery > admin > models folder, BWGModelGalleries_bwg.php file, search image_page_nav function and find the following:

    $limit = ((int) $_POST['page_number'] - 1) * 20;

    5. photo-gallery > admin > models folder, BWGModelGalleries_bwg.php file, please search:

    $page_nav['limit'] = (int) ($limit / 20 + 1);

    Please note that all of the changed numbers need to be the same.

    Thank you.

    Hello,

    for easier handle, could you please add a counter-box for rows in galleries (maybe as option) in a future update?

    thank you very much.

    Plugin Contributor webdorado

    (@webdorado)

    Dear detoris,

    Thank you for your suggestion. We will consider it when developing the future updates of the plugin.

    Hi! all, anyone could help me please I want to show my thumbnail in only one row.

    Plugin Contributor webdorado

    (@webdorado)

    Dear SocheatPhl,

    Could you please tell us how many pictures do you have? There might be a lot and your page content will not allow this. Also please give us a link as an example.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Edit photo gallery show more than 20 rows’ is closed to new replies.