![]() |
SQL help....
alright....i posted this somewhere else, but now i realize it should have gone in here.....sorry, I'm new at this and just learning my way around here.....
I installed the "Member Photo Gallery" hack and to post member's photos you have to run an SQL query: INSERT INTO photogallery VALUES (xxx, 'full-photo-URL', 'thumb-photo-URL', ''); xxx is replaced by the user id of the member..... what query would you run to change a member's picture or delete it from the table? When I try to put in a different photo, this is what I get... Code:
Database error in vBulletin Control Panel 2.2.9: |
I don't know what that table looks like, but try
PHP Code:
|
I would uninstall that hack and install mine, just being it is far more convienant. ;)
(no running queries each time if you want to add a photo) https://vborg.vbsupport.ru/showthrea...threadid=49565 |
i would suggest using Velocd's as well even though i haven't seen the code i can assure that its more proficient.
As for your sql error its because there's already a value for the 5th user. in that case you have two options... you can either update the query or you can deleted the column and then reinsert it... i don't know the specifications but if you can give me the table layout i can help you with the queries. but i would go with the third option and use Velocd's hack... regards, g-force2k2 |
here's the query i ran to setup the table...
Code:
CREATE TABLE photogallery ( |
hey k thanks for the info give me a minute and i'll create a file for you to use in combination with the hack...
regards, g-force2k2 |
1 Attachment(s)
don't know if it will be a 100% efficient but i tested it on my localhost and no parse errors were returned...
as for its functionality let me know if i have to fix anything :) upload file to admin folder and then call the file by yourforumurl/admin/photoadmin.php regards, g-force2k2 |
working like a dream! thanks alot man!!!!
|
All times are GMT. The time now is 10:04 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|