samjco
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF PHP VARS] Adds Whitespace in front of DOMI will add this in the next update.
Forum: Plugins
In reply to: [ACF PHP VARS] Adds Whitespace in front of DOMThanks!
Good catch!
+1
Forum: Plugins
In reply to: [WPSiteSync for Content] Sync multiple computers?@serverpress, thank you for your reply.
To your question concerning the UX, I see it this way, if I understand it fully.
You might want to look at the logic that a plugin called Broadcast is already doing. https://www.ads-software.com/plugins/threewp-broadcast/Having a log that shows what remote wp site posted successfully, and which ones didn’t, would be the way to go. An active log using WP List Table function.
Forum: Plugins
In reply to: [WPSiteSync for Content] Sync multiple computers?+1
I am a developer!
So I asked for this implementation a year ago.I think we should be able to either do:
To PUSH from 2(or more) WP Sites to 1 WP Site.
-OR-
To PUSH from 1 WP Site to 2(or More) WP Sites.This is my wish.
I know somewhat of how to do this, but need a little guidance.What is the function looking for?
Because it might be conflicting with another plugin I assumeForum: Plugins
In reply to: [ACF PHP VARS] Collapsible RowsSo collapse them by Field groups?
Great idea! Added to the listI will start back updating this plugin soon
Forum: Plugins
In reply to: [ACF Front End Editor] Adding more options to the editorYou can access the mediumeditor.js file and edit the toolbar part:
toolbar: { buttons: ["bold", "italic", "underline", "strikethrough", "anchor", "h2", "h3", "orderedlist", "unorderedlist", "quote"], },
Forum: Plugins
In reply to: [ACF Front End Editor] Great Plugin, requesting a feature!Limit user roles to Admin and Editors, but allow Author to ONLY edit their own post:
function posts_for_current_author($query) { global $pagenow; if( 'edit.php' != $pagenow || !$query->is_admin ) return $query; if( !current_user_can( 'edit_others_posts' ) ) { global $user_ID; $query->set('author', $user_ID ); } return $query; } add_filter('pre_get_posts', 'posts_for_current_author');
Forum: Plugins
In reply to: [ACF Front End Editor] Limit ACF Front End Editor editable content?You can add this plugin:
https://www.ads-software.com/plugins/manageview-your-posts-only/or if you just want to limit everyone to their own post EXCEPT Admins and Editors, add this code to your function.php:
function posts_for_current_author($query) { global $pagenow; if( 'edit.php' != $pagenow || !$query->is_admin ) return $query; if( !current_user_can( 'edit_others_posts' ) ) { global $user_ID; $query->set('author', $user_ID ); } return $query; } add_filter('pre_get_posts', 'posts_for_current_author');
Forum: Plugins
In reply to: [ACF Front End Editor] Error: 414 Request-URI Too Large on SavePosting will work.
But what about local storage?
<script> function everySecond () { var s = $("#idEditor").html (); if (s != localStorage.mediumEditorText) { localStorage.mediumEditorText = s; console.log ("everySecond: saved " + s.length + " chars in localStorage.mediumEditorText."); } } function startup () { console.log ("startup"); if (localStorage.mediumEditorText === undefined) { localStorage.mediumEditorText = ""; } $("#idEditor").html (localStorage.mediumEditorText); var editorBody = new MediumEditor (".divEditor", { placeholder: { text: "This is a good place to tell your story..." }, toolbar: { buttons: ["bold", "italic", "underline", "strikethrough", "anchor", "h2", "h3", "orderedlist", "unorderedlist", "quote"], }, buttonLabels: "fontawesome" }); self.setInterval (everySecond, 1000); } </script>
And You HTML:
<div class="divPageBody"> <div class="divEditor" id="idEditor"> </div> <div class="divBelowEditor"> <h3>Hello World for medium-editor</h3> <p>When I was getting started with <a href="https://github.com/yabwe/medium-editor">medium-editor</a>, what I wanted more than anything was a simple Hello World type app, that was a functional editor and nothing more. That's what this app is.</p> <p>It stores your text in localStorage. Select text to style it. Try adding a link. Drag a small picture into the text. It saves automatically.</p> <p><a href="https://scripting.com/2015/07/24/mywordEditorGetsMoreBeautiful.html">Dave Winer</a>, July 26, 2015.</p> </div> </div> <script> $(document).ready (function () { startup (); }); </script>
Forum: Plugins
In reply to: [ACF Front End Editor] Save with out Admin bar?you can actually add this to your theme file that might work:
<style type="text/css"> .editbtnsection { z-index: 99999; position: fixed; top: 10px; left: 0; /* float: right; */ } a.ab-item { background: #111; color: white; } div#wp-admin-bar-root-default>li { list-style: none; margin-left: 6px; background: #111; color: white; padding: 8px 20px; border-radius: 50px; list-style: none; display: inline-block; float: right; } </style> <div id="wp-admin-bar-root-default" style="" class="editbtnsection ab-top-menu"> <!-- Left empty intentionally --> </div>
You can use contenteditable=”false” within your div.
example:
<div contenteditable="false"> <p>this is NOT editable</p> <div> <div contenteditable="true"> <p>this is editable</p> </div>
Forum: Plugins
In reply to: [Pay For Post with WooCommerce] Protect Content in Custom Fields?Another thing you can do is render the fields into the editor. ACF has shortcode I believe for that.
Forum: Plugins
In reply to: [ACF PHP VARS] Please add support for custom DB table prefixesThanks for your support..
What line numbers?