View Single Post
  #260  
Old 08-07-2011, 05:54 AM
Osbes Osbes is offline
 
Join Date: Jul 2008
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Taurus1,

each HTML-Element can only have one background.

The css-rule for the sprite is:
Code:
.sprite_button_search {
    background: url("images/sprites/sprite-61-main.png") no-repeat scroll -34px -18px transparent;
    display: inline-block;
    height: 22px;
    width: 22px;
}
Your style adds an additional background for the magnification glass:
Code:
.globalsearch .searchbutton {
    background: url("images/Seamus/gradients/back3.png") repeat-x scroll left top transparent;
    border: 1px solid #1B518F !important;
    border-radius: 7px 7px 7px 7px;
    box-shadow: 0 0 2px #1A1A1A;
    margin-left: -5px;
    margin-top: -2px;
}
So the Browser will use as background-image either "images/sprites/sprite-61-main.png" or "images/Seamus/gradients/back3.png".

You need to remove
Code:
background: url("images/Seamus/gradients/back3.png") repeat-x scroll left top transparent;
so it can display the magnification glass using sprites.

Since you will loss your background for the magnification glass if you do this, you can merge your background with the magnification glass, to get it back. And dont forget to refresh the sprite after this.

###

For the Ticket-like addon.

You need to make an additional template edit for this, based on the one for the threadbit:
Code:
Template: threadbit
1c1
<    <li class="threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$thread['postuserid'] AND !$thread['del_userid']"> guest</vb:if><vb:if condition="$thread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}">
---
>    <li class="sprite_statusicon_thread_30 threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$thread['postuserid'] AND !$thread['del_userid']"> guest</vb:if><vb:if condition="$thread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}">
Please note, that the difference is only the addition of sprite_statusicon_thread_30.

With 0.8.0 this wont be necessary anymore, since the sprite will than use for these icons threadbit and dont need sprite_statusicon_thread_30 anymore. But until than, this needs to be done to get it working

Best regards
Sebastian
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01045 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete