Results 1 to 4 of 4

What is wrong with this code????

This is a discussion on What is wrong with this code???? within the Template Modifications forums, part of the vBulletin SEO Discussion category; Hello... Is the MULTIQUOTE button... Im using sprite CSS: 1. An image in normal mode - CSS SPRITE 2. An ...

  1. #1
    Member MaRµ's Avatar
    Real Name
    Miss Mariel xD
    Join Date
    Aug 2008
    Posts
    66
    Liked
    0 times

    What is wrong with this code????

    Hello... Is the MULTIQUOTE button... Im using sprite CSS:

    1. An image in normal mode - CSS SPRITE
    2. An image when mouse is over the button - CSS SPRITE
    3. An image when button is clicked - A simple .gif

    MY CODE, something is wrong... I dont know where:

    PHP Code:
    <if condition="$show['multiquote_post']">
    <
    a href="$post[replylink]rel="nofollow" onclick="return false" class="multiquote spritebutton">
    <if 
    condition="$show['multiquote_selected']">
    <
    img src="$stylevar[imgdir_button]/multiquote_on.gif"</if>alt="$vbphrase[multi_quote_this_message]border="0" id="mq_$post[postid]/>
    </
    a>
    </if> 
    DEFAULT code:

    PHP Code:
    <if condition="$show['multiquote_post']">
    <
    a href="$post[replylink]rel="nofollow" onclick="return false">
    <
    img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]border="0" id="mq_$post[postid]/>
    </
    a>
    </if> 
    The world is ours... ° ÂLtø FøRø °

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    In the first block, your last /if is in the wrong spot.

    try:

    Code:
    <if condition="$show['multiquote_post']">
    <a href="$post[replylink]" rel="nofollow" onclick="return false" class="multiquote spritebutton">
    <if condition="$show['multiquote_selected']">
    <img src="$stylevar[imgdir_button]/multiquote_on.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></if>
    </a>
    </if>  
    

    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member MaRµ's Avatar
    Real Name
    Miss Mariel xD
    Join Date
    Aug 2008
    Posts
    66
    Liked
    0 times
    Thanks Brian.

    With your code:

    1. An image in normal mode - OK
    2. An image when mouse is over the button - OK
    3. An image when button is clicked - When I click the button nothing happend.
    The world is ours... ° ÂLtø FøRø °

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    You're missing the condition for on/off state

    <img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" />
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Something wrong with the Analytics code?
    By dingo in forum General Discussion
    Replies: 3
    Last Post: 08-19-2009, 02:08 AM
  2. Virtual HTML Code Error - Displaying code on forumhome
    By paintballer.ie in forum Troubleshooting
    Replies: 2
    Last Post: 03-24-2009, 07:26 AM
  3. Google Analytics code in the wrong position for external URLs
    By Simon Moon in forum General Discussion
    Replies: 1
    Last Post: 09-23-2007, 09:13 AM
  4. i think something is wrong....
    By briansol in forum General Discussion
    Replies: 3
    Last Post: 08-20-2006, 07:10 PM
  5. to clean code or not to clean code, that is the question
    By kidmercury in forum Troubleshooting
    Replies: 3
    Last Post: 11-11-2005, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •