vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Simple Profile Pic Gallery (https://vborg.vbsupport.ru/showthread.php?t=99134)

Amavisca 06-04-2006 06:19 AM

Hi Spankme,
thank you so much for the thumbnail creator. I have one small problem though.
When a member first upload their profilepic, it doesn't generate the thumbnail; only when he upload the profilepic again to replace current profilepic, the thumbnail is generated.
How do I fix it?
Thank a lot Christine and Spankme.

SpankMe 06-06-2006 10:04 AM

I had made some changes to it, but I can't remember what. So here are the two files I use.

murrtex 09-15-2006 12:28 PM

and I dont want to see banned users on profile pics page.
is there any solution?

JohnBee 11-03-2006 05:11 AM

It works great - installed!
I wonder if it was possible to click and show larger images? that would be awesome because many members have larger images in there profiles.

thenetbox 11-12-2006 01:15 AM

Hello :) ,

Does any one know if this works for 3.6?

Thank you

SpankMe 05-14-2008 11:17 PM

Only works if you store profile pics in the filesystem

First you need to setup the creation of thumbnails for profile pics.

Create the directory customprofilepics/thumbs and make sure it is writable by your web server.

Create a plugin for: userpicdata_postsave
and add the following code...

PHP Code:

if ($this->table == 'customprofilepic')
{
    @
unlink($oldthumbfilename);
    require_once(
DIR '/includes/class_image.php');
    
$image =& vB_Image::fetch_library($this->registry);
    
$imageinfo $image->fetch_image_info($newfilename);

    if (
$imageinfo[0] > 150 OR $imageinfo[1] > 150)
    {
        
$filename 'file.' . ($imageinfo[2] == 'JPEG' 'jpg' strtolower($imageinfo[2]));
        
$thumbnail $image->fetch_thumbnail($filename$newfilename150150);
    }
    elseif (
$filenum = @fopen($thumbfilename'wb'))
    {
        @
fwrite($filenum$this->info['filedata']);
        @
fclose($filenum);
    }

    if (
$thumbnail['filedata'] AND $filenum = @fopen($thumbfilename'wb'))
    {
        @
fwrite($filenum$thumbnail['filedata']);
        @
fclose($filenum);
        unset(
$thumbnail);
    }


To generate thumbs for existing profile pics, just move them from the filesystem into the database and back again.

MrD 11-30-2009 08:57 AM

Hi,
any port to vb 4 ?

My User love this hack

MrD 12-26-2009 02:03 PM

Oh, i think this simple good Mod are going death?

SpankMe 12-26-2009 08:03 PM

I wont be doing anything. vB4 has fixed size profile pics and I not going to bother modifying it to allow larger ones, so I will be dropping the profile pic gallery.

MrD 05-06-2010 12:34 PM

hi,
now VB4 is a long Time online, have anyone run this mod under VB4?

Angelus 03-11-2011 02:59 PM

Quote:

Originally Posted by MrD (Post 1922950)
Hi,
any port to vb 4 ?

My User love this hack

my user auch.


All times are GMT. The time now is 05:19 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.01124 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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