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)

deta 01-26-2005 04:37 AM

Quote:

Originally Posted by KirbyDE
In album.php FIND (2 instances)
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user USING (userid

REPLACE that with
PHP Code:

LEFT JOIN ".TABLE_PREFIX."user AS user USING (userid

FIND
PHP Code:

FROM ".TABLE_PREFIX."customprofilepic 

REPLACE that with
PHP Code:

FROM ".TABLE_PREFIX."customprofilepic AS customprofilepic 

FIND
PHP Code:

LEFT JOIN ".TABLE_PREFIX."usertextfield 

REPLACE that with
PHP Code:

LEFT JOIN ".TABLE_PREFIX."usertextfield AS usertextfield 

FIND
PHP Code:

FROM ".TABLE_PREFIX."user 

REPLACE that with
PHP Code:

FROM ".TABLE_PREFIX."user AS user 

This should take care of table prefixes.

Hello

Now I changed in such a way, but now I get one mysql errors.
Before I still "AS user" an "AS.." attached hattte was not the error.
Only the pictures were not indicated.
Neither in the Admincp nor in the album

Ungueltige SQL-Abfrage:
SELECT vb3_user.userid, dateline, comment, vb3_user.username, vb3_user.usertitle, vb3_user.joindate, vb3_user.usergroupid
FROM vb3_customprofilepic AS customprofilepic
LEFT JOIN vb3_user AS user USING (userid)
WHERE visible=1

ORDER BY posts desc
LIMIT 0, 18

mysql error: Unknown table 'vb3_user' in field list

mysql error number: 1109

The tables are called with me all vb3 _ and are also present. Also the vb3 _ table.

cu Deta

bbwlva 01-26-2005 07:40 AM

Now I get this error in the albumcp

Quote:

Database error in vBulletin 3.0.6:

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

mysql error: Unknown table 'customprofilepic'

mysql error number: 1051

Date: Wednesday 26th of January 2005 02:39:33 AM
Script: http://forums/admincp/albumcp.php
Referer: http://forums/admincp/index.php?do=nav
Username: bbwlva
IP Address:

eblivion 01-26-2005 11:17 PM

Quote:

Originally Posted by bbwlva
Now I get this error in the albumcp

See: https://vborg.vbsupport.ru/showpost....&postcount=433

bbwlva 01-27-2005 02:23 AM

Quote:

Originally Posted by eblivion

Now I get a parse error instead. :[

Also images arent even showing on the album.

deta 01-27-2005 04:58 AM

Hello,

after which I tinkered much and it does not go yet with the pictures,
now times the question.
I have the version 3.0.5 Vbulletin to to run.
What exact do I have to make in this version, which the pictures are indicated with me?
I have the GD2 on the Webserver.

At present I only one X get in the Gallerie indicated.

cu Deta

eblivion 01-27-2005 03:54 PM

PLEASE HELP!!!!!

I still cannot get the thumbnail images to display in the album or admincp, even though the profile pics display correctly.

I have GD2+ installed & enabled.

Do I have to enable attachment thumbnails in posts for the album to work?

If so, is there another way to get it to work because I want the regular sized pics in the posts, not thumbnails?

deta 01-27-2005 05:44 PM

Quote:

Originally Posted by eblivion
PLEASE HELP!!!!!

I still cannot get the thumbnail images to display in the album or admincp, even though the profile pics display correctly.

I have GD2+ installed & enabled.

Do I have to enable attachment thumbnails in posts for the album to work?

If so, is there another way to get it to work because I want the regular sized pics in the posts, not thumbnails?


Hello I Fond the problem.
Look hier: https://vborg.vbsupport.ru/showpost....&postcount=432

You must install all Files, an alle Patches... inkl. Templates..

:-)

cu Deta

eblivion 01-27-2005 08:12 PM

Quote:

Originally Posted by deta
Hello I Fond the problem.
Look hier: https://vborg.vbsupport.ru/showpost....&postcount=432

You must install all Files, an alle Patches... inkl. Templates..

:-)

cu Deta


Thanks. I still couldn't get the images to load after redoing it. Ijustended up displaying the actual profile picture instead of thethumbnail by changing type=pthumb to type=profile in albumcp.php and the album_image_list template.

MustangLisa 02-07-2005 04:09 PM

Thanks, this is great. Everything installed fine, but the profile pics display as red X 's. How can I fix this? Thanks.

MissKalunji 02-07-2005 08:24 PM

Quote:

Originally Posted by MustangLisa
Thanks, this is great. Everything installed fine, but the profile pics display as red X 's. How can I fix this? Thanks.


theres a fix for that browse the msg board...theres a thread about it

Megareus Rex 02-08-2005 12:59 AM

Quote:

Originally Posted by MissKalunji
theres a fix for that browse the msg board...theres a thread about it

What message board, where? I just installed this and I'm having the same problem.

EDIT: Oh, nvm, I went one page back in this thread and it had a link to a post with all the info required. It works fine now.

MissKalunji 02-08-2005 03:23 AM

Quote:

Originally Posted by Megareus Rex
What message board, where? I just installed this and I'm having the same problem.

EDIT: Oh, nvm, I went one page back in this thread and it had a link to a post with all the info required. It works fine now.


good 2 go :nervous:

computer1 02-13-2005 05:44 AM

I have tray to install this to v 3.0.6 but I dont nowe howe I can Create a new template can some one help me ??

Pseudomizer 02-13-2005 10:11 AM

Quote:

Originally Posted by computer1
I have tray to install this to v 3.0.6 but I dont nowe howe I can Create a new template can some one help me ??

RTFM = Read the f. manual. http://www.vbulletin.com

Cheers,

VMV 02-20-2005 02:32 PM

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT user.userid, dateline,
comment, user.username, user.usertitle,
user.joindate, user.usergroupid
FROM vb_customprofilepic
LEFT JOIN vb_user USING (userid)
WHERE visible=1

ORDER BY posts desc
LIMIT 0, 20

mysql error: Unknown table 'user' in field list

mysql error number: 1109

Date: Sunday 20th of February 2005 07:39:13 PM
Script: http://10.0.20.65/VB/album.php

TomerK 03-03-2005 04:06 PM

This Mod Work on 3.0.7 to?

MissKalunji 03-03-2005 04:21 PM

Quote:

Originally Posted by TomerK
This Mod Work on 3.0.7 to?


yeah it does...even better ...

venomx 03-03-2005 11:00 PM

I got it to work in 3.0.7 but for some reason the images never show in the admincp when going to approve them....

psico 03-22-2005 09:32 AM

Quote:

Originally Posted by venomx
I got it to work in 3.0.7 but for some reason the images never show in the admincp when going to approve them....

I have the same problem, and in the profile the image is broken too...

Pseudomizer 03-28-2005 11:09 AM

Hello guys,

if I would like to add a short image next to each member name who has uploaded a profile pic in the showthread view, how would you implement something like this?

My understanding would be that it would do a query for each user to check if the blob data is in the DB and it would react upon the answer. This is fine if you would use this way of checking the DB for one pic but if you are viewing a thread with many postings of many users, this could kill your database performance.

Someone any idea how I could achieve this without killing my board?

Thanks in advance.

Cheers,

venomx 03-28-2005 01:09 PM

There is a hack for that right here on vb.org

LambHyjoo 04-02-2005 03:42 PM

edit : problem is solved !

ianskate 04-07-2005 03:33 AM

When it's confirmed that this works with 0.7 I am so installing this!

MissKalunji 04-07-2005 11:07 AM

Quote:

Originally Posted by venomx
There is a hack for that right here on vb.org

Do you knwo how its named?

osariase 04-08-2005 11:48 PM

Hi,
I love this hack especially when my users are looking for place to display their pictures to their friends and admirers after installing i get this error message when i click on verify pictures i get this error message below:

Database error in vBulletin 3.0.7:

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

mysql error: Unknown table 'customprofilepic'

mysql error number: 1051

Can someone please help me fix this problem I will really appreciate it

thanks alot

Marco van Herwaarden 04-09-2005 05:57 AM

Change the line:
PHP Code:

FROM " . TABLE_PREFIX . "customprofilepic 
LEFT JOIN 
" . TABLE_PREFIX . "user 

to:
PHP Code:

FROM " . TABLE_PREFIX . "customprofilepic AS customprofilepic
LEFT JOIN 
" . TABLE_PREFIX . "user AS user 


osariase 04-11-2005 10:44 PM

Hi Marco,
after doing what you told me to do I think it fixed it but I cant see pictures on the admin cp and there is no link to the photo album. Do you think there is something I missed? Please advise

thanks for your help

Marco van Herwaarden 04-12-2005 03:19 AM

Just double check the instructions, or wait for the help of the coder.

Sorry i don't have this hack installed myself, so a bit difficult to help you more.

osariase 04-12-2005 05:12 PM

Hi VeloCD,
I have a problem with this hack, the problems keep shifting. I have installed and reinstalled this hack and I was able to see the admincp controls but I only have two options there, 1 is options and the 2nd one is verify pictures. I don't see anything else. When I click on the album link on the navbar i get an error message, please click below to see error message:

http://www.naijaworld.com/album.php


I would really appreciate it if you could help me, everybody seems to have it working except for me.

thanks

osariase 04-16-2005 04:49 PM

Hi all,
anyone here that have used this hack on vb3 successfully, please send me instructions on how to get this thing setup. I will really appreciate it, since he owner of the hack has suspended all support for the hack.

Anyone who think they can help me this hack please contact me at ozinetdot@yahoo.com

I get this error message whenever i try to run the queries requested in step #33, below is the error message

Error
SQL-query:

ALTER TABLE `customprofilepic` DROP PRIMARY KEY
MySQL said:

#1146 - Table 'naijawor_testvbdb.customprofilepic' doesn't exist



I have been getting this error message and I don't know what to do with it. If I am understanding this currectly it is saying customprofilepic doesn't exist which is true, but I do have something else

vb3_customprofilepic.

I am not sure if I should edit the query to match what I already have anyone please help thanks

I will appreciate it

Marco van Herwaarden 04-17-2005 05:25 AM

Seems you are using a table prefix and the hack script on't support that here. Edit the file and put your table prefix in fron of the table names.

boeserwolf 04-17-2005 12:01 PM

Does this hack work with the 3.07 too.

Not found a suitable answer here

yours

Markus

MichaelJM13k 05-06-2005 04:46 AM

Every time i try to install this hack i get an error:
Quote:

Warning: Division by zero in /album.php on line 142
Warning: Division by zero in /includes/functions.php on line 1861

There seems to have been a slight problem with the xbimpulse.com forums database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT user.userid, dateline,
comment, user.username, user.usertitle,
user.joindate, user.usergroupid
FROM customprofilepic
LEFT JOIN user USING (userid)
WHERE visible=1

ORDER BY posts desc
LIMIT 0,

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9

mysql error number: 1064

Date: Friday 06th of May 2005 12:38:22 AM
Script: http://www.xbimpulse.com/forums/album.php
Referer: http://www.xbimpulse.com/
Username: MY USERNAME
IP Address: MY IP

Could you help me please? :surprised:

blueuniverse 05-06-2005 02:30 PM

Funnily enough, I get exactly the same error. I'd appreciate any help you could give us.

blueuniverse 05-10-2005 06:03 AM

Can somebody help me reverse the queries. To be honest, I've spent ages on this, installing all the fixes and I still get the same errors. :S

The initial queries are

Quote:

ALTER TABLE `customprofilepic` ADD thumbnaildata mediumtext NOT NULL AFTER profilepicdata;
ALTER TABLE `customprofilepic` ADD comment varchar(255) NOT NULL AFTER filename;
ALTER TABLE `customprofilepic` ADD disapproved smallint(5) not null default'0';
ALTER TABLE `customprofilepic` ADD reason varchar(100) not null;
ALTER TABLE `usertextfield` ADD sigdateline int(10) unsigned NOT NULL default '0';

ALTER TABLE `customprofilepic` DROP PRIMARY KEY;
ALTER TABLE `customprofilepic` ADD picture_id int(10) unsigned NOT NULL default '0' AUTO_INCREMENT PRIMARY KEY AFTER userid;

INSERT INTO `settinggroup` (`grouptitle`, `displayorder`, `volatile`) VALUES ('vb3album', 968, 0);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('album_perpage', 'vb3album', '18', '18', '', 10, 0, 0);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('album_pertr', 'vb3album', '3', '3', '', 20, 0, 0);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('album_approval', 'vb3album', '0', '0', 'yesno', 30, 0, 0);
INSERT INTO `setting` (`varname`, `grouptitle`, `value`, `defaultvalue`, `optioncode`, `displayorder`, `advanced`, `volatile`) VALUES ('album_exempt', 'vb3album', '6,7,5', '6, 7, 5', '', 40, 0, 0);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9231, 0, 'settinggroup_vb3album', 'vB3 Member Album', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9232, 0, 'setting_album_perpage_title', 'Entries Per Page', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9233, 0, 'setting_album_perpage_desc', 'Specify how many entries will show for each page.', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9234, 0, 'setting_album_pertr_title', 'Entries Per Row', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9235, 0, 'setting_album_pertr_desc', 'Specify how many entries will show for each row.', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9236, 0, 'setting_album_approval_title', 'Require Approval', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9237, 0, 'setting_album_approval_desc', 'If selected, pictures will have to be approved via the AdminCP before visible by the public.', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9238, 0, 'setting_album_exempt_title', 'Exempted Usergroups', 5000);
INSERT INTO `phrase` (`phraseid`, `languageid`, `varname`, `text`, `phrasetypeid`) VALUES (9239, 0, 'setting_album_exempt_desc', 'If you have approval enabled, but would like specific usergroups to be exempt from it, then <u>in a comma separated list</u>, specify those usergroup IDs.', 5000);

MichaelJM13k 05-11-2005 12:11 AM

Yeah, this hack sucks.
We need support!

dsboyce8624 05-11-2005 01:27 PM

Velocd hasn't posted since last year, I doubt he'll be helping. Maybe sombody else could pickup the slack. I would love to use this, but I'm too noob-ish to do it without the chance of help.

Dennis

dsboyce8624 05-11-2005 04:10 PM

Quote:

Originally Posted by MichaelJM13k
Yeah, this hack sucks.
We need support!

Yeah, there's a good way to get help.

dsboyce8624 05-11-2005 11:31 PM

Okay, I muddled through this. Of course I installed before I found there were fixes throughout the thread.

I found this link:

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

Which a mod should put up top and maybe replace the file to save some of us a bit of work.

I poked through the new file and if memory serves I found one difference which I edited in. Then I replaced the files.

I also noticed that if you paste all of the SQL lines in at once it errors, that's because they have CR/LF crap at the end of each line. Do them individually.

The only one I couldn't get was:

ALTER TABLE `customprofilepic` ADD picture_id int(10) unsigned NOT NULL default '0' AUTO_INCREMENT PRIMARY KEY AFTER userid;

Which (prolly screwed myself somehow) I removed "AUTO_INCREMENT PRIMARY KEY AFTER userid" from and it took. If somebody has a better way please post it. Or a way to fix what my change screwed up.

The only problem I have now is that my thumb nails aren't working. I clicked the rebuild and got the attached pic.

If you intend to install this please follow the link above first.

Now, suggestions on fixing my thumbs please?

EDIT: Actually, if somebody who does and somebody who doesn't have this installed could screen shot me the above mentioned table from MSQLAdmin I'd appreciate it.

EDIT: Okay, I created a test user and his thumb works. This one I don't understand.

EDIT: Okay, now I feel really stupid. After closing all windows everything works fine.

Go figure.

Marco van Herwaarden 05-12-2005 08:30 AM

You should have left the AUTO_INCREMENT in that statement, only remove the default value there.


All times are GMT. The time now is 09:42 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.01912 seconds
  • Memory Usage 1,861KB
  • 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
  • (10)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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