• Resolved bugrevealingbme

    (@bugrevealingbme)


    How do I need to put it in the href?

    <div class="stable div_margin"> <a class="btn_6" href=""https://bigota.d.miui.com/[remote_get url="view-source:https://update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn" start='V' stop='\']/[remote_get url="view-source:https://update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn" start='aries_images' stop='"']></a>

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Eli

    (@scheeeli)

    How about something simpler, like this:
    [preg_replace replace='/..aries_.*aries_/' with='/aries_'][remote_get url="view-source:https://update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn" start='/V' end='.tgz"' replace='/V' with='<a class="btn_6" href="https://bigota.d.miui.com/V'][/preg_replace]>Download Link</a>

    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Eli.
    • This reply was modified 6 years, 3 months ago by Steven Stern (sterndata).
    Plugin Author Eli

    (@scheeeli)

    I cannot get the code to show up quite right on this forum because theya re reformatting what I type here but the email notice you got from my first attempt should be right and I think this will look nearly right on the forum but not show up right in the email notification:
    [preg_replace replace='/..aries_.*aries_/' with='/aries_'][remote_get url="view-source:https://update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn" start='/V' end='.tgz"' replace='/V' with='<a class="btn_6" href="https://bigota.d.miui.com/V'][/preg_replace]>Download Link</a>

    Note: the forum chops off my closing anchor tag </a>

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Side note: I edited your post and put your code inside backticks using the CODE button on the editor.

    Plugin Author Eli

    (@scheeeli)

    @sterndata,
    Thanks Steve but I had already tried that and it did not work. I wish you would not have edited my second post because it was fine before but your changes broke the escape code for the HTML bracket in the shortcode, so now if the questioner copies what you correct in either of my replies then it will not work.

    Personally I think this is a huge issue that WordPress needs to address on two fronts. As a moderator I would like your help to escalate the issue of not being able to post what you mean to say on the forums when you are needing to illustrate how to escape HTML brackets. This will be hard to explain on the forum because it is that very thing that I cannot post that I want you to see but I think I can convey the problem like this:
    If you want to show someone how to type the escape code for the HTML brackets ( i.e. < and > ) then you would use the & character followed by either lt; or gt; respectively. However, if you type this together like < (I just typed ” $ l t ; ” without the quotes or spaces) then it will just show up on the forums like this < as you see from this post. so, though a lot of trial and error I was able to get it to display properly by double escaping (escaping the first & in the escape) like this &lt; (what I really typed here was & a m p ; l t ; again without those spaces) but this does not work at all when i wrap it in the CODE tag so that is why I did not do that, and that is why you effectively broke my example when you did that to what I had finally gotten to display right.

    The other side of this, and the reason I have to try to talk about this issue on the forums at all, is that one cannot effectively place any HTML inside a shortcode parameter without it braking the and automatically adding ending tags for the bits of html that were not meant to be displayed at all but were just supposed to be part of a shortcode parameter.

    Plugin Author Eli

    (@scheeeli)

    I am posting this code again so that the correct solution is here on this topic so please do not moderate this post as I will have it displaying the key points of the code correctly here:
    [preg_replace replace=’/..aries_.*aries_/’ with=’/aries_’][remote_get url=”view-source:https://update.miui.com/updates/miota-fullrom.php?d=aries&b=F&r=cn&#8221; start=’/V’ end=’.tgz”‘ replace=’/V’ with=’&lt;a class=”btn_6″ href=”https://bigota.d.miui.com/V’%5D%5B/preg_replace%5D>Download Link

    Note: you also need to add the closing anchor tag </a> after the “Download Link”.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Sorry about that, @scheeli. You might want to put a ticket at meta.trac.www.ads-software.com to change the behavior of the forum software (or add some other tag to the editor).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Href problem’ is closed to new replies.