t3rra
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Memphis Documents Library] There are a lot of notice errorsYou do not have to use has_cap function directly to make that error appears but if you have supplied wrong parameter or something on a function that uses has_cap function. That is not an issue of the theme nor of another plugin.
Following logs should be from time I posted 9 months ago;
[21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: mdocs-nonce in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-functions.php on line 215 [21-Sep-2014 21:24:16 UTC] PHP Notice: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/xx/public_html/wp-includes/functions.php on line 3318 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: read_private_pages in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 219 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: author in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: bbp_blocked in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: contributor in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: customer in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: bbp_keymaster in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: bbp_moderator in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: bbp_participant in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: bbp_spectator in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined index: subscriber in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-settings.php on line 204 [21-Sep-2014 21:24:16 UTC] PHP Notice: Undefined variable: title_width in /home/xx/public_html/wp-content/plugins/memphis-documents-library/mdocs-localization.php on line 68If you did not get these notice errors, it means your php settings are incorrect. Using index without prior validation is harmful therefore it must be avoided.
Forum: Plugins
In reply to: [Q and A Focus Plus FAQ] Anchor plus minus sign in non-accordionDoes not seem to have been damaged though.. FYI javascript file was first beatified using online javascript beatifier and then modified.
jQuery(document).ready(function ($) { var faqContainer = $(".qafp-faqs"); // <- add $("div[id^=qafp-faq]").each(function () { var num = this.id.match(/qafp-faq(\d+)/)[1]; var faq = $("#qafp-faq" + num); //var faqContainer = $(".qafp-faqs"); // <- remove if (faqContainer.is(".collapsible")) { faq.find(".qafp-faq-anchor").bind("click", function () { if (faqContainer.is(".accordion")) $(".qafp-faq-answer").not("#qafp-faq" + num + " .qafp-faq-answer").hide(); if (faqContainer.is(".animation-fade")) faq.find(".qafp-faq-answer").fadeToggle(); else if (faqContainer.is(".animation-slide")) faq.find(".qafp-faq-answer").slideToggle(); else faq.find(".qafp-faq-answer").toggle(); if (faqContainer.is(".focus")) { theOffset = $(this).offset(); $(window).scrollTop(theOffset.top - 50) } return false }); $(".expand-all.expand").bind("click", function () { $(".expand-all.expand").hide(); $(".expand-all.collapse").show(); if (faqContainer.is(".animation-fade")) $(".qafp-faq-answer").fadeIn(400); else if (faqContainer.is(".animation-slide")) $(".qafp-faq-answer").slideDown(); else $(".qafp-faq-answer").show() }); $(".expand-all.collapse").bind("click", function () { $(".expand-all.collapse").hide(); $(".expand-all.expand").show(); if (faqContainer.is(".animation-fade")) $(".qafp-faq-answer").fadeOut(400); else if (faqContainer.is(".animation-slide")) $(".qafp-faq-answer").slideUp(); else $(".qafp-faq-answer").hide() }) } }); $(".qafp-faq-anchor").click(function () { if ($(this).find('.qafp-fa-caret-right').hasClass('qafp-fa-open')) { $(this).find('.qafp-fa-caret-right').removeClass('qafp-fa-open'); } else { if (faqContainer.is(".accordion")) // <- add $('.qafp-fa-open').removeClass("qafp-fa-open", 1000); $(this).find(".qafp-fa-caret-right").addClass("qafp-fa-open", 1000); return false; } }); $("#qafp_searchform").submit(function () { link = $(this).find("#qafp_search_link").val(); query = $(this).find(".qafp_search").val(); query = query.split(" ").join("+"); link = link + query; location.href = link; return false }) });
Viewing 2 replies - 1 through 2 (of 2 total)