SlideShowPro SC
Can you insert a gallery instead of an album? (4 posts)

  1. drycreekweb
    Posted 3 years ago #

    I have tried to insert a gallery instead of an album into the shortcode by replacing album="1" with gallery="1". It did not work. Is this not possible?
    I can insert an album fine.
    Ver 1.0.2


  2. stschulze
    Posted 2 years ago #

    i use wp 3.4.2 and plugin 1.0.2.

    these compination doesnt work for me.

    the album-insert-button works, but after i filled the album-id ...... the published site has no album and no slideshowpro ......

  3. studiohyperset
    Posted 2 years ago #

    You can edit this plugin so that it accepts galleries as well as albums.

    Here's how I accomplished the task.

    1) In the slideshowpro_sc.php file, copy everything between /* SHORTCODE */ (line 250) and the terminal curly brace "}" on line 324.

    2) Paste this code just below line 324 and above "/* ADD SHORTCODE BUTTONS TO MCE */."

    3) Rename this new, second shortcode/function by changing "slideShowProSC" to, for example, "slideShowProSCgallery." You'll need to do this in three places: beside "add_shortcode" (two values) and, in the line below that, beside "function."

    4) Scroll through the function and chance instances of "album" to "gallery" in three places:

    • <div id="gallery-'.$album.'" class="ssp">
    • id: "gallery-'.$album.'",
    • xmlFilePath: "'.$ssp_install.'/images.php?gallery='.$album.'",

    Make sure you leave the $album. variable as is.

    5) Reference your new shortcode when you want to embed a gallery instead of an album. For example, using the name above:

    [slideShowProSCgallery album="8"]

    Hope this helps.

  4. studiohyperset
    Posted 2 years ago #

    Note that, in your new "gallery" shortcode -- "slideShowProSCgallery" in the above example -- you still use the "album" naming convention.

    Only the number refers to a gallery.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SlideShowPro SC
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic