Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author rpetersen29

    (@rpetersen29)

    Hi @scarpinoc
    Yes you can achieve everything there by just using inline styles.

    <table style="border-collapse:collapse;border-spacing:0;">
    ....
    </table>
    

    Just repeat this for the rest of the elements you have, everything would go in the style component and no brackets.

    Plugin Author rpetersen29

    (@rpetersen29)

    In fact, on that website you linked just enable compact mode:

    
    <table style="border-collapse:collapse;border-spacing:0" class="tg"><thead><tr><th style="border-color:inherit;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;font-weight:normal;overflow:hidden;padding:10px 5px;text-align:left;vertical-align:top;word-break:normal"></th></tr></thead></table>
    
    Thread Starter scarpinoc

    (@scarpinoc)

    Hello.. wow.. you are so fast!!!
    Ok, look at this example

    ——————————————
    <style type=”text/css”>
    .tg {border:none;border-collapse:collapse;border-color:#aaa;border-spacing:0;margin:0px auto;}
    .tg td{background-color:#fff;border-color:#aaa;border-style:solid;border-width:0px;color:#333;
    font-family:Arial, sans-serif;font-size:14px;overflow:hidden;padding:4px 8px;word-break:normal;}
    .tg th{background-color:#f38630;border-color:#aaa;border-style:solid;border-width:0px;color:#fff;
    font-family:Arial, sans-serif;font-size:14px;font-weight:normal;overflow:hidden;padding:4px 8px;word-break:normal;}
    .tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}
    .tg .tg-1kwi{border-color:#ffc702;text-align:center;vertical-align:top}
    </style>
    <table class=”tg”>
    <thead>
    <tr>
    <th class=”tg-c3ow”>111</th>
    <th class=”tg-1kwi”>222</th>
    <th class=”tg-c3ow”>333<br>444<br></th>
    </tr>
    </thead>
    </table>`
    ——————————————

    If I copy this code in the Simple Banner Text before saving, everything is ok.
    After I save, I have this text:

    ——————————————
    <table class=”tg”><thead> <tr> <th class=”tg-c3ow”>111</th> <th class=”tg-1kwi”>222</th> <th class=”tg-c3ow”>333<br>444<br></th> </tr></thead>
    ——————————————

    Why? with the old version, everything was ok.
    What’s the solution? =)
    thank you very muchu!!

    Plugin Author rpetersen29

    (@rpetersen29)

    Yep so if you use the Compact Mode on that link you sent me, everything will be inline. Alternatively, you can copy everything in the style tag into the Website Custom CSS box. I recently updated the plugin to remove script and style tags. Realistically, style tags should not be in the regular HTML, they should all be in the head section.

    Thread Starter scarpinoc

    (@scarpinoc)

    Another problem is with this embedded code:

    https://www.tickcounter.com/

    <div data-type=”countdown” data-id=”2646119″ class=”tickcounter” style=”width: 250px; height: 62px; margin: 0 auto”>My countdownCountdown</div><script>(function(d, s, id) { var js, pjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = “//www.tickcounter.com/static/js/loader.js”; pjs.parentNode.insertBefore(js, pjs); }(document, “script”, “tickcounter-sdk”));</script>`

    When I copy inside the Simple Banner Text field, the new version of your plug-in remove a lot of text and the countdown script doesn’t work anymore:

    Is there the possibility to restore the old behavior?

    Thank you!

    EDIT: ok, that’s why my HTML text doesn’t work anymore.
    So what about the embedded code? How can I solve the problem?

    • This reply was modified 3 years, 7 months ago by scarpinoc.
    Plugin Author rpetersen29

    (@rpetersen29)

    You can put the javascript inside the script in Website Custom Javascript. Allowing scripts in these fields was causing scam security companies to harass me and report my plugin so i had to remove that capability. You can always download an older version of the plugin and use that as well.

    Thread Starter scarpinoc

    (@scarpinoc)

    Same problem with this countdown embedded script

    https://logwork.com/countdown-timer

    Thread Starter scarpinoc

    (@scarpinoc)

    Hi,

    mmmm… what you ask me is too “advance” to me eh eh he =)

    […] put the javascript inside the script in Website Custom Javascript […]
    I don’t know what you mean!

    Plugin Author rpetersen29

    (@rpetersen29)

    (function(d, s, id) { var js, pjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = “//www.tickcounter.com/static/js/loader.js”; pjs.parentNode.insertBefore(js, pjs); }(document, “script”, “tickcounter-sdk”));
    

    in Website Custom Javascript.

    Thread Starter scarpinoc

    (@scarpinoc)

    Thank you rpetersen29 , but I think I will stay with the old version…
    The code you provided me is “alien language” to me.

    Why not to add a checkbox to enable/disable script and style tags as before? =)
    I’m sure I will not the only one with such request…

    Plugin Author rpetersen29

    (@rpetersen29)

    Yeah so the ability to add scripts is what caused scammers to harass me so i can’t add that back.

    Thread Starter scarpinoc

    (@scarpinoc)

    https://www.timeanddate.com/clocks/freecountdown.html

    Ok, I found this website. it seems it doesn’t create any problems with your plug-in

    <iframe src=”https://free.timeanddate.com/countdown/i7wfjumc/n5521/cf12/cm0/cu4/ct0/cs0/ca0/co1/cr0/ss0/cac000/cpc000/pct/tcfff/fs100/szw320/szh135/tac000/tptVALIDO%20FINO/tpcfff/iso2021-08-01T13:00:00/bts0/bbs0/pa4&#8243; allowtransparency=”true” frameborder=”0″ width=”121″ height=”39″></iframe>

    Can I use this code? =)

    Plugin Author rpetersen29

    (@rpetersen29)

    If it works go for it

    Thread Starter scarpinoc

    (@scarpinoc)

    Ok, thank you! =)

    Thread Starter scarpinoc

    (@scarpinoc)

    Hello,
    did you removed also the support for <iframe>?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘My bannes will is a mess if I update to v2.10.3’ is closed to new replies.