Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55531

    Yes, this is not Mediapress, Mediapress is affected because the js for the settings reveal is looking for an & in the link string, and can’t find it. but the same thing seems to be happening to all the backend pages. I’ll wait till later tonight and do another plugin deactivation session. It has to be a plugin somewhere.

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55525

    & symbols are being swapped for & # 0 3 8; – remove the spaces, your wordpress refuses to print those when placed together. It seems related to checking for block based content in wptexturise.

    • This reply was modified 7 months ago by Venutius.
  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55524

    That was my bad, it turns out.

    Things are going from bad to worse. I now have a situation where the js fails only on the MPP settings page. But, the failures seem to be due to WordPress deciding that all & symbols on the page need to be swapped to & currently this in only happening on the MPP settings page, but I had to deactivate a news-ticker plugin that was doing the same thing.

    I’m not stressing, though, the front end is still working as it was. It is missing the zoom, but, it’s loading the wrong image and there is nothing to zoom.

    I did deactivate all plugins, and nothing changed..

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55523

    Line 183 of shortcode-gallery-list.php has a crash bringing typo – 'class' => 'mpp-gallery',

    In the original file, the end comma is a full stop.

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55522

    I modified the plugin template for shortcode/grod-photo.php

    /**
     *
     * Photo list in shortcode grid view
     * You can override it in yourtheme/mediapress/default/shortcodes/grid-photo.php
     *
     */
    $query            = mpp_shortcode_get_media_data( 'query' );
    $lightbox_enabled = ! empty( $atts['lightbox'] ) ? 1 : 0;
    $lightbox_class   = $lightbox_enabled ? 'mpp-shortcode-lightbox-enabled' : 'zoooom';
    $media_ids        = join( ',', $query->get_ids() );

    This adds my zoom function to the gallery grid view, but if I enable the lightbox, and get nothing, just the attachment page, no lightbox, no description.

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55521

    This is the gallery (bottom of the page) I was looking at.

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55520

    The link shown in the Gallery Grid view is https://brigantesnation.com/gallery/moulton-henge/media/moulton-henge-1m-lidar1-national-library-of-scotland-2/

    The link address I arrive at once I click this is https://brigantesnation.com/gallery/moulton-henge/media/moulton-henge-1m-lidar1-national-library-of-scotland-2

    But here is the wrap for that image – not an mpp in sight.

    https://brigantesnation.com/wp-content/uploads/2025/06/Screenshot-2025-06-15-204848.png

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55516

    I’m getting to it 🙂

    Can I suggest the following change to the loading page for all of your MediaPress add-on plugins. It fixes a typo, and inadvertent crashes 🙂

    
    
    //exit if accessed directly
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    //exit if MediaPress is not loaded
    If ( if ( ! class_exists( 'MediaPress') ) {
    	exit;
    }
    
    
    • This reply was modified 7 months ago by Venutius.
    • This reply was modified 7 months ago by Venutius.
  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55513

    The original template photo.php is not being seen. no matter what option I pick, I just get the wp attachment page.

  • Participant
    Level: Master
    Posts: 481
    Venutius on in reply to: How can I best achieve my perfect single photo view? #55490

    It is not picking up the photo.php template at all, and is just showing a standard image page I reckon – here’s the address it is going to: /gallery/the-yorkshire-dales/media/p1110837. That is not my post link structure.

    I’ll revert to the old version, and see if it is something I’ve done.