Advertise Here

Author Topic: How Replace broken image with default image bbcode or else?  (Read 255 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: 7137
    • View Profile
    • SMF For Free

  • Total Badges: 37
    Badges: (View All)
    Tenth year Anniversary Spammer 25 Posts in one day Nineth year Anniversary Eighth year Anniversary Search
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
1594 Views
Last post April 27, 2006, 07:12:38 pm
by COPABOD
8 Replies
1124 Views
Last post April 06, 2008, 06:07:33 pm
by Abstract
7 Replies
1119 Views
Last post September 13, 2008, 11:18:30 pm
by deathwilldie
2 Replies
1198 Views
Last post November 26, 2008, 03:38:15 pm
by - Lawrence -
9 Replies
1049 Views
Last post January 03, 2009, 11:03:16 am
by OutOfOrder