• Resolved rcanpolat

    (@rcanpolat)


    Hi,

    Im using press this reloaded plugin, compared to the regular press this bookmark the reloaded has everything i need and. Im having an issue with it though.

    Press this reloaded is dramatically increasing the speed i can embed content on my site however something is pissing me off about it that i can’t stop. It keeps stripping the “<” and “>” characters from copied text.

    When i load up the page i want to take content from i copy the embed code from that page to the clipboard (im grabbing an iframe embed code) Then i click press this and it opens a window and automatically pastes the code into the content section under “text” (not visual editor) which is fine except the embed code has the characters stripped from it which stops the iframe from working on the page.

    I don’t want to use a plugin that will allow me to use a shortcode for iframes because that slows the process down because i need to still jump in and edit the text to remoeve the “<” it replaces with the “<” characters. What i want is to copy the iframe code, click press this and it automatically pastes in the code correctly without character stripping.

    So, how can i stop press this reloaded from ripping the characters out of what i copied?

Viewing 1 replies (of 1 total)
  • Thread Starter rcanpolat

    (@rcanpolat)

    UPDATE & RESOLVED

    I managed to figure this out myself, I jumped into the plugin code and done some editing. For anyone else wanting to know what i did please read on.

    The following was done using: Press This Reloaded (Version: 1.0.3) on WordPress 3.5.1

    • Log into your WP Admin
    • Select “Plugins/Editor”
    • On the right size of the screen where it says “Select Plugin To Edit” select the “Press This Reloaded Plugin” and hit the “Select” Button.
    • Where it lists the plugin files make sure “select-this-reloaded.php” is selected
    • Scroll down about half way and you will see the following code:
    $selection = '';
    		if ( !empty($_GET['s']) ) {
    			$selection = str_replace(''', "'", stripslashes($_GET['s']));
    			$selection = trim( htmlspecialchars( html_entity_decode($selection, ENT_QUOTES) ) );
    
    		}
    • Replace that code with the following:
    $selection = '';
    		if ( !empty($_GET['s']) ) {
    			$selection = str_replace(''', "'", stripslashes($_GET['s']));
    
    		}

    You should now be able to use the Press This Reloaded Bookmark and stop it from ripping special characters out of copied text.

    https://www.insanitypop.com

Viewing 1 replies (of 1 total)
  • The topic ‘Stop Characters Being Stripped from Press This’ is closed to new replies.