Ansel Taft
Forum Replies Created
-
Forum: Reviews
In reply to: [wpRTC - WebRTC for WordPress] Awesome, groundbreaking WebRTC pluginAt the end of the day this review turned out to be a misreading or misunderstanding?
I would suggest then that author shouldn’t ‘pay’ for it with a one-star review. That would generally be considered rude and not the type of thing we want to see in this community, especially when you consider the developer’s time to offer the integration free of charge.
Cheers
Forum: Plugins
In reply to: [User Role Editor] Option to turn off authors from seeing each others' post?Lovely – thank you.
Argonius, as I dig deeper into how our theme is currently coded I think it’s more our problem than anything to do with AGCA. I’m going to send a donation and thank you for your time.
Looks like it’s hard coded into the theme’s header.php file:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js”></script>
Is there a better way to call jQuery?
Regarding the code tweak, no luck. I do not see jQuery in the header still.
The code looked like this following your post:
function reloadScript(){ wp_enqueue_script('jquery'); if(in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')) || WP_ADMIN == 1){ } }
“Is there any chance that you renamed default WP login page name?”
We don’t mettle in stuff like that.
I’ll try your code fix and report back.
Strangely, on the actual pages jQuery is there:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js”></script>
Any idea why it’s omitted from the login page?
Sure thing, it’s:
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Cross-Media Hub ? Log In</title> <link rel="stylesheet" id="wp-admin-css" href="https://dev.xmh.com/wp-admin/css/wp-admin.min.css?ver=3.5.1" type="text/css" media="all"> <link rel="stylesheet" id="buttons-css" href="https://dev.xmh.com/wp-includes/css/buttons.min.css?ver=3.5.1" type="text/css" media="all"> <link rel="stylesheet" id="colors-fresh-css" href="https://dev.xmh.com/wp-admin/css/colors-fresh.min.css?ver=3.5.1" type="text/css" media="all"> <script type="text/javascript" src="https://dev.xmh.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2"></script> <script type="text/javascript" src="https://dev.xmh.com/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2"></script> <script type="text/javascript" src="https://dev.xmh.com/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.9.2"></script> <script type="text/javascript"> /* <![CDATA[ */ var WPFC = {"ajaxurl":"http:\/\/dev.xmh.com\/wp-admin\/admin-ajax.php","firstDay":"1","wpfc_theme":"1","wpfc_limit":"30","wpfc_limit_txt":"more ...","wpfc_theme_css":"http:\/\/dev.xmh.com\/wp-content\/plugins\/wp-fullcalendar\/includes\/css\/ui-themes\/le-frog.css","wpfc_qtips":"1","wpfc_qtips_classes":"ui-tooltip-light","wpfc_qtips_my":"top center","wpfc_qtips_at":"bottom center"}; /* ]]> */ </script> <script type="text/javascript" src="https://dev.xmh.com/wp-content/plugins/wp-fullcalendar/includes/js/main.js?ver=3.5.1"></script> <script type="text/javascript"> var agca_global_plugin_url = 'https://dev.xmh.com/wp-content/plugins/ag-custom-admin/'; </script> <link rel="stylesheet" type="text/css" href="https://dev.xmh.com/wp-content/plugins/ag-custom-admin/style/ag_style.css?ver=1.2.7.1"> <script type="text/javascript" src="https://dev.xmh.com/wp-content/plugins/ag-custom-admin/script/ag_script.js?ver=1.2.7.1"></script> <style type="text/css"> </style> <script type="text/javascript"> </script> <script type="text/javascript"> document.write('<style type="text/css">html{visibility:hidden;}</style>'); function AGCAErrorPage(){ if(document.getElementsByTagName('html')[0].style.visibility == ""){ var txt = ""; txt += 'AG Custom Admin Error\n\n\n'; txt += 'AG Custom Admin is unable to correctly process this page. Probably there are some errors thrown from some of the installed plugins or templates.\n\n\n'; txt += 'To resolve this issue please:\n\n'; txt += '* Check browser\'s console for errors. Analyse .js script location which throws the error. Location of the script can give you more information about where is the source of the problem. Usualy it is a location of a plugin or a template. If there are more than one error, usualy the first one is the one which caused this problem.\n\n'; txt += '* If you can\'t access your login page, please disable JavaScript in your browser. After you log in, you can remove or fix problematic plugin, and re-enable JavaScript again.\n\n'; txt += '* If you can\'t find the source of the problem by yourself, please post this error to AGCA www.ads-software.com support page(https://www.ads-software.com/extend/plugins/ag-custom-admin/) or to AGCA support page(https://agca.argonius.com/ag-custom-admin/)'; txt += '\n\nThank you.'; alert(txt); } } window.setTimeout(AGCAErrorPage,4000); var agca_version = "1.2.7.1"; var wpversion = "3.5.1"; var isSettingsImport = false; var agca_context = "login"; /* <![CDATA[ */ jQuery(document).ready(function() { try{ jQuery("#login h1 a").attr("title",""); }catch(err){ alert("AGCA - LOGIN ERROR: " + err.name + " / " + err.message); }finally{ jQuery('html').show(); jQuery('html').css('visibility','visible'); } }); /* ]]> */ </script><style type="text/css">html{visibility:hidden;}</style> <meta name="robots" content="noindex,nofollow"> </head>
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
The errors referenced above are from the console.
I do not have a public-facing URL to send as this issue has persisted for two releases (since 1.2.6); we stripped it from our production sites until we can clear it up.
Is there anything else we can provide?
Forum: Plugins
In reply to: [WP Admin UI Customize] Issue Suppressing Two Plugins: WP SEO, FormidableThat took care of it. Thank you for your help. I sent you $10 USD for your other plugin as thanks. Any way you could make a version for donators, one that removes the donation nag messages? ??
Thanks again,
Ansel
Forum: Plugins
In reply to: [WP Admin UI Customize] Issue Suppressing Two Plugins: WP SEO, FormidableThe new version properly suppressed the extra Formidable entry (thank you).
The ‘SEO / Keyword Research’ menus are still available on the admin bar. If you test it with the plugin I linked above, I believe you will be able to replicate the issue.
Ansel
Forum: Plugins
In reply to: [WP Admin UI Customize] Issue Suppressing Two Plugins: WP SEO, FormidableI am sorry for not linking to the appropriate SEO plugin, it is this one:
https://www.ads-software.com/extend/plugins/wordpress-seo/
I will test the new version today. Thank you so much for your efforts!
Ansel
@agelonwl – we updated Events Manager from the last-latest version. We keep it up to date. WP FullCalendar on the other hand, we have some custom programming baked into an older version (0.5, current is 0.7).
@marcus – I reset the plugin and normality has been restored. I remember looking at the User Capabilities section last week but I nearly certain I didn’t edit any of the Admin capabilities… that would just be silly. ??
Anyway, looks like our hiccup has cleared and I thank you both for your replies!
…please don’t register a different version of jQuery. This is also asking for lots of trouble since other plugins and themes may not test against the specific version you are forcing.
I concur, based on the strong warnings and repetition voiced at the all the WordCamps I’ve attended.
Argonius,
The first suggestion did not work for me, but the second one did. The login dialogue loaded when I changed
function print_login_head(){ $this->context = "login"; if( !wp_script_is('jquery')) { $this->reloadScript(); } $this->agca_get_includes(); $wpversion = $this->get_wp_version();
to
function print_login_head(){ $this->context = "login"; $this->reloadScript(); $this->agca_get_includes(); $wpversion = $this->get_wp_version();
jQuery loaded and all was well and right again in the world. ??