The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
gd troubles as usual
ok well im trying to modify the fetch_avatar_url function so it will place text over a user's avatar but of course it isnt workin
here is the code: PHP Code:
|
#2
|
||||
|
||||
I don't see a line of code which output's the image to the server...
|
#3
|
||||
|
||||
how would i do that? im still new at this>_<
|
#4
|
||||
|
||||
bump
|
#5
|
||||
|
||||
If you wanted to look it up in the php.net manual, you would have found the following information (the following is my paraphrase):
Basically, you need to output the image either directly to the page (leave out the path statement) or to a file... or it is being created by ImageCreateFromGIF(), modified with ImageTTF(), then it vanishes after you create it when the page finishes loading... Unless you know what the transparent colour using in the image is (and you can't detect that on the fly) your output image will not be transparent... The following code would work for your "stored as a file" avatars, but for the database stored avatars you would require a database INSERT query to put the modified GIF image into the DB... PHP Code:
Another way to do it would be to create a separat PHP script to create the image itself, then you can call a banned_img.php script if you are viewing a banned users avatar... that might suit better. Ref: php.net - imagegif() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|