Sean
Forum Replies Created
-
Forum: Plugins
In reply to: [Approval Workflow] [Plugin: Approval Workflow] No NotificationThanks, Eric. I will let you know if I encounter a similar issue.
Additionally, some custom post content requires Admin to “submit to workflow” even though Admin is the approver of submitted content.
The Events Calendar (WP Plugin) event posts are specifically what I’m referring to. If I tick the Submit to Workflow box as an admin, I receive the email but when I go to “approve” the change I am taken to the revisions screen where the versions are identical yet changes do not get published.
I never got any assistance on this, rebecca, not even after I posted to the developer’s website… so I dealt with it until I stumbled upon a fairly new plugin last week called Approval Workflow that works much better and “as advertised”. Plus, users can preview their changes before submitting unlike Revisionary AND the notifications WORK.
Gracias, sksmatt.
I’m just showing Line 89, FYI
Forum: Plugins
In reply to: [User Access Manager] [Plugin: User Access Manager] Edit Page/Parent conflictAny help or suggestions? Developer?
You’ll need to edit two php files: page-edit-single.php and page-add.php
I will post the entire code for you to copy completely for both files. I didn’t have to rewrite the entire thing but it’s easier than explaining which lines to remove/add/edit.
First, we’ll edit the page-edit-single.php:
<?php include_once("./admin-header.php"); if(isset($_POST["_wpnonce"])){ $id = $_POST["id"]; $title = (!empty($_POST["post_title"])) ? $_POST["post_title"] : "(blank)"; foreach($_POST["user_role"] as $role => $name){ $the_roles[$role] = $role; } $reusables->update_reus($id, $title, $_POST["content"], $the_roles); $message = "Reusable updated. directory."/preview&id=$id',400,400,'preview')\">Preview reusable"; } if($message){ echo "<div class=\"updated below-h2\" id=\"message\"><p>$message</p></div>"; } $reus = $reusables->get_reus($_GET["id"]); ?> <input type="hidden" name="id" value="<?php echo $_REQUEST["id"];?>" /> <div id="poststuff" class="metabox-holder has-right-sidebar"> <div id="side-info-column" class="inner-sidebar"> <div id="side-sortables" class="meta-box-sortables ui-sortable"> <div class="postbox " id="categorydiv"> <div title="Click to toggle" class="handlediv"></div><h3 class="hndle"><span>Publish</span></h3> <div class="inside"> <div class="categorydiv" id="taxonomy-category"> <p><b>Make this reusable visible to:</b></p> <div class="tabs-panel" id="category-pop"> <ul class="categorychecklist form-no-clear" id="categorychecklist-pop"> <?php $the_roles = array(); $reus_roles = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."reus_roles WHERE reus_id = ".$_GET["id"]); foreach($reus_roles as $role){ $the_roles[] = $role->role; } ?> <?php foreach(get_roles() as $role => $name){ ?> <li class="popular-category"><label class="selectit" for="role-<?php echo $role;?>"><input type="checkbox" name="user_role[<?php echo $role;?>]" id="role-<?php echo $role;?>" value="<?php echo $role;?>" <?php echo ((array_search($role,$the_roles) !== false)?"checked":null)?> > <?php echo $name;?></label> <?php } ?> </div> </div> </div> <div id="major-publishing-actions"> <div id="delete-action">,'<?php echo $reus->post_title;?>')">Delete</div> <div id="publishing-action"> <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="Publish" /></div> <div class="clear"></div> </div> </div> </div> </div> <div id="post-body"> <div id="post-body-content"> <div id="titlediv"> <label class="hide-if-no-js" id="title-prompt-text" for="title" style="visibility:hidden">Enter name here</label> <div id="titlewrap"> <input type="text" autocomplete="off" id="title" value="<?php echo $reus->post_title;?>" tabindex="1" size="30" name="post_title" /> </div> </div> <div id="postdivrich" class="postarea"> <?php wp_editor($reus->post_content, 'content', array( "editor_selector" => "content", "height" => "100%", "mode" => "none", "width" => "100%", "theme" => "advanced", "theme_advanced_toolbar_location" => "top", "theme_advanced_toolbar_align" => "left", "theme_advanced_statusbar_location" => "bottom", "theme_advanced_resizing" => false, "theme_advanced_resize_horizontal" => false, "dialog_type" => "modal", "plugins" => "$plugins" ) ); ?> <table id="post-status-info" cellspacing="0"><tbody><tr> <td class="autosave-info"> <span class="autosave-message"> </span> </td> </tr></tbody></table> </div> </div> </div>
Now, we’ll edit the page-add.php file. Again, use the following to replace the contents of the entire file because there are several places I made changes:
<?php include_once("./admin-header.php"); if(isset($_POST["_wpnonce"])){ $title = (!empty($_POST["post_title"])) ? $_POST["post_title"] : "(blank)"; foreach($_POST["user_role"] as $role => $name){ $the_roles[$role] = $role; } $reus_id = $reusables->add_reus($title, $_POST["content"], $the_roles); $message = "Reusable published. directory."/reus&f=single&id=$reus_id\">Edit reusable"; } if($message){ echo "<div class=\"updated below-h2\" id=\"message\"><p>$message</p></div>"; } ?> <div id="poststuff" class="metabox-holder has-right-sidebar"> <div id="side-info-column" class="inner-sidebar"> <div id="side-sortables" class="meta-box-sortables ui-sortable"> <div class="postbox " id="categorydiv"> <div title="Click to toggle" class="handlediv"></div><h3 class="hndle"><span>Publish</span></h3> <div class="inside"> <div class="categorydiv" id="taxonomy-category"> <p><b>Make this reusable visible to:</b></p> <div class="tabs-panel" id="category-pop"> <ul class="categorychecklist form-no-clear" id="categorychecklist-pop"> <?php foreach(get_roles() as $role => $name){ ?> <li class="popular-category"><label class="selectit" for="role-<?php echo $role;?>"><input type="checkbox" name="user_role[<?php echo $role;?>]" id="role-<?php echo $role;?>" value="<?php echo $role;?>" checked > <?php echo $name;?></label> <?php } ?> </div> </div> </div> <div id="major-publishing-actions"> <div id="delete-action"></div> <div id="publishing-action"> <input name="publish" type="submit" class="button-primary" id="publish" tabindex="5" accesskey="p" value="Publish" /></div> <div class="clear"></div> </div> </div> </div> </div> <div id="post-body"> <div id="post-body-content"> <div id="titlediv"> <label class="hide-if-no-js" id="title-prompt-text" for="title">Enter name here</label> <div id="titlewrap"> <input type="text" autocomplete="off" id="title" value="" tabindex="1" size="30" name="post_title" /> </div> </div> <div id="postdivrich" class="postarea"> <?php wp_editor($reus->post_content, 'content', array( "editor_selector" => "content", "height" => "100%", "mode" => "none", "width" => "100%", "theme" => "advanced", "theme_advanced_toolbar_location" => "top", "theme_advanced_toolbar_align" => "left", "theme_advanced_statusbar_location" => "bottom", "theme_advanced_resizing" => false, "theme_advanced_resize_horizontal" => false, "dialog_type" => "modal", "plugins" => "$plugins" ) ); ?> <table id="post-status-info" cellspacing="0"><tbody><tr> <td class="autosave-info"> <span class="autosave-message"> </span> </td> </tr></tbody></table> </div> </div> </div> </div>
Hope this helps. It worked for me.
In the event that someone is experiencing this same problem, I just want you to know that I have patched the problem and all is working as before. I’ll be happy to share this fix with you if youd like.
The plugin is called “WordPress reusables” by Ian whitcomb.
After posting this, I decided to try and patch the conflict myself. I know little of php, so I don’t know if I did it right, but I fixed the functionality with the plugin yesterday.
I’m still interested in pursuing the use of global content blocks.
Forum: Fixing WordPress
In reply to: Uploading New Media ProblemsI have just determined that for WHATEVER reason, this file truly is uploading. I can’t tell you how many times I’ve tried uploading this in different configurations, so I’m sure the file directory looks crazy, but the file does not display anywhere in the media library. I took a stab at the URL for the file and it displayed.
Why would this upload to the media folder but not display when viewing the Library???
I had a huge conflict too with this plugin right after I installed and configured it– shut down my whole site!
Forum: Hacks
In reply to: links widget – add a divider between each linkHi munrobr,
Well, yes… that’s essentially what I’m after. My “divider” class is defined in css. I just need to know how to add it to this php function. I want it done automatically when I add the links in the blogroll. I don’t want to have to go and manually make the change every time I publish my PDF.I have found that one of the reasons for this broken functionality is due to a change in WordPress’ use of TinyMCE.
I assume at this point the plugin developer has dropped this project, which is unfortunate. I’ve tried tweaking the plugin and have limited success; can anyone assist me in regaining the TinyMCE editor with this plugin?
Thank you, Argonius, for this fix! I really appreciate the support you provide for your plugin. It’s a great plugin.
I can understand why someone would want to hide the admin bar, but it’s useful for my workflow to have the bar available.
Here’s one for ya: If they DO want the admin bar hidden, shouldn’t you also add this override:
* html body { margin-top: 0px !important; }
because when the admin bar is hidden with plugin there is still a gray bar on the top of the screen.
Thanks again!
Clearing the browser cache did not work; I look forward to the new version. Thanks, Argonius.