Author Topic: Disable the "Valid extensions"?  (Read 3814 times)

0 Members and 1 Guest are viewing this topic.

Offline jomilo

  • Pre-Newbie
  • Posts: 2
    • View Profile
Disable the "Valid extensions"?
« on: July 27, 2006, 10:03:18 PM »
Hi,
I whant to put some link like ....http://www.something.coom/muestra.php?zona=Test1-z&r=1
after the choose button for the image into URL field
but there's nothing happend because
it's not valid extension

How can I disable this for to use remote image from ad manager script

10x  :lol:

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
Re: Disable the "Valid extensions"?
« Reply #1 on: July 28, 2006, 01:22:43 AM »
Just add &.jpg at the end of the url (or other extension if you wish).
i.e. http://www.something.coom/muestra.php?zona=Test1-z&r=1&.jpg
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 jomilo

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Disable the "Valid extensions"?
« Reply #2 on: July 28, 2006, 08:25:57 AM »
10x
but nothing happend
I use itno admanager data base a Flash file .SWF
I tried to put at the end &.swf but still nothing happend

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
Re: Disable the "Valid extensions"?
« Reply #3 on: July 29, 2006, 06:41:40 PM »
Asuming you are using v1.7.3 then in includes/functions.php find:
Code: [Select]
  ereg("(.+)\.(.+)", get_basefile($file_name), $regs);
replace it with:
Code: [Select]
  ereg("(.+)\.(.+)", $file_name, $regs);
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)