MyBB Community Forums

Full Version: Seo Frendly images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi

I have got a question. How to add alt="Name of thread" and title="Name of thread" to every image on my board?
I think you just need to go through the templates that have images and add it in the the img tag...
But it is possible with links, adding rel="nofollow", there must be a way ! Smile
That's adding the same thing to all links, I doubt you'd want to add the same title and alt text to all images.
Yes, I do Smile
Undecided OK... I can't see that helping much with SEO then but nevermind, do a search and replace... replace <img with <img title="" alt="" and put what you want to add in the ""

But then if some img tags already have a title and alt attribute, this will cause an error with validations and other things, so you'll need to go through and remove the doubles, meaning this method is no quicker either really, you still need to check every single image to see if there's a double.

Don't you want the alt and title to have some actual relevance to the image?? Undecided
No it is not a solution wait I'll give answer for links.

Without alt and title google doesn't see the image. (I was told that)

@Edit:
For link you have to open inc/class_parser.php and remake:

$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
Right, well even if that's the case, if you do a search and replace and add the same alt and title to all images, some images will have two alts and two titles, so you need to go through and remove the doubles. So, why not go through and give them something relevant to the image instead?? Unless I'm missing something here...
Oh so soe images has got already alts ?

Hmm thanks for the answers, you are right...
Hang on a minute, are you talking about images in templates or images that are in the posts??
Pages: 1 2