vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Enhanced vMood Image Code (adds alt and title tags) (https://vborg.vbsupport.ru/showthread.php?t=186073)

cheat-master30 07-22-2008 10:00 PM

Enhanced vMood Image Code (adds alt and title tags)
 
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.

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

Quote:

Originally Posted by Kinneas (Post 1585747)
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

Quote:

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


All times are GMT. The time now is 02:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01168 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete