• I would like to have post-specific galleries displayed in the sidebar that, obviously, change when the post changes. I am having difficulty using [gallery=id] and would like to avoid using the widget and code it within the sidebar.php file.

    Any help or easier solution would be greatly appreciated.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter jamin84

    (@jamin84)

    Update: I created a custom function similar to “nggDisplayRecentImages” in the nggwidget.php file and created a customized “ngg_widget_output” to show the thumbs. Some more php code in sidebar.php which looks at the $p value, finds the appropriate galleryID from a database I created and outputs the pics based on that.

    The problem I now face is how to correlate galleries with future posts and where to store that relationship. I created a table for this purpose, with the galleryID and postID, and am fooled as to how to insert values into it automatically with every new post and new gallery. The intent is to be able to match a new gallery to a new post from the admin panel.

    Have you discussed this with the plugin author? He’s a very helpful and supportive person.

    This is a good idea and also a good question. I have no idea how to match a gallery to the post in a easy way (btw: the WordPress built in gallery support this feature, maybe you should consider to switch…)

    Thread Starter jamin84

    (@jamin84)

    Thanks for the response! I haven’t looked at the built-in, but I enjoy the flexibility of the nextgen-gallery.

    My working solution:

    1. added a “postid” column to wp_ngg_gallery to record the relationship (I figure every gallery will have a post associated with it)
    2. displayed postid in manage gallery table
    (just to show if there is a relationship, 0 means none)
    3. added a post edit section under manage gallery->edit
    my NextGen Gallery mod example

    Let me know what you think!

    Other idea :
    We add a custom field with the releated gallery id ? This doesn’t require any database change and can work similar to my related images solution

    Ooohh…yes!
    This is the topic I was looking for (instead, after some forum pages of research, I opened this one: https://www.ads-software.com/support/topic/213547?replies=3)

    In these 3 months has this jamin84’s mods been implemented in the plugin? If not (I haven’t seen in the plugin I downloaded some days ago) is there a more detail “tutorial” for what jamin84 has done?

    I’m trying to solve the problem with Side Content Plugin (if it applied “the_content” filters to itself the problem was solved) but a native solution would be the top!

    Thank you very much.

    Jamin84, care to share the actual code you used to do this?

    Thank you for this plugin – it will be replacing the custom one I created myself which was very basic. I wanted to create galleries that would correspond with each post but could never find a plugin that did just that. So I ended up creating one on my own and it got the job done, however, it was limited.

    Prior to creating my own plugin over a year ago, I had tried the NextGENGallery plugin but was not confident in my abilities to modify the plugin exactly how I needed it. But just now I spent a couple hours modifying the code myself and was able to implement it into my site . The pictures you see to the right of each blog come directly from the NextGENGallery. As per the “Notice” at the top of my site , I am now in the process of redoing all of my current blog galleries by utilizing NextGENGallery.

    I do realize that the new WordPress 2.6 basically created a method for doing this but I can’t figure it out to be honest!

    Here is what my modifications look like within the Admin panel:
    Example 1, Example 2. Basically, I assign each gallery to a blog.

    Note I am currently using WordPress 7.1 Beta 1.

    — Suggestions/Bugs:

    I uploaded a gallery using a ZIP file. From the drop down I selected “a new gallery” for gallery destination. Once it was successful I edited the new galleries title and path. After doing so the images that I had originally uploaded were no longer visible due to the fact that I changed the path AFTER uploading the pictures. (e.g. the pictures were still in a default path folder rather than the new path folder I created).

    Now my problem and solution is obvious – don’t change the path once you’ve uploaded photos. But I don’t understand why there is even an option to create a path if once you change it the pictures aren’t moved automatically. Perhaps when I initially requested to move the images to “a new gallery”, there should have been an option to identify the new galleries path BEFORE the images were actually uploaded. Then, upon completion, the ability to edit the path was no longer available since changing it only causes problems.

    I do realize that the ability to change/edit the path might be useful for other people seeing as how I only utilize NextGENGallery as a means of uploading images into galleries. Other than that, I don’t use any other built-in features.

    those are really useful features..
    Will they be integrated in some manner into Next-gen ? did any of you contacted the Dev Team for that matter ?

    I wrote a comment on His article about the release of NextGen 1.0, hope He will read it ??

    Are You reading us, poor humans, Alex? ??

    There was another thing that I always wanted in Next-gen ,and I never had time to code it myself – is the option to assign a URL to an image (either internal for the blog, or external), with the option that clicking on it, will get you to that post/URL, instead of opening the photo itself…
    That would make Next-gen Very powerful and will enable many features that are now supported by numerous other plugins.

    Hi,

    I think the fastest way to have a NextGen gallery in a sidebar for each post/page would be to let “Sidebar Content plugin” understand and parse the NG gallery tags ( [gallery=N] and the others ).

    I asked the SB plugin autor and he told me that the NG gallery filter that do this is also used for other purposes, so it’s not easy (for him at the moment) to add this functionality.

    Does anyone – Alex in particular as the father of NG ?? – have a suggestion to this problem? An “easy” way to modify an NG filter to be added to SB plugin?

    Thank you very much.

    Side Content plugin is now ready to support NextGen Gallery plugin and qTranslate plugin shortcodes!

    This makes possible to have a specific NG gallery for each post, just write the shortcode in the Side Content Widget.

    Same if you want a translated content: write in the Side Content Widget as follows:

    [lang_it]Contenuti in italiano[/lang_it][lang_en]English contents[/lang_en][lang_fr]Sorry, I don’t know french :)[/lang_fr] and so on…

    Thank you Alfred and Comunicrea (this is my company :P)!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: NextGEN Gallery] Post-specific galleries in Sidebar’ is closed to new replies.