The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
where is the function which upload pictures to album
Hello i need to crop pictures in order to get the 100x100 thumbs of the picrtures uploaded via album.php
I have the code which able me to crop image: PHP Code:
i suppose it may be somewhere in album.php or includes/class_upload.php file .... please help |
#2
|
||||
|
||||
You shouldn't be modifying the .php files manually, because then upgrading vBulletin becomes a pain. You should look for hooks and use plugins instead.
Try investigating the /includes/functions_album.php file. There's a hook called "album_prepare_thumb" which would probably be a perfect place to use this code as a plugin. How To Use Hooks |
#3
|
|||
|
|||
I would like to achieve the same, cropping thumbnails.
I have created a plugin, I have put the hook "album_prepare_thumb" in each template it needs to stay (or I guess it needs to stay.. ). The PHP code I put in the plugin is the same as this post, just I do not manage to set the correct path for the archive to be cropped. Please, could someone help me, what should I put instead of "ORGINAL_IMAGE.jpg" ? Thanks PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|