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

Add-on Option to allow limited html in forum posts

Discussion in 'Resource and Add-on Requests' started by Amin Sabet, Feb 14, 2015.

  1. Amin Sabet

    Amin Sabet Well-Known Member

    I know about the addon that allows html within parsehtml tags, and that is not what I need.

    I need an addon that allows html within forum posts to be parsed without need for special tags. I would want some specific terms to be censored. Specifically these:

    censor.png

    but I would need things like these to be parsed:

    parse1.png

    and this too:

    parse2.png

    I do not need permissions by usergroup. All members would be allowed to use this limited html in their forum posts.

    If you can create such an addon, please PM me with your asking price for doing the work.

    Thanks,
    Amin
     
  2. batpool52!

    batpool52! Well-Known Member

  3. Amin Sabet

    Amin Sabet Well-Known Member

    That one seems to require parsehtml tags.
     
  4. Amin Sabet

    Amin Sabet Well-Known Member

  5. batpool52!

    batpool52! Well-Known Member

    It can be done via BBCode as well.
    Code:
    [URL='_your_link_here_'][IMG]_image_link_here[/IMG] [/URL]
     
  6. Amin Sabet

    Amin Sabet Well-Known Member

    Thanks but I have thousands of posts like that and don't want to convert them all to BBcode by hand.
     
  7. Luke F

    Luke F Well-Known Member

    You could just use a regex replacement if all you care about is existing posts
     
  8. Amin Sabet

    Amin Sabet Well-Known Member

    Luke, I'm not familiar with regex. Can you tell me how to do it or do it for me (paid)?
     
  9. Amin Sabet

    Amin Sabet Well-Known Member

    I was able to solve my problem with old html Flickr posts using two find/replace MySQL queries. Posting here in case someone else needs the same. It's not a perfect solution - leaves behind some random unparsed html - but at least it gets the images to show.

    I am not responsible for any damages you incur if you use these. Use at your own risk, on a test installation, after backing up your databases.

    Code:
    UPDATE xf_post SET message = REPLACE(message,'Flickr"><img src="','Flickr">[img]');
    
    UPDATE xf_post SET message = REPLACE(message,'jpg" width=','jpg[/img]');
    
    I salvaged over 20,000 images using this method.
     

Share This Page