English
PHP, HTML & JavaScript- Forum

Bildbeschreibung in "Einfache PHP gallery...."

 

Ludwig2012
Hello together,
i would like to have under whom Images in the "Full-Ansicht" The Description/whom comment from the Image-File (have only *.jpg).
can me there helped go?

love Regards of Ludwig
 
02/08/19  
 




Georg
Teles
Nabend, have You one Beispielcode, so one itself the something present can ?
 
XProfan X2
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

03/06/19  
 




Ludwig2012
it's about the Script, which here Downloaded go can!  [...] 
 
03/07/19  
 




Georg
Teles
Dou you mean soetwas ?  [...] 
 
XProfan X2
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

03/07/19  
 




Ludwig2012
super! i'd me for Description under the Image decide!
 
03/07/19  
 




Georg
Teles
Füge time The following in the row 545 hinzu
<br><br><span style='float:left;'><h3>das is the Beschreibung</h3></span>

between
<img class='bigthumb' src='".urlizeutf8($xentry)."'></a>

and
<br clear=all>".$morepics.$greet."</td><td valign=top>"

Regards Georg
 
XProfan X2
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

03/07/19  
 




Ludwig2012
was now something überfordert, because I first my middle-aged Herrn (81) valet had. means, the Eingefügte has functions what about me can now already time "Beschreibung" reading. LG
 
03/07/19  
 




Georg
Teles
Hehe ok

Nunja, now can You all kinds of Data from the JPG read.

If you this code to the row 545 einfügst, gives it you any EXIF-data, The it in the Header reading can
;$exif = exif_read_data($xentry, 0, true)

;foreach ($exif as $key => $section) {

    ;foreach ($section as $name => $val) {

        ;echo "$key.$name: $val<br />\n"

    ;}

;}

 [...]  here gives it you everything out

If you now only whom comment need, take You aimed whom comment out

(ex here's your row 545, The originale row 545 should You delete The with ;$out = ... begins)
;$comment =''
;$exif = exif_read_data($xentry, 0, true)

;foreach ($exif as $key => $section) {

    ;foreach ($section as $name => $val) {

        ;if ($key == "IFD0" && $name == "Comments"){

            ;$comment = $val

        ;}

    ;}

;}

;if ($comment == ""){

    ;$comment = "(has no comment)"

;}

;$out.="<br clear=all><table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td valign=top align=center><table cellspacing=0 cellpadding=0 border=0 ><tr><td valign=top align=center><span style='float:left;'><h3>Beschreibung ?</h3></span><br><a href='".urlizeutf8($xentry)."'><img class='bigthumb' src='".urlizeutf8($xentry)."'></a><br><br><span style='float:left;'><h3>".$comment."</h3></span><br clear=all>".$morepics.$greet."</td><td valign=top>"

Image 4 & 8 having zB none comment in the File, accordingly becomes the too berücksichtigt  [...]  otherwise becomes the comment herausgelesen

Regards Georg
 
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

03/07/19  
 




Ludwig2012
thanks. If I everything Show let, then see I ALLES and otherwise see I ONLY "...no Kommentar". have time both drin, so You it see can >>>  [...]  LG of me
 
03/07/19  
 




Georg
Teles
I see, your Key means "EXIF.UserComment", means The row
;if ($key == "IFD0" && $name == "Comments"){


Change To
;if ($key == "EXIF" && $name == "UserComment"){


then dürfe it too the Show
it comes hereon on, How the Header aufgebaut is and as Key heissen

Regards Georg
 
XProfan X2
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

03/07/19  
 




Ludwig2012
first time 1000 Thanks. it functions and the Formatierung I will later /tommorrow adjust, I now first time to that "Senioren-Sitting" must. lovely evening what about me login me tommorrow again. LG of me
 
03/07/19  
 




Georg
Teles
super

too lovely evening and angenehmes weekend

Regards Georg
 
XProfan X2
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

03/07/19  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

13.897 Views

Themeninformationen

this Topic has 2 subscriber:

Georg Teles (7x)
Ludwig2012 (7x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie