Forum Replies Created

Viewing 15 replies - 106 through 120 (of 164 total)
  • Hi WebsiteDefender, I tend to agree with bigbadboy in this. While the display toggle is certainly an option, the default is on when your plugin is installed. Not only is it unwieldy to go in and toggle the display off for blogs with a large number of users, but the user can still go in and turn it back on, then get confused. Seriously, it happens! So an overall admin option to turn on or off your news feed would be an excellent addition.

    Short of that, bigbadboy, you can manually remove the news feed for all by adding the following lines of code to your functions.php file…

    add_action('admin_init','remove_dashboard_widgets');
    
    function remove_dashboard_widgets()
    	{ remove_meta_box('acx_plugin_dashboard_widget','dashboard','normal'); }

    You’re welcome!

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Okay, I guess Alex snuck this feature in while I wasn’t looking, so I’ll describe how to get at it to answer my own question…

    Gallery / Options/ Images

    Then check the box at “Automatically resize” and hit the “Save Changes” button to automatically resize images on upload.

    Thanks, Alex, and sorry I missed this!

    Thanks for the idea, Ipstenu. That would be one way to satisfy my urge to “pay it forward.” Obviously, though, the original poster(s) wouldn’t be aware of the solution via the original thread subscription. I’d imagine adding the link as you suggest would “connect” the threads in some way for the search engines, making it easier for folks doing new searches on the issue, so there’s that.

    Sorry if my comments came across as overly harsh, they weren’t meant to be. Sure, I don’t agree with everything on here, but yes, it’s an awesome resource to share info, even when it’s about how the resource is managed! Isn’t that how we grow and evolve? πŸ™‚

    In that vein, here’s another suggestion: Maybe blog threads (even closed ones) could include a list of “You may also be interested in…” that would display a few related threads based on title? That would make it easier if someone lands on closed question thread “X” that has a solution in thread “Y”. Only thought of this because I’ve seen a similar functionality in several WP sites!

    Hi gs_s, thanks for your helpful code! Using it I was able to come up with the following answer to your last question using CSS…

    In your custom-login.css file, simply include the following line:

    #backtoblog { display:none !important; }

    TA-DA! Hope this helps. πŸ™‚

    PS: In order to keep all the code in the same place, I don’t even use separate CSS files. Instead I call the CSS values between <style type=”text/css”> and </style> within the custom_login() function. Same difference, but makes managing changes one file easier!

    Hi Jānis, thanks for your hard work on this plugin! I just posted a similar question in another thread, how to remove the Profile menu from non-admins. In the meantime, I’ve set my custom admin CSS to include…

    #menu-users {display:none !important;}

    Quick and dirty, and if they know the URL they can get there, but at least it doesn’t make it super-easy for them.

    Looking forward to a better solution!

    I too have been frustrated when I can’t post the answer to a question that at least started me down the right path towards enlightenment, just because the thread is too old. Kind of kills the fuzzy feeling I’d get “paying it forward.”

    As for the argument that the original poster would still be using an old version of WP… (A) Isn’t it drilled into our mutton-heads that we need to keep up to date with the latest releases? So they would (or should) be using the latest version. (B) I agree that most of WP doesn’t get depreciated, so a lot of solutions, even to older questions, still work on newer versions. Even so, a simple version “checkin” would alleviate confusion, which a lot of people do anyway.

    (( Just my $0.02 ))

    Okay, here’s an alternative solution that doesn’t require Alex to add anything to the NextGen code *AND* will survive NGG plugin updates. It’s an alteration of the gallery.php code so there’s no need to exclude the Preview Image or alter the NextGen core code to force a display of excluded images in the first place. Neat huh??

    1. Replace the standard NextGen gallery presentation with a custom one in your theme by copying the “/wp-content/plugins/nextgen-gallery/view/gallery.php” file to “/wp-content/themes/your-theme/nggallery/gallery.php” (You may have to create the “nggallery” folder in your theme.)

    2. Now I really customized my gallery, so a lot of the standard code has been removed & changed around in what’s below. The important bits are the lines between “if(!empty($gallery))” and “foreach($images as $image)” as well as the “if($PreviewImgPath==$image->imageURL) { continue; }” line…

    if(!empty($gallery))
    	{
    	global $wpdb;
    
    	$results = $wpdb->get_results("SELECT ng.path, np.filename FROM wp_ngg_pictures np, wp_ngg_gallery ng WHERE np.galleryid=ng.gid AND np.galleryid=" . $gallery->ID . " AND np.pid=ng.previewpic",ARRAY_A);
    
    	if(!empty($results[0]['path']) && !empty($results[0]['filename']))
    		{ $PreviewImgPath = get_bloginfo('url') . '/' . $results[0]['path'] . '/' . $results[0]['filename']; }
    
    	foreach($images as $image)
    		{
    		if($PreviewImgPath==$image->imageURL) { continue; }
    
    		if($image->hidden) { continue; }
    
    		$ImageCode .= '<div style="float:left; padding:5px;">' .
    
    			'<a href="' . $image->imageURL . '" title="' . $image->description .
    			'" ' . $image->thumbcode . '>' . '<img title="' . $image->alttext .
    			'" alt="' . $image->alttext . '" src="' . $image->thumbnailURL .
    			'" ' . $image->size . ' /></a>' .
    
    		'</div>';
    		}
    
    	if($pagination)
    		{ $pagination = '<br style="clear:both;" />' . $pagination; }
    
    	echo '<div id="galLery2">' . $ImageCode . $pagination . '</div>';
    	}

    The code above basically tells the gallery to display everything *BUT* the Preview Image. This is done via a wpdb query to get the gallery’s Preview Image URL, comparing that to each image in the $gallery array, then skipping over the image if the URLs match.

    Granted, the wpdb query is a bit kludgy, but it’s the only way I could figure to get the Preview Image info from the gallery.php page. And I looked A LOT. Thanks to GitHub:Gist for getting me started in that direction. However, if anyone has any cleaner way of doing so, I’m happy to hear. Otherwise, hope this helps!

    @sprutt Consider that at least 2 someones you helped. Your hack is just what I was looking for! Kind of begs the question: Is there a way to maintain this plugin hack when a new update to NGG comes out?

    ———————-

    @alex I feel for you, man, I really do. Seems like half the people on here discussing this issue want the ability to select an excluded image for the Preview Image, and the other half get freaked out if an excluded image appears in the Preview Image dropdown, so no matter what you do you can’t win for trying!

    Well, how’s this for a solution: Can the “if ($picture->exclude) continue;” code that Sprutt points out above be conditional, based on a selection made in the “Gallery / Options”? That way it gives the user the ability to choose which way works best for them.

    Personally, I’m of the mind that I’d like to have the ability to select a Preview Image that doesn’t show up in the Gallery, and being able to select an excluded one would be ideal. So if you could work this into the next update, that would be super-cool! Oh yeah, and thanks again Alex for all the work you do on this plugin!!

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Hi Alex: I’m at the latest NGG (1.8.3) and sadly the issue I outlined above still persists… Is it just on my end, or can you still confirm & reproduce?

    Thread Starter Zoinks! Graphics

    (@zoinks)

    Alex, any thoughts on this…?

    Hi PΓ€r: I see CMS Tree Page View is now up to 0.7.20. Has the conflict with NextGEN Gallery outlined here been worked out in the latest release?

    Wow, I’ve been searching for a solution like this FOREVER! The tricky part is I want to search for “double-space” but that inevitably pulls up discussions about LINE spacing, not spaces between sentences/after periods.

    Oddly, while most themes display two spaces in a row the way they should (as a single space) some display two spaces AS two spaces. The crazy thing of it all is that the source code doesn’t show ”  ” as one would expect, but rather 2 spaces ” “. So that leads me to think that some themes have a funky CSS that displays ” ” as double-space.

    All ranting aside, that’s why this function is so crucial, and probably should be built into the WP core. Perhaps with an option to be disabled in the admin in case the blogger wants to use double space. Just a thought…

    Sounds great, and I’m going to give it a try. BUT, will changes like this get overwritten when the next version of Smart Youtube comes out? Just wondering…

    Thank you, all. Just what I was looking for!

    I was just wondering that myself. WP-SpamFree seems to work well on one of my sites, so I wanted to install it on another, but can’t find it using the “Install Plugins” function within the WP admin. Any word, WP?

Viewing 15 replies - 106 through 120 (of 164 total)