Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12404
Latest: azaratir
New This Month: 10
New This Week: 0
New Today: 0
Stats
Total Posts: 39925
Total Topics: 7028
Most Online Today: 35
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 33
Total: 33

Author Topic: Show user max audio or video size on "add video/audio form"  (Read 4267 times)

0 Members and 1 Guest are viewing this topic.

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Greetings - I couldn't find an answer to this so looking for some guidance. 

When a user goes to upload an audio or video file to their gallery, I would like to show something like "Maximum file size is 100mb"



I'd like to also show this type of notification in the picture upload form stating the max dimensions of pic and max size of pic. 

I appreciate the assistance greatly. 

All the best
Ron
"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #1 on: August 02, 2015, 12:29:43 pm »
Added for 7.0.7
7.0.7
+Added max filesize display under add/edit image and audio/video file upload field


Dimensions are shown already if you do not have the image resize option enabled.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #2 on: August 02, 2015, 12:36:12 pm »
Very Cool - thanks much.  Will 7.0.7 be available for download?  I only see 7.0.6 on the download page. 

Your continued excellent assistance is so very much appreciated. 

All the best
Ron
"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #3 on: August 02, 2015, 12:42:03 pm »
Just added it to the downloads section
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #4 on: August 02, 2015, 01:02:24 pm »
Again, thank you for doing this.  I did install 7.0.7 and the form does not show the changes you made.  Thoughts? 

Ron
"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #5 on: August 02, 2015, 01:52:45 pm »
You don't see it on any add/edit picture or video?
Make sure your max filesize is greater than 0 for it to appear.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #6 on: August 02, 2015, 02:28:20 pm »
2 of these are the gallery settings that I believe are relevant:

This is the user "add video/audio" form



From Gallery Config - file size max



From Video/Audio settings

"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #7 on: August 02, 2015, 02:36:26 pm »
When installed does it say 7.0.7 under settings?

Make sure the file themes/default/gallery2.template.php is copied there from the zip file.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #8 on: August 02, 2015, 03:39:18 pm »
Yes the install shows 7.0.7 as installed

themes/default/gallery2.template.php is in place correctly

I have installed this on my live site and my dev site (dev site did not have any previous version installed) and both are not showing any change.

I also changed the template to the default and there was no difference. 

Thanks
Ron
"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #9 on: August 02, 2015, 03:42:54 pm »
make sure you don't have anything in your custom themes folders that says gallery2.template.php file
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #10 on: August 02, 2015, 03:44:37 pm »
I did check that as well previously
"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #11 on: August 03, 2015, 08:19:22 am »
Fixed just uploaded new version looks like some of the changes I made didn't' get saved into the zip file.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #12 on: August 03, 2015, 10:11:51 am »
Thank you for your hard work; although I may owe you an apology. 

After installing this version I still could not see the addition you made.  Checked all my permissions did a test (3 or 4 times).  What I did discover is it may be my fault.  The php max upload files show 100MB as shown yesterday:




Continued searching for a solution to this problem figuring it was me not you that is mistaken.  I then saw that in  Administration Center Gallery Configuration Settings Gallery  Audio/Video Settings  the value for Video/Audio Max File size (in bytes) was set at 0 - once I changed it to 100000000 bytes (corresponding to my php max upload files) I was able to see the change. 



This was tested and corrected on my end using my dev site, 7.0.7a installed.  My live site had 7.0.7 installed.  After making the file size change as described above 7.0.7 on my live site functioned as you intended, leading me to believe that the whole thing was my ignorance. 

Please accept my apologies for causing you so much extra work - I did not catch that. 

Very much appreciate that you added that info the upload form, thank you very much. 

All the best
Ron
"Life is really simple, but we insist on making it complicated." - Confucius

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14969
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #13 on: August 03, 2015, 10:24:09 am »
I had a mistake with the add/edit picture not showing which I fixed in the 7.0.7a release.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BuddahBoy

  • Newbie
  • *
  • Posts: 32
  • Aw crap! Forgot what to say
    • View Profile
Re: Show user max audio or video size on "add video/audio form"
« Reply #14 on: August 03, 2015, 10:34:11 am »
I'm installing now on my live site and want to thank you once more the efforts you make and solutions you provide.  Greatly appreciated. 

All the best,
Ron
"Life is really simple, but we insist on making it complicated." - Confucius

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4209 Views
Last post February 24, 2011, 01:52:53 pm
by simibill
28 Replies
14301 Views
Last post July 24, 2013, 03:01:13 pm
by Genie
18 Replies
4761 Views
Last post June 24, 2015, 02:18:21 pm
by SMFHacks
1 Replies
1784 Views
Last post July 25, 2015, 08:06:02 am
by SMFHacks
2 Replies
2387 Views
Last post November 18, 2015, 11:09:46 pm
by RedCairo

+- Recent Topics

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

Powered by EzPortal