Forum Replies Created

Viewing 15 replies - 1 through 15 (of 31 total)
  • I’ve got the same fatal error issue but, in looking through UamUserGroup.class.php, I’m not seeing the functions you mention. There are many other functions, some with arguments, some without, but then I don’t find the functions called. I’ve checked UAM 1.2.1 and 1.2.2.

    Can you be more specific about the code to replace? I’m using wp 3.2.1

    Thanks,
    Stace

    Thanks for the link but that wasn’t my question. I am – or was – looking for a way to inject one of those player parameters in to the WP code that was manipulating a youtube url in to an iframe chunk of code.

    Found my solution:

    function remove_related_videos($embed) {
    	if (strstr($embed,'http://www.youtube.com/embed/')) {
    		return str_replace('?fs=1','?fs=1&rel=0',$embed);
    	} else {
    		return $embed;
    	}
    }
    add_filter('oembed_result', 'remove_related_videos', 1, true);

    I’m looking for this same functionality – did you ever find a solution?

    I love the ability for users to add video simply by pasting the YouTube url. No need to deal with youtube embed code and options – just paste and go. And it looks like WP generates it’s own iframe code, utilizing the standard youtube iframe options. I’d like to hook in to this process and simply add that ‘”rel”=0’.

    Any thoughts?

    In looking in to this further, I’ve found that the plugin redirects just fine, as long as you’re not using custom permalinks or custom page templates. But what’s the fun in that?

    The code pasted above changes the condition and hook that call the function but, as noted, breaks when custom templates are used. In looking in to the actual ‘redirect’ function that’s being called, I found that permalinks were causing the break. I’m not sure if the plugin developer built something in to deal with permalinks or just forgot but the function was looking for variables that just don’t exist under custom permalinks. Rather than try to totally re-engineer the code, I simply grabbed the variables that did exist (at least for my permalinks) and swapped them in.

    So here’s my fix:
    Do NOT swap in the code pasted above to user-access-manager.php; leave that file untouched.

    Instead, go to UserAccessManager.class.php and find ‘public function redirect’. There you’ll find a multi-conditional statement that determines whether the user is attempting to access a post, a page or category archive. My code is pasted below, commenting out the original lines and inserting the lines needed. Again, these new lines worked for my permalink structure (postname/postid); not sure if they’ll work for others.

    if (isset($pageParams->query_vars['p'])) {
    	$object = get_post($pageParams->query_vars['p']);
    	$objectType = $object->post_type;
    	$objectId = $object->ID;
    //} elseif (isset($pageParams->query_vars['page_id'])) { // sfc: for use with no permalinks
    } elseif (isset($pageParams->query_vars['pagename'])) {
    	//$object = get_post($pageParams->query_vars['page_id']); // sfc: for use with no permalinks
    	$object = get_page_by_path($pageParams->query_vars['pagename']);
    	$objectType = $object->post_type;
    	$objectId = $object->ID;
    //} elseif (isset($pageParams->query_vars['cat_id'])) { // sfc: for use with no permalinks
    } elseif (isset($pageParams->query_vars['category_name'])) {
    	//$object = get_category($pageParams->query_vars['cat_id']); // sfc: for use with no permalinks
    	$object = get_category_by_slug($pageParams->query_vars['category_name']);
    	$objectType = 'category';
    	$objectId = $object->term_id;
    }

    Hope this helps somebody. Better yet, I hope this helps the developer. I really like this plug in and hope to see it supported. I also use a similar plugin called Role Scoper but find that, while powerful, it’s also very complicated. I really like the straightforward nature of User Access Manager for those sites that just need some simple access management.

    Same here! Looking for the ability to redirect while still using my custom templates. Anyone get a handle on this?

    Thread Starter stacef

    (@stacef)

    Sweet – thanks!

    Thread Starter stacef

    (@stacef)

    That was it – I knew there was something missing! Thanks very much for your patience in helping me figure this out. The search and the functionality all work as expected.

    Now I just need to write two sets of query code: one for Relevanssi and one for WP. Still thinking about adding that support for tag_name?

    Thanks again for all of your help.
    Stace

    Thread Starter stacef

    (@stacef)

    Thanks for the help and I appreciate all the effort you’ve put in to building this from scratch. And I understand that, because of that, it might not behave exactly the same as a WP search.

    But here’s where I’m at …
    Your example, http://www.example.com/?s=term&cat=24&tag=25, is the functionality that I need and it works on your end but not mine. It appears that the ‘tag’ parameter is ignored.

    Any pointers as to where to look to make this function work at this end? A setting? A different parameter?

    Thanks!

    Thread Starter stacef

    (@stacef)

    Maybe there’s something else going on. Your example:
    http://www.mysite.org/kb/tech/?tags=24&cats=25
    returns all posts, not posts tagged with id 24 and in category id 25 as expected.

    http://www.mysite.org/kb/tech/?tag=24&cat=25
    returns posts in category id 25 but ignores the tag parameter.

    If these urls work for you, maybe there’s a setting somewhere that I might have missed? Searches query as expected with the plugin deactivated (though everything is returned by date) so I keep thinking there must be an easy solution.

    Thread Starter stacef

    (@stacef)

    Relevanssi doesn’t recognize “tag” ? WP makes pretty regular use of “tag” as a query parameter. Your workaround, substituting “cat” as parameter name and using the tag ID as value works, but sadly not when combined with other search parameters.

    http://www.mysite.org/kb/tech/?s=lorem&cat=24
    returns items with term “lorem” and tag id 24, as expected

    http://www.mysite.org/kb/tech/?s=lorem&cat=24&category_name=firewall
    returns items with term “lorem” and in category “firewall”; tag parameter is ignored

    Am I missing something here? Is what I’m trying to accomplish totally oddball? I really like your plugin and have used it with great success for quite a while. Is there a better way to do what I need?

    Thanks for any help!
    Stace

    Thread Starter stacef

    (@stacef)

    Not so much. Tried ‘cat’, ‘category’ and ‘category_name’ and no love. Does this issue exist at your end or is it unique to my installation?

    stacef

    (@stacef)

    Yes, any update on this function?

    Thanks

    Forum: Plugins
    In reply to: [Plugin: WP-Table Reloaded]
    Thread Starter stacef

    (@stacef)

    I checked on a PC and the issue was there with Firefox 3.0.8 but, as you said, in IE it worked as expected. And user role doesn’t seem to make a difference. I will send you a screenshot directly.

    Thanks,
    Stace

    Forum: Plugins
    In reply to: [Plugin: WP-Table Reloaded]
    Thread Starter stacef

    (@stacef)

    Thanks for the pointer to the FAQs – I should have looked there first.

    Unfortunately, I get no scroll bar. I’m testing with Safari 4.0.4 and Firefox 3.5.8 on a Mac.

    As always, thanks for all time.

    Stace

    Forum: Plugins
    In reply to: [Plugin: WP-Table Reloaded]
    Thread Starter stacef

    (@stacef)

    Tobias,

    Thanks again for all of your help configuring your code to fit my needs!

    Two formatting questions:
    Is there any way to set the width of the columns? I’ve got a table with two columns and the first column takes about 2/3 of the table, even though the text only takes about a quarter of that column.

    The other issue is within the Table Contents of the Admin area. Having more than 4 columns extends past the page boundaries, meaning there is no way to scroll there; you have to widen the browser window which can be difficult on a laptop. Any thoughts?

    Thanks,
    Stace

Viewing 15 replies - 1 through 15 (of 31 total)