Author Topic: Links? and ..... layout  (Read 98481 times)

0 Members and 1 Guest are viewing this topic.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: Links? and ..... layout
« Reply #45 on: April 06, 2005, 01:50:17 AM »
yeeee finaly it's working!!!!! :) i'm so happy

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: Links? and ..... layout
« Reply #46 on: April 06, 2005, 09:46:33 PM »
Hi I have made some new fields for the user profile but now they are requied to fill i want them optional how can I change that $additional_image_fields['image_photographer'] = array($lang['image_photographer'], "text", 1);
"text", 0); if I put a 0 there is optional?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Links? and ..... layout
« Reply #47 on: April 07, 2005, 12:50:39 AM »
"text", 0); if I put a 0 there is optional?
that is correct
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ipicture

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • Ipicture - Die Welt im Bild
Additional field and IPTC import
« Reply #48 on: April 30, 2005, 12:30:33 PM »
Bei mir funktionieren die zusätzlichen Felder bei Images und User.

Wie kann ich jetzt im Control Panel erreichen, dass z.B. das neue Feld in der DB {image_city} den Eintrag aus den IPTC-Daten übernimmt, wenn ich "neue Bilder checke" - ähnlich wie bei Keywords, Beschreibung, Aufnahmedatum.

Ich denke, hier ist eine Modifikation der admin/images.php notwendig. Wer weiß näheres?

The additional fields in images and user works fine.
When I check new images I like to include the new field {image_city} automatically from IPTC-Datas to the database - simular like the keywords, description and date created.
I guess there must be a modify in admin/images.php. Has somebody a solution?

Thanks
Klaus

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Links? and ..... layout
« Reply #49 on: April 30, 2005, 02:41:21 PM »
mmmm...and what does your question has to do with this topic?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ipicture

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • Ipicture - Die Welt im Bild
...
« Reply #50 on: April 30, 2005, 03:02:05 PM »
I think a lot. The topic named by XippiX is not the right headline for his question and the following threads.
If you want I can start a new thread. But my question is related to Jans answer...

K.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Links? and ..... layout
« Reply #51 on: April 30, 2005, 03:15:15 PM »
But my question is related to Jans answer...
ah, I see now.
well, next time please use "quote" button if u reply to a specific post ;) - thats way we'll avoid confusion :)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Links? and ..... layout
« Reply #52 on: August 31, 2005, 10:26:42 AM »
i added 2 extra user fields, but they do not appear in control panel.

This is what i did :
in db_field_definitions i added :
Code: [Select]
$additional_user_fields['user_organisation'] = array($lang['user_organisation'], "text", 1);
$additional_user_fields['user_realname'] = array($lang['user_realname'], "text", 1);
and closed with ?>

then in language/main.php :
Code: [Select]
$lang['user_organisation'] = "Organisatie:";
$lang['user_realname'] = "Naam:";

then in my template register_form.html
Code: [Select]
{lang_user_realname}
            <input type="text" name="user_realname" size="30" value="{user_realname}" class="input" />
         
         
            {lang_user_organisation}
            <input type="text" name="user_organisation" size="30" value="{user_organisation}" class="input" />
          

that should be it ? wright ?

but i can't find the new fields in my control panel, when i look at the users information

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: Links? and ..... layout
« Reply #53 on: August 31, 2005, 01:41:53 PM »
Did you added the new fields to the database?
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Links? and ..... layout
« Reply #54 on: September 25, 2005, 12:57:18 AM »
Hi,
habe noch ein kleines Problem
Habe mir 3 neue Tabellen erstellt
wenn ich die Bilder bearbeite, werden die neuen Bildeinträge auch in der Datenbank gespeichert, und auch ausgegeben.

Nur wenn ich die Daten in der member_uploadform.html eingebe, werden diese nicht in der Datenbank gespeichert.

Kann mir vielleicht jemand sagen welche Dateien dafür noch geändert werden müssen.


Edit: war ein Dreher drin, klappt jetzt.
Jetzt fehlt noch die Suche, denn die Einträge wollen ja auch gefunden werden  :wink:


Und vielleicht noch die Dateien für die Suche

würde es dann aber gerne selbst versuchen
Danke Harald
Danke Harald




Offline soyola

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Links? and ..... layout
« Reply #55 on: January 27, 2006, 09:52:20 PM »
Are these custom fields that we created will be visible to all registered users when they click user profile?  If yes how do we hide and these are visible only to conditional users?

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: Links? and ..... layout
« Reply #56 on: February 08, 2006, 01:42:25 AM »
i;ve posted my question i a new topic, but everyone tells me i find my answer in THIS topic - i didnt, so i post it here:

is there any way to ad manually a title to an user? So that the title is shown in the profile, in the whos online etc. But i dont want this to be automatic, just selected users from the admin... like "vip" , "mrs. xxx" and so one.

For example:

I have 50 users (47 registred, 3 admins) - i want to give two titles to some registred users so it would be "username<BR>usertitle"  in the profile, memberlist, whoisonline etc.

i know how to make a new field etc, but how can i make it restricted, controlled by the adminpanel. For the templates, the code will be like {if_user_title}{user_title}{end_if_user_title}

I hope someone can understand that and help me :)

thanks!

Offline killerwhale65

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Links? and ..... layout
« Reply #57 on: March 07, 2006, 08:24:26 PM »
hi,

i would like to have a dropdown-list as custom field.

What i did was in memberuploadform.html, replacing

Code: [Select]
<tr>
  <td class="row2"><b>{lang_registratie}</b></td>
  <td class="row2"><input type="text" name="image_photographer"  size="30" value="{registratie}" class="input" /></td>
  </tr>

with

Code: [Select]

<tr>
  <td class="row2"><b>{lang_registratie}</b></td>
  <td class="row2">
<select name="type" class="input">
<option>Make your choice !
<option value="{registratie}">Boeing

</select>
</td>
  </tr>

But the field stays empty in the mysql. When i change it however from the admin (it is not a listbox their, so i just type it), it does work.

What did i do wrong?

thanks!

Offline killerwhale65

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Links? and ..... layout
« Reply #58 on: March 08, 2006, 12:48:51 PM »
can anyone point me in the right direction please?

Offline Hannibal

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Links? and ..... layout
« Reply #59 on: March 09, 2006, 04:01:53 PM »
Hello. I have a problem with add new fields.
I will add field: Date of taking photo. I add 2 new fields called  image_photographer1 and image_photographer2. I add query to the databsase.

My db_field_definitions.php  looked this:

Quote
// Example for additional image fields:
$additional_image_fields['image_photographer'] = array($lang['image_photographer'], "text", 1);
$additional_image_fields['image_photographer1'] = array($lang['image_photographer1'], "text", 1);
$additional_image_fields['image_photographer2'] = array($lang['image_photographer2'], "text", 1);

Details.html:
Quote
                        <tr>
                            <td valign="top" class="row1"><b>{lang_description}</b></td>
                            <td valign="top" class="row1">{image_description}</td>
                          </tr>
                        <tr>
 <td valign="top" class="row1"><b>{lang_image_photographer}</b></td>
 <td valign="top" class="row1">{image_photographer}{image_photographer1}{image_photographer2}</td>
</tr>
And member_uploadform:
Quote
<td class="row2" valign="top"><b>{lang_keywords}</b></td>
            <td class="row2">
              <textarea cols="30" class="textarea" rows="10" wrap="VIRTUAL" name="image_keywords">{image_keywords}</textarea>
            </td>
          </tr>
       <tr>
 <td class="row2"><b>{lang_image_photographer}</b></td>
 <td class="row2"><FORM>
     <SELECT NAME="image_photographer" value="{image_photographer}" >
          <OPTION>2006
          <OPTION>2005
           <OPTION>2004
       <OPTION>2003
     <OPTION>2002
      <OPTION>2001
      <OPTION>2000
     <OPTION>1999
    <OPTION>1998
    <OPTION>1997
    <OPTION>1996
    <OPTION>1995
 <OPTION>1994
     <OPTION>1993
     <OPTION>1992
    <OPTION>1991
    <OPTION>1990
   </SELECT>
</FORM>
<FORM>
     <SELECT NAME="image_photographer1"value="{image_photographer1}" >
          <OPTION>31
          <OPTION>30
           <OPTION>29
     <OPTION>28
      <OPTION>27
      <OPTION>26
     <OPTION>25
    <OPTION>24
    <OPTION>23
    <OPTION>22
    <OPTION>21
 <OPTION>20
     <OPTION>19
     <OPTION>18
    <OPTION>17
    <OPTION>16
     <OPTION>15
     <OPTION>14
    <OPTION>13
    <OPTION>12
   </SELECT>
</FORM>
<FORM>
     <SELECT NAME="image_photographer2"value="{image_photographer2}" >
          <OPTION>Styczeń
          <OPTION>Luty
           <OPTION>Marzec
     <OPTION>Kwiecień
      <OPTION>Maj
      <OPTION>Czerwiec
     <OPTION>Lipiec
    <OPTION>Sierpień
    <OPTION>Wrzesień
    <OPTION>Pazdziernik
    <OPTION>Listopad
 <OPTION>Grudzień
   
   </SELECT>
</FORM></td>
</tr>
      </table>
      </td>
    </tr>
  </table>

So in photo details I saw only one option - year.

Please help me

PS: Sorry for my bad english..