eric3d
Forum Replies Created
-
Forum: Reviews
In reply to: [Media Library Folders] Great organization but hard to accessThanks for the reply.
Boxing the “brought to you/FB links” would clarify that it’s separate info. Collapse option for promo would work well too.
Thanks,
Eric
Forum: Plugins
In reply to: [List category posts] request: add span to paginator's current pageThanks Fernando,
It’s true that you the hook you added allows almost any customization you want. It’ll just take a tiny bit extra work since in some cases I’ll be styling the container<li>and in some cases I’ll be styling the content<a>.The span would have allowed me to style them both together
.lcp_paginator li { padding: 5px; } .lcp_paginator li a, .lcp_paginator li span { padding: 10px; }Instead, I have to do a little math
.lcp_paginator li { padding: 5px; } .lcp_paginator li a { padding: 10px; } .lcp_paginator li.lcp_currentpage { padding: 15px; }Forum: Plugins
In reply to: [List category posts] request: add span to paginator's current pageThanks Mika. Lesson learned.
Fernando, I agree with Chad. A span would be more flexible than simply adding a class to the
<li>element. Although adding the class to the list item is more consistent with WordPress practice, so this would work for all:<li class='lcp_currentpage'><span>current_page</span></li>Forum: Plugins
In reply to: [List category posts] request: add span to paginator's current pageIt looks like the page is interpreting
<li>in the original text as an html tag.
Mod should be able to fix. My mistake.TJ,
Can you test this branch of the plugin?
https://github.com/EricDu/enable-media-replaceI added the option to replace any individual image. I’m using it on one website but would love additional testing before creating a pull request.
Forum: Plugins
In reply to: [Contact Form 7] Are submissions logged in the database?Not by default. You have multiple options:
https://wordpress.org/plugins/flamingo/ (by the CF7 author)
https://wordpress.org/plugins/contact-form-7-to-database-extension/ (as mentioned above)
https://wordpress.org/plugins/form-to-post/ (very useful, but not quite what you’re looking for)Forum: Plugins
In reply to: [AdRotate Banner Manager] jquery dependency missingThanks for the explanation.
Forum: Plugins
In reply to: [Form to Post] Prevent visitor from changing hidden field valueVersion 0.7 still works. Thanks.
Forum: Plugins
In reply to: [Form to Post] Prevent visitor from changing hidden field valueHi Michael,
This work beautifully. Glad we could add a bit of security to this great plugin.Forum: Plugins
In reply to: [Form to Post] Prevent visitor from changing hidden field valueUpdate:
I added
$post['post_status'] = 'pending';before$post_id = wp_insert_post($post);in the plugin file (line 271), which does exactly what I need and adds a bit of security.However, I would prefer a solution that won’t get overwritten by the next plugin update.
I understand people have different needs. Ideally I’d like to be able to set the post status for logged in users and for visitors separately, server-side (PHP, not Javascript).
Forum: Plugins
In reply to: [Form to Post] Prevent visitor from changing hidden field valueAfter looking through the code, I would like to modify
function saveFormToPost($cf7)after all fields are read (foreach ($simpleFields as $field)) and before the post is created ($post_id = wp_insert_post($post);) and force the post_status to either draft or pending. The other options are less important.I could do an add_filter in my theme, but would need a little more guidance. Thanks in advance.
I was selecting the individual page by name. Once I added the static page to a new group, it worked. Thanks.
Forum: Plugins
In reply to: [IM8 Exclude Pages] Incompatible with CMS Page Tree ViewSince the other thread is closed, I’m adding a revised version of the code to add to function.php here. This version does not break the admin if the im8 plugin is disabled.
if ( is_admin() && function_exists('disable_im8_exclude_pages') ) { disable_im8_exclude_pages(); }That sounds like a good solution. I also noticed plugins like Yoast can pull some of the text into meta description field. That’s not as bad since the snippet is much smaller.
I doubt you’ll want to check against all plugins. Search makes sense since it’s a core functionality. It may just be a matter of educating the user about the potential of other plugins to ignore the restrictions.
I don’t know if I made myself clear. The issue is when using the WP search feature like
mysite.com/?s=search+this+word.By default, that page displays the_excerpt for each page that matches the search parameter. A user may expect the content to be completely hidden while in fact the first 55 words are visible in search results.
–MORE– just shortens the excerpt, which works as long as you remember to use it on all restricted page.