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)

PitchouneN64ngc 11-13-2004 09:09 PM

No, this query was executed successfully during the first attempt (during the installation).

Try the other queries and see if all is ok after :)

HarryBO 11-13-2004 09:13 PM

Yor?re my personal Jesus! Big Thx that works! :D

HarryBO 11-14-2004 08:29 PM

Argh! I´ve found some error again! When User Update there Pic, it would be changed in ACP! There´s ever there first postet Pic!

Hades-1 11-16-2004 06:05 PM

these ae my errors, i swear to god i tried eveythign inthis thread and nothing works, please help.

Invalid SQL:
SELECT customprofilepic.*, user.username
FROM vb3_customprofilepic
LEFT JOIN vb3_user
USING (userid)
ORDER BY username

mysql error: Unknown table 'customprofilepic'

ALSO

Warning: Division by zero in /home/rvadmin/public_html/x-six/V.3/VB3/album.php on line 142

Warning: Division by zero in /home/rvadmin/public_html/x-six/V.3/VB3/includes/functions.php on line 1730
Invalid SQL:
SELECT user.userid, dateline,
comment, user.username, user.usertitle,
user.joindate, user.usergroupid
FROM vb3_customprofilepic
LEFT JOIN vb3_user USING (userid)
WHERE visible=1

ORDER BY posts desc
LIMIT 0,

I even ran the entire installation again, someone help please

ecarabin 11-19-2004 12:21 AM

Hi all, here's my first post.

Thanx for this hack. ^_^

I'm trying to install it on my board, and it seems to work. ( I installed the fixed version for 3.0.3 )
The queries were successfully executed, the first look at the album was ok ...

But I have some troubles

* In the Admincp, I just get red crosses for new picture profiles that have to be approved

* In the album, some of new pictures are ok, but some just show red crosses. I dont really understand.

* When I try type2 ( should show signatures ) I get this error

Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
                SELECT user.userid, user.username, user.usergroupid,
                user.usertitle, usertextfield.signature, usertextfield.sigdateline,
                avatar.avatarpath, user.avatarrevision, NOT ISNULL(customavatar.avatardata) AS hascustomavatar,
                customavatar.dateline AS avatardateline
                FROM vb3_user
                LEFT JOIN vb3_usertextfield AS usertextfield
                USING (userid)
                LEFT JOIN vb3_avatar AS avatar
                ON(avatar.avatarid = user.avatarid)
                LEFT JOIN vb3_customavatar AS customavatar
                ON(customavatar.userid = user.userid)
                WHERE usertextfield.signature!=''
                ORDER BY posts desc
                LIMIT 0, 18
       
mysql error: Unknown table 'user' in field list

mysql error number: 1109

I don't understand, since the table vb3_user exists ?!

An idea please ? ^_^

( sorry if there are english mistakes, I'm french ).

Boofo 11-24-2004 12:11 PM

Quote:

Originally Posted by ecarabin
Hi all, here's my first post.

Thanx for this hack. ^_^

I'm trying to install it on my board, and it seems to work. ( I installed the fixed version for 3.0.3 )
The queries were successfully executed, the first look at the album was ok ...

But I have some troubles

* In the Admincp, I just get red crosses for new picture profiles that have to be approved

* In the album, some of new pictures are ok, but some just show red crosses. I dont really understand.

* When I try type2 ( should show signatures ) I get this error

Code:

Database error in vBulletin 3.0.3:
 
Invalid SQL:
                SELECT user.userid, user.username, user.usergroupid,
                user.usertitle, usertextfield.signature, usertextfield.sigdateline,
                avatar.avatarpath, user.avatarrevision, NOT ISNULL(customavatar.avatardata) AS hascustomavatar,
                customavatar.dateline AS avatardateline
                FROM vb3_user
                LEFT JOIN vb3_usertextfield AS usertextfield
                USING (userid)
                LEFT JOIN vb3_avatar AS avatar
                ON(avatar.avatarid = user.avatarid)
                LEFT JOIN vb3_customavatar AS customavatar
                ON(customavatar.userid = user.userid)
                WHERE usertextfield.signature!=''
                ORDER BY posts desc
                LIMIT 0, 18
 
mysql error: Unknown table 'user' in field list
 
mysql error number: 1109

I don't understand, since the table vb3_user exists ?!

An idea please ? ^_^

( sorry if there are english mistakes, I'm french ).

Try changing:

PHP Code:

 FROM vb3_user 

to

PHP Code:

 FROM vb3_user AS user 


Hades-1 11-24-2004 12:59 PM

Quote:

Originally Posted by Slynderdale
Working out a couple bugs if you have it so attachments are saved to the file system and writing some code that lets you rebuild the album thumbnails.

Make my above fixes, that will fix images from being escapes twice. The image gets escaped already if you have it so your attachments are saved in the MySQL data base. This would cause errors with the thumbnails. The thumbnail doesn't get escaped when you save the files to the file system so this code fixes that and also fixes a small bug if theres an error with the thumbnail.


After you installed this hack and weasles fix,
find in path/to/forums/includes/functions_upload.php:
PHP Code:

      if ($type == 'profilepic')
      {
          require_once(
'./includes/functions_image.php');
          
          
$image['name'] = $upload_name;
          
$image['tmp_name'] = $filename;
          
          
$thumbnail fetch_thumbnail_from_image($image);
          
$thumbnail $thumbnail['filedata'];
  
         
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
         
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
          {
             eval(
'$error = "' fetch_phrase($imageerrorPHRASETYPEID_ERROR) . '";');
              
$errors[] = array(
                 
'filename' => $attachment_name,
                  
'error' => $error
              
);
          }
      } 

and replace it with:
PHP Code:

    if ($type == 'profilepic')
      {
          require_once(
'./includes/functions_image.php');
  
          
$image['name'] = $upload_name;
          
$image['tmp_name'] = $filename;
  
          
$thumbnail fetch_thumbnail_from_image($image);
          
$imageerror $thumbnail['imageerror'];
      
$thumbnail $thumbnail['filedata'];
  
      if (
$vboptions['attachfile'])
      {
        
$thumbnail $DB_site->escape_string($thumbnail);
      }
  
         
// Display thumbnail error to admins in an attempt to cut down on support requests due to failed thumbnails.
         
if (!$thumbnail AND $imageerror AND $permissions['adminpermissions'] & CANCONTROLPANEL)
          {
             eval(
'$error = "' fetch_phrase($imageerrorPHRASETYPEID_ERROR) . '";');
              
$errors[] = array(
                 
'filename' => $attachment_name,
                  
'error' => $error
              
);
          }
      } 

The rebuilding of the album thumbnails code is almost done.


what do i do if neither of these codes are in functions_upload?

can someon post their functions_upload file for this hack?

Pseudomizer 11-24-2004 12:59 PM

Quote:

Originally Posted by Hades-1
i hate you all

all people care about is themselves, everyone just ignores other peopls problems and posts and goes ahead and posts their own.

I could help but go to hell instead!!

Hello Hades,

[offtopic]
these are not nice words. If you would have read the thread you should have seen that the checkbox "supported" is NOT checked. If you install a hack where the author didn't check this box, you should not expect that people will run to help you. All people here are not paid for support.

So pleaes don't blame people here like this and calm down. ;-)
[/offtopic]

Try Bofo's hints because he is very experienced in coding.

Cheers,

Hades-1 11-24-2004 01:11 PM

Quote:

Originally Posted by Pseudomizer
Hello Hades,

[offtopic]
these are not nice words. If you would have read the thread you should have seen that the checkbox "supported" is NOT checked. If you install a hack where the author didn't check this box, you should not expect that people will run to help you. All people here are not paid for support.

So pleaes don't blame people here like this and calm down. ;-)
[/offtopic]

Try Bofo's hints because he is very experienced in coding.

Cheers,

yeah i know and i did not mean the author.

it seems like people post a problem but it get burried by other people who dont even to read to see if its the same as theirs and they dont care, they dont care if you die they just want their album to work and i hate that.

ecarabin 11-24-2004 04:08 PM

* Thank you Boofo ! now it works fine !
Merci beaucoup :-)

* Hades I did read all posts of this topic before posting.
Not answering you didn't mean I didn't care about your problem.
If I could have helped you ... I would have done it !
but I really don't know what to do !!
I even find my question stupid now that I see it was so easy ... :-(

So even if I go to hell, I wish someone could help you.

bye.


All times are GMT. The time now is 02:23 PM.

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.01396 seconds
  • Memory Usage 1,783KB
  • 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
  • (4)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
  • (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