vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Transparent PNG pictures with Internet Explorer (https://vborg.vbsupport.ru/showthread.php?t=77465)

cclaerhout 03-03-2005 10:00 PM

Transparent PNG pictures with Internet Explorer
 
Transparent PNG pictures with Internet Explorer



What does that hack do ?
->It makes png files transparent with Internet Explorer.

As Natch's hack does ?
Yes, but it uses another way. I think it's easier for beginners.

Am i the author of that hack
No, i've just updated it for vbulletin.

Is there any problem with this hack ?
I find (just a personal feeling), that this hack is slower than Natch's hack. Please tell me what you feel.

Do you still have to specify the width and the height for each png file
Yes.


Code:

Will work:

<img src="directory/picture.png" width="10" height="10" />

Will not work:

<img src="directory/picture.png" />

Will work in a table:

<td style="background-image:url(directory/picture.png);height:10px;width:10px"></td>

Will not work in a table:

<td style="background-image:url($vboptions[bburl]/images/misc/someimage.png)"> </td>


I'd like to thank Andaas to give us that link : http://www.mongus.net/pngInfo/


Installation :
-Just download the archive, then unpack it
-Copy all the file into your "clientscript" forum's directory (http://yoursite.com/yourforum/clientscript)
-Log to your admin control panel and be prepared to modify "Styles & Templates"
-Look after your "headinclude" template, edit it and add at the top :
Code:

<link rel=stylesheet href="clientscript/pngHack.css" type="text/css">
-That's all !


Special notes for vbadvanced users
To make png transparent with IE on your portal page, you HAVE to specify the complete adress of your forum.
I mean, in the "headinclude" template, you must enter :
Code:

<link rel=stylesheet href="http://yoursite.com/yourforum/clientscript/pngHack.css" type="text/css">
You also have to edit pngHacks.css and pngHack.htc to add "http://yoursite.com/yourforum/" before urls with "clientscript/".

MrNase 03-16-2005 11:39 AM

Doesn't seem to work for me :(

cclaerhout 03-17-2005 07:51 AM

Have you precised the weight and the height of your pictures ?


All times are GMT. The time now is 01:12 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.00918 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete