Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

ALT tags for images in forum posts

Quote Reply
ALT tags for images in forum posts
Hi!

In Convert.pm file we have the following line:

Code:
$txt .= qq{$save_pre<img src="$img" border="0" />$post};

Now, I want to add an "alt" tag with the post title like:

$txt .= qq{$save_pre<img src="$img" border="0" alt="post_title_here" />$post};

Any suggestion?
Quote Reply
Re: [katakombe] ALT tags for images in forum posts In reply to
In short, I don't think you can really (appart from maybe doing a DB lookup, to get the title)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [katakombe] ALT tags for images in forum posts In reply to
Yes, unfortunately, you don't have access to that information in the forum post parsing code. SEO wise (which I assume is the reason you want to do this), I'm not sure that's a great thing to do since you'll probably have many images in the thread ending up with the same alt tag, which may or may not accurately describe the image. If you don't accurately know what the image actually is, I'd leave it up to the search engine to determine it itself.

Adrian
Quote Reply
Re: [brewt] ALT tags for images in forum posts In reply to
Ok Adrian, probably you are right .. Anyhow, thanks Smile