Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter MrRedd

    (@mrredd)

    Also..I just ran an audit while on my slow admin area page and here are the results of that:

    Leverage browser caching (97)
    The following resources are missing a cache expiration. Resources that do not specify an expiration may not be cached by browsers:

    wpo_admin.css
    menu-icon.png
    hammer-16×16.png
    wpo.png
    hammer-dark-16×16.png
    hammer-orange-16×16.png
    ebay-16×16.png
    placeholder.png
    hammer-16×16.png
    data:application/x-…
    WooCommerce.woff
    loadingAnimation.gif

    The following cacheable resources have a short freshness lifetime:
    css
    ad516503a11cd5ca435acc9bb6523536
    ad516503a11cd5ca435acc9bb6523536

    The following resources are explicitly non-cacheable. Consider making them cacheable if possible:

    edit.php
    dashicons.min.css
    thickbox.css
    admin-bar.min.css
    wp-admin.min.css
    buttons.min.css
    wp-auth-check.min.css
    edit-page.min.css
    menu.css
    admin.css
    color-picker.min.css
    mediaelementplayer.min.css
    wp-mediaelement.css
    media-views.min.css
    imgareaselect.css
    admin.css
    simple.links.admin.css
    jquery-ui-1.8.22.custom.css
    activation.css
    jquery-migrate.min.js
    utils.min.js
    jquery.blockUI.min.js
    jquery.tipTip.min.js
    woocommerce_admin.min.js
    chosen.jquery.min.js
    ajax-chosen.jquery.min.js
    quick-edit.min.js
    plupload.full.min.js
    json2.min.js
    accounting.min.js
    round.min.js
    meta-boxes.min.js
    meta-boxes-product.min.js
    meta-boxes-product-variation.min.js
    simple_links_admin.js
    amfi-theater-1-180×180.jpg
    IMG_3051-180×180.jpg
    marantz-6300_123546-180×180.jpg
    IMG_5878-180×180.jpg
    8201911853_d0ef01c444_o-180×180.jpg
    IMG_9897-180×180.jpg
    IMG_9947-180×180.jpg
    IMG_9920-180×180.jpg
    IMG_0059-180×180.jpg
    IMG_9927-180×180.jpg
    IMG_9931-180×180.jpg
    IMG_9963-180×180.jpg
    IMG_9936-180×180.jpg
    IMG_9892-180×180.jpg
    IMG_9878-180×180.jpg
    IMG_0844.jpg
    dental-anatomy-90×90.jpg
    wp-pointer.min.css
    thickbox.js
    hoverIntent.min.js
    common.min.js
    admin-bar.min.js
    suggest.min.js
    heartbeat.min.js
    inline-edit-post.min.js
    svg-painter.js
    wp-auth-check.min.js
    wp-seo-admin-global.min.js
    jquery.ui.touch-punch.js
    iris.min.js
    underscore.min.js
    shortcode.min.js
    backbone.min.js
    wp-util.min.js
    wp-backbone.min.js
    media-models.min.js
    wp-plupload.min.js
    mediaelement-and-player.min.js
    wp-mediaelement.js
    media-views.min.js
    media-editor.min.js
    media-audiovideo.min.js
    wp-playlist.js
    mce-view.min.js
    jquery.imgareaselect.min.js
    image-edit.min.js
    wp-pointer.min.js

    Again any help on speeding this page up would be greatly appreciated.
    Thank you.

    Thread Starter MrRedd

    (@mrredd)

    Interesting..Ebay does not have use a condition drop down for the pottery category I am using…that was one of the problems solved.

    This is why it was giving me the error when I verified the listing…I was sure there would be a “used” and “new” option for this category but after searching other listings I see them all as having no condition listed.

    Thread Starter MrRedd

    (@mrredd)

    Not sure if this will help but here is a list of all the condition IDs from Ebay and it shows which categories use which condition possibilities.

    https://developer.ebay.com/Devzone/finding/CallRef/Enums/conditionIdList.html

    Thread Starter MrRedd

    (@mrredd)

    Well I see why it is always showing as “New” on the preview template…it is hard coded instead of dynamic.

    Around line 134 on listings_preview.php where it shows the condition I am guessing it should be called like the other details are but I can’t figure out how to call that with php.

    I am looking at the database and it looks like the condition is set in the item details and then defined in the conditions field…or something like that…lol (I really have no idea what I am seeing..just a total newbie to php and mysql)

    In the Database for a product listing:
    Under the “details” field it shows: condition_id”:”4000″

    Then there is another field called in that table called “conditions” which has:
    a:1:{i:378;a:5:{i:1000;s:9:”Brand New”;i:2750;s:8:”Like New”;i:4000;s:9:”Very Good”;i:5000;s:4:”Good”;i:6000;s:10:”Acceptable”;}}

    So I don’t think I can call it with a single call like I am trying..such as:
    <?php echo $wpl_item->Conditions ?>

    Any help on calling this value would be appreciated.
    Thank you.

    Thread Starter MrRedd

    (@mrredd)

    Instead of modifying the plugin, add this code to your theme’s functions.php file:

    I am not sure what that will do?

    Can you let me know as I really need the Exclusive Content Plugin to Work as it is still.

    By the way…it is all working now that I added the newer version of the Ajax thing to the Exclusive Content code..I changed it version 1.8.

    Thanks.

    Thread Starter MrRedd

    (@mrredd)

    Well that fixed the issue for your plugin ??
    I even got the Select None button to work…wow that was easy…lol

    I will see if I broke my other plugin a little later..that other plugin gives me nightmares still and I need a break right now…lol

    Thanks again and you have my email if you ever need my help with anything etc. (testing, voting, anything a non programmer type can help with…lol)

    Chris

    Thread Starter MrRedd

    (@mrredd)

    Ok..well I did ask the plugin writer about another issue and he just said…
    Sorry this plugin hasn’t been updated in a couple years.
    If this changes I will let you know.

    So…guess I am on my own since I am beyond broke and have no budget for consultants…sigh

    I did just search for a new version of Jquery:
    ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
    and am going to see what happens when I past it in that section..if it all breaks well…ugh! I don;t know what then…lol

    Thanks for your time though Ross…it’s people like you that I will donate to when / if I can ever afford to ??

    Thread Starter MrRedd

    (@mrredd)

    S that was quick..I knew one of my plugins was out-dated and went right to the source code and found this in the plugin source…

    wp_register_script( ‘jquery’, ‘https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#8217;);

    Now this is a Plugin that is a “must” for me…so can I just try and see if a new version will work with it?

    If so..can you tell me how to find what version to try?

    Thread Starter MrRedd

    (@mrredd)

    Thanks Ross.. I will give that a try.
    But if I do find the plugin that’s loading it..do I need to not use (disable) the plugin all together or can I make it use a new version of JQuery?

    I know nothing about modifying plugins, Jquery etc…all I can really do is fumble my way through things by editing code on pages…crossing my fingers and hitting refresh to see what happened…lol so unless it is a real easy…copy this code and paste it here sort of thing I may be outt luck until I learn more.
    Thanks again.

    Thread Starter MrRedd

    (@mrredd)

    sent ??

    Thread Starter MrRedd

    (@mrredd)

    Thanks Ross…I was hoping there was a way I could email you with the info or something?
    Is that possible at all?

    Thread Starter MrRedd

    (@mrredd)

    to find the code of functions, check for instance:

    https://phpxref.ftwr.co.uk/wordpress/nav.html?_functions/index.html

    Wow that is a lot of functions…doh!

    That page isn’t a standard wordpress install is it?
    Meaning my site wouldn’t look like that with that many would it?

    Also…you showed the list of filters and where to find them (which is great) but I am still confused as to what filter is being applied when using the mentioned code:
    $content = apply_filters('the_content', $content);

    Thanks for all your help so far.

    Thread Starter MrRedd

    (@mrredd)

    Hmm…it sounds like it may be a place holder for the script to use in order to do the filtering??

    Like..name $content to the_content then do all the stuff…then rename it to $content with the filters done?

    Does that sound right?

    Probably not but that’s what I am seeing…lol

    And how about this question…
    Using the above example:
    $content = apply_filters('the_content', $content);

    What (and where) are the filters that are getting applied?
    I would expect to see something like apply_filter(UPPERCASE) or something…and yes that’s a bad example but I don’t know any filters yet..lol

    Man I think I need sleep…I am confusing myself as I am typing this ??

    Thread Starter MrRedd

    (@mrredd)

    YES!…that did the trick ??

    Thank you very much.

    Since I am here though and this really didn’t tell me why it worked…can you tell me what “the_content” is referring to etc.

    From the topic you posted above:

    already found the solution: just add this line BEFORE the final ‘return $content;’ of the main plugin file ‘content-password-protect.php’:

    $content = apply_filters(‘the_content’, $content);

    I get that $content is the output…a filter gets added to do something to it differently and then it gets displayed again…but what does “the_content” do?

    Sorry if it’s a dumb question…lol

    Thread Starter MrRedd

    (@mrredd)

    Ok..I just opened the plugin file for the Exclusive Content Password plugin…here is ALL the code on the bottom of the page.

    Hopefully this will post right since there is no preview button and it’s my first attempt at posting code.

    add_shortcode("password-protect", "ecpp_handler");
    
    function ecpp_handler($atts, $content = null) {
    	global $cpp_html, $ecpp_global_password;
    
    	extract(
    		shortcode_atts(
    			array(
    				"password" => $ecpp_global_password
    			),
    			$atts
    		)
    	);
    
    	 // This stores a session PASSWORD for each item..wether its individual or global..this is what will unlock it
    	$perm_hash = md5(get_permalink()) . md5($content);
    	$_SESSION[$perm_hash]['password'] = $password;
    
    	// this sets the global password in a session variable
    	$_SESSION['global_password'] = $ecpp_global_password;
    
    	if(!isset($_COOKIE["cpp-$perm_hash"])){
    		$content = str_replace('{TPLCPP_PERMHASH}', $perm_hash, parse_template($cpp_html));
    	}
    
    	return $content;
    
    }
    ?>
Viewing 15 replies - 1 through 15 (of 16 total)