Demonhood
Forum Replies Created
-
Forum: Plugins
In reply to: [Authorizer] MultiSite Override & Default RolesAh interesting. Thank you for the response.
But is there a method for any random new user? They authenticate against my SSO service, but on one site I want them to be part of the custom “Traveler” group, and on another the “Blue” group. Or would I have to make those group permissions for Subscriber to make it work?
Forum: Plugins
In reply to: [wpDirAuth] Multisite Default UsersThe old plugin – Multisite User Management.
Made it easier to select default roles for users on our many many sites, all from one location.It does make sense. But here is what our expected behavior is (and what it has done in the past):
1) User exists in the centralized multisite bucket of users.
2) They attempt to log into a newly created site within that multisite (with a custom user role).
3) The user is authenticated against the ldap, is redirected to the dashboard (or whatever appropriate page) on the new site.
4) User account is created (it’s their first visit), with that new role, for the new site (appearing under Users).
5) Profit?That’s all users have to do to register on our sites. We use the ldap authentication to ensure that they’re eligible (success = eligible).
But lately, we’ve been seeing some users properly authenticate, but then the user gets logged into a site they’re already a user on, completely bypassing the new site they were ACTUALLY trying to log into (going straight from new-site.xyz/wp-admin to old-site.xyz). WordPress is deciding that they must have wanted to go to one of those existing sites instead. If they press the back button, sometimes they’re logged in (sometimes not). But the user is not created for the new site (as you could also see on the Network Users section).
Weird huh.
Forum: Plugins
In reply to: [wpDirAuth] LDAP Password Problem?That was fast. ??
I’ve already corrected the one user that was having the issue (involved turning them back into a “regular” user, generating a new password, and then turning them back into a directory user), but if this doesn’t pop up again anytime soon, then it looks like it’s been resolved.
Many thanks.I am experiencing the exact same issue.
Was a solution found?Yes.
This plugin allows you to save as a custom post type (under Advanced on your post title). You can then create a View to display all of those post types. I do this on several sites.I’d like to know the same thing. I have people submitting events and selecting venues from a dropdown (all currently working with this plugin). But that venue selection goes into the ether. It doesn’t change the setting so that the event is associated with its parent, the venue.
Any help is appreciated.
Forum: Fixing WordPress
In reply to: Strip Image Attributes from my VariableThe explode worked perfectly, many thanks.
After much effort, the post_thumbnail finally proves useful. Yay.Forum: Fixing WordPress
In reply to: echo the_post_thumbnail urlI’m trying to produce the same results as the OP. It seems we’ve decided that WP does not provide a function for calling just the image source of special sized post thumbnails. Anyone ever figure out a way around this?
Forum: Fixing WordPress
In reply to: Strip Image Attributes from my VariableInteresting thread.
So it seems that there is no built-in mechanism in WP to do this. Especially since, like that poster, I am using a post_thumbnail of a non-default size.So, anyone proficient enough with PHP to know how to strip out just the src location for an image? All the php code I’ve tried online has failed to produce results.
Forum: Themes and Templates
In reply to: Post thumbnail as backgroundAh, that’s helpful. I’m much closer, thanks. The problem is that the call for the thumbnail also pulls in the width/height and alt tags. Stuff I don’t need (and that throw’s off the inline css). How can I strip that?
<?php $posts=query_posts('page_id=22'); if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $thumbnail = ''; if (function_exists('has_post_thumbnail')) { if ( has_post_thumbnail() ) { $thumbnail = get_the_post_thumbnail($post->ID,'featured'); } } ?> <?php endwhile; endif; ?> <div style="background: url(<?php echo $thumbnail; ?>) no-repeat;> <h3><?php the_title(); ?>:</h3> <h4>Player's Name!</h4> </div>
Which outputs this:
<div style="background: url(<img width="292" height="260" src="https://www.mydomain.com/wp/wp-content/uploads/2010/04/player-featured-292x260.jpg" class="attachment-featured wp-post-image" alt="" title="player-featured" />) no-repeat;> <h3>Featured Skater:</h3> <h4>Player's Name!</h4> </div>
So if I could just easily strip everything before the http of the image and everything after, I’d be good to go.
Forum: Themes and Templates
In reply to: Post thumbnail as backgroundEver figure this out? I’d like to know as well.
Forum: Fixing WordPress
In reply to: Displaying post_thumbnail for a Specific PageAlthough if someone could clue me in on how to make the post_thumbnail the background image of a div, that’d be mighty helpful. Otherwise, a css hacking I will go.
Forum: Fixing WordPress
In reply to: Displaying post_thumbnail for a Specific PageGot it. I was making it much more complicated than it actually was.
Here’s the final code for my php widget, for those interested:<?php $posts=query_posts('page_id=15'); if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_post_thumbnail( 'featured' ); ?> <?php endwhile; endif; ?>
That’s using the custom post_thumbnail size I defined in my functions.php file. Thusly:
add_image_size('featured', 300, 260, true);
Perfect widget size. ??
Forum: Fixing WordPress
In reply to: Displaying post_thumbnail for a Specific PageIt’s a custom theme and it’s not quite ready for primetime, so no link for now.
You say you have a php widget. Does this widget have its own loop to retrieve posts?
That’s the issue right there. How should this loop look to retrieve pages (or just one page) instead of all posts?
You say there is a ‘featured player page’. Is this really a page, or a post? If it is a post, how is it identified as a featured player?
It really is a page. ‘Featured Player’ is just the name of the page. It’s currently my only page with a thumbnail image (and likely will remain so).
I can feed the function the page’s ID, but my current loop seems to only go thru posts. And I have another variable in there, in a custom post_thumbnail size. So how would that be formatted?
Forum: Fixing WordPress
In reply to: Displaying post_thumbnail for a Specific PageYes, that’s what I’m using. But all the examples say “put this in your loop” without explaining how I can query a specific page (or sets of pages) with that loop instead of posts.