1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug TMS does not inject code correctly

Discussion in 'Resolved Bug Reports' started by Adam Howard, Sep 28, 2013.

  1. Adam Howard

    Adam Howard Well-Known Member

    Screenshot from 2013-09-28 13:45:42.png

    As I understood it, this would amend extra.css and not replace the contents of what may already be there in a custom style.

    I learned recently that this does not always work (link). In this example, the following code was already in the style's extra.css
    <xen:include template="xendisConnect.css" />
    But what ended up happening was TMS was not amending the template it was replacing it.

    And directly editing the template outside of TMS also did not change anything. I could put any value or code I wanted directly into extra.css, but it was useless. TMS was completely replacing the full context of the template, when it should only have amended it.
  2. digitalpoint

    digitalpoint Well-Known Member

    Did you use $1 in your replacement?

    What you might want to consider doing is just including a custom CSS to the end of the file template, rather than try to manage the CSS within the template modification system.

    For example, you could use a regex find of: "/$/", and replace it with "<xen:include template="yourcss.css" />".

    Then ultimately, the contents of the yourcss.css ends up being appended.
    SneakyDave and Jeremy like this.
  3. Adam Howard

    Adam Howard Well-Known Member

    Not a bug.

    The error is between user and keyboard. o_O
    In this instance I am the user. :confused:

    User: Hi. :oops: :p

    I was fairly sure I had added $1 to that code. Guess what.... oops! :X3:

    @digitalpoint I would much prefer to continue to use the TMS. My custom code is universal in the sense that I want it to apply to all my styles. It is more easy to manage via the TMS than it is for me to go back & forth through 8 styles.
  4. Martok

    Martok Well-Known Member

    Why would you need to go back and forth through 8 styles? Do correct me if I'm wrong, but if these are all child styles then surely making these alterations to the parent would cascade the changes to all of them?
    SneakyDave likes this.
  5. Adam Howard

    Adam Howard Well-Known Member

    These are not all child styles, nor can they be all child styles. They are a collection of 7 independent custom styles.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Twice now you have falsely reported bugs with the TM system.

    Hence why the system is rightly reserved for developers.
    SneakyDave and Chris D like this.
  7. Adam Howard

    Adam Howard Well-Known Member

    A small mistype happens even from the best developers, including yourself and KAM. Hardly a valid argument

Share This Page