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)
-   -   vB Integration of "Normal display of PNG Alpha Transparency with MSIE" PHP script (https://vborg.vbsupport.ru/showthread.php?t=67413)

Natch 08-25-2004 03:20 AM

Nope - it's not a tag thing when you have inline styles ...

One option (and I don't know if this will work) is to have some additional code added to the part of showthread that grabs the avatar that will give you the width and height statement ...

I'll look into it man...

Natch 08-26-2004 03:51 AM

OK - a solution to this is a separate hack:

In includes/functions_showthread.php:

Find:
PHP Code:

        if (empty($avatarurl) OR ($bbuserinfo['userid'] > AND !($bbuserinfo['showavatars'])))
        {
            
$show['avatar'] = false;
        }
        else
        {
            
$show['avatar'] = true;
        } 

Add below:
PHP Code:

        if($avatarurl)
        {
            
$avatarbits getimagesize($avatarurl);
            
$avatarimgsrc $avatarbits[3];
        } 

In postbit / postbit_legacy:

Find:
Code:

<img src="$avatarurl"
Add after:
Code:

<if condition="$avatarimgsrc">$avatarimgsrc </if>
HTH mate - this puts the width and height properly formatted for the <img src tag - if you want to format it using style, then you would use $avatarbits[0] and $avatarbits[1] for width and ehight respectively and then format your $avatarimgsrc statement accordingly
Code:

$avatarimgsrc = "style="width:$avatarbits[0]px;height:$avatarbits[1]px"

apokphp 09-01-2004 08:37 AM

the includes/functions_showthread.php edit resulted in:

Quote:


Warning: getimagesize(image.php?u=1&dateline=1093078656): failed to open stream: No such file or directory in /home/online/public_html/forums/includes/functions_showthread.php on line 370
on the top of every page...then when trying to open a thread, the standard error displayed:
Quote:

Unable to add cookies, header already sent.
File: /home/online/public_html/forums/includes/functions_showthread.php
Line: 370
In other words...w/ that edit...I couldn't view any threads.

Natch 09-01-2004 08:51 AM

Undo that edit, then point me to your site: I'll take a lok at what your site generates as $avatarurl and then get more info for you.

NOTE: this last bit of this hack is not something that is a part of the original a new hack as I said - so I'm not sure how far I can support PNG avatars... unless you switch your Avatars to store them in the filesystem, as opposed to the database - that might make a difference.

apokphp 09-01-2004 04:34 PM

I undid it. My site: www.onlinedebate.net/forums

Now, perhaps something of interest. I have vbadvanced CMPS. The avatar displayed w/ a transparent background with CMPS (block in the upper right hand corner). It was when I went to the forums, that all hell broke loose.

Natch 09-06-2004 11:55 PM

Question: do you store your avatars in the database or the filesystem?

Bad Bunny 09-07-2004 06:09 AM

This will work within templates, right?

Bad Bunny 09-07-2004 07:23 AM

Quote:

Originally Posted by Bad Bunny
This will work within templates, right?

Well, I got it to work as a header image, but when I try to use it as a background in css I can't get it to work at all.

Natch 09-08-2004 12:58 AM

Can you paste in here the code you have used ?

Remember you need to specify a height and width for the image.

Zach 09-10-2004 06:49 PM

he has a new version of his script up that does not require dimensions


All times are GMT. The time now is 06:17 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.01046 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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