Author Topic: suppressing file types in random image generator  (Read 3978 times)

0 Members and 1 Guest are viewing this topic.

Offline bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
suppressing file types in random image generator
« on: June 16, 2003, 06:53:20 PM »
v@no, sll, chris -

is there a way to suppress certain file extensions from appearing as random images ?? >> specifically doc, pdf, mov, mpg ... >> in the randomizier routine??

all help is appreciated     :D

thanx
bruce

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
suppressing file types in random image generator
« Reply #1 on: June 16, 2003, 07:39:18 PM »
well look at the mod section there is that written.

Offline bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
suppressing file types in random image generator
« Reply #2 on: June 16, 2003, 07:43:27 PM »
thanx sash
[editied] - can you point me to the specific reference !!! -
i have searched for it for about 30 min ... and i can't seem to 'see it !! '

-bruce

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
suppressing file types in random image generator
« Reply #3 on: June 17, 2003, 12:00:30 AM »
try this:

open /includes/functions.php
find (2 times):
Code: [Select]
           WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND c.cat_id = i.cat_id
replace both with:
Code: [Select]
           WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND c.cat_id = i.cat_id AND i.image_media_file NOT REGEXP '.*\.(avi|mpg|mpeg|swf|mp3|wav|rm|ram)$'
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 bgmurphy

  • Full Member
  • ***
  • Posts: 113
    • View Profile
suppressing file types in random image generator
« Reply #4 on: June 17, 2003, 12:04:56 AM »
v@no -

thanx for the quick response - so if i have -- txt, doc, pdf  -- extensions - just add those to the list ??

 :lol:

bruce