Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to insert HTML within the Content div

2

Comments

  • Thanks all. It is in-text advertising, which means that a javascript library scans the text and turns some words into clickable links.
    It should be completely automatic but the Vanilla page structure is not recognized by the code, so I have to add the class manually.
    Its annoyance is reduced since the maximum number of links per page can be limited. Moreover, no popup window is shown.

  • peregrineperegrine MVP
    edited May 2013

    Insightful and a lol

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Couldn't you just add a script

    < script type="text/javascript" > 
    
    $(document).ready(function() {
       
    $('.Message').attr('class', 'aamatch');
    
    });
    < /script >
    
  • businessdadbusinessdad Stealth contributor MVP

    @ragdoll said:
    Thanks all. It is in-text advertising, which means that a javascript library scans the text and turns some words into clickable links.

    I give myself the "Sherlock Holmes" badge for the brilliant deduction. :D

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @businessdad

    Do I sense a new avatar in the offing?

  • peregrineperegrine MVP
    edited May 2013

    "Excellent! I cried. "Elementary," said he.

    "I have the advantage of knowing your habits, my dear Watson," said he. "When your round is a short one you walk, and when it is a long one you use a hansom. As I perceive that your boots, although used, are by no means dirty, I cannot doubt that you are at present busy enough to justify the hansom."
    "Excellent!" I cried.
    "Elementary," said he. "It is one of those instances where the reasoner can produce an effect which seems remarkable to his neighbour, because the latter has missed the one little point which is the basis of the deduction. The same may be said, my dear fellow, for the effect of some of these little sketches of yours, which is entirely meretricious, depending as it does upon your retaining in your own hands some factors in the problem which are never imparted to the reader.

    @businessdad
    All those responses and not one click on insightful or awesome by OP, a shame indeed, Holmes aka @businessdad I'll Add it to my PeregrineBadges not sure if you use my plugin :).
    (joke).

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited May 2013

    @vrijvlinder said
    here is my contribution per l'agente investigativo dentro voi

    "Excellent! I cried. "Elementary," said she.

    I just might add the avatar to the Peregrine Badges....

    I also promoted it :).

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • businessdadbusinessdad Stealth contributor MVP

    @peregrine said:
    [...]
    The same may be said, my dear fellow, for the effect of some of these little sketches of yours, which is entirely meretricious, depending as it does upon your retaining in your own hands some factors in the problem which are never imparted to the reader.

    Thanks for the quote, I learned another "false friend". Meretrice, a Latin and Italian word, has a "slightly" different meaning...

    businessdad
    All those responses and not one click on insightful or awesome by OP, a shame indeed, Holmes aka businessdad I'll Add it to my PeregrineBadges not sure if you use my plugin :). (joke).

    The only reason why I don't use your plugin is that I developed my own. However, I always recommend them both to anyone who asks for Badges. Want a free version? There's one. Want a premium version? There's one too. :)

  • peregrineperegrine MVP
    edited May 2013

    ever see this game Where in the World Is Carmen Sandiego?

    this one is called "where's sherlock"

    run this command in your console in this discussion and sherlock avatar will be in front of one of the participants names throughout the discussion.

    $('img[src*="nC2PV8BSGU0HX.png"]').replaceWith('<img src ="https://us.v-cdn.net/5018160/uploads/thumbnails/FileUpload/70/eca54f2f2c8f72848f704aad41531e.png">');

    who is "The real Sherlock".

    see if you can tell who it is? :).

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    I found this plugin you made @peregrine , seems it does what Ragdoll wants to do , maybe all that has to be done is to change the div class name to the one she needs instead of div.insert?

    http://vanillaforums.org/addon/commentbodyinsert-plugin

    (it had &$Senders which I removed the & for 2.1 also works) :)

    cbi.png 61.8K
  • peregrineperegrine MVP
    edited May 2013

    I found this plugin you made @peregrine , seems it does what Ragdoll wants to do

    You seem to be dredging up plugins I wish i never wrote :).

    Ragdoll does what Ragdoll does. not my issue.

    Frankly the question asked - has been answered about 100 different ways.

    at least there was a response unlike "some other questioners who ask - and don't respond after a suitable answer is given!" kind of like talking into a cyberspace blackhole.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    well I am glad and thankful you wrote them, I find every plugin you have made extremely useful to me. I did not target your plugins , just searched "insert " to see if there was anything that inserted and BAM! then remembered this discussion , did not intend to wake a sleeping dog, sorry :(

  • peregrineperegrine MVP
    edited May 2013

    sleeping dog plugin is going back to sleep.

    thanks for the icon btw.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Yes I agree and is understandable, there should be a blacklist for those who ask and never respond back. Or have this image placed on their question to mark it as unresponsive OP after a week.

  • @vrijvlinder said:
    Yes I agree and is understandable, there should be a blacklist for those who ask and never respond back. Or have this image placed on their question to mark it as unresponsive OP after a week.

    lol

    @chanux still has a day or so.

    http://vanillaforums.org/discussion/23796/how-to-disable-signature-for-member

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Then for good measure send them notifications that they need to tend to their question or mark it solved or something if they want the notifications to stop....

  • @vrijvlinder said:
    Yes I agree and is understandable, there should be a blacklist for those who ask and never respond back. Or have this image placed on their question to mark it as unresponsive OP after a week.

    My last answer was published on May 23rd and before that date I responded many times. After that, the discussion went on a tangent, talking about jokes on Sherlock Holmes, so I didn't find it necessary to answer to the answers before yours.

    By the way, thanks for bringing that plugin to my attention.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Yea no problem , I think peregrine was talking about Chanux a user who does this often. Don't worry there is no system to mark people unresponsive , lol

    yea that is a great little plugin ! peregrine is the best :)
    )

  • I read the instructions for the plugin and it seems not what I need.
    I have to add an additional class to the body, not add a div before (or inside it).
    I'll have to try the other proposed solutions.

Sign In or Register to comment.