eric3d
Forum Replies Created
-
Thanks Joachim,
I ended up ignoring the parenting altogether and created 3 access levels:
– View_page_A (target= page_A, synced with Usergroup_A)
– View_page_B (target= page_B, synced with Usergroup_B)
– View_all (target= page_A, page_B, not synced)Then I used the Access level to grant View_all access to admin, editors and authors (there aren’t too many of them)
While it may confuse users, it may be nice to have a “synced and manual” mode that would, for example, sync View_page_A with Usergroup_A, but still allow me to grant that permission manually to the admins. In that case, change the Access level on the profile page to checkboxes so I can select both View_page_A and View_page_B.
Update:
Including this code at the beginning of restrict-user-access.php seems to work. The admin can still assign levels to the user but the user can’t change the levels (or even see them).if(!function_exists('wp_get_current_user')) { include(ABSPATH . "wp-includes/pluggable.php"); }I’m not sure if that’s the optimal solution.
All the content before –MORE– is visible. I suspect the excerpt (manual or automated) is visible for posts.
Not sure if the theme makes a difference in this behavior. I’m using a theme based on underscoreS.
Jeerish,
Make sure your restrictions show Negate group | Target this context. This means that the only the role assigned will have access to the pages specified. It looks like you have Negate group | Target all but this context.I hope the wording improves in the next version so it is more intuitive.
Also had the same problem. I set some pages’s restrictions to subscribers only but the admin and editors could not view those pages.
Will this change be integrated in the next update?
Forum: Plugins
In reply to: [IM8 Exclude Pages] Incompatible with CMS Page Tree ViewThat works beautifully, thanks Thorsten.
I have yet to find the way to restrict a search to a specific plugin in the forums.
Forum: Plugins
In reply to: [CMS Tree Page View] Trying to get property of non-objectUpdate:
After testing some more, this is an incompatibility with the IM8 Exclude Pages plugin, which affects the wp_list_pages function. I suppose this confuses CMS Page Tree View.Forum: Plugins
In reply to: [Add Meta Tags] Circular redirect due to trailing slashHi George,
The bug was initially reported with version 2.4.3 and is still present in version 2.5.0. Reapplying the hack in my second post fixed it for me (but it would probably cause a double slash for root installations, so a condition should be added).
Eric
Thanks Nick,
The more specific CSS works, but it also adds bulk to the file (load the gce styles then override them with specific styles).
I would rather have an option to NOT load the gce styles in settings (turned off by default for the majority of users and only used if the developer has included gee styles in the theme)
Forum: Plugins
In reply to: [Contact Form 7] Redirect if User already has Sumbit the formSee http://contactform7.com/redirecting-to-another-url-after-submissions/
Change the code to
on_sent_ok: "'my function(); location =http://example.com/';"Forum: Plugins
In reply to: [Contact Form 7] Redirect if User already has Sumbit the formYou should be able to add a call to a javascript function in the on_sent_ok parameter. Something like adding this line to the Additional Settings box:
on_sent_ok: "my function();"Unfortunately, it doesn’t look like you can pass form data through that function, but maybe my syntax is wrong. I tested:
on_sent_ok: "console.log('Name: '+[your-name]+' Email: '+[your-email]);"
gives me the errorReferenceError: Can't find variable: yourSo it looks like you’ll be able to create a cookie with general info, like the fact that the form was sent, but not with specific info, like the form data.
Forum: Plugins
In reply to: [Contact Form 7] on_sent_ok overrides ajax success messageProblem solved. The website was using Google’s newer universal analytics code (isogram) but the instructions referred to the older (async) code. This thread helped a lot. To summarize:
If using the Google async code, that looks like this:
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>Then the old snippet will work:
on_sent_ok: "_gaq.push(['_trackEvent', 'Contact Form', 'Submit']);"If using the newer Google universal code, that looks like this:
<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXX-Y', 'auto'); ga('send', 'pageview'); </script>Then use this snippet:
on_sent_ok: "ga('send', 'event', 'Contact Form', 'Submit');"Can someone update the info on this page? http://contactform7.com/tracking-form-submissions-with-google-analytics/
Forum: Plugins
In reply to: [Contact Form 7] on_sent_ok overrides ajax success messageI tracked this a lithe further and the problem is not in the on_sent_ok call, but in the function that is being called (_gaq is undefined) which stops the action. For example, the following works fine:
on_sent_ok: "alert('message sent');"I’m keeping the thread open so the page can be updated once we find a solution.
I’m using it for a more compact display than the default:
<div class="gce-list-event gce-tooltip-event">[event-title]</div> [if-not-all-day]<div><span>Time:</span> [start-time] - [end-time]</div>[/if-not-all-day] [if-location]<div><span>Location:</span> [location]</div>[/if-location] [if-description]<div><span>Description:</span> [description]</div>[/if-description]Forum: Plugins
In reply to: [Flamingo] Flamingo Role and Capabilities for Author and EditorIs it possible to add those as custom capabilities to assign with a plugin like User Role Editor?