Jump to content

Search the Community

Showing results for tags 'file size'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • WebFlake
    • Announcements and Updates
    • WebFlake Support
    • Member Introductions
    • Off-topic Lounge
    • Archives
  • Webmasters
    • Webmaster Lounge
    • Marketplace (Hire, Buy, Sell, Trade)
    • Coupons and Deals
    • Hosting
    • Website and Graphics Design
    • Website Showcase
  • Invision Community Suite
    • Invision Community Suite 4.7
    • Invision Support
    • Invision Requests
    • Invision Tutorials
    • Invision Beta
  • XenForo
    • XenForo 2.2
    • XenForo Support
    • XenForo Requests
    • XenForo Tutorials
  • WordPress
    • WordPress Content
    • WordPress Support
    • WordPress Requests
    • WordPress Tutorials
  • Unsupported Software
    • IPB 3.4 Legacy
    • IPS 4.x Legacy

Categories

  • Invision Community Suite 4.7
    • Applications and Plugins
    • Themes
    • Translations
    • Invision Extras
  • Invision Community Suite 4.6
    • Applications and Plugins
    • Themes
    • Translations
    • Invision Extras
  • Invision Community Suite 4.5
    • Applications and Plugins
    • Themes
    • Translations
    • Invision Extras
  • XenForo 2.2
    • Add-ons
    • Styles
    • Translations
    • Miscellaneous
  • XenForo 2.1
    • Add-ons
    • Styles
    • Translations
    • Miscellaneous
  • Wordpress
    • Themes
    • Plugins
  • ThemeForest
    • HTML
    • CMS
    • UI Design
    • JavaScript Code
  • CodeCanyon
    • PHP Scripts
    • JavaScript
    • CSS
    • HTML5
  • Graphics & Design
    • Emoticons & Smileys
    • Ranks & Badges
    • PSD & AI Designs
  • Unsupported Software
    • IPB 3.4
    • Invision Community Suite 4.4
    • Invision Community Suite 4.3
    • IPS Community Suite 4.2
    • IPS Community Suite 4.1
    • XenForo 2.0
    • MyBB 1.8

Product Groups

  • WebFlake Creative Designs
  • WebFlake Donation Bundles

Blogs


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Version

Found 1 result

  1. So for some stupid reasons IP Board gets the max file size number from the php.ini file on your server, but some hosting providers do not allow the user to mess with the php.ini or they trouble you a lot before changing it. And plus, IP board didn't realize that some hosting plans are volume based and the admin might want to limit the file size to save the space. Anyways, below is a method of changing your Max File Size in post attachment through the source code instead of the need to change php.ini Go to adminsourcesbasecore.php Look for this: This will be somewhere near line 2865 /** * Grab max post upload * * @return integer Max post size */ static public function getMaxPostSize() { $max_file_size = 16777216; $tmp = 0; $_post = @ini_get('post_max_size'); <-- This function is grabbing the value from your server $_upload = @ini_get('upload_max_filesize'); <-- This function is grabbing the value from your serverChange: $_post = What_Ever_Size_In_Bytes; $_upload = What_Ever_Size_In_Bytes;Example: $_post = 2097152; (This is 2MB) $_upload = 1048576; (This is 1MB)1 MB = 1024 KB 1KB = 1024 bytes So 1MB = 1024 * 1024 Note: Keep $_post Greater than $_upload in bytes. Save and Upload. done! Note: Don't forget to clear your browser's cache to see the change.
×
×
  • Create New...