vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Member Photo (https://vborg.vbsupport.ru/showthread.php?t=49565)

Odil 03-19-2003 07:45 AM

This only allows one photo upload per member although I have this set to allow 100 per user in the admin cp....any ideas on what is wrong?

Nitesh 03-19-2003 11:09 AM

Hi, this looks like an excellent hack but could someone tell me if this hack could be restricted so only certain usergroups could use it? Thank you

L-Mane 03-21-2003 11:03 PM

I got this error when uploading a pic

Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\WebPublic\allhiphop\community\gdresize.php on line 5

Velocd 03-22-2003 03:13 AM

Quote:

This only allows one photo upload per member although I have this set to allow 100 per user in the admin cp....any ideas on what is wrong?
You must have mistaken the option in the Admin Control Panel, as there is nothing that allows members to upload more photos in this hack. The only options available via Admin CP are those shown in the following screenshot:

https://vborg.vbsupport.ru/attachmen...&postid=360348

Quote:

Hi, this looks like an excellent hack but could someone tell me if this hack could be restricted so only certain usergroups could use it? Thank you
I don't have time to do really any more coding on this hack, but achieving this is very easy. Just use:

PHP Code:

if($bbuserinfo[usergroup] == X){
show_nopermission();


Or something similar and place this in the code chunk area in member.php where the main code goes. Just change the X variable to whatever usergroup value you want to restrict.

Quote:

I got this error when uploading a pic

Fatal error: Call to undefined function: imagecreatefromjpeg() in D:\WebPublic\allhiphop\community\gdresize.php on line 5
Once again, GD2.0 is required for this hack to work, and must be enabled with JPG and PNG support.

Steve123 03-22-2003 04:41 AM

Ive installed this hack and gone over it..

When i try access

member.php?s=&action=editphoto

I get no output.. only
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>


sabret00the 03-22-2003 08:49 AM

very nice

Steve123 03-22-2003 10:31 AM

^^ oops

fixed it... i misread an instruction :)

Thanks Very Nice :)

Steve123 03-22-2003 11:17 AM

Ok

Question..

How do u make it so when a user deletes the picture outa the database.. it will delete his/her picture from your harddrive..

Because right now it wont delete the pics on the hdd when a user changes pic... :S

Steve123 03-23-2003 10:35 AM

Add Photo To Profile..

I dident add the approval system because i know i will never use it, but its easy to encode if someone needs it..

This is the first time ive modded a hack before, so dont scream at me if im doin it wrong :)

member.php

Just Before
PHP Code:

  
  
eval("dooutput(\"".gettemplate("getinfo")."\");");
  
}
    
// ############################### start aim message ############################### 

Add
PHP Code:

$checkphoto $DB_site->query_first("SELECT comments,visible FROM memberphoto WHERE userid='$userinfo[userid]'");
 
 if(
$checkphoto){
            
$profilephoto "<img src=\"memberpics/photo$userinfo[userid]_$userinfo[photonum].$userinfo[phototype]\">";
  
        } else {
            
$profilephoto "$userinfo[username] hasen't uploaded a photo yet.";
    }

    if(
$checkphoto['comments'] != ""){
        
$photomessage $checkphoto['comments'];     
    } 

Then in your getinfo Template put
Code:

$profilephoto<br> $photomessage
Where you want the photo to appear..

Velocd 03-23-2003 07:55 PM

Quote:

How do u make it so when a user deletes the picture outa the database.. it will delete his/her picture from your harddrive..

Because right now it wont delete the pics on the hdd when a user changes pic... :S
I just noticed this bug in the code, so if a user manually deletes their photo via the link that says "[Remove this photo from the database]," it will remove the data from the database but not remove it from the server. This has been fixed, and the zip has been updated with update1.3.txt file.

I recommend browsing through your memberpics directory and deleting those old files not being used by members presently in the photo gallery.

;)


All times are GMT. The time now is 02:25 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.01204 seconds
  • Memory Usage 1,754KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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