dmccan
Forum Replies Created
-
Forum: Plugins
In reply to: [Yada Wiki] Publisher NameHi Ps4dude,
I did some googling on showing the author in the page for the custom post type and it does look like it is something you do in the theme. In the creation of the wiki post type “author” is supported.
If you are using a free theme that I can install I would be happy to see what can be done to get the author to show.
Forum: Plugins
In reply to: [Yada Wiki] Publisher NameHi Ps4dude,
I think it is a factor of the theme you are using. The author shows on my sample wiki for instance:
https://www.davidmccan.com/wiki/learning-chess-wiki/
This page tells the path WordPress takes to choose which template it uses:
https://developer.www.ads-software.com/themes/basics/template-hierarchy/
The plugin “Reveal Template” shows you which template is being used:
https://www.ads-software.com/plugins/reveal-template/
Which theme are you using?
Forum: Plugins
In reply to: [Yada Wiki] User accountsI’m glad it is working out for you. I believe that “Contributors” can only edit their own items.
Forum: Plugins
In reply to: [Yada Wiki] User accountsHi Debbie,
I set the role permissions to work the same way they do for posts and published an update. Please try it out. I think WordPress checks for plugin updates once every 12 hours.
I see two popular plugins that allow you to hide admin menus:
https://www.ads-software.com/plugins/adminimize/
and
https://www.ads-software.com/plugins/admin-menu-editor/
One of those might do what you need in terms of hiding parts of admin that you don’t want them to see.
Best,
David
Forum: Plugins
In reply to: [Yada Wiki] User accountsHi Debbie,
I tried this and it did not work — maybe that is what you were telling me ?? Sorry it did not work as expected.
I can work on getting the proper role permissions setup this weekend. I’ll post back here to let you know how it goes.
Best,
David
Forum: Plugins
In reply to: [Yada Wiki] User accountsHi Debbie,
The plugin checks that the user has the right to edit posts, which the contributor has (though a contributor cannot publish them). This evening I can try it out to make sure it works. I suppose you could create a test contributor account if you want to see what it will look like for the user.
There are plugins that limit access to pages in the admin dashboard if it is too cluttered or you need to restrict some things. I haven’t needed to use those so I don’t have a recommendation right off.
Regards,
David
Forum: Plugins
In reply to: [Yada Wiki] Feature request: can shortcode buttons list wiki pages?Glad it is useful. Thank you for testing it out.
Forum: Plugins
In reply to: [Yada Wiki] Feature request: can shortcode buttons list wiki pages?I have changed the wiki link button to do an AJAX search / auto-complete drop down on wiki titles. That should make it a little easier to add wiki links.
Forum: Plugins
In reply to: [Yada Wiki] Feature request: automatic TOC from categoriesOK. I have expanded the TOC shortcode and added a sidebar widget to allow for category indexes. I hope this makes administering your wiki easier.
Forum: Hacks
In reply to: Is loading wp-load.php and admin.php in your popup acceptable?That answers my question. Thank you for the link.
Forum: Plugins
In reply to: WordPress functions do not work via AjaxLooks pretty good. You are passing in a “$url” variable to the JS page, but $url looks like a PHP variable? The URL in the AJAX call needs to be to the WP ajaxurl variable.
The ‘add_action’ lines need to be in the main plugin file. The sendEmail function can be in an include file.
Also, you are not returning anything from the sendEmail function. Is AJAX working at all? Get that working before moving on to send the email. To test, you might try something like this:
//PHP function sendEmail() { //$file = $_FILES["audioFile"]; $file = $_POST['audioFile']; echo $file; wp_die(); }
(You will need the wp_die(); in your final version too)
//JS function upload(ajaxurl) { //var audioFile = jQuery('#audio-recorder-kdu').attr('src'); var audioFile = "sent something"; data = { action: 'add_foobar', audio: audioFile }; jQuery.post(ajaxurl, data, function (result) { alert(result); }); }
I think your alert should just be
alert(result);
or
alert(“it worksssssssssssssss! ” + result);
Check out the Chrome developer tools. It will show you any javascript and ajax errors.
Good luck!
Forum: Plugins
In reply to: WordPress functions do not work via AjaxHi Carlos,
You write: “When you click a button ..” Click a button where? Are you on the front-end, in the post editor, in an admin settings page, or in a popup somewhere?
I’ve found when troubleshooting AJAX that it helps to start simply and make sure that the two sides are able to communicate before trying to do anything with the data passed. Turn on debug in wp-config.php. If you use Chrome, you can use the developer tools and sometimes you will see the error there.
Hope this helps.
Forum: Plugins
In reply to: [Yada Wiki] Feature request: automatic TOC from categoriesGood suggestions. Thank you.
In case you hadn’t seen, the tag cloud widget allows you to select the wiki tags for display. Also, there are some plugins that give you widgets for displaying custom taxonomies, including the articles of custom taxonomies … in case you need to set things up while I ponder this.
Forum: Plugins
In reply to: [Yada Wiki] Feature request: automatic TOC from categoriesI’ve been thinking of maybe a widget for the TOC. How would we know what order to put the wiki articles in if the TOC was generated automatically?
Forum: Plugins
In reply to: [Yada Wiki] Feature request: can shortcode buttons list wiki pages?Good idea. I’ll take a look.