• How can I add more allowed file extensions? 5 0 5 1
Currently:  

Author Topic: How can I add more allowed file extensions?  (Read 347786 times)

0 Members and 2 Guests are viewing this topic.

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: How can I add more allowed file extensions?
« Reply #30 on: December 03, 2005, 04:37:57 AM »
i have another question... i would like to show the URL to the autor in the media templates for .gif and .jpg extensions. And only show the url to the author, which would be the condition so that it worked?
I dont think this question is related to the topic ;)
Feel free start a new topic in mod request forum ;)
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 ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: How can I add more allowed file extensions?
« Reply #31 on: December 03, 2005, 04:50:29 AM »
ok sorry.. i have already done it
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline ziomekdjpl

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #32 on: December 24, 2005, 01:40:56 PM »
so what about rmvb format?
I add rmvb but id doesn't work:/

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: How can I add more allowed file extensions?
« Reply #33 on: December 24, 2005, 01:43:14 PM »
so what about rmvb format?
What about it?
The tutorial is more then enough to understand what has to be done :roll:

I add rmvb but id doesn't work:/
too bad
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 fult5000

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #34 on: December 31, 2005, 12:59:40 AM »
hallihallo,

bei mir sieht es so aus: ich habe die datei c4d in die gallery hionzugefügt. das uploaden der datei funktioniert einwandfrei, es wird auch das icon gezeigt das ich angegeben habe. nun habe ich folgendes propblem. ich möchte das in der galerie das thumbnail in klein zu sehen ist und in der datei-detailansicht das grösser thumbnail. und wenn ich downloade bekomme ich die c4d datei. ich benutze phpthumb. wie kann ich das ganze realisieren?

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: How can I add more allowed file extensions?
« Reply #35 on: January 08, 2006, 01:59:07 AM »
I uploaded a screensaver file via FTP to my site, but how do i tell it is in the directory?  I click "check new images" and nothing appears?  Am I doing something wrong, or do I have to add the mime type as shown before it will recognize it?  Thanks

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: How can I add more allowed file extensions?
« Reply #36 on: January 08, 2006, 04:21:23 AM »
Do exactly as it discribed here:
http://www.4homepages.de/forum/index.php?topic=3080.0
And then follow instructions from this topic
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 lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: How can I add more allowed file extensions?
« Reply #37 on: January 08, 2006, 07:27:58 PM »
OK i followed it and it works.   Mainly, I'm just an idiot.  I had created the screensaver as an .exe instead of an scr.

Offline m3tallica

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #38 on: January 11, 2006, 01:13:08 PM »
All I want is the code to allow .wmv files to be valid uploads....

I must be an absolute retard though because I've read and re-read the instructions so many times and I'm still not getting it to work, i'm sure there's something i'm missing.

Can someone who's had success adding .wmv as a valid file extension please copy and paste it into here?

Cheers from a very disgruntled reader.

 :oops: :cry: :cry: :?: :cry: :oops:

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #39 on: January 11, 2006, 02:42:19 PM »
@ m3tallica and all other wmv-friends,

WMV as new valid file extension

1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions

2. for wmv-files add the following code line into your includes/upload_definitions.php
Code: [Select]
$mime_type_match['wmv'] = array("video/x-ms-wmv");
or this (update ...)
Code: [Select]
$mime_type_match['wmv'] = array("video/x-ms-wmv", "application/x-unknown");

3. create a new wmv.html in templates/<your_template>/media/ like this
Code: [Select]
<!-- Template file for WMV Movies  -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
</embed>
<br>

4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this


... thats all ... now you can present wmv-files in your 4images gallery ...  8)
mawenzi

... a hint by v@no  ...
http://www.4homepages.de/forum/index.php?topic=25376.msg139001#msg139001
« Last Edit: July 23, 2009, 09:36:59 AM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline eZz

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • WALLPAPERS
Re: How can I add more allowed file extensions?
« Reply #40 on: January 14, 2006, 11:46:10 AM »
Trying to upload AMR audio file but cant :(

i cant get no mime type at all :/

It says:

Error uploading image file:
test.amr: Invalid file type (amr,)

what shold i do now :/

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: How can I add more allowed file extensions?
« Reply #41 on: January 14, 2006, 12:05:43 PM »
This has been answered already (for different extension).
http://www.4homepages.de/forum/index.php?topic=7277.msg52515#msg52515
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 m3tallica

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #42 on: January 20, 2006, 11:22:29 PM »
mawenzi - thankyou SO much man, it finally works!!!

 :D :mrgreen: :lol:

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #43 on: January 21, 2006, 12:13:04 AM »
@m3tallica ... nice to read ... :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline eurofunny

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: How can I add more allowed file extensions?
« Reply #44 on: January 30, 2006, 10:51:21 AM »
Hello all,

 i am new and 4image is great, thanks. My question is: Can i play with 4images this format mms://www.meineurl.de:8080 this one play with mediaplayer. I have put all steps from this faq but when i upload then come this error "Bitte wählen Sie eine Bilddatei!"
Ca anyone help me.

Thanks eurofunny