WordPress.org

Ready to get started?Download WordPress

Forums

Grand Flagallery - Photo Gallery Plugin
[resolved] FlAGallery > Options > Gallery path not honored (6 posts)

  1. signcarver
    Member
    Posted 1 year ago #

    I have a gallery in one site that i would like to share multiple sites.

    I don't want duplicate the gallery n times but rather set the Gallery path to point to the "mother" site.

    When i enter and absolute path like http://www.site_name.com/wp-content/flagallery/ it does not find the gallery.

    Can you please help?

    Thanks,
    Steve

    http://wordpress.org/extend/plugins/flash-album-gallery/

  2. Rattus
    Member
    Plugin Author

    Posted 1 year ago #

    Create GRAND Page on "mother" site -> copy link to this page -> insert it with iframe on any other site:
    <iframe src="URL_TO_GRAND_PAGE" name="flagallery" frameborder="0" height="550" width="100%" style="margin:0; padding:0;overflow:hidden;">Loading...</iframe>
    Change URL_TO_GRAND_PAGE to your url of created GRAND Page.
    Change height and width of iframe to fit your site.

  3. signcarver
    Member
    Posted 1 year ago #

    Thank you for the quick response Rattus.

    Your above solution doesn't work because the real issue is one of nested shortcodes.

    The "main file" in the mother site uses the slice plugin to include "common code":
    [slice src='http://www.ezdockdealer.com/ez-includes/ez-content/common-code.html']

    The "common code" is:

    some html code
       [flagallery...]
    more html code

    The mother and all slave sites call the "main file" the same way the mother site does:
    [slice src='http://www.ezdockdealer.com/ez-includes/ez-content/common-code.html']

    However the [flagallery...] shortcode never gets expanded when the "common code" is called by a slave site. It does get expanded when called the the mother site.

    So my thinking was if i could put the absolute path to the gallery pointing to the mother site gallery it might work, but it doesn't.

    Obviously the nested shortcode issue is not a flagallery issue, however I think that allowing absolute path to the gallery in the slave sites might solve the problem???

    I installed the Outerbridge Nested Shortcodes plugin to no avail.

    If you have any other suggestions I would appreciate them.

    Thank you for your patience.

  4. signcarver
    Member
    Posted 1 year ago #

    OK - now i am pretty sure it is NOT a nested shortcode problem.

    When WordPress processes and expands the file on the slave site it cannot find the [flagallery...] code because the gallery is on the mother server, not the slave server.

    I have 73 galleries in the mother site (http://www.ezdockdealer.com ) and if even i redefine all of the galleries on the slave sites the gallery ids won't match. So my "common code" won't work.

    Plus it defeats the purpose of reusing the galleries.

    Thanks for listening - any suggestions would be appreciated.

  5. Rattus
    Member
    Plugin Author

    Posted 1 year ago #

    Try to change "common code" to:

    some html code
       <iframe src="URL_TO_GRAND_PAGE" name="flagallery" frameborder="0" height="550" width="100%" style="margin:0; padding:0;overflow:hidden;">Loading...</iframe>
    more html code

    Change URL_TO_GRAND_PAGE to your url of created GRAND Page.
    Change height and width of iframe to fit your site.

  6. signcarver
    Member
    Posted 1 year ago #

    Thank you Rattus - once i made a GRAND gallery and referred to the URL per your suggestion above, the gallery works perfectly in both the master and slave sites.

    Thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic