Back to vBulletin 3.7 Template Modifications

Enhanced vMood Image Code (adds alt and title tags)
Mod Version: 1.00, by cheat-master30

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 5.00 average) Installs: 10
Released: 23 Jul 2008 Last Update: Never Downloads: 2
Not Supported Template Edits Re-usable Code Translations  

Okay, this mod is very, very simple. Basically, it takes the vMoods images, and adds relevant alt tags and title tags by using the data for what mood is displayed to fill them. Basically, if your mood was happy, the alt text will be happy and the title box once you hover over the image will say 'happy'.

In vmoods_aboutme, find:

Code:
<li class="profilefield_category">
        <dl class="list_no_decoration profilefield_list">
            <dt class="shade">$vbphrase[vmoods_my_mood]</dt>
            <dd><img src="$vboptions[vmoods_images_path]/$userinfo[vmood].gif" border="0"/></dd>
        </dl>
    </li>
Then change to:

Code:
<li class="profilefield_category">
        <dl class="list_no_decoration profilefield_list">
            <dt class="shade">$vbphrase[vmoods_my_mood]</dt>
            <dd><img src="$vboptions[vmoods_images_path]/$userinfo[vmood].gif" border="0" alt="$userinfo[vmood]" title="$userinfo[vmood]" /></dd>
        </dl>
    </li>
Then, in vmoods_postbit, find:

Code:
<div>
        <span style="vertical-align: middle;">$vbphrase[vmoods_my_mood] </span> 
        <img style="vertical-align: middle" src="$vboptions[vmoods_images_path]/$post[vmood].gif" border="0"/>
    </div>
Change to:

Code:
<div>
        <span style="vertical-align: middle;">$vbphrase[vmoods_my_mood] </span> 
        <img style="vertical-align: middle" src="$vboptions[vmoods_images_path]/$post[vmood].gif" border="0" alt="$post[vmood]" title="$post[vmood]" />
    </div>
It's probably a bug that the mod author should have fixed, but I fixed it for him now. This also means those without images active or using a screen reader or a search engine bot can tell what moods people are using.

Download

No files for download.

Screenshots

Click image for larger version
Name:	Moodtitleinprofile.PNG
Views:	1161
Size:	50.6 KB
ID:	84428   Click image for larger version
Name:	moodtitleinpostbit.jpg
Views:	857
Size:	24.2 KB
ID:	84429  

Similar Mods

Miscellaneous Hacks Enhanced Image Captcha - Stop bots from signing up! vBulletin 3.7 Add-ons
Mini Mods VB Image Hosting BBCode Align Image Tags vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024