Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kundera

Pages: [1] 2 3
1
Mods & Plugins (Requests & Discussions) / frameset in admin panel
« on: June 23, 2003, 05:15:32 PM »
hello all, i have just a quick question
I work on a pluggin and want to know what's the link to refresh all the framset in the admin panel

We have in the top of admin/index.php files the following code

Code: [Select]
frameset rows="85,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0" >
    <frame src="<?php echo $site_sess->url&#40;"index.php?action=head"&#41;; ?>" name="head" scrolling="NO" NORESIZE frameborder="0" marginwidth="0" marginheight="0" border="no">
    <frameset cols="230,*"  framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
      <frame src="<?php echo $site_sess->url&#40;"index.php?action=nav"&#41;; ?>" name="nav" scrolling="auto" NORESIZE frameborder="0" marginwidth="0" marginheight="0" border="no">
      <frame src="<?php echo $framesrc ?>" name="main" scrolling="auto" NORESIZE frameborder="0" marginwidth="20" marginheight="20" border="no">
    </frameset>


so it's easy to load with a link main framset, head frameset or  nav framset, but how can i do to reload the 3 in the same time?

Thanks :-)

2
Hello all
So this is a message for lionel who want to now if it's possible to have a alternative rating mode for pictures.
He has some problemes with member who give lot of few note for some of pics, that's why he want's to kows if it's possible to do :

 :arrow: a rating systeme wich appears in comentary, for knowing who give the rate and wich rate he gives?
like this
http://digitalart.org/artwork.php?ID=23633

Thanks a lot for him, and why he is french, you can give the response in english, i can so translate for him :-)

3
Mods & Plugins (Releases & Support) / hello
« on: May 26, 2003, 08:32:59 PM »
:!: all the mod is not finish to convert in english, but come soon
 :!: There is the news files to be easiest for all to work at it

so i have work for convert the mod in english version
for the moment, need to check and to finish to traduce, but the sql table, the name of files, and some bug are replace.

you can find here.
This version will be finish tomorow, but if somebody want help mee to correct all the bug, i will be happy lol)

so this is the package with the installation file :
Tell me if you find another bug

http://www.adcity.fr/4images/shop_update.zip

4
Mods & Plugins (Requests & Discussions) / [mod] Zapping
« on: May 26, 2003, 05:08:14 PM »
:idea:  It's just an idea, but maybe it will be usefull
It will be interesting to have a zapping section, where you can view in little view lot of pics, for getting easiest pics
(wich paging, random printed pics, or maybe for an additional mod in search page/ memberlist part)
Usefull for website with lot of pics

that's an example
http://www.adcity.fr/4images/test.jpg

5
Mods & Plugins (Releases & Support) / saluté
« on: May 23, 2003, 12:05:48 PM »
salut toto, bon si jamais on peut se repartir le boulot pour la traduction, histoir que ca aille plus vite :-)

So i think there is another miss code, i didn't find the code for adding/deleting image to cart.(or maybee bad link) (in thumbail page and detail page)
So can't see if the sytem is runing :-) :wink:

another thinks, maybe for updating the validation of the form, it will be better to use the check system of 4images (like reegister) instead of using a error window?
gona try to do it  :wink:

6
Mods & Plugins (Releases & Support) / so little prob :-)
« on: May 22, 2003, 10:27:21 PM »
not big bug, but if your table prefix isn't "4images_ ", have to change
in the files
Code: [Select]
4images_kunden
by
Code: [Select]
".KUNDEN_TABLE."

(for example in admin/plugins/kundendaten.php
//////////////////////////////////////////////////////////////////////
so that the first part of french translation in lang/french/main.php
 :arrow: before ?>
add :

Code: [Select]
$lang['warenkorb'] = "Votre caddy";
$lang['warenkorb_no_images'] = "Aucun article dans votre caddy.";
$lang['warenkorb_add_success'] = "Article ajouté avec succèst.";
$lang['warenkorb_add_error'] = "Erreur lors de l'ajout de l'article!";
$lang['warenkorb_remove_success'] = "Article ajoutée au panier.";
$lang['warenkorb_remove_error'] = "Article supprimé avec succès!";
$lang['warenkorb_register'] = "Pour activer votre caddy personnel, vous devez vous inscrire <a href=\"{url_register}\">Inscription</a>";
$lang['warenkorb_delete_success'] = "Caddy supprimé avec succès.";
$lang['anzahl_verkleinern_success'] = "L'article a été supprimer du caddy avec succès.";
$lang['warenkorb_delete_error'] = "Erreur lors de la suppression de l'image dans le caddy!";
$lang['delete_warenkorb'] = "Caddy supprimé";
$lang['warenkorb_lastaction'] = "Caddy actualisé :";
$lang['delete_warenkorb_confirm'] = "Voulez vous supprimer ces articles du caddy?";
$lang['warenkorb_leer'] = "Aucun article mémorisé dans le caddy.";
$lang['price_1'] = "Prix:";


gona do the admin, check this one and after do the english version, and continue test :-)

//////////////////update translation files  :!:  :!:  need to check :-)
 :arrow: in templates/{your template}/warenkorb_kunde.html
find :


Code: [Select]
<br><p><br><p>



    <table border=0 cellpadding=2 cellspacing=1 align=center width="100%" class="row3">

    <tr><td colspan="2" align=center><b>Adresse</b><br></td></tr>

    <tr>

      <td align="right" class="row1">Anrede:</td>

      <td class=row2>

      <select class="categoryselect"name="kunde_anrede">

      <option value="Herr" >Herr</option>

      <option value="Frau" >Frau</option>

      <option value="Firma" >Firma</option>

      </select>

      </td>

    </tr>
<table border=0 cellpadding=3 cellspacing=1 align=center width="100%" class="row2">

<tr>

<td>Bestelldaten</td>

<td width=175 align=center>Deine Kundennummer: {kunde_id}</td>

</tr>

</table>
   

    <tr>

      <td align="right" class="row1">Vorname:</td>

      <td class=row2><input class=input type="Text" name="kunde_vorname" size="25" maxlength="30" value="{kunde_vorname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Nachname: *</td>

      <td class=row2><input class=input type="Text" name="kunde_nachname" size="25" maxlength="30" value="{kunde_nachname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Firma:</td>

      <td class=row2><input class=input type="Text" name="kunde_firma" size="25" maxlength="30" value="{kunde_firma}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Strasse&nbsp;+&nbsp;Nr: *</td>

      <td class=row2><input class=input type="Text" name="kunde_str" size="25" maxlength="30" value="{kunde_str}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">PLZ: *</td>

      <td class=row2><input class=input type="Text" name="kunde_plz" size="5" maxlength="5" value="{kunde_plz}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Ort: *</td>

      <td class=row2><input class=input type="Text" name="kunde_ort" size="25" maxlength="30" value="{kunde_ort}"></td>

    </tr>

   



    <tr>

      <td align="right" class="row1">Telefon:</td>

      <td class=row2><input class=input type="Text" name="kunde_telefon" size="25" maxlength="30" value="{kunde_telefon}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Telefax:</td>

      <td class=row2><input class=input type="Text" name="kunde_telefax" size="25" maxlength="30" value="{kunde_telefax}"></td>

    </tr>



    </table>



<br><p>

    <!-- Liefer Adresse -->

    <table border=0 cellpadding=2 cellspacing=1 align="center" width="100%">

    <tr><td colspan="2">Lieferadresse, falls abweichend:</td></tr>

    <tr>

      <td align="right" class="row1">Anrede:</td>

      <td class="row2">

      <select class="categoryselect"name="liefer_anrede">

      <option value="Herr" >Herr</option>

      <option value="Frau" >Frau</option>

      <option value="Firma" >Firma</option>

      </select>

      </td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Vorname:</td>

      <td class=row2><input class=input type="Text" name="liefer_vorname" size="25" maxlength="30" value="{liefer_vorname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Nachname:</td>

      <td class=row2><input class=input type="Text" name="liefer_nachname" size="25" maxlength="30" value="{liefer_nachname}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Firma:</td>

      <td class=row2><input class=input type="Text" name="liefer_firma" size="25" maxlength="30" value="{liefer_firma}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Strasse&nbsp;+&nbsp;Nr: *</td>

      <td class=row2><input class=input type="Text" name="liefer_str" size="25" maxlength="30" value="{liefer_str}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">PLZ:</td>

      <td class=row2><input class=input type="Text" name="liefer_plz" size="5" maxlength="5" value="{liefer_plz}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Ort:</td>

      <td class=row2><input class=input type="Text" name="liefer_ort" size="25" maxlength="30" value="{liefer_ort}"></td>

    </tr>

   

   

    <tr>

      <td align="right" class="row1">Telefon:</td>

      <td class=row2><input class=input type="Text" name="liefer_telefon" size="25" maxlength="30" value="{liefer_telefon}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Telefax:</td>

      <td class=row2><input class=input type="Text" name="liefer_telefax" size="25" maxlength="30" value="{liefer_telefax}"></td>

    </tr>



    </table>

<br><p><br><p>





    <!-- Zahlungsweise -->

    <table border=0 cellpadding=2 cellspacing=1 class=forumline width="60%">

    <tr><td colspan="2" class=topic>Zahlungsweise:</td></tr>

   

    <tr>

      <td align="right" class="row1">Zahlungsart:</td>

      <td class=row2>

      <select class="categoryselect"name="kunde_zahlungsart" >



      <option value="{kunde_zahlungsart}">{kunde_zahlungsart}</option>

      <option value="">- Bitte auswählen -</option>

      <option value="Bankeinzug" >Bankeinzug</option>

      <option value="Vorkasse" >Vorkasse</option>

      <option value="Rechnung" >Rechnung</option>

      </select>

      </td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Bank:</td>

      <td class=row2><input class=input type="Text" name="kunde_bank" size="22" maxlength="30" value="{kunde_bank}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">BLZ:</td>

      <td class=row2><input class=input type="Text" name="kunde_blz" size="22" maxlength="30" value="{kunde_blz}"></td>

    </tr>

   

    <tr>

      <td align="right" class="row1">Konto-Nr.:</td>

      <td class=row2><input class=input type="Text" name="kunde_kontonr" size="22" maxlength="30" value="{kunde_kontonr}"></td>

    </tr>

    </table>





<p>





    <table border=0 cellpadding=3 cellspacing=1 class="forumline" width="60%">

    <tr>

      <td>Bemerkung:</td>

    </tr>

    <tr>

      <td class="row2">Wenn Sie uns etwas mitteilen wollen:<br></td>

    </tr>

    <tr>

      <td class="row1"><textarea class="commenttextarea" name="kunde_bemerkung" rows="10" cols="30" wrap="virtual">{kunde_bemerkung}</textarea></td>

    </tr>

    </table>

   

<p align=left>

<input type="checkbox" name="kunde_conditions" value="checked" >

 Die Allgemeinen <a href="javascript:agbs()">Gesch&auml;ftsbedingungen</a> habe ich gelesen und erkenne sie hiermit an.

</p>

<center>

   <input class="button" type="Submit" name="submit" value="Speichern"><br><br>

</center>


Replace with :
//////////////////////////////////////////////////////////////////////////////////////
Code: [Select]

<table border=0 cellpadding=3 cellspacing=1 align="center" width="100%" >
                                                              <tr>
                                                                <td>{lang_client}</td>
                                                                <td width=175 align="center">{lang_client_number}{kunde_id}</td>
                                                              </tr>
                                                            </table>
                                                            <br>
                                                            <p><br>
                                                            <p>
                                                            <table border=0 cellpadding=2 cellspacing=1 align=center width="100%" class="row3">
                                                              <tr>
                                                                <td colspan="2" align=center><b>{lang_adresse}</b><br></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_kind}</td>
                                                                <td   >
                                                                  <select class="categoryselect"name="kunde_anrede">
                                                                    <option value="Herr" >Herr</option>
                                                                    <option value="Frau" >Frau</option>
                                                                    <option value="Firma" >Firma</option>
                                                                  </select> </td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_name}</td>
                                                                <td   ><input class=input type="Text" name="kunde_vorname" size="25" maxlength="30" value="{kunde_vorname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_forname}</td>
                                                                <td   ><input class=input type="Text" name="kunde_nachname" size="25" maxlength="30" value="{kunde_nachname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_firm}</td>
                                                                <td   ><input class=input type="Text" name="kunde_firma" size="25" maxlength="30" value="{kunde_firma}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_street}</td>
                                                                <td   ><input class=input type="Text" name="kunde_str" size="25" maxlength="30" value="{kunde_str}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_cp}</td>
                                                                <td   ><input class=input type="Text" name="kunde_plz" size="5" maxlength="5" value="{kunde_plz}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_town}</td>
                                                                <td   ><input class=input type="Text" name="kunde_ort" size="25" maxlength="30" value="{kunde_ort}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_phone}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_telefon" size="25" maxlength="30" value="{kunde_telefon}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_fax}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_telefax" size="25" maxlength="30" value="{kunde_telefax}"></td>
                                                              </tr>
                                                            </table>
                                                            <br>
                                                            <p>
                                                              <!-- Liefer Adresse -->
                                                            <table border=0 cellpadding=2 cellspacing=1 align="center" width="100%">
                                                              <tr>
                                                                <td colspan="2">{lang_client_shipping}</td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_firm}:</td>
                                                                <td >
                                                                  <select class="categoryselect"name="liefer_anrede">
                                                                    <option value="Herr" >Herr</option>
                                                                    <option value="Frau" >Frau</option>
                                                                    <option value="Firma" >Firma</option>
                                                                  </select> </td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_name}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_vorname" size="25" maxlength="30" value="{liefer_vorname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_forname}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_nachname" size="25" maxlength="30" value="{liefer_nachname}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_firm}</td>
                                                                <td   ><input class=input type="Text" name="liefer_firma" size="25" maxlength="30" value="{liefer_firma}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_street}</td>
                                                                <td   ><input class=input type="Text" name="liefer_str" size="25" maxlength="30" value="{liefer_str}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_cp}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_plz" size="5" maxlength="5" value="{liefer_plz}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_street}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_ort" size="25" maxlength="30" value="{liefer_ort}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_phone}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_telefon" size="25" maxlength="30" value="{liefer_telefon}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_fax}:</td>
                                                                <td   ><input class=input type="Text" name="liefer_telefax" size="25" maxlength="30" value="{liefer_telefax}"></td>
                                                              </tr>
                                                            </table>
                                                            <br>
                                                            <p><br>
                                                            <p>
                                                              <!-- Zahlungsweise -->
                                                            <table border=0 cellpadding=2 cellspacing=1 class=forumline width="60%">
                                                              <tr>
                                                                <td colspan="2" >{lang_client_shipping_rules}</td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_payement}:</td>
                                                                <td   >
                                                                  <select class="categoryselect"name="kunde_zahlungsart" >
                                                                    <option value="{kunde_zahlungsart}">{kunde_zahlungsart}</option>
                                                                    <option value="">-
                                                                    Bitte auswählen
                                                                    -</option>
                                                                    <option value="Bankeinzug" >Bankeinzug</option>
                                                                    <option value="Vorkasse" >Vorkasse</option>
                                                                    <option value="Rechnung" >Rechnung</option>
                                                                  </select> </td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_bank}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_bank" size="22" maxlength="30" value="{kunde_bank}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_blzt}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_blz" size="22" maxlength="30" value="{kunde_blz}"></td>
                                                              </tr>
                                                              <tr>
                                                                <td align="right"  >{lang_client_count_nbr}:</td>
                                                                <td   ><input class=input type="Text" name="kunde_kontonr" size="22" maxlength="30" value="{kunde_kontonr}"></td>
                                                              </tr>
                                                            </table>
                                                            <p>
                                                            <table border=0 cellpadding=3 cellspacing=1  width="60%">
                                                              <tr>
                                                                <td>{lang_client_info}</td>
                                                              </tr>
                                                              <tr>
                                                                <td >{lang_client_info_txt}<br></td>
                                                              </tr>
                                                              <tr>
                                                                <td  ><textarea class="commenttextarea" name="kunde_bemerkung" rows="10" cols="30" wrap="virtual">{kunde_bemerkung}</textarea></td>
                                                              </tr>
                                                            </table>
                                                            <p align=left>
                                                              <input type="checkbox" name="kunde_conditions" value="checked" >
                                                              {lang_client_agreement}</p>
                                                            <center>
                                                              <input class="button" type="Submit" name="submit" value="Speichern">
                                                              <br>
                                                              <br>
                                                            </center>


 :arrow: in
find
////////////////////////////////////////////////////////////////////////////////////

Code: [Select]

"kunde_blz" => $kunde_info['kunde_blz']


replace with
////////////////////////////////////////////////////////////////////////////////
Code: [Select]
"kunde_blz" => $kunde_info['kunde_blz'],
"lang_client" => $lang['client'],
"lang_client_number" => $lang['client_number'],
"lang_client_adresse" => $lang['client_adresse'],
"lang_client_kind" => $lang['client_kind'],
"lang_client_name" => $lang['client_name'],
"lang_client_forname" => $lang['client_forname'],
"lang_client_firm" => $lang['client_firm'],
"lang_client_street" => $lang['client_street'],
"lang_client_cp" => $lang['client_cp'],
"lang_client_town" => $lang['client_town'],
"lang_client_phone" => $lang['client_phone'],
"lang_client_fax" => $lang['client_fax'],
"lang_client_shipping" => $lang['client_shipping'],
"lang_client_firm" => $lang['client_firm'],
"lang_client_firm_name" => $lang['client_firm_name'],
"lang_client_shipping_rules" => $lang['client_shipping_rules'],
"lang_client_payement" => $lang['client_payement'],
"lang_client_bank" => $lang['client_bank'],
"lang_client_bltz" => $lang['client_bltz'],
"lang_client_count_number" => $lang['client_count_nbr'],
"lang_client_agreement" => $lang['client_agreement']


 :arrow:  in lang/french/main.php before
Code: [Select]
?>

add :
//////////////////////////////////////////////////////////////////////:
Code: [Select]
$lang['client'] = "Prix:"
$lang['client_number'] = "Numéro de client"
$lang['client_adresse'] = "Adresse"
$lang['client_kind'] = "Civilité"
$lang['client_name'] = "Nom"
$lang['client_forname'] = "Prénom"
$lang['client_firm'] = "Entreprise"
$lang['client_street'] = "Adresse"
$lang['client_cp'] = "Code postal"
$lang['client_town'] = "Ville"
$lang['client_phone'] = "Tel"
$lang['client_fax'] = "Fax"
$lang['client_shipping'] = "Destinataire de l'envoie"
$lang['client_firm'] = "Entreprise"
$lang['client_firm_name'] = "Nom de l'entreprise"
$lang['client_shipping_rules'] = "Modalité de payement"
$lang['client_payement'] = "Mode de payement"
$lang['client_bank'] = "Banque"
$lang['client_bltz'] = "?"
$lang['client_count_nbr'] = "Numéro de compte:"
$lang['client_agreement'] = "Je certifie avoir pris connaissance des termes d'utilisations et des conditions de vente"

7
Mods & Plugins (Releases & Support) / me again
« on: May 22, 2003, 09:46:25 PM »
so good, but thinks that the sql taable miss
'4images_kunden' & '4images_warenkorb' :-)
so i will translate that in french maybe helpfull for some of you, and gonna test to find bugs  :wink:

8
Mods & Plugins (Releases & Support) / hi
« on: May 22, 2003, 09:11:12 PM »
hello, just two words : Very Nice!!!"
cool, it seems just having little prob in your code you send
after
"find in includes/function"
you send the same code for find and for replace :-)
 
so very good job :D

9
Hi all,  :lol:
So i have a question, if some body can try to guide me, it will be nice :-)
Before giving long page of code , i give my probleme with example.
I want to have thumbail view in the detail page. Its mean that when i show one picture, for some of these, i need to have other pics which are attach to the first, with a presentation like when you search a pic in the catégorie.

Example. I have a categorie with artists, where you find when you view detail a picture and description of the man.
Then you have other cat like "drawing", "painting"....
For the catégorie artist, when you show the detail page,i will so have, at the bottom of the page all the thumbail of drawing, painting for this artist.

 :?: i try to copy/past past the code of the catégorie code for viewing thumbail in the detail page, it is the good way? or somebody have another think

Thanks to all  :lol:

for example :
http://www.adcity.fr/4images/
go to artists and show the detail page of artist, i wanna have here the pics wich are in painting section

10
Mods & Plugins (Releases & Support) / quick question
« on: May 19, 2003, 03:08:30 PM »
hello all :-)
if i want that only one group of users acces to the gallery, what i have to do

thinks need to change something  in include/constant  (4images files)

Code: [Select]
// Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 9);


// Group types
define('GROUPTYPE_GROUP', 1);
define('GROUPTYPE_SINGLE', 2);


thanks :-) (and sorry if the ansered was allready done, but not an expert in deutch  8) )

11
That should be better like this


:arrow: that is the step by step for the member.php file
 :arrow: i prevent, i'am not a programmeur, so use this carrefully
 :arrow: this mod soesn't run for moment, just try to start a mod
 :arrow:  didn't have change anything to the upload.php file, that why there is some prob for the moment i think :-)
 :arrow: and at least but not the last, backup your file :-)


 
STEP2
:!: in member.php
  :arrow: find :
//////////////////////////////////////////////////////////////////////////
Code: [Select]
$remote_media_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_media_file'])));
  $remote_thumb_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_thumb_file'])));

  $image_name = un_htmlspecialchars(trim($HTTP_POST_VARS['image_name']));
  $image_description = un_htmlspecialchars(trim($HTTP_POST_VARS['image_description']));
  $image_keywords = un_htmlspecialchars(trim($HTTP_POST_VARS['image_keywords']));
  $image_keywords = preg_replace("/[\n\r]/is", " ", $image_keywords);
  $image_keywords = str_replace(","," ",$image_keywords);
  $image_keywords = ereg_replace("( ){2,}", " ", $image_keywords);

  $image_active = (isset($HTTP_POST_VARS['image_active']) && $HTTP_POST_VARS['image_active'] == 0) ? 0 : 1;
  $image_allow_comments = (isset($HTTP_POST_VARS['image_allow_comments']) && $HTTP_POST_VARS['image_allow_comments'] == 0) ? 0 : 1;
  $image_download_url = (isset($HTTP_POST_VARS['image_download_url'])) ? format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['image_download_url']))) : "";


 :arrow: replace with :
//////////////////////////////////////////////////////////////////////////
Code: [Select]
for ($i = 1; $i <= $nbr_pics; $i++) {
  $remote_media_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_media_file'.$i])));
  $remote_thumb_file = format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_thumb_file'.$i])));

  $image_name = un_htmlspecialchars(trim($HTTP_POST_VARS['image_name'.$i]));
  $image_description = un_htmlspecialchars(trim($HTTP_POST_VARS['image_description'.$i]));
  $image_keywords = un_htmlspecialchars(trim($HTTP_POST_VARS['image_keywords'.$i]));
  $image_keywords = preg_replace("/[\n\r]/is", " ", $image_keywords);
  $image_keywords = str_replace(","," ",$image_keywords);
  $image_keywords = ereg_replace("( ){2,}", " ", $image_keywords);

  $image_active = (isset($HTTP_POST_VARS['image_active_'.$i]) && $HTTP_POST_VARS['image_active'.$i] == 0) ? 0 : 1;
  $image_allow_comments = (isset($HTTP_POST_VARS['image_allow_comments'.$i]) && $HTTP_POST_VARS['image_allow_comments'.$i] == 0) ? 0 : 1;
  $image_download_url = (isset($HTTP_POST_VARS['image_download_url'.$i])) ? format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['image_download_url'.$i]))) : "";


:arrow: Find :
/////////////////////////////////////////////////////////
Code: [Select]
  if ($cat_id == 0)  {
    $error = 1;
    $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['category']), $lang['field_required']);
    $msg .= (($msg != "") ? "<br />" : "").$field_error;
  }
  if ((empty($HTTP_POST_FILES['media_file']['tmp_name']) || $HTTP_POST_FILES['media_file']['tmp_name'] == "none") && ($remote_media_file == "" || !check_remote_media($remote_media_file))) {
    $error = 1;
    $msg .= (($msg != "") ? "<br />" : "").$lang['image_file_required'];
  }
  if ($image_name == "")  {
    $error = 1;
    $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['image_name']), $lang['field_required']);
    $msg .= (($msg != "") ? "<br />" : "").$field_error;
  }


 :arrow: replace with
////////////////////////////////////////////////////////////////////
Code: [Select]
 if ($cat_id == 0)  {
   
$error = 1;
    $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", "<span class='green'>".$lang['category'].$i."</span>"), $lang['field_required']);
    $msg .= (($msg != "") ? "<br />" : "")."$ico_green ".$field_error;
  }
  if ((empty($HTTP_POST_FILES['media_file'.$i]['tmp_name']) || $HTTP_POST_FILES['media_file'.$i]['tmp_name'] == "none") && ($remote_media_file == "" || !check_remote_media($remote_media_file))) {
    $error = 1;
    $msg .= (($msg != "") ? "<br />" : "")."$ico_green ".$lang['image_file_required'];
  }
  if ($image_name == "")  {
    $error = 1;
    $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "","<span class='green'>". $lang['image_name'].$i."</span>"), $lang['field_required']);
    $msg .= (($msg != "") ? "<br />" : "")."$ico_green ".$field_error;
  }


:arrow: Find
/////////////////////////////////////////////////////////////////////////
Code: [Select]
  // Upload Media file
    if (!empty($HTTP_POST_FILES['media_file']['tmp_name']) && $HTTP_POST_FILES['media_file']['tmp_name'] != "none") {
      $new_name = $site_upload->upload_file("media_file", "media", $upload_cat);
      if (!$new_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].": ".$new_name."</b><br />".$site_upload->get_upload_errors();
        $uploaderror = 1;
      }
    }


 :arrow: Replace with
////////////////////////////////////////////////////////////
    // Upload Media file
Code: [Select]
    for ($i = 1; $i <= $nbr_pics; $i++) {
if (!empty($HTTP_POST_FILES['media_file'.$i]['tmp_name']) && $HTTP_POST_FILES['media_file'.$i]['tmp_name'] != "none") {
      $new_name = $site_upload->upload_file("media_file".$i, "media", $upload_cat);
      if (!$new_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].$i.": ".$new_name."</b><br />".$site_upload->get_upload_errors();
        $uploaderror = 1;
      }
    }


 :arrow: Find
/////////////////////////////////////////////////////////////////////////
Code: [Select]
   $new_thumb_name = "";
    if (!empty($HTTP_POST_FILES['thumb_file']['tmp_name']) && $HTTP_POST_FILES['thumb_file']['tmp_name'] != "none" && !$uploaderror) {
      $new_thumb_name = $site_upload->upload_file("thumb_file", "thumb", $upload_cat, basename($new_name));
      if (!$new_thumb_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['thumb_upload_error'].": ".$new_thumb_name."</b><br />".$site_upload->get_upload_errors();
        @unlink(MEDIA_TEMP_PATH."/".$new_name);
        $uploaderror = 1;
      }
    }



 :arrow: Replace with
////////////////////////////////////////////////////////////
Code: [Select]
}  for ($i = 1; $i <= $nbr_pics; $i++) {
    $new_thumb_name = "";
    if (!empty($HTTP_POST_FILES['thumb_file'.$i]['tmp_name']) && $HTTP_POST_FILES['thumb_file'.$i]['tmp_name'] != "none" && !$uploaderror) {
      $new_thumb_name = $site_upload->upload_file("thumb_file".$i, "thumb", $upload_cat, basename($new_name));
      if (!$new_thumb_name) {
        $msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['thumb_upload_error'].$i.": ".$new_thumb_name."</b><br />".$site_upload->get_upload_errors();
        @unlink(MEDIA_TEMP_PATH."/".$new_name);
        $uploaderror = 1;
      }
    }


Find and erase
(Carefully, backup your files, i have erase it cause it make probleme  :arrow: the mailing function is declare 2times and make a probleme. But this function must be modified after)
///////////////////////////////////////////////////////////////////////////////
 
Code: [Select]
if ($config['upload_notify'] == 1 && !$direct_upload) {
        include(ROOT_PATH.'includes/email.php');
        $site_email = new Email();

        $config['upload_emails'] = str_replace(" ", "", $config['upload_emails']);
        $emails = explode(",", $config['upload_emails']);

        $validation_url = $script_url."/admin/index.php?goto=".urlencode("validateimages.php?action=validateimages");

        $site_email->set_to($config['site_email']);
        $site_email->set_subject($lang['new_upload_emailsubject']);
        $site_email->register_vars(array(
          "image_name" => stripslashes($image_name),
          "file_name" => $new_name,
          "cat_name" => $cat_cache[$cat_id]['cat_name'],
          "validation_url" => $validation_url,
          "site_name" => $config['site_name']
        ));
        $site_email->set_body("upload_notify", $config['language_dir_default']);
        $site_email->set_bcc($emails);
        $site_email->send_email();
      }




:arrow: Find :
///////////////////////////////////////////////////////////////:
Code: [Select]
if ($action == "uploadform") {
 else {
    $action = "uploadform";
    $sendprocess = 1;


:arrow: Add before :
Code: [Select]
}

:arrow: Find :
///////////////////////////////////////////////////////////////:
Code: [Select]
if ($action == "uploadform") {
  if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_permission("auth_upload", $cat_id))) {
    show_error_page($lang['no_permission']);
    exit;
  }

  $txt_clickstream = "";
  if ($cat_id && isset($cat_cache[$cat_id])) {
    $txt_clickstream .= get_category_path($cat_id, 1).$config['category_separator'];
  }
  $txt_clickstream .= $lang['user_upload'];

 
:arrow:  ADD After
///////////////////////////////////////////////////////////////:
Code: [Select]
$nbr_pics="$nbr_pics";
 for ($i = 1; $i <= $nbr_pics; $i++) {
 
   $printform .="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><strong>pics nbr : <span class='new'>$i</span></strong></td><td width=\"50%\"><div align=\"right\"><a href=\"#\">go_top</a></div></td></tr></table><br><br><table>";
   $printform .="<tr><td >$ico_arrow <b>{lang_category}</b></td><td >".get_category_dropdown($cat_id)."</td></tr>";
   $printform .="<tr><td valign=\"top\"><b>{lang_media_file}</b><br /><span class=\"smalltext\">{lang_max_filesize}<b>{max_media_filsize}</b><br />{lang_max_imagewidth}<b>{max_media_imagewidth}</b><br />{lang_max_imageheight}<b>{max_media_imageheight}</b><br /></span></td><td ><b>Upload:</b><br /><input type=\"file\" name=\"media_file".$i."\" class=\"input\" /><br /><b>URL:</b><br /><input type=\"text\" name=\"remote_media_file".$i."\"  size=\"30\" class=\"input\" /><br /><span class=\"smalltext\"><b>{lang_allowed_file_types}</b>{allowed_media_types}</span></td></tr>";
   $printform .="<tr><td  valign=\"top\"><b>{lang_thumb_file}</b><br /><span class=\"smalltext\">{lang_max_filesize}<b>{max_thumb_filsize}</b><br />{lang_max_imagewidth}<b>{max_thumb_imagewidth}</b><br />{lang_max_imageheight}<b>{max_thumb_imageheight}</b><br /></span></td><td ><b>Upload:</b><br /><input type=\"file\" name=\"thumb_file".$i."\" class=\"input\" /><br /><b>URL:</b><br /><input type=\"text\" name=\"remote_thumb_file".$i."\"  size=\"30\"  class=\"input\" /><br /><span class=\"smalltext\"><b>{lang_allowed_file_types}</b>{allowed_thumb_types}</span></td></tr>";
   $printform .="<tr><td > <b>{lang_image_name}</b></td><td ><input type=\"text\" name=\"image_name".$i."\"  size=\"30\" value=\"{image_name".$i."}\" class=\"input\" /></td></tr>";
   $printform .="<tr><td  valign=\"top\"><b>{lang_description}</b></td><td ><textarea name=\"image_description".$i."\" cols=\"30\" class=\"row2\" rows=\"10\" wrap=\"VIRTUAL\">{image_description".$i."}</textarea></td></tr>";
   $printform .="<tr><td  valign=\"top\"><b>{lang_keywords}</b></td> <td ><textarea cols=\"30\" class=\"row2\" rows=\"10\" wrap=\"VIRTUAL\" name=\"image_keywords".$i."\">{image_keywords".$i."}</textarea></td></tr>";
//----------------------------------
 $printform .="</table>";
 
 }


 :arrow: Find :
///////////////////////////////////////////////////////////////:
Code: [Select]
 if (!$sendprocess) {
    $remote_media_file = "";
    $remote_thumb_file = "";
    $image_name = "";
    $image_description = "";
    $image_keywords = "";
    $image_download_url = "";
    $image_allow_comments = 1;
  }

  $site_template->register_vars(array(
    "cat_id" => $cat_id


 :arrow:  ADD After
///////////////////////////////////////////////////////////////:
Code: [Select]
   "printform" => $printform,
     "nbr_pics" => $nbr_pics,

12
lol and very hard to do a tutorial for a mod wich doesn't run lol so i put it in few minute, step by step, will be better lol

13
Mods & Plugins (Requests & Discussions) / ok very sorry
« on: May 15, 2003, 11:28:34 PM »
:cry:  oh sorry yes so i change only the modified part

14
so there is the zip of the 2 files, but it doesn't run, i have just try to start a mod, but maybe its a wrong way... you can find it here :

http://www.adcity.fr/4images/member.zip

2 files :
member.php & member_uploadform.html

15
Mods & Plugins (Releases & Support) / hi all
« on: May 14, 2003, 04:27:57 PM »
hi all, so i have a quick question :
when i am on phpbb, i want to have a box with the catégories names of my 4images cat for direct link to the 4images part

i have already do this "menu" box in 4images, and it look like this :
(in my 4images pages header)

Code: [Select]
$sql = mysql_db_query("$db_name","select * from ".CATEGORIES_TABLE." WHERE cat_parent_id='0'");  
  while($row = mysql_fetch_array($sql)) {
$cat_id1=$row["cat_id"];
$cat_name1=$row["cat_name"];  

$build_menu .="$ico_arrow <a href=\"categories.php?cat_id=$cat_id1\" class=\"link_low\">$cat_name1</a><br>";

}
$site_template->register_vars(array(
    "build_menu" => $build_menu
  ));


i have try to do the same sql query, and i have define the categori table in the constant phpbb files, but it doesn't run, cause se sql query have to be written differently.

I have try this but it seems to have a bug :

Code: [Select]
$sql = "select * from ".CATEGORIES_TABLE_PICS." WHERE cat_parent_id='0'";  
  while($row = $db->sql_fetchrow($result)) {
$cat_id1=$row["cat_id"];
$cat_name1=$row["cat_name"];  

$build_menu .="$ico_arrow <a href=\"categories.php?cat_id=$cat_id1\" class=\"link_low\">$cat_name1</a><br>";

}
$template->assign_vars(array(
'build_menu' => $build_menu)
);


have somebody an idea what is wrong?

Pages: [1] 2 3