26

Re: OLD TOPIC TO DELETE

I have followed the instructions and everything in this topic the best I could, but I still get the "DB gallery" error. Does anyone know why?

I have created the MySQL table, but I don't have my boared installed to "pun_x" I have it installed to "punbb_x" (so I just renamed "pun_gallery" to "punbb_gallery"). Then I searched gallery.php for "pun_gallery" and just renamed it, but this still didn't fix the problem.

27 (edited by Apupv 2005-04-29 06:42)

Re: OLD TOPIC TO DELETE

Well, you didn't have to change pun_gallery to punbb_gallery.
But it's donne.

There is another table to rename :

Line 256

$gal_result = $db->query('SELECT gal.*, user.username AS username FROM pun_gallery AS gal, pun_users AS user WHERE gal.user_id = user.id ORDER BY gal.date_ajout DESC LIMIT '.$start_from.', '.$nb_images.'') or error('DB gallery', __FILE__, __LINE__, $db->error());

now replace with this


$gal_result = $db->query('SELECT gal.*, user.username AS username FROM punbb_gallery AS gal, punbb_users AS user WHERE gal.user_id = user.id ORDER BY gal.date_ajout DESC LIMIT '.$start_from.', '.$nb_images.'') or error('DB gallery', __FILE__, __LINE__, $db->error());

I think this would fix it.

Re: OLD TOPIC TO DELETE

you must find all pun_gallery and change with punbb_gallery

El Mejor Lugar de la Red - Corporación Azakur4

29

Re: OLD TOPIC TO DELETE

I have done both those things, and still no luck hmm

30

Re: OLD TOPIC TO DELETE

Well...
May i recommend you to re-install all the file and the Sql Table, without changing the prefix, and only do the modification at line 256 ?

Re: OLD TOPIC TO DELETE

Someone wants to translate it to english? smile

Re: OLD TOPIC TO DELETE

A friend have made a traduction, can you make correction of some mistake ?

<?php

// Language definitions used in gallery.php
$lang_gallery = array(

// Navigation and sections
'Page Title'            =>    'Gallery',
'Error Annonce'            =>    'ERROR :',
'Navigation'            =>    'Navigation:',
'Page Desc Up'            =>    'Send a image',
'Page Desc Gal'            =>    'Every images sent by members',
'Title Form'            =>  'Title:',
'Desc Form'            =>  'Description:',
'Img Form'            =>  'Your image:',
'Button Up'            =>  'Download',
'Add Time'            =>  'Sent the:',
'Add By'            =>  'By:',
'Add image'            =>  '[Add an image]',
'Moderation'            =>  '[Mod images]',
'Modo_del'            =>  '[Delete image]',

// Miscellaneous
'Upload Ok'            =>  'Your image has been correctly sent.',
'Post Title'            =>  'Post an image in the gallery',
'Image Info'            =>  'Type details of the image',
'Image Use'            =>  '<strong>Use:</strong><br />The form below allows you to send an image into the site\'s gallery.Image must be on GIF or JPG form, with maximum size of <MAX_SIZE>. Don\'t forget to add a title and a little image\'s description',
'Image Regle'            =>  '<strong>Caution:</strong><br />Website\'s team takes the right to delete your image without notice. Each image not conform to website\'s conditions of use will be deleted. Each abuse will immediatly be punished.',
'Image Desc'            =>  '(Write a short description of your image)',
'Del Ok'                =>    'Image has been successfully deleted.',

// Error
'Error Guest'                =>    'Only website\'s members can add images in the gallery.',
'Error Title'                =>    'You haven\'t give your image any title.',
'Error Description'                =>    'You haven\'t give your image any description.',
'Error Too large ini'                =>    'File too large. Servor refuses download.',
'Error Too large'                =>    'File\'s size exceeds the maximum allowed;',
'Error Partial upload'                =>    'File partially downloaded. Try again.',
'Error No file'                =>    'you didn\'t select any file to download.',
'Error No tmp directory'                =>    'PHP couldn\'t save the file sent in a temporary repertory.',
'Error No good file'                =>    'File\'s type not authorized. Allowed types are GIF or JPG.',
'Error Move failed'                =>    'Servor couldn\'t save downloaded file. Contact the admin.',
'Error Visu failed'                =>    'Label\'s creation has failed.',
'Error Unknown failure'                =>    'Unknown error.Try again.',
'Error Del'                =>    'ERROR: Deleting of image has failed.',
'Error FTP connect'                =>    'FTP connexion has failed please try again later!',
'Error FTP Up 1'                =>    'FTP\'s loading of image has failed please try again later !',
'Error FTP Up 2'                =>    'FTP Loading of miniature image has failed please try again later !',
'Error FTP Del 1'                =>    'FTP deleting image has failed !',
'Error FTP Del 2'                =>    'FTP deleting of miniature image has failed !',

);

33 (edited by Crissipos 2005-04-29 20:58)

Re: OLD TOPIC TO DELETE

This is the corrected english language file...
And I suggest to use a file 'install_mod.php' and to adjust the file 'gallery.php' a bit so people can use the prefix they want for that sql-table
If you need it I can give you some help with it

(The script isn't working when I try it wink -> DB error)

<?php

// Language definitions used in gallery.php
$lang_gallery = array(

// Navigation and sections
'Page Title'            =>    'Gallery',
'Error Annonce'            =>    'Error:',
'Navigation'            =>    'Navigation:',
'Page Desc Up'            =>    'Send an image',
'Page Desc Gal'            =>    'Every images sent by members',
'Title Form'            =>  'Title:',
'Desc Form'            =>  'Description:',
'Img Form'            =>  'Your image:',
'Button Up'            =>  'Download',
'Add Time'            =>  'Sent at:',
'Add By'            =>  'by:',
'Add image'            =>  '[Add an image]',
'Moderation'            =>  '[Mod images]',
'Modo_del'            =>  '[Delete image]',

// Miscellaneous
'Upload Ok'            =>  'Your image has been correctly sent.',
'Post Title'            =>  'Post an image in the gallery',
'Image Info'            =>  'Type details of the image',
'Image Use'            =>  '<strong>Use:</strong><br />The form below allows you to send an image into the site\'s gallery. The extension must be GIF or JPG, with a maximum size of <MAX_SIZE>. Don\'t forget to add a title and a little description',
'Image Regle'            =>  '<strong>Caution:</strong><br />The admin has the right to delete your image without notice.',
'Image Desc'            =>  '(Write a short description of your image)',
'Del Ok'                =>    'Image has been successfully deleted.',

// Error
'Error Guest'                =>    'Only members can add images in the gallery.',
'Error Title'                =>    'You have to fill in the title.',
'Error Description'                =>    'You have to fill in a description.',
'Error Too large ini'                =>    'File too large. Server refuses download.',
'Error Too large'                =>    'File\'s size exceeds the maximum allowed.',
'Error Partial upload'                =>    'File partially downloaded. Try again.',
'Error No file'                =>    'You didn\'t select any file to download.',
'Error No tmp directory'                =>    'PHP couldn\'t save the file in a temporary directory.',
'Error No good file'                =>    'The type of the file isn\'t allowed. (Only GIF & JPG)',
'Error Move failed'                =>    'Server couldn\'t save downloaded file. Contact the admin.',
'Error Visu failed'                =>    'Label\'s creation has failed.',
'Error Unknown failure'                =>    'Unknown error. Try again.',
'Error Del'                =>    'Deleting of image has failed.',
'Error FTP connect'                =>    'FTP connection has failed. Please try again later!',
);

Re: OLD TOPIC TO DELETE

Damn, you beat me to it! XD

No comment system? Piffle.

I don't HAVE a signature, ok?

35 (edited by mdfh 2005-05-01 17:51)

Re: OLD TOPIC TO DELETE

there are wrong messages as following, what's wrong?

Notice: Undefined variable: PHP_SELF in /home/nlhs/public_html/gallery.php on line 210
Notice: Undefined index: Add Picture in /home/nlhs/public_html/gallery.php on line 244- [Mod images]
Notice: Undefined variable: PHP_SELF in /home/nlhs/public_html/gallery.php on line 262

### I found the solution to this error by google smile

every PHP_SELF should be changed to $_SERVER['PHP_SELF']
then everything's ok
(and ./img/gallery should be chmoded to 777 not 666)

Re: OLD TOPIC TO DELETE

Has anyone besides jojo gotten this to work?

Re: OLD TOPIC TO DELETE

http://www.hoursafter.net

i had to make some changes for it to work.

Re: OLD TOPIC TO DELETE

and.. what were the changes??

39

Re: OLD TOPIC TO DELETE

I got this to work, and i had to edit the prefix at line 256.
That's all smile

40

Re: OLD TOPIC TO DELETE

Salut, moi j'utilise le PBB FTPGallery, et sous linux j'ai cette erreur:

ERREUR : Vous n'avez pas sélectionné de fichier à télécharger.

Lorsque l'envoie l'image.
Navigateur utilisé: firefox

Hello, i'm using PBB FTPGallery and have one error under linux:

ERREUR : Vous n'avez pas sélectionné de fichier à télécharger.

On sending the picture.
Used browser: firefox

Re: OLD TOPIC TO DELETE

I have tried to install it as-is, and (after some tweaking) I still get this error:

 Error: Unable to fetch gallery list count.

I have kept all the settings on default, and only changed the table name to not include the pun_ prefix. (My PunBB installation does not use the pun_ prefix either.)

What does this error mean? (Well, I know what it means, but what does it mean?

Thanks,

-Tim

Re: OLD TOPIC TO DELETE

I've gone throught he gallery.php file, and replaced all instances of pun_gallery (or punbb_gallery, because of the fix) with just gallery.

Now, I get this error:

 Error: DB gallery.

I would really love to use this mod, I've needed something like a gallery for a long time now. smile

-Tim

43

Re: OLD TOPIC TO DELETE

Hi.

I have a weird problem with this mod : the configuration is correct, the pictures arrive acurately on the gallery folder on my ftp... but the site answers me (when I click on "Send") :

Warning: ftp_put(): Could not create file. in /home.1/w/i/i/wiiplay/www/forums/gallery_post.php on line 287

Warning: ftp_put(): Could not create file. in /home.1/w/i/i/wiiplay/www/forums/gallery_post.php on line 288

...and the picture is not posted.


Help, please wink

44

Re: OLD TOPIC TO DELETE

ok pep's here is my moded gallery
http://www.nalan.org/uploaded/PBB_Gallery2_mod.rar
over right anyfiles....
well make a backup copy of your mysql.php in the include/dblayer folder rename it to mysql_old.php
it works fine on http://nalan.org/gallery.php
do it at ya own risk!
Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

45

Re: OLD TOPIC TO DELETE

Hum.. Quaker, your answer doesn't help me...

Re: OLD TOPIC TO DELETE

succubiss wrote:

http://www.hoursafter.net

i had to make some changes for it to work.

Got this following error when i chekd your site

URL : http://www.hoursafter.net/message.php?msg=907

"Message : Plug-in not loaded (#907)
An error occured while attempting to load this plug-in, file(s) missing ?"

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily