grumbirky
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Gallery pagination and searchHi Markol,
I think for all the time I’ve spent setting up these galleries, I would have much preferred to spend $20 to get it up and running quicker.
I managed to split the native gallery over pages by using the <–nextpage–> tag, and multiple gallery codes and the ‘include’ attribute. Not ideal.
I’d be happy paying for a plugin that would sort out pagination, search, and a lightbox slideshow option (like you get in Flickr).
Please do it. Go on.Cheers!
GrahamForum: Fixing WordPress
In reply to: how to set the target or anchor of next/previous_image_link?I need the solution please! I’ve got a site full of images using the native gallery, and this would be very useful on a usability standpoint.
Ta!
Forum: Plugins
In reply to: NextGen Gallery – Links to individual images not picked up by other pluginsbw1984, I think I got it by checking the Show ImageBrowser option under the Gallery tab in Gallery Settings.
You might need to deactivate the ‘Deactivate gallery page link’ option too.Good luck!
Forum: Plugins
In reply to: NextGen Gallery – Links to individual images not picked up by other pluginsThanks nicksmarto, but I started playing around with the native gallery, which works fine out of the box with Yoast and Sociable.
Shame that it doesn’t have the all the features of NextGen, such as albums and pagination and such.Arrg.
Right, I’ve been tearing my hair out, and have come up with a solution (and am now bald).
I installed the Custom Fields plugin, and entered a Link attribute to each and every image to tell it what album/gallery it was in.
I then hacked the nextgen-gallery/widgets/widgets.php page a little, replacing $image->imageURL in the anchor tag href for the following on line 319:$out = ‘pid, “Link”) . ‘?pid=’.$image->pid . ‘” title=”‘ . $description . ‘” ‘ . $thumbcode .’>’;
That seemed to do the trick.
I also edited nextgen-gallery/view/singlepic.php to link to the image page, by replacing line 22 with this:
Soooo hopefully there should be no links directly to the image now.
If there are please let me know, as image theft is rife on the web, so I wouldn’t want to make it easier for folk to nick my work.Enought prattle now. Bye!
Forum: Plugins
In reply to: NextGen Gallery – Links to individual images not picked up by other pluginsHalloe?
I think I’ve worked a little hack for Yoast to pick up the name of the image, on the image page. As above, I’m not sure if it’s the best way, but here goes, near the end of yoast-breadcrumbs.php before the prefix and suffix code, I’ve inserted another if in between if (!$link[‘cur’]) and else:
$output = $homelink;
foreach ( $links as $link ) {
$output .= ‘ ‘.$opt[‘sep’].’ ‘;
if (!$link[‘cur’]) {
$output .= ‘‘.$link[‘title’].’‘;
} else if ( isset($_GET[‘pid’]) ) {
// Birks addition to get image page id 17/03/10
$pid = attribute_escape($_GET[‘pid’]);
global $wpdb; $nextgenpictitle = $wpdb->get_var($wpdb->prepare(“SELECT alttext FROM wp_ngg_pictures WHERE pid = %d”,$pid));
$output .= ‘‘.$link[‘title’].’ ‘.$opt[‘sep’].’ ‘. $nextgenpictitle;
} else {
$output .= bold_or_not($link[‘title’]);
}
}This makes the gallery page a link too, completing the proper path and that.
Ideally I would have preferred not to have had to hack these other plugins, as it will make upgrading them a pain, but at least it works until a better way comes along..
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Bug with WooThemes and Fatal errorThis has nothing to do with Events Calendar, or WooThemes, but I had a similar problem, which was also fixed by adding global $wpdb; in front of my database query.
Thanks!
Forum: Plugins
In reply to: NextGen Gallery – Links to individual images not picked up by other pluginsI think I’ve solved one bit of my problem, with Sociable, so if anyone wants to know how, I hacked the sociable.php file a bit:
Just after the line:
$permalink = urlencode(get_permalink($post->ID));I put this:
if ( isset($_GET[‘pid’]) ) {
$pid = attribute_escape($_GET[‘pid’]);
$permalink = $permalink . “?pid=” . $pid;
}Not sure if it’s the best way to do it, but it seems to have done the trick. Obviously this won’t work though if you have the permalinks turned on in NextGen.
The Yoast plugin might be a bit over my head though. Still, it’s a start.Forum: Plugins
In reply to: [Plugin: Yoast Breadcrumbs] Remove from specific pages..Why not just hide it with CSS, saving you headaches with the PHP?
I’m using Thematic, which puts lots of CSS classes in the <body> tag, including slug name, post id, and lots more. I can then use something like this to hide it:
.slugname .yoast {display:none;}Just a thought.
Hello, I too am trying to figure out a way to get the widget images to link to their corresponding image page.
I think it’s a little odd how this isn’t provided as a standard option.The Custom Fields workaround might work, but having to input a link on each image seems rather static and laborious, unless there’s a way to add the link dynamically..?
The other widget plugin, the Sidebar Widget, is good for listing galleries, but I don’t see a way to replicate the random and recent images that the original widget outputs.
Any more ideas anyone?