alexemde
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Random Picture -> Link to galleryThe solution is described in this thread: http://wordpress.org/support/topic/241528?replies=7
You have to edit two files from the nextgen-gallery plugin directory –
1) edit lib/image.php and add$this->pagelink = get_permalink( $gallery->pageid );(~line 65)
2) edit widgets/widgets.php – find function ngg_widget_output and inside the function (around line 414) edit the link-output from$out = '<a href="' . $image->imageURLto$image->pagelinkForum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] How to add description into galeryYes, it is possible. Just add some lines to the gallery template file like this:
<div class="ngg-galleryoverview" id="ngg-gallery-<?php echo $gallery->ID ?>"> <h2 style="text-align: center"><?php echo $gallery->title ?></h2> <div class="description"> <?php echo htmlspecialchars_decode($gallery->description) ?> </div>More info on Templates: http://nextgen.boelinger.com/templates/
Forum: Themes and Templates
In reply to: Different ways to display post on single page template?I think the first suggestion could work better for my purpose, because as explained, single posts need to be styled different depending on context, so categories and tags and such probably wouldn’t help, because they belong to the post and don’t change when I want the template to change. Thanks anyway, I’ll give it a try and report back 🙂
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Widget Gallery Thumbnail Problem@sam_m: alexrabes original code from this thread didn’t work for me, which is why I took out the parts I didn’t quite understand… and then it worked. My output code now looks like this and it’s working:
if ( $options[$number]['show'] == 'original' ) $out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&width='.$options[$number]['width'].'&height='.$options[$number]['height']. ' title="'.$image->alttext.'" alt="'.$image->alttext.'" />'; else $out .= '<img src="'.$image->thumbURL.'" width="'.$options[$number]['width'].'" height="'.$options[$number]['height'].'" title="'.$image->alttext.'" alt="'.$image->alttext.'" />'; echo $out . ''."\n";Can I add myself to the list, please? Interested in the modification as well…
Thanks
AlexandraForum: Plugins
In reply to: [Plugin: NextGEN Gallery] Link to Gallery from NG Gallery Widget Image?alphadra0n: Your solution is nice, but not quite what we’re looking for, because the link should point to the gallery page related to the image. I wouldn’t want to type that in manually for each image…
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Widget Gallery Thumbnail ProblemAnother thing comes to my mind: Is there a way to link an image to the gallery it belongs to? like putting a “see more of this series” link next to the image?
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Widget Gallery Thumbnail ProblemThanks for posting that.
I just tried the code, and after stripping out the “nggGallery::i18n” parts it seems to work. The change is that width & height are no longer given in HTML, right? I suppose there must also be a way to calculate height & width, because that would be better for page loading?
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Widget Gallery Thumbnail ProblemI have found at least a temporary solution with this PHP image resize script:
I inserted a call to the resize script into the nextgen “widget.php” output function passing on parameters from the widget to the script (in this case I want consistent width) and the image gets resized in realtime and served back to page:
if ( $options[$number]['show'] == 'original' )
$out .= '<img src="'.NGGALLERY_URLPATH.'/lib/imgsize.php?w='.$options[$number]['width'].'&img='.$image->imageURL.'" title="'.$image->description.'" alt="'.$image->alttext.'" />';Only issue is that this means I cannot define height and width in the html code, so the page doesn’t validate, and does look a bit strange until the image is fully loaded.
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Widget Gallery Thumbnail ProblemMake that five: I also use the widget to display original images and I would like to specify the width and have the height calculated accordingly. If that’s not possible in the widget, does maybe someone have an idea for php code to use?
Thanks
Alexandra