PDA

View Full Version : Mini Mods - Enhanced vMood Image Code (adds alt and title tags)


cheat-master30
07-22-2008, 10:00 PM
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:

<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:


<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:

<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:

<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.

steve1966
07-25-2008, 03:47 PM
I know this may sound stupid but where do i find vmoods_aboutme ?

Kinneas
07-26-2008, 10:07 AM
It's one of the templates you can edit after installing vmoods.

cheat-master30
07-26-2008, 07:28 PM
Once you install vmoods, the templates mentioned are created and can be edited as shown. If you don't have vmoods, this mod obviously doesn't work without it.

steve1966
07-26-2008, 10:49 PM
You have lost me because i have vmoods installed and i dont know the location where to look

Kinneas
07-28-2008, 06:58 AM
Just got to Styles and Templates, look in the list of templates for your main/other styles and you will see some vmoods ones.

steve1966
07-28-2008, 04:00 PM
Just got to Styles and Templates, look in the list of templates for your main/other styles and you will see some vmoods ones.

Thank you I found them

dirtycrow
07-29-2008, 08:54 PM
in my "who's online" page users that don't have a mood set appear as

Unknown Location
/vmoods/images/none.gif

any way to fix this?

thanks in advance.

cheat-master30
07-29-2008, 09:31 PM
Does that happen with the main product anyway? If so, I'll try and get the original mod author to release a fix, or make one myself and release it here soon.

natecoupons
08-01-2008, 01:56 PM
duplicated ... sorry

djbaxter
04-06-2009, 04:18 PM
in my "who's online" page users that don't have a mood set appear as

Unknown Location
/vmoods/images/none.gif


Does that happen with the main product anyway? If so, I'll try and get the original mod author to release a fix, or make one myself and release it here soon.

It happens with the main product, even without your enhancement.