Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-22-2008, 05:28 PM
billian is offline billian
Registered User

Join Date: Sep 2008
Posts: 4

phAlbum

Hi
Great little script
Been hoping to find something like this for ages,


Is there a way to ignore two or more words? like below
what is the punctuation or correct syntax in that line to do this,
Code:
ignore_word="hats" "coats" "shoes"; //Hide files with this string in the name
can I set the script to ignore certain folders? Like-
hats
coats
shoes
as I have tried in the above code?
I am trying to use it in a folder with other stuff in

Many thanks
Ian
Reply With Quote
  #2  
Old 09-22-2008, 06:50 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,921

I am not the best with regular expressions but you could try this:

$ignore_word="(hat|coats|shoes)";


Let me know if that works for you..
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 09-23-2008, 06:57 PM
billian is offline billian
Registered User

Join Date: Sep 2008
Posts: 4

Thanks Scott
Just what I was looking for
That worked ok for not showing 2 or more unwanted files
Also works for ignoring and not showing folders/directories I dont want shown as albums.

Problem 2
the script uploads images to the base folder ok.
It also creates the new albums, on the server and displays them ok.
BUT
regardless of what album is selected the images get uploaded to the base album.
they do open ok,

The links generated for the albums are like
http://www.jjjjjjjjjjjjjjjjjjjjjjjj..../?album=boots/

is this correct,
because the albums do not show any images although I have also uploaded coppies of image and thumbnail to the folder manually trying to troubleshoot.

i have php 4.4.8
apache 2
phalbum v 1.1

Thanks again for your time and efforts
Ian
Reply With Quote
  #4  
Old 09-23-2008, 10:03 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,921

So even if you upload a picture to the boots album they don't show when you click on the boot folder icon?
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #5  
Old 09-24-2008, 11:02 AM
billian is offline billian
Registered User

Join Date: Sep 2008
Posts: 4

Hi Scott

I have PMd you with some server details to help with troubleshooting,
Thanks for your help

Ian
Reply With Quote
  #6  
Old 09-24-2008, 03:49 PM
billian is offline billian
Registered User

Join Date: Sep 2008
Posts: 4

RollEyes

Hi,

Ive got it working now

I got in a mess with paths and permissions

everything back to default
new upload and OK

I had lost the
dot on the file path.
./album/
Thanks Scott for taking the time
ignore the PM

regards
Ian
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phAlbum width? certifiedgeek05 phphq.Net Forums 6 07-27-2010 08:03 PM
phAlbum corny phphq.Net Forums 0 03-11-2009 10:21 AM
phalbum error liamdawe phphq.Net Forums 1 12-09-2007 04:05 PM
PhAlbum tazz0710 phphq.Net Forums 2 12-07-2007 10:55 AM
phAlbum tazz0710 phphq.Net Forums 9 10-26-2007 12:28 AM


All times are GMT -5. The time now is 08:44 AM.




Powered by vBulletin®