Author Topic: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field  (Read 202265 times)

0 Members and 1 Guest are viewing this topic.

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
help Additional Image Field
« Reply #90 on: January 11, 2012, 09:16:08 PM »
Dear Sir
I Make about 5  Additional Image Field and every thing is ok
but i need some thing i hope it can be made
if there is no data in any field the field does't appear in the details page

i hope i can explaine

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: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #91 on: January 11, 2012, 10:48:44 PM »
you can use conditional tags in the templates:
Code: [Select]
{if your_field_name}your field is not empty{endif your_field_name}
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 nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #92 on: January 13, 2012, 05:14:21 PM »
thanks V@no
for your help

also can u help me with this
http://www.4homepages.de/forum/index.php?topic=29703.0

thanks
« Last Edit: January 24, 2012, 04:47:46 PM by nameless »

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.297
    • View Profile
    • Discover the New World of Kindersurprise
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #93 on: April 13, 2013, 11:10:42 PM »
Hi,
Gibt es eine Möglichkeit, das ein Eintrag in 2 Tabellen geschrieben wird ?

Es handelt sich um die Tabelle images_serie
diese Tabelle möchte ich um die Tabelle images_serie2 erweitern.

Und mit welchem Befehl bekomme ich den derzeitige Inhalt von images_serie in images_serie2 kopiert

LG Harald
Danke Harald




Rembrandt

  • Guest
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #94 on: April 15, 2013, 08:01:03 AM »
Hi!
..Es handelt sich um die Tabelle images_serie
diese Tabelle möchte ich um die Tabelle images_serie2 erweitern.

Und mit welchem Befehl bekomme ich den derzeitige Inhalt von images_serie in images_serie2 kopiert
...
Meinst du jetzt wirklich Tabellen oder Felder?
Wenn du die inhalte vom Feld "images_serie" nach "images_serie2" kopieren möchtest:
Code: [Select]
UPDATE 4images_images SET images_serie2=images_serie

mfg Andi

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.297
    • View Profile
    • Discover the New World of Kindersurprise
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #95 on: April 15, 2013, 04:22:06 PM »
 :wink: Felder natürlich  :oops:

Danke
Danke Harald




Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.297
    • View Profile
    • Discover the New World of Kindersurprise
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #96 on: April 19, 2013, 06:47:40 PM »
Glaube so müsste es gehen, um einen Eintrag in2 Feldern zu schreiben.
Nur wo müsste ich es reinschreiben  :oops:

'image_serie' addslashes($_POST['image_serie']),
'image_serie_2' addslashes($_POST['image_serie']),


LG
Danke Harald




Rembrandt

  • Guest
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #97 on: April 19, 2013, 07:20:00 PM »
ja so würde es gehen, nur du verwendest ja die Additioanalen image..Blabla
Das heist das du dafür "'image_serie' = addslashes($_POST['image_serie'])," nicht weiter tun mußt, das funktioniert ja schon.
Für das "'image_serie_2' = addslashes($_POST['image_serie'])," mußt du quasi zu Fuß weitger gehen.
in der Member php unter "updateimage, editimage, uploadimage" und natürlich in der uploadform und editform mußt du die entsprechenden änderungen vornehmen.

mfg Andi

Offline Pawel_el

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Additional fields when loading images.
« Reply #98 on: September 05, 2013, 10:16:58 AM »
Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, i.image_worar, c.cat_name, u.user_name FROM (4images_aaaimages i, 4images_aaacategories c) LEFT JOIN 4images_aaausers u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 1
Unknown column 'i.image_worar' in 'field list'

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /virtual/autobusownia.cba.pl/galeria.autobusownia.cba.pl/includes/db_mysql.php on line 116
  :(

Rembrandt

  • Guest
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #99 on: September 05, 2013, 06:26:16 PM »
@Pawel_el , step 5.) you have performed?

Offline Pawel_el

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #100 on: September 05, 2013, 07:29:52 PM »
No, I skipped it. Since I do not know where to put them.

Rembrandt

  • Guest
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #101 on: September 06, 2013, 04:46:44 AM »
No, I skipped it. Since I do not know where to put them.
You must a new tablefield "image_worar" in your database create.

Offline Pawel_el

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #102 on: September 06, 2013, 10:01:13 AM »
root-> data-> database-> default-> mysql_default.sql ?

Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #103 on: September 06, 2013, 10:30:04 AM »
No, add the new tablefield directly in your database (for example by using phpmyadmin)


Offline Pawel_el

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [TUT] Zusätzliches Image Feld anlegen / Additional Image Field
« Reply #104 on: September 06, 2013, 12:14:54 PM »
phpmyadmin is found, but that is to edit the file?