Logo

Satellite Internet Forum.

Welcome, Guest. Please Login
Welcome to this satellite broadband discussion forum.  Wherever you are and whatever your problem we are here to help each other. Connecting to the internet via satellite is not always easy but is critically important to those in remote places or with poor terrestrial infrastructure.  Both service providers and customers are encouraged to contribute.  Click Register at the bottom if you want to join. Read the Forum rules.
  Satellite internet forumHelpSearchLogin  
Page Index Toggle Pages: 1

Adding alt text to images with ubbc code

(Read 2509 times)
Admin1
YaBB Administrator
*****
Offline


Personal text from: Profile,
Options, Top line

Posts: 832
Adding alt text to images with ubbc code
Jan 26th, 2010 at 3:46pm
 
To everyone who has put pictures into this YaBB forum..

It has always been possible to put pictures into this forum using this form of ubbc coded text:
{img}http://w ww.satsig.net/italy-flag.gif{/img}
...

I have amended the forum ubbc perl code to allow alt text to be added, for example,
{img alt=Italian flag}http://w ww.satsig.net/italy-flag.gif{/img}
Italian

Please use this new alt text feature in future postings of images.   Write words that describe what is in the image. The purpose is to help visitors who have images turned off in their browsers and to help the search process to work better and find images more successfully. Use square brackets, not squiggley one as above.

You may amend your older picture postings if you wish.

For those technically minded, this was the modification (addition) to the YaBBC.pl perl source code file.
$message =~ s~\[img alt=(.+?)][\s*\t*\n*(&nbsp;)*($char_160)*]*(http\:\/\/)*(.+?)[\s*\t*\n*(&nbsp;)*($char_160)*]*\[/img\]~<img src="http\:\/\/$3" alt="$1" border="0">~isg;


Best regards, Eric.
Back to top
« Last Edit: Jul 25th, 2015 at 5:27pm by Admin1 »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1