Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Fixing WordPress
    In reply to: User Login Issue
    Thread Starter egranlund

    (@egranlund)

    Update:

    I had one of the users completely remove their norton antivirus addon (not the install) and it still had issues after restarting her browser. So maybe it’s something else.

    Forum: Fixing WordPress
    In reply to: Log Out

    What do you mean log out of your website editing? Are you talking about viewing your website?

    If you’re logged in to your website and are viewing the dashboard you can view the main site at any time by going up to the toolbar at the top of the screen where it says ‘My Website’ and click on Visit Site.

    If you want to log out of your site then hover over ‘Howdy “username”‘ on the upper right hand side of the dashboard and log out.

    The login system is not different between the front and back ends. If you log in then you are logged in to the site as a whole.

    Hope that helps/clarifies
    ~E

    Thread Starter egranlund

    (@egranlund)

    By the way keep up the good work with the gallery! I’m sorry the update 2.0 kind of blew up at you guys!
    ~E

    Thread Starter egranlund

    (@egranlund)

    I was having an issue with using the short code:

    [ ngg_images source=”albums” gallery_ids=”3,5″ display_type=”photocrati-nextgen_basic_compact_album” ]

    This is an example that you posted on the shortcode section of your site. When you use the code it tries to create an album view on the page listing compact views of all of the galleries you specify. The problem is that when you click on the galleries it reloads the page and displays ‘no images were found’.

    The reason for this lies on line 194 of the adapter.nextgen_basic_album_controller.php.

    $parent_album = $this->object->get_parent_album_for($gallery->$id_field);
    if ($parent_album) {
         $pagelink = $this->object->set_param_for(
              $pagelink,
              'album',
              $parent_album->slug);
    }

    If you call the shortcode listed above then parent_album is never set because one doesn’t exist for it and it tries to create a $pagelink that makes the album the gallery. Therefore, when you click on the link created it tries to show an album called the gallery that was defined. I set an else statement in following this code that defaults the album to ‘album’ and everything works fine now.

    /* If  a parent album is not found it will default it to a generic'album' to fill
     * out the entire path.  In the example below surfing is a gallery
     *
     * Ex: wordpress.com/index.php/nggallery/surfing?page_id=20 becomes
     *     wordpress.com/index.php/nggallery/album/surfing?page_id=20
     *
     * This fixes the 'no images were found' when using the shortcode to view galleries
     * in an album view:
     *
     * www.nextgen-gallery.com/nextgen-gallery-shortcodes
     * [ ngg_images source="albums" gallery_ids="3,5" display_type="photocrati-nextgen_basic_compact_album" ]
     * ~EPG
     */
    else {
         $pagelink = $this->object->set_param_for(
              $pagelink,
              'album',
              'album'
         );
    }

    I set up a debug environment in eclipse and did a few test runs on a base wordpress install (3.6) with my mod and everything seems to work fine. Hopefully this helps you guys out and anyone else who is having issues with this.

    Thanks
    ~E

    Thread Starter egranlund

    (@egranlund)

    Anyone have any ideas on this one? I’m looking in the code at the moment. It looks like the adapter.nextgen_basic_album_controller.php takes care of this or at least calls other utilities that handle the url mapping.

    The comment above the beginning if statement in the index_action function states:

    // We need to fetch the album containers selected in the Attach
    // to Post interface. We need to do this, because once we fetch the
    // included entities, we need to iterate over each entity and assign it
    // a parent_id, which is the album that it belongs to. We need to do this
    // because the link to the gallery, is not /nggallery/gallery–id, but
    // /nggallery/album–id/gallery–id

    I’ve never looked at this code before so I’m having to dig through it to understand it. Any help would be appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)