vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vBSigHosting v1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=63841)

BamaStangGuy 08-04-2004 10:07 PM

has anyone noticed that when you install this hack profile pictures stop working? Sorry if this is already known in a hurry. Using 3.0.3

BamaStangGuy 08-05-2004 12:34 AM

To add on to that. When I go to upload a Profile picture it shows my avatar... if I dont have a avatar it shows nothing......

I uninstalled the hack and nopw the profile pics work correctly

Reeve of shinra 08-05-2004 01:59 AM

I would like to see this as an option on the ustore.

Logikos 08-05-2004 02:12 AM

Sorry guys im no longer supported this hack, if someone wants to work on it then i give em full permissions.

BamaStangGuy 08-05-2004 02:13 AM

Sigh anyone else?

Reeve of shinra 08-05-2004 02:32 AM

Thanks Livewire for making this possible.

Dorign 08-06-2004 02:12 AM

Quote:

Originally Posted by BrentWilson
Sigh anyone else?

Yeah, it's a simple fix. I'm not even a "coder," but I managed to find out what was causing it. :D

In the instructions of the mod, it tells you this..

PHP Code:

Open: /forum/image.php Find (around line 177):
        if (
$_REQUEST['type'] == 'profile')
        {
                
$data 'profilepicdata';
                
$table 'customprofilepic';
                
// No permissions to see profile pics
                
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
                {
                        
header('Content-type: image/gif');
                        
readfile("./$vboptions[cleargifurl]");
                        exit;
                }
        }        

Under Add:
        if (
$_REQUEST['type'] == 'siguploader')
        {
                
$data 'siguploaderdata';
                
$table 'customsiguploader';
        } 

Doing that divides an "else" code from the profile picture code. So instead of adding that code there, add it under..

PHP Code:

        if ($_REQUEST['type'] == 'profile')
        {
                
$data 'profilepicdata';
                
$table 'customprofilepic';
                
// No permissions to see profile pics
                
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
                {
                        
header('Content-type: image/gif');
                        
readfile("./$vboptions[cleargifurl]");
                        exit;
                }
        }        
    else
    {
        
$data 'avatardata';
        
$table 'customavatar';
    } 

That way, the code stays together, the profile pictures work, and the signature uploader works too, or so I think..

Which brings me to my problem.. if a user is in multiple usergroups, s/he cannot upload a picture (uploading just refreshes the page, showing no error and no confirmation).

xug 08-07-2004 12:45 AM

It would be very cool if this hack could adopt some options from the old vB2 hack that allows me to have 2 images and it has an insert option so when they click one of the images it will be inserted in the signature.

BamaStangGuy 08-07-2004 05:02 AM

Quote:

Originally Posted by Dorign
Yeah, it's a simple fix. I'm not even a "coder," but I managed to find out what was causing it. :D

In the instructions of the mod, it tells you this..

PHP Code:

Open: /forum/image.php Find (around line 177):
        if (
$_REQUEST['type'] == 'profile')
        {
                
$data 'profilepicdata';
                
$table 'customprofilepic';
                
// No permissions to see profile pics
                
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
                {
                        
header('Content-type: image/gif');
                        
readfile("./$vboptions[cleargifurl]");
                        exit;
                }
        }        

Under Add:
        if (
$_REQUEST['type'] == 'siguploader')
        {
                
$data 'siguploaderdata';
                
$table 'customsiguploader';
        } 

Doing that divides an "else" code from the profile picture code. So instead of adding that code there, add it under..

PHP Code:

        if ($_REQUEST['type'] == 'profile')
        {
                
$data 'profilepicdata';
                
$table 'customprofilepic';
                
// No permissions to see profile pics
                
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
                {
                        
header('Content-type: image/gif');
                        
readfile("./$vboptions[cleargifurl]");
                        exit;
                }
        }        
    else
    {
        
$data 'avatardata';
        
$table 'customavatar';
    } 

That way, the code stays together, the profile pictures work, and the signature uploader works too, or so I think..

Which brings me to my problem.. if a user is in multiple usergroups, s/he cannot upload a picture (uploading just refreshes the page, showing no error and no confirmation).

Awsome that worked

Dorign 08-07-2004 08:53 PM

woot ^_^


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