Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)
  • Thread Starter AJB Ferreira

    (@op351net)

    Hi there,

    in the link I sent you, you’re redirected to a page where you can see the original code!! On the other hand, I see a lot of ampersands in the sample you show in your post here and the code pretty much changed…

    Anyway, I don’t believe my plugins are affecting yours but I will go for a troubleshooting as you suggest.

    Regards,

    Thread Starter AJB Ferreira

    (@op351net)

    Hi there,

    The better way is I share with you the link to the page where the code is

    https://ajbferreira.pt/extrair-conteudo-entre-tags/

    I use the shortcode for the first set of code and the plugin’s block for the second.

    Symbols like ‘ampersand’, ‘lower than’ or ‘greater than’ are the issue: they get changed when post/page is saved…

    I hope you fix it…

    Thread Starter AJB Ferreira

    (@op351net)

    Hi there,

    I’ve tried with the plugin’s block as you suggested and code is not changed!

    Being so, I may reserve the shortcodes for snippets without HTML tags and will use the plugin’s block for the ones with HTML tags.

    The use of shortcodes makes my writing more fluid and easier so, please, see if you resolve this bug…

    Thanks,

    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    Thread Starter AJB Ferreira

    (@op351net)

    Hi there, thank you for replying!

    This is the code I currently have:

    [code language="php"]
    $myHtml = '<span>Isto é um exemplo apenas num documento HTML</span>';
    $myTxt = getElem($myHtml,'<span>','</span>');
    echo $myTxt;
    [/code]

    You can see the quantity of amp; !!! That’s because every time I save the post/page there’s a conversion…

    Can’t reproduce original code here cause it’s also changed when I save this post!

    I hope I made myself clear…

    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    • This reply was modified 11 months, 1 week ago by AJB Ferreira.
    • This reply was modified 11 months, 1 week ago by AJB Ferreira.

    @toengel, the latest release of PHP Everywhere, v3.0, requires the use of Gutenberg blocks. If you want to keep this plugin you must disable Classic Editor and start coding inside blocks. In this case, PHP Everywhere provides a block where you can write your PHP code. It worked with me…

    WARNING: before any change save all your existing PHP code to be used later in the Gutenberg blocks. Support given by the author for the upgrade exists but it sucks…

    Hi,

    on v3.0 you need to insert a PHP Everywhere block (Gutenberg) in the sidebar and type the PHP code inside it. It works but not like a widget.

    Thread Starter AJB Ferreira

    (@op351net)

    Hi again,

    great, good news!
    Awaiting next release,
    thank you.

    Thread Starter AJB Ferreira

    (@op351net)

    Hi,

    before the problem I could have a TEXTAREA field in the admin page like this:

    FIELD NAME line 1
    line 2
    line 3
    line 4

    now, when I edit the field like above and SAVE changes, I get:

    FIELD NAME line 1 line 2 line 3 line 4

    which means that something removed the linebreaks. This impacts my code which processes information within those fields.

    NOTICE: linebreaks are not removed in built-in TEXTAREA fields, like the “About me” type one, in the admin page.

    I hope I was clear enough, otherwise let me know what else you need.

    Everything points to a problem with Facebook itself (button_count layout), not this plugin! Have a look at it here. Same problem with width of button_count…

    Same problem here !! The width selected on settings shows up in the markup but real width of buttons never changes…

    Thread Starter AJB Ferreira

    (@op351net)

    In single.php, after <?php get_sidebar();?> or maybe before cause I don’t use sidebar:

    <!-- OP351net -->
    <!-- Previous and Next Post -->
    <?php if( is_single() ) : 
    if( get_next_post() )
    	$next_visible = "display:block";
    else
    	$next_visible = "display:none";
    ?>
    <div id="nextpreviouslinks" style="width:100%;">
    	<div style="float:left;text-align:left;">
    		<span style="font-size:1.4em;font-variant:small-caps;">Older Post</span><br />
    		<i class="fa fa-arrow-left" aria-hidden="true"></i> &nbsp;<strong><?php previous_post_link('%link','%title'); ?></strong>
    	</div>
    	<div style="float:right;text-align:right;<?php echo $next_visible; ?>">
    		<span style="font-size:1.4em;font-variant:small-caps;">Newer Post</span><br />
    		<strong><?php next_post_link('%link','%title'); ?></strong> &nbsp;<i class="fa fa-arrow-right" aria-hidden="true"></i>
    	</div>
    </div>
    <?php endif; ?>
    <!-- /Previous and Next Post -->
    

    It’s working but, obviously, needs improvements… You’re the designer, not me!

    Thread Starter AJB Ferreira

    (@op351net)

    Thank you for your reply.

    The links you see in my single post page are not the result of your code. Again, your code doesn’t work! I’ve decided to include my own code to generate links. I may send it to you if you wish a proper code for this function…

    A suggestion for your next release: give user possibility of choosing links before posts, after or both.

    Finally, “If still you have confusion feel free to contact us.” ????? Who’s confused here?

    Thread Starter AJB Ferreira

    (@op351net)

    Thank you for your reply.

    Is that code a temporary workaround? Will you include this in your next release? At least as an option in the Customize area. That would be very fine…

    UPDATE: code in given link doesn’t work…

    • This reply was modified 4 years, 1 month ago by AJB Ferreira.
    Thread Starter AJB Ferreira

    (@op351net)

    Thank you for your reply.

    I was not using any caching plugin. Your plugin simply didn’t work. I replaced your plugin by another.

    Thread Starter AJB Ferreira

    (@op351net)

    Yes, that’s the normal way in many other themes. Have a look at this example:

    navigation links next/previous at bottom of page, before footer

    Got it? This is very useful when you’re reading posts one by one and wish to continue reading, the next or the previous post…

Viewing 15 replies - 1 through 15 (of 29 total)