Forum Replies Created

Viewing 11 replies - 106 through 116 (of 116 total)
  • ^ same issues here! It is happening on any page that has a widget shortcode using WOP on two of my websites. However, I’ve noticed this issue is isolated to one website. Theme related?

    I simply went in and just used arbitrary which worked for this particular websiste.

    Thank you for this Bloke! I’ve been using plugins and themes for mobile and not very satisfied. I simply need to carry over most of the design elements from existing theme then clean up css and call a custom menu for mobile.

    This allows me to do this!

    Thanks for sharing.

    I started having this issue on a multisite today. Very strange. About a month ago I setup the plugin on one blog id then today wanted to use on another but when activating and save settings nothing would save. I tried in IE 10 and it was the same issue. I opened up the first blog id I had it working on and it took settings perfectly fine. Back to the new blog id and still the same problem persisted, even after deactivate reset etc.

    Being the multi-tasker I am something else took my attention and about 45 minutes later I try again and it worked….

    My MU is possessed.

    So it is working as expected but that was odd….

    I started experiencing this problem a week or so ago. Version 3.9.5 with WP 3.6.1 (currently upgrading).

    As suggested changing line 7

    if ( !is_user_logged_in() ) die( 'Access denied' );

    to

    if ( !current_user_can( 'author' ) && !current_user_can( 'editor' ) && !current_user_can( 'administrator' ) )

    resolved my problem.

    I am a super admin for a WPMU network and my role and editor role were denied permission.

    Thank you for the helpful information.

    I am experiencing the same thing except only FB loads. The HTML mostly loads for the other buttons but I fear it is being stripped by my theme. I will contact their support but I already know what their response will be, “we don’t support third-party plugins”.

    In the search to solve the issue, I noticed in my situation that #! is being appended to the URL so a secondary page looks like domain.com/#!/page – this scenario leaves the page with a lonely FB button. If I remove #! from the URL it works perfectly.

    So, I dug around and found this line of code in a .js file

    if ( window.location.href.search('#!/')

    Removing the #! does nothing for the URL itself if clicking through the supported menu, however if I remove the #! from the URL the page is broken. I think AJAX page loading only works with that line of code, BUT, if I can access a page without #! in the URL I’m curious where in the code I can correct.

    I use this plugin on ~70 websites and LOVE it.

    Thread Starter Jarod Thornton

    (@jarmerson)

    I had no patience and decided to start from scratch and indeed I was using the current user condition improperly. But I got the code cleaned up and simplified!

    I’m going to make this a plugin – my first ever ??

    // Require Pluggable
    
    require (ABSPATH . WPINC . '/pluggable.php');
    
    // Obtain User ID
    
    add_action('init','obtain_user');
    
    function obtain_user(){
    
    global $current_user;
    
    get_currentuserinfo();
    
    // Call Custom WP Admin Function
    
    function load_custom_wp_admin_style(){
    
    	// Register and Enqueue Admin Default Style
    
        wp_register_style( 'admin_default', WP_CONTENT_URL . '/themes/admin_default.css');
    	wp_enqueue_style( 'admin_default' );
    
    	// Register and Enqueue Super Admin Style If ID #1
    
    	$current_user = wp_get_current_user();
    	if (1 == $current_user->ID) {
    	wp_register_style( 'super_admin', WP_CONTENT_URL . '/themes/super_admin.css');
    	wp_enqueue_style( 'super_admin' );}
    
    	// Otherwise Register and Enqueue Client Admin Style
    
    	else {
    	wp_register_style( 'client_admin', WP_CONTENT_URL . '/themes/client_admin.css');
    	wp_enqueue_style( 'client_admin' );
    
    	// Include plugin.php to Check if Landing Page is Active
    
    	include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    
    	// Register and Enqueue Client Admin Landing Style if User is Not #1 and Plugin is Active
    
    	if(is_plugin_active('landing-page.php')) {
    	wp_register_style( 'client_admin_landing', WP_CONTENT_URL . '/themes/client_admin_landing.css');
    	wp_enqueue_style( 'client_admin_landing' );
    	}
    	}
    }
    }
    
    // Add Action Hook
    
    add_action('admin_enqueue_scripts', 'load_custom_wp_admin_style');
    
    // That's All Folks!
    Thread Starter Jarod Thornton

    (@jarmerson)

    Oops, I included an edit in that and didn’t mean to. (1 != ID) was omitted… Here goes again.

    // Check If Logged In
    
    if ( is_admin() ) {
    
    		// Obtain User ID
    
    			add_action('init','obtain_user');
    
    			function obtain_user(){
    
    			global $current_user;
    
    			get_currentuserinfo();
    
    			// Require Pluggable
    
    					require (ABSPATH . WPINC . '/pluggable.php');
    
    							// Add Print CSS Actions
    
    									add_action( 'admin_print_styles', 'load_custom_admin_css' );
    
    									function load_custom_admin_css() {
    
    										// Load Default CSS
    
    											wp_enqueue_style('my_style', WP_CONTENT_URL . '/themes/admin_default.css');
    											}
    												// Load Super Admin
    
    													if (1 == ID) {
    														wp_enqueue_style('my_style', WP_CONTENT_URL . '/themes/super_admin.css');
    														}
    
    														else
    
    															// Load Client Admin
    
    																	wp_enqueue_style('my_style', WP_CONTENT_URL . '/themes/client_admin.css');
    																	}
    
    																		//  Check For Landing Page Sub-Site	
    
    																			include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    
    																				if ((1 != ID) && (is_plugin_active('landing-page.php'))) {
    
    																					// Sub-Site Style
    
    																							wp_enqueue_style('my_style', WP_CONTENT_URL . '/themes/client_admin_landing.css');
    																							}
    }

    BTW paulo4lzn the plugin is awesome! Thanks so much for your contribution!

    I’ve replaced line 188 and 192 the variable $post_type_id to $post_id

    No luck ??

    WPMU 3.5.1

    CSS Plus 1.4.1

    I am having the same problem after update to plugin. No blank spaces in either file.

    I also get a second missing argument error, here are both.

    Latest v WPMU and CSS Plus

    ‘Warning: Missing argument 2 for css_plus_plugin_save_post() in /home/iemajen/public_html/wp-content/plugins/css-plus/css-plus.php on line 188

    Warning: Cannot modify header information – headers already sent by (output started at /home/iemajen/public_html/wp-content/plugins/css-plus/css-plus.php:188) in /home/iemajen/public_html/wp-includes/pluggable.php on line 876′

    Thread Starter Jarod Thornton

    (@jarmerson)

    Ok I have zero response. I’m not sure if I’m posting this in the right place or if anyone else has experienced the problem above. I have searched and searched these forums and the web in general looking for a solution.

    I did find that WPMU w/ BP Avatars were mis-guided but I found the fix here

    However this did nothing for Special Recent Posts…

    Please, anyone help. I can provide login if you have time to review and help. It would be greatly appreciated.

Viewing 11 replies - 106 through 116 (of 116 total)