bugrain.com

Global Links

Site links


Content

Bugrain :: Forums :: Plugins by bugrain :: The e107 Helper Project
using the <image tag

Moderators: bugrain
Craig F Mon Feb 08 2010, 02:56PM
Posts: 4

I am working on a a plug in where The <image tag would work great with one exception. I only want files that start thumb_ to be shown. Is it possible with the way the project is currently written?

I was initially looking at doing this with file list, but with a new development <image would work better I believe.

The big reason for doing this is I don't want the users selecting the full sized images listed in the same subdirectory.

e107 forum post
bugrain Mon Feb 08 2010, 04:03PM

Posts: 828

answered at e107.org

cheers
bugrain
Craig F Mon Feb 08 2010, 04:19PM
Posts: 4

bugrain, - I thought my search abilities were pretty good, but I can't find a referance to this and I searched prior to making a post because I hate bothering Developers when they have already posted the answer somewhere. I may have also misstated what I am looking for, let me give a better example so I know we are thinking about the same thing.

My directory album1 has the following files.
teak.jpg
resize_teak.jpg
thumb_teak.jpg
405 _cove.gif
resize_405_cove.gif
thumb_405_cove.gif
40513charleston.gif
thumb_40513charleston.gif
resize_40513charleston.gif

When I select the sub directory and click choose I want to see only the files starting with thumb_


bugrain Tue Feb 09 2010, 07:26AM

Posts: 828

IN the thread you linked to - isn't that the same thing?

cheers
bugrain
Craig F Tue Feb 09 2010, 01:03PM
Posts: 4

bugrain,

In my first request I was looking to get the scripts in the list examples to work together. changing the dir would change the list in the file list.

After you mentioned that it was not a quick fix and you were tied up and I found out an additonal piece of information on the application I changed my direction to look at the image list.

Utilizing the tag in this script


I was hoping to have the expanding window to open with files containing a certain string of information. in my case files with the begining characters thumb_

Thanks in advance for your assistance.
bugrain Tue Feb 09 2010, 04:30PM

Posts: 828

OK, well that's still a change in the code somewhere to restrict the file list to specific files.

If you only ever need to look in one directory, then probably the "filelist" approach may be better, though you'll still need to do some code changes to my code for this too.

cheers
bugrain
Craig F Tue Feb 09 2010, 04:49PM
Posts: 4

Thanks for thinking this over, I do appreciate it. BTW your contributions to e107 have been great and the direction that e107 is going is just incredible.

Craig

Right bar


Footer