PDA

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


cheat-master30
22 Jul 2008, 23:49
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
25 Jul 2008, 16:47
I know this may sound stupid but where do i find vmoods_aboutme ?

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

cheat-master30
26 Jul 2008, 20:28
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
26 Jul 2008, 23:49
You have lost me because i have vmoods installed and i dont know the location where to look

Kinneas
28 Jul 2008, 07:58
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
28 Jul 2008, 17:00
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
29 Jul 2008, 21:54
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
29 Jul 2008, 22:31
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
01 Aug 2008, 14:56
duplicated ... sorry

djbaxter
06 Apr 2009, 17:18
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.