Advertise Here

Author Topic: How Replace broken image with default image bbcode or else?  (Read 1294 times)

0 Members and 1 Guest are viewing this topic.

Offline ermenton

  • SMF For Free Newbie
  • *
  • Posts: 2
    • View Profile

  • Total Badges: 4
    Badges: (View All)
    Topic Starter Level 1 First Post Windows User
How Replace broken image with default image bbcode or else?
« on: February 10, 2018, 05:11:36 pm »
Hi, i was in phpbb3 and i used this code in custom bbcode:

Code: [Select]
<img style="width: 300px; height: 440px;" alt="img" src="{URL}" onError="this.onerror=null;this.src='images/nobroken.png';" />
There's a way to do the same thing in SMF 2.0.15?

I have a lot of broken images in my forum and this script is the Top for me.
Let me know, and thanks so much if someone can help me!

Offline SMF For Free

  • Administrator
  • *
  • Posts: 7281
    • View Profile
    • SMF For Free

  • Total Badges: 38
    Badges: (View All)
    Quick Poster Tenth year Anniversary Spammer 25 Posts in one day Nineth year Anniversary Eighth year Anniversary
Re: How Replace broken image with default image bbcode or else?
« Reply #1 on: February 10, 2018, 05:14:35 pm »
You can but would require a custom script to go though the messages to find and replace the values. That would require a developer.
SMF For Free-Free Simple Machines Forum hosting.
Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline ermenton

  • SMF For Free Newbie
  • *
  • Posts: 2
    • View Profile

  • Total Badges: 4
    Badges: (View All)
    Topic Starter Level 1 First Post Windows User
Re: How Replace broken image with default image bbcode or else?
« Reply #2 on: February 11, 2018, 10:00:08 am »
ok thanks.

 

Related Topics

  Subject / Started by Replies Last post
9 Replies
2556 Views
Last post April 27, 2006, 07:12:38 pm
by COPABOD
Image

Started by sanga282 Graphics

1 Replies
1223 Views
Last post April 13, 2007, 09:14:14 am
by simply sibyl
2 Replies
1217 Views
Last post May 19, 2007, 01:28:45 am
by Laugh-nd-kid
8 Replies
2113 Views
Last post April 06, 2008, 06:07:33 pm
by Abstract
2 Replies
2184 Views
Last post November 26, 2008, 03:38:15 pm
by - Lawrence -