Does anyone know how to retrieve the image ['Ext'] and put that in a $Ext var?
need this for opening Original image in lytebox.
wanna get the info into this part of the code
$aImages[] = array ( 'thumb_url' => $aImageIcon['file'], 'image_url' => $aImageFile['file'], 'title' => $aImageIcon['title'], 'picExt' => BX_DOL_URL_ROOT . 'm/photos/get_image/original/' .'.' . $this->aImageFile['Ext'],
any help is sooooooooo welcome.
|
Yes, I did this back on 7.0.9 when I changed the original to a lightbox. I later with 7.1 decided to keep the original button as it is. Unless someone comes on sooner, I will go see if I can find that. Wait, I think I posted a comment here to the forums and will be quicker than hunting through my files. Geeks, making the world a better place |
Not sure if this will be any use in this case.
picBB' => BX_DOL_URL_ROOT . 'm/photos/get_image/original/' . $this->aFileInfo['Hash'] .'.' . $this->aFileInfo['medExt']
Geeks, making the world a better place |
BX_DOL_URL_ROOT . 'm/photos/get_image/original/
shouldn't this be moved from the extension and to the image URL?
Geeks, making the world a better place |
yeah I tried that but didn't work.
i have to retrieve it in a different way in the module BxPhotosSearch.php and that is what i can't seem to find.
the easy thing to do is just allow jpg files to be uploaded and show message before uploading that only jpg files are allowed to upload.
where would I do that?
|
Yes, but that is a cripple way to do it; most images from digital cameras will be jpg but that leaves out custom work that one saves to png or gif. I don't have time to go hunting this down at the moment but will be interested in working on it. Geeks, making the world a better place |
I know it is a cripple way to do that but for now i don't mind and I force people to think. :-)
so in the block of upload i want a tekst Only jpg or jpeg files are allowed to be uploaded.
and i need to check in code before upload if the file extension is jpg or jpeg.
I hope that someone can tell me how to do that??
|
No, let's do this the correct way, get the extension. Hopefully the coders will decide to help out here. Just a bit busy at the moment to give this much time. Geeks, making the world a better place |
yes you are right.
i have dropped the question to developer
thanx so far... if i have answers i let you know.
|
What we want to do here is to change the way the action button is working for viewing the original image. When I first did this with 7.0.9, I knew very little about dolphin and how it worked. The "Original" button already grabs the URL for the original image. What we want to do is to add the bits for lytebox so that instead of the action opening the original image in a new webpage, it opens in lytebox. Unfortunately, I don't know lytebox, I know fancybox.
Let me go out and see how lytebox handles this.
Geeks, making the world a better place |
I have all the php and html code for lytebox sorted out. The only thing that I need to do is to pull the 'Ext' from bx_photo_main
Then i want to store that in a variable that i use later in a <a $id href="{$imagefile}.'.'.{$Ext}"
I will have the solution soon i just know it ;-)
|
lytebox handles it similar to the way fancybox handles it.
<a href="images/image-1.jpg" class="lytebox" data-title="My Title">Image #1</a>
I think the way I did in on the 7.0.9 site was to call the fancybox jquery directly with the button script. Can you call lytebox directly?
Geeks, making the world a better place |