vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - United-Forum CSS Sprites - ludicrous speed - NOW! (https://vborg.vbsupport.ru/showthread.php?t=266696)

Osbes 08-06-2011 07:11 PM

Version 0.7.2 (06.08.2011)
  • now supporting folders for forum prefixes
  • sprite generation splittet to avoid timeouts on sites which a huge number of styles
  • checks if the gd version is 2.0.36 or higher (experimental)

Crotan 08-06-2011 07:25 PM

Quote:

Originally Posted by Osbes (Post 2230214)
Version 0.7.2 (06.08.2011)
  • now supporting folders for forum prefixes
  • sprite generation splittet to avoid timeouts on sites which a huge number of styles
  • checks if the gd version is 2.0.36 or higher (experimental)

hmmm, refreshing with this new version causes a database error:
Code:

Warning: mysqli_query() [function.mysqli-query]: (42S22/1054): Unknown column 'language.phrasegroup_sprite' in 'field list' in [path]/includes/class_core.php on line 1352

Osbes 08-06-2011 07:35 PM

Hello Crotan,

thanks for the info, i tested something during the deployment of 0.7.2 and dropped this later. But it seems i forgot to remove
PHP Code:

$phrasegroups = array('sprite'); 

from the sprite.php

I have updated the zip file.

Best regards
Sebastian

bilgicc 08-06-2011 07:58 PM

Working very well. Thank you.

DNCL 08-06-2011 09:07 PM

The new version fixed the "move redirect icon" issue it was not appearing, thanks, nominated :)

Taurus1 08-07-2011 05:08 AM

1 Attachment(s)
Awesome! The latest upgrade worked great. Thank you very very much! :up:

Just one very small issue on some of my skins. If you look at the attached screenshots you will see that my little search icon is missing. How can I get that back please?

Attachment 131752

Attachment 131753

Thank you!

EDIT: I also use this mod: http://www.vbcover.com/icart.php?do=...t&productid=56

and on it's main page the icons are also gone:

Attachment 131754

Crotan 08-07-2011 05:18 AM

Quote:

Originally Posted by Taurus1 (Post 2230388)
Awesome! The latest upgrade worked great. Thank you very very much! :up:

Just one very small issue on some of my skins. If you look at the attached screenshots you will see that my little search icon is missing. How can I get that back please?

Attachment 131752

Attachment 131753

Thank you!

check out https://vborg.vbsupport.ru/showpost....&postcount=138

Taurus1 08-07-2011 05:31 AM

Quote:

Originally Posted by Crotan (Post 2230389)

Thanks Crotan, but I don't quite understand how to change this? Sorry for my noobness! :o

EDIT: lol, OK, I get it. I am a slow learner. If I remove that part in the additional.css the search icon shows but the little block is gone. Yet I can change the image in forums>images>buttons>search.png, but will that not then change it on all other skins also?

Osbes 08-07-2011 05:54 AM

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

Taurus1 08-07-2011 06:06 AM

OK, I understand. Is it possible to just refresh this one sprite? Or I must just click the refresh button again, refreshing all? Thanks.

PS: What about my second issue with the icons missing on my iSupport page?


All times are GMT. The time now is 06:22 PM.

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.01645 seconds
  • Memory Usage 1,751KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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