Not sure if I'm doing it wrong but can't seem to add a title to [img ] I can add width and height, where could I add the title into the ddcode.
Thank
this already exists in SMF 2.1.
https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Sources/Subs.php#L2085
Images don't need titles. What they need is an ALT.
Try: [img alt=some description]https:some image url.jpg[/img]
Quote from: Mick. on December 26, 2021, 03:48:27 PMImages don't need titles. What they need is an ALT.
Try: [img alt=some description]https:some image url.jpg[/img]
Thanks Mick. But the alt is only used if a image cannot be display at least I think that's the way alt works I did try it though didn't get the expected error though
Quote from: Illori on December 26, 2021, 03:39:05 PMthis already exists in SMF 2.1.
https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Sources/Subs.php#L2085
Cool Thanks I'll add it if I can to 2.0.19
Thanks Got it sorted
For 2.0.18/19
Look For
'alt' => array('optional' => true),
Below Add
'title' => array('optional' => true),
Look For
'content' => '<img src="$1" alt="{alt}"{width}{height} class="bbc_img resized" />',
Replace With
'content' => '<img src="$1" title="{title}" alt="{alt}"{width}{height} class="bbc_img resized" />',
To see this woking goto: Janet Jackson Album - Janet (1993) (https://www.databasedreams.co.uk/charts/albums-database/janet-jackson-album-janet-1993/msg8943/#msg8943) And Put your curser over either of the Platinum Images below the album Image