Donald McIntyre
Forum Replies Created
-
The code is
/** <?php if(current_user_can(‘edit_events’)): ?>edit/” class=”button add-new-h2″><?php _e(‘Add New’,’dbem’); ?><?php endif; ?> **/
Yes, I see, I copied the code from where the other button is on the
Profile > Events > My Events > Create New
page which is located at the file: my-events.php, the code is:
<?php if(current_user_can(‘edit_events’)): ?>edit/” class=”button add-new-h2″><?php _e(‘Add New’,’dbem’); ?><?php endif; ?>
Tried pasting it on the main page PHP, but didn′t work. I am not a developer so I guess I have to keep trying until I hit the correct PHP code format.
If you could tell me how to write that I would be thankfull, my email is [email protected]
Cheers and thank you!!
Donald.
Forum: Themes and Templates
In reply to: Guruq – how to set up?I tried it with an older version of wp (2.8) and it worked! but the functionality of wordpress 2.8 was unstable (when I answered the question it didn′t save the content of my answer, the visual editor didn′t work, etc.)
So evidently the Theme is not compatible with newer versions of WP.
Does anybody know how to fix an outdated theme to make it compatible with newer versions of WP?
Forum: Themes and Templates
In reply to: Guruq – how to set up?@v8cash I don′t agree because there are hundreds of sites using ask the guruq theme and they all work. It has to be something simple!
Pls see:
https://erniev.com/category/guruq-questions/
https://wannagetanswers.com/?cat=4
https://www.ask.brainguides.com/category/guruq-questions/
https://www.managernext.com/?cat=3
https://www.coachoutletonlinesale.info/category/guruq-questions
https://ask.cpcjalliance.org/?category_name=guruq-questions
https://www.ask.brainguides.com/category/guruq-featured-questions/etc. etc. etc….
@komputa if I finally find a solution I’ll post it here, if you find one can do you the same?
Cheers, Donald.
Forum: Plugins
In reply to: Sync Users between blogsI need exactly the same. If anyone has the solution pls notify here! Thx!
Forum: Themes and Templates
In reply to: Guruq – how to set up?Did anybody find a solution to the “page not found” after someone posts a question? Thank you!! Donald.
Forum: Themes and Templates
In reply to: Guruq – how to set up?Maybe it doesn′t work with Multisite….??
Forum: Themes and Templates
In reply to: Guruq – how to set up?I just installed GuruQ on my WP 3.1.3 Multisite and when I ask a question it works as if I was searching for a question, it returns:
Not Found
Apologies, but we were unable to find what you were looking for. Perhaps searching will help.
Any ideas on how to solve this?
Thx, Donald.
Forum: Installing WordPress
In reply to: [UPDATE Error]wp-includes/query.php array line 2390Daya, merci beaucoup!!
Warning: explode() expects parameter 2 to be string, array given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2390
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Warning: in_array() expects parameter 2 to be array, null given in /home/donmcint/linkedbees.com/wp-includes/query.php on line 2399
Forum: Networking WordPress
In reply to: Multisite Theme EditThx guys!! It worked!!
My suggestion to WordPress is to let WP Multisites installs to have it own Theme and Plugin repository folders and when a member creates a site he should be able to use the themes and plugins, but copied in their own sub.site so they can edit without changing other member′s themes and plugins.
Thank you JRUE and IPSTENU!!!!!!!!!!
Donald.
PS: and JROAKES for creating it!!
Forum: Networking WordPress
In reply to: Multisite Theme EditI also need for single site admins to be able to edit their themes, but I don′t understand the first part: “1. Place this text in a file in the wp-content/mu-plugins/ folder.” I created a .php file within the plugins folder. Or I have to create a folder and then a .php? I am not a programmer! can some one explain the whole thing “for dummies” please?
This is what I did:
1. created wp-content/plugins/chachacha.php
2. chachacha.php has the code:<?php
add_action(‘admin_menu’, ‘_add_themes_utility_editor’, 102);function _add_themes_utility_editor() {
// Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
add_submenu_page(‘themes.php’, _x(‘Editor’, ‘theme editor’), _x(‘Editor’, ‘theme editor’), ‘switch_themes’, ‘theme-editor.php’);}// get the the role object
$editor = get_role(‘administrator’);
// add $cap capability to this role object
$editor->add_cap(‘edit_theme_options’);
$editor->add_cap(‘edit_themes’);?>
3. “comment out” (that I guess is to put /* and */ at the beggining and end of the thing to be commented out)
/*
if ( is_multisite() && ! is_network_admin() ) {
wp_redirect( network_admin_url( ‘theme-editor.php’ ) );
exit();
}if ( !current_user_can(‘edit_themes’) )
wp_die(‘<p>’.__(‘You do not have sufficient permissions to edit templates for this site.’).'</p>’);
*/4. Changed:
$themes = get_themes();
With:
$themes = get_allowed_themes(); (notice I put a space before and after the = sign)5. Went to one users dashboard and … nothing… The edit link does not show. I am frustrated it′s been 3 days looking for this functionality…
I am using WP 3.1.2 Multisite and BuddyPress.
Thank you! and pls somebody pls help me!!! (as if I was a 3 year old!)
Forum: Plugins
In reply to: [BuddyPress Links] Plugin is deadI have a client pissed because of his problems with BP links what do we do now??
Forum: Plugins
In reply to: [BuddyStream] [Plugin: Buddystream] For SUPPORT read this!I don′t know where to put the CRONJOB it sais to put it “in your server”, but I am not developer. The line is: */5 * * * * wget https://linkedbees.com/wp-content/plugins/buddystream/import.php -O /dev/null -q
Can you tell where it goes? Can′t wait for goliath!!
Thx!
Forum: Networking WordPress
In reply to: Multisite wrong URLs for the new blogsThe default final text on WP 3.1 config.php file is wrong!!
Forum: Networking WordPress
In reply to: Multisite wrong URLs for the new blogspbaker99 in the config.php file at the end it sais something like, stop editing…
Replace that last few lines with this and it fixes it:
/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);