Advertisement:

Author Topic: BBC for IMG's in Quotes issue  (Read 503 times)

Offline drewactual

  • Sr. Member
  • ****
  • Posts: 882
    • College Football Fan Site CFB51
BBC for IMG's in Quotes issue
« on: September 16, 2020, 04:29:22 AM »
...i'm certain it's because the user described image width and height when using the IMG button...

How can I strip the additional IMG information when a post is quoted?  when a user posts an image and describes the height and width, the image doesn't render if another user quotes the first one's post...

it instead renders as such:
Code: [Select]
[blockquote yada yada]
[img height="222" width="222" src="source of image"] url to image but no rendered image [/IMG]

i can obviously manually remove the specifications, and then all is well... but... how do i stop it from happening? 

and..... i control the size of images in posts via CSS.... there is a good chance the best means to attack this is to simply remove the capability to add those specifications via template?

thoughts?

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,463
  • Master of BBC Abuse
Re: BBC for IMG's in Quotes issue
« Reply #1 on: September 16, 2020, 06:38:24 AM »
Yes, ditching the bbc settings would sort it nicely. :D I don't know why it is happening though.
Dumb question: you didn't install one of those "hide quoted images and just give  a link" mods a while back, and forgot about it?

Offline drewactual

  • Sr. Member
  • ****
  • Posts: 882
    • College Football Fan Site CFB51
Re: BBC for IMG's in Quotes issue
« Reply #2 on: September 16, 2020, 09:26:51 AM »
No sir, I have not.  I'm familiar with both the mod and the tips&tricks method, but don't want that feature. 

It only happens when width and height is specified and only when a user adds it either by the drop down forms when choosing the img BBC, or manually... its a little strange for sure.

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 12,275
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: BBC for IMG's in Quotes issue
« Reply #3 on: September 16, 2020, 09:40:47 AM »
It's also happening here on this forum, just for the record.

Offline drewactual

  • Sr. Member
  • ****
  • Posts: 882
    • College Football Fan Site CFB51
Re: BBC for IMG's in Quotes issue
« Reply #4 on: September 16, 2020, 05:37:14 PM »
Well, eliminating the option to add specifications in the BBC img form drop down has proven harder than I thought.    Where is it?  Its not the one in subs or subs.post.... so... where?

Thanks in advance!

Offline drewactual

  • Sr. Member
  • ****
  • Posts: 882
    • College Football Fan Site CFB51
Re: BBC for IMG's in Quotes issue
« Reply #5 on: September 17, 2020, 09:09:15 PM »
well... for what it's worth, the html output is in a js file, if anyone else ever searches and finds this thread.  it's the output for the drop-menu that says "URL" followed by a form, then Width (Optional) followed by a form, and Height (Optional) also followed by a form...

the bbc tag can still be qualified with width and height, but, it will have to be typed in manually now instead of allowing the easy to fill form... and bbc_img's w/o height/width displays the image just fine in quoted posts. 


Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 922
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: BBC for IMG's in Quotes issue
« Reply #6 on: September 18, 2020, 02:08:30 AM »
Interesting - thanks for posting the fix.  Will certainly help someone in future I am sure.
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.