OLD TOPIC TO DELETE

hum... have create the sql table named pun_gallery ? in your mysql db ?

if yes, test it : http://theiron-curtain.com/forum/gallery.php?info=new

Edit : I have read your post about the 1.0.

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.)

Don't change the name of pun_gallery. If you made it, rename all the sql pun_gallery référence in gallery.php with the new name.

Thanks for this bug, it is just a confusion beetween this mod and PBB FTP Gallery. I have make the correction. The file was update.

The demo is not good for the xhtml validation because i made some modification of my forum. But i know this mod is not valide for w3c. But i have test it on Firefox and IE (For me it's ok) so... ^^.

If somebody wants to recode this mod with xhtml validation, he can big_smile

##
##
##        Mod title:  Poki BB Gallery
##
##      Mod version:  1.1
##   Works on PunBB:  1.2.*
##     Release date:  2005-05-29
##           Author:  Pokemon_JOJO - pokemonjojo@fr.st
##
##      Description:  Add a very simple Gallery in punbb
##                    Support Multi Languages
##                    Support Multi Skins
##
##   Affected files:  none
##
##       Affects DB:  Yes
##
##            Notes:  No
##
##     Update Notes:  Upload/Replace gallery.php
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Demo :  http://www.roseon-fr.com/forums/mod_galerie.php

Some corrections since 1.0 version :

Bug fix :

- mysql table prefixe.
- tootip positionnement
- multi-page modération
- Firefox Upload Bug
- PHP_SELF variable error

Amelioration

- More symply
- More configuration for tooltip and gallery
- English language file added (thx to Originalcastor & shinko_metsuo)
- Spain language file added (thx to Azakur4)

Download : http://www.punres.org/desc.php?pid=70

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 !',

);

lol oki but tomrrow it's ok ^^

And can you make the traduction for PBB FTP Gallery

It's the same langage file but with 4~5 ligne in more (for the FTP error)

Thank for all

Hum ok,

just for the moment, you can fixe the bug at line 297 of gallery.php

edit :

width:260px; margin: 140px -57px;

by

width:200px; margin: 140px -27px;

It's a tempory solution, i fixe this bug tomorrow.


Azakur4 Can i have the traduction you have made for your forum please ?

Another little bug fixe :

at ligne 253

Replace :

function LiveScroll(id_div) {
    if (id_div != '') action_div(id_div);
}

by

function LiveScroll(id_div) {
    if (id_div != '') action_div(id_div);
}

function action_div(id_div) {
    var item = null;
    if (document.getElementById) {
        item = document.getElementById(id_div);
    } else if (document.all){
        item = document.all[id_div];
    } else if (document.layers){
        item = document.layers[id_div];
    }
    
    if (!item) { // rien à faire
    } else if (item.style) {
        if (item.style.display == "none") {
            item.style.display = "";
        } else {
            item.style.display = "none";
        }
    } else {
        item.visibility = "show";
    }
}

The download file was update.

wink

Another little bug fixe :

at ligne 217

Replace :

function LiveScroll(id_div) {
    if (id_div != '') action_div(id_div);
}

by

function LiveScroll(id_div) {
    if (id_div != '') action_div(id_div);
}

function action_div(id_div) {
    var item = null;
    if (document.getElementById) {
        item = document.getElementById(id_div);
    } else if (document.all){
        item = document.all[id_div];
    } else if (document.layers){
        item = document.layers[id_div];
    }
    
    if (!item) { // rien à faire
    } else if (item.style) {
        if (item.style.display == "none") {
            item.style.display = "";
        } else {
            item.style.display = "none";
        }
    } else {
        item.visibility = "show";
    }
}

The download file was update.

Ok thx, it's a prefixe problème ! Have you got a solution for this script work for all people (with and without prefixe ?)

ok déjà je pense que free ne suporte pas le transfert de ftp. Essaye avec le script PBB Gallery tout cours et non PBB FTP gallery

Comme ca si déjà on arrive a faire marcher celui la on verra après pour l'autre

Essaye d'ajouter une image par ce lien : http://upvphoto.free.fr/forum/gallery.php?info=new

Edit: As tu bien une table nomée pun_gallery sur phpmyadmin ? (celui de free.fr)

Hum précise plus stp, (Message d'erreur exacte, a quel moment, quel url, etc etc...)
Et si tu avait un lien que je puisse tester

merci
wink

OLD TOPIC TO DELETE

Ta créer la Table avec le fichier sql ?

Have you create the Table with the file sql?

Oups, little correction i have forget to include javascrip ^^

Sorry for the 3 users who have download the archive.

OLD TOPIC TO DELETE

lol, the refresh button and this fuc... navigator called IE ^^

Nice remix of my mod ^^

good job

wink

Replace :

      $parloir = '<a href="profile.php?id='.$pun_user['id'].'"><strong>'.pun_htmlspecialchars($pun_user['username']).'</strong></a> - '.format_time(time())."\n".'<br />'."\n".parse_message($_POST['message'], $hide_smilies)."\n".'<br />'."\n".'<br />'."\n".$parloir;

by


      $parloir = '<a href="profile.php?id='.$pun_user['id'].'"><strong>'.pun_htmlspecialchars($pun_user['username']).'</strong></a> - '.format_time(time())."\n".'<br />'."\n".parse_message($_POST['message'], $hide_smilies)."\n".'<br />'."\n".$parloir;
buzzkill wrote:

I think its the box titled "Le parloir" on the main page.

Yes it is wink

OLD TOPIC TO DELETE

75

(10 replies, posted in Archive)

bah déjà ca te dit que ta un blème à la ligne 1429 du fichier profile.php

Perso moi g ca a cette ligne la si ca peu t'aide :

                            <p><?php echo $lang_prof_reg['E-mail setting info'] ?></p>