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)

doctorsexy 11-02-2011 06:28 PM

is there a limit to how many custom sprites i can make ..as i get 1 working ok then make another and its not spriting the image...thanks

Mooff 11-02-2011 10:06 PM

@tmiland
have you made the template changes?

@doctorsexy
No limit, can you show me the exact code you are using for the custom icon right now + the names of two icons you want to add?
(i think the code changed in 0.8.0 that's why i'm asking, so i can't compare it to our version)

tmiland 11-02-2011 10:24 PM

Quote:

Originally Posted by Mooff (Post 2263901)
@tmiland
have you made the template changes?

I installed the template mod. system, so yes? :)

doctorsexy 11-03-2011 10:16 AM

@ Moof
the code is this

Quote:

$files[] = array(
'path' => $stylevars['imgdir_siteicons']['imagedir'] . '/logo.png',
'css' => 'siteicons_logo',
'rollup' => $CSS_FORUMHOME_ROLLUP,

);

<span class="sprite_custom_siteicons_logo" title=""></span>

works ok
and this..
Quote:

$files[] = array(
'path' => $stylevars['imgdir_siteicons']['imagedir'] . '/whobar.png',
'css' => 'siteicons_whobar',
'rollup' => $CSS_FORUMHOME_ROLLUP,

);
<span class="sprite_custom_siteicons_whobar" title=""></span>
dosnt work ..but dose when i disable the first one
All the files are in the same folder ...siteicons....

its more than likely my interpretation of your code.. sorry but we all have to learn..
thanks for your help..:D

Mooff 11-03-2011 01:01 PM

@tmiland
Can you try to reinstall the addon and check for error messages during the installation? And can you check if the sprite changes are in your templates? (check the template code, look for css classed named sprite_ )

@doctorsexy
The last item in an php array is not supposed to have a comma, change your code to:
Code:

$files[] = array(
'path' => $stylevars['imgdir_siteicons']['imagedir'] . '/whobar.png',
'css' => 'siteicons_whobar',
'rollup' => $CSS_FORUMHOME_ROLLUP
);

And it should work. =)

doctorsexy 11-03-2011 01:56 PM

@ Moof

Tried it but didn't work... when i look where the sprite is supposed to be in the sprite file its not there..is there a size limit on how may sprites it can put in the file...thanks

tmiland 11-03-2011 07:24 PM

Quote:

Originally Posted by Mooff (Post 2264065)
@tmiland
Can you try to reinstall the addon and check for error messages during the installation? And can you check if the sprite changes are in your templates? (check the template code, look for css classed named sprite_ )

I get a this error message: "vB4 Default Style
Error occurred: Your sprite folder uses an URL. Sprites cannot be saved via URLs. Please use an local filepath on your system for the stylevar imgdir_sprite."

I am serving all my images from images.mydomain.net, obviously that is not working :P

TeknoSounds 11-08-2011 02:28 PM

Quote:

Originally Posted by tmiland (Post 2264173)
I get a this error message: "vB4 Default Style
Error occurred: Your sprite folder uses an URL. Sprites cannot be saved via URLs. Please use an local filepath on your system for the stylevar imgdir_sprite."

I am serving all my images from images.mydomain.net, obviously that is not working :P

has to be from a local filepath, NOT a URL. As it states... images.mydomain.net should be pointing to a filepath on your system done via DNS. find the actual filepath to your images and put that (linux would be something like /var/www/html/mysite/images or windows c:\xampp\docs\html\mysite\images)

tmiland 11-08-2011 03:01 PM

Quote:

Originally Posted by TeknoSounds (Post 2265714)
has to be from a local filepath, NOT a URL. As it states... images.mydomain.net should be pointing to a filepath on your system done via DNS. find the actual filepath to your images and put that (linux would be something like /var/www/html/mysite/images or windows c:\xampp\docs\html\mysite\images)

Where do i change that? :-)

~Tommy

rjmjr69 11-14-2011 06:55 AM

I lost all my images????

http://forums.acsyndicate.net/forum.php

Database error in vBulletin 4.1.7:

Invalid SQL:
SELECT styleid FROM `style` WHERE styleid > LIMIT 1;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1
Error Number : 1064
Request Date : Monday, November 14th 2011 @ 03:16:21 AM
Error Date : Monday, November 14th 2011 @ 03:16:21 AM
Script : http://forums.acsyndicate.net/adminc...resh&startat=0
Referrer : http://forums.acsyndicate.net/adminc...php?do=refresh
IP Address : 98.229.57.189
Username : rjmjr69
Classname : vB_Database
MySQL Version : 5.1.56


All times are GMT. The time now is 01:07 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.01643 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (6)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