MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
Extensions Gallery
AuthorText
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 31/10/2009 16:30
Extensions Gallery
#post22390
Hello Mem, Paul and all the friends ...
I'm trying to add some extensions in the gallery ... the intention is to double the gallery and make one similar, but with uploading videos ...
Where do I have to edit so I can allow other file extensions in the gallery?
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 6901
Contributes: 4406

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 31/10/2009 16:54
Re: Extensions Gallery
#post22392
admin/pages/gallery/index.php

~row 334

add the mime you need in this array
code
$upload->mime = array('image/gif','image/pjpeg','image/jpeg','image/png','image/tiff','image/bmp');
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 31/10/2009 17:15
Re: Extensions Gallery
#post22394
So if I put it this way, it will be correct?
code
$upload->mime = array('video/mpeg','video/quicktime','application/mp4','application/mpeg4-generic','application/x-shockwave-flash','video/x-msvideo','video/avi');
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 6901
Contributes: 4406

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 31/10/2009 17:19
Re: Extensions Gallery
#post22395
videos are not compatible with the gallery
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 31/10/2009 17:27
Re: Extensions Gallery
#post22398
Yes I thought ... actually, I just want to take the form of categories and upload the Gallery already has. I find it incredible how to organize this gallery and classes, and I want to take only the admin so I can create categories and upload the videos.
The gallery, I will create another, this time using Sexy Lightbox that supports multiple types of content, including videos.

But the way it is, it will make the upload without problems, right?
So I already could create categories and level up videos?
Of course I will also create (clone) other tables in the DB and another folder for the videos.
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 6901
Contributes: 4406

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 31/10/2009 17:29
Re: Extensions Gallery
#post22399
Set the minimum file size too. In the same place where you set mimes
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.191.109

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo