Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12356
Latest: Hermankidd
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 39780
Total Topics: 7006
Most Online Today: 78
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 37
Total: 37

Author Topic: Show user max audio or video size on "add video/audio form"  (Read 4127 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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: 14904
    • 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
4080 Views
Last post February 24, 2011, 01:52:53 pm
by simibill
28 Replies
14053 Views
Last post July 24, 2013, 03:01:13 pm
by Genie
18 Replies
4531 Views
Last post June 24, 2015, 02:18:21 pm
by SMFHacks
1 Replies
1733 Views
Last post July 25, 2015, 08:06:02 am
by SMFHacks
2 Replies
2248 Views
Last post November 18, 2015, 11:09:46 pm
by RedCairo

+- Recent Topics

[Mod]Login Menu Button by SMFHacks
July 05, 2019, 03:26:24 pm

Update by SMFHacks
June 19, 2019, 10:58:25 am

About Comments Approval by ajac63
June 12, 2019, 07:48:52 pm

Pretty Urls extras by SMFHacks
June 06, 2019, 12:14:53 pm

About using chmod to secure files by ajac63
June 05, 2019, 04:02:28 am

Bulk upload image problem by SMFHacks
June 01, 2019, 07:24:00 pm

About Watermark Options by ajac63
May 30, 2019, 05:25:39 pm

Why PayPal only by ajac63
May 30, 2019, 04:20:47 pm

Seller ToU not showing by ajac63
May 29, 2019, 01:59:24 am

Not happy by ajac63
May 28, 2019, 06:37:58 pm

Powered by EzPortal