vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Member Album 2.0 (https://vborg.vbsupport.ru/showthread.php?t=63733)

Ganon 09-14-2004 10:17 PM

Got it working now, thanks!

venomx 09-21-2004 11:48 PM

I am getting a brpken image for members that do NOT have a image uploaded. This shows in the admin and on the album.... Any fixes?

PitchouneN64ngc 09-29-2004 10:25 AM

Just a suggestion :)

After you applied modifications into ./profile.php file, when you want to upload a picture and you have never picture uploaded before, you have a part of the 'modifyprofilepic' template who appears. This corresponding with this php code:

PHP Code:

 $profilepic $DB_site->query_first("
SELECT userid, dateline, comment, visible, disapproved, reason
FROM " 
TABLE_PREFIX "customprofilepic
WHERE userid = 
$bbuserinfo[userid]
"
);
 
  
$profilepic['comment'] = fetch_censored_text($profilepic['comment']);
  
$show['profilepic'] = iif($profilepictruefalse); 

It is possible to hide this part of the template?

Pseudomizer 09-29-2004 10:32 AM

Quote:

Originally Posted by PitchouneN64ngc
Just a suggestion :)

After you applied modifications into ./profile.php file, when you want to upload a picture and you have never picture uploaded before, you have a part of the 'modifyprofilepic' template who appears. This corresponding with this php code:

PHP Code:

 $profilepic $DB_site->query_first("
SELECT userid, dateline, comment, visible, disapproved, reason
FROM " 
TABLE_PREFIX "customprofilepic
WHERE userid = 
$bbuserinfo[userid]
"
);
 
  
$profilepic['comment'] = fetch_censored_text($profilepic['comment']);
  
$show['profilepic'] = iif($profilepictruefalse); 

It is possible to hide this part of the template?

This php code will never be visible in the template. Or do you want to hide the output of this php code via template? Please clarify.

Cheers,

PitchouneN64ngc 09-29-2004 07:22 PM

After i have made modifications into ./profile.php, i have like i have posted in attachment (profilepic.jpg).

And i have this code for the editprofilepic do into the profile.php file:

PHP Code:

if ($_REQUEST['do'] == 'editprofilepic')
{
    if (
$vboptions['profilepicenabled'] AND ($permissions['genericpermissions'] & CANPROFILEPIC))
    {
        
$profilepic $DB_site->query_first("
            SELECT userid, dateline, comment, visible, disapproved, reason
            FROM " 
TABLE_PREFIX "customprofilepic
            WHERE userid = 
$bbuserinfo[userid]
        "
);
        
$profilepic['comment'] = fetch_censored_text($profilepic['comment']);
        
$show['profilepic'] = iif($profilepictruefalse);
        
$permissions['profilepicmaxsize'] = vb_number_format($permissions['profilepicmaxsize'], 1true);
 
        
// draw cp nav bar
        
construct_usercp_nav('profilepic');
        
$navbits[''] = $vbphrase['edit_profile_picture'];
        
$templatename 'modifyprofilepic';
    }
    else
    {
        
print_no_permission();
    }


And I have no entries in the table customprofilepic.

zer026 09-29-2004 11:12 PM

This hack has too many issues...and considering vb already displays a member's profile pic on the memberlist(if enabled in ACP), all of this struggling seems rather odd. I apologize if i seem negative, it''s just an opinion and doesn't really count anyway...right on.

Ted S 09-29-2004 11:23 PM

zer026,
I have the hack working fine and it only took following one person's changes. If you don't like it and don't find it functional then don't use it... no one needs every hack out there.

PitchouneN64ngc 09-30-2004 09:31 AM

I have resolved my problem ^^

On the ./profile.php file, you have this part of the code:

PHP Code:

        $profilepic['comment'] = fetch_censored_text($profilepic['comment']);

        
$show['profilepic'] = iif($profilepictruefalse); 

You must to change this 2 lines like this:

PHP Code:

        $show['profilepic'] = iif($profilepictruefalse);

        
$profilepic['comment'] = fetch_censored_text($profilepic['comment']); 

And all is ok ;)

joergh 10-06-2004 07:12 PM

Great hack,

I used the old member hack in vb2. After upgrading to vb3 i didn?t had the gallery live for months:

Today I tried to (re)install it on a vb3.0.3:

1) I used this file:

https://vborg.vbsupport.ru/showpost....&postcount=320

2) then I used the migrating tool from Pseudomizer: THX!

https://vborg.vbsupport.ru/showpost....3&postcount=76

Everything went well!

If you like to see it:

http://www.revierloewenfans.de/forums/album.php

joergh :)

FleaBag 10-10-2004 10:08 PM

Works like a dream right out of the box!


All times are GMT. The time now is 04:07 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.01590 seconds
  • Memory Usage 1,766KB
  • 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
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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