|
 |
 Home > FlexCMS Support Forum > Recent Messages

FlexCMS Support Forum
 Recent Messages


|
 |
|
|
| May 26, 2010 @ 4:05pm | I think we're still not talking the same info...
I'm trying to upload a file that's ... 2,715 Kilobytes I set flex filemanager to ............ 4,000 Kilobytes My php upload limit is ............... 2 Megabytes
I've uploaded other files that are below 2,400Kb to the same directory and they loaded fine. |
|
|
|
| |
|
 |
|
|
| May 26, 2010 @ 1:55pm | Wolf,
Sorry I must have misread that, I thought it was 3MB you were trying to upload. It's possible it's due to something else as well. That error occurs when the file size is 0 or not present, which can either be an upload/timeout problem, or a problem creating/moving the file. Does this happen in other directories and/or with other files?
Regarding the upload limit, if you've increased it in the FlexCMS side and it's still 2MB, you'll need to adjust your PHP configuration to increase that. It has limits of its own as well, and FlexCMS picks the lowest of the two.
David |
|
|
|
| |
|
 |
|
|
| Other suggestions? | May 26, 2010 @ 1:05pm | Dave,
Haven't heard back regarding File Manager file upload size limitation...
I'm still being limited to 2048Kb upload. I checked phpinfo and it's set to 2M upload size, my site preference upload size is set to 4000Kb... and I'm only trying to upload 3Kb
Thanks, Wolf |
|
|
|
| |
|
 |
|
|
| May 25, 2010 @ 10:46am | Hi Kevin,
You're correct, FlexCMS does not do very well with the W3 validator. However, most sites don't either.
For example, here's a few popular sites I ran just for fun: - HP (donating the server space for the validator itself): 112 errors, 12 warnings - Google: 46 errors, 2 warnings - Yahoo: 156 errors, 31 warnings - Facebook: 42 errors - Twitter: 15 errors, 68 warnings
Some of the "errors" it finds are stupid or just plain wrong, too. For example, one of the ones it finds on FlexCMS.com is 'Line 40, Column 27: there is no attribute "HEIGHT"' (a table tag). Last I checked the HEIGHT attribute was still allowed in tables!
I also would respectfully dispute the impact of code validation on SEO. I agree that there are elements of it which reflect on SEO, such as having ALT tags on images, and overall making sure the code is as clean and streamlined as possible, but I doubt making your site run through the validation process will do much or anything for its indexing with the search engines. I have a site running FlexCMS which currently ranks #1 out of 5,140,000 results on Google, so I don't believe it does anything to prevent good SE placement.
David |
|
|
|
| |
|
 |
|
|
| HTML Validation | May 25, 2010 @ 6:05am | Wow just got a big shock when I tried to validate my website the main page came up with 88 errors and 2 warnings. And this is before I added any content Can the code be HTML validated, if not, why? this is one of the main SEO requirements. Even your main page shows 57 errors and 14 warnings http://validator.w3.org/check?uri=http%3A%2F%2Fflexcms.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.767
Your thoughts please Kevin |
|
|
|
| |
|
 |
|
|
| ::-) | May 24, 2010 @ 2:55pm | Cool beans! Thanks Dave.
I corrected both examples to include your suggestion. 
Wolf |
|
|
|
| |
|
 |
|
|
| May 24, 2010 @ 1:00pm | Need another period before the $ on BaseURL but yes that's where I meant to put it. The location in the files table is a relative path, such as /newsletters/, so depending on the URL you're at and how the browser interprets it you may end up with bad links. Adding the BaseURL variable (contains something like http://www.flexcms.com or http://somesite.com/installationfolder) in there will give you an absolute URL that will always be correct no matter what.
Dave |
|
|
|
| |
|
 |
|
|
| Thanks and a question... | May 24, 2010 @ 12:04pm | Dave,
Thanks!
I'd assumed that since File Manager created the info it would contain the necessary full path info. Is that not always the case?
Is this what you suggest?

Quote
$query = "SELECT `Location` , `Filename` FROM `core-Files` WHERE `Location` = \"/newsletters/pdf/\" ORDER BY Filename asc";
$result = mysql_query($query) or die (mysql_error());
print '# Newsletters: ' . number_format(mysql_num_rows($result),0) . '<br><br>';
while ($row = mysql_fetch_array($result)) { print '<a href="'.$BaseURL.$row['Location'].$row['Filename'].'" target="_blank">'.$row['Filename'].'</a><br>'; }
|
|
Thanks! Wolf |
|
|
|
| |
|
 |
|
|
| May 24, 2010 @ 10:58am | Hey Wolf,
Neat script, thanks for sharing. One small change I would suggest is adding $BaseURL to the beginning of your link URL in the HREF argument of the link (ie: $BaseURL.$row['Location'].$row['Filename']). That way you'll always get the absolute link you intended, rather than relying on the browser to come up with the correct relative one (there may be issues with some browsers on deeper pages on the site because it may mistake "/pages/something" as folders and add your download link onto the end of that).
Dave |
|
|
|
| |
|
 |
|
|
| Automagically Generate Clickable File Links | May 24, 2010 @ 12:14am | I have a client who wanted to upload newsletters in PDF format so that clients could then click on a link to download them.
The catch is we didn't want the client to have to maintain hard coded links to the newsletters, so I came up with this little ditty...
Using File Manager, I created a directory structure called "/newsletters/pdf".
Then set permissions on the directory so that only the newsletter guy could upload to it via the new File Manager.
I created the following code snippet, then included the snippet in a block:

Quote
$query = "SELECT `Location` , `Filename` FROM `core-Files` WHERE `Location` = \"/newsletters/pdf/\" ORDER BY Filename asc";
$result = mysql_query($query) or die (mysql_error());
print '# Newsletters: ' . number_format(mysql_num_rows($result),0) . '<br><br>';
while ($row = mysql_fetch_array($result)) { print '<a href="'.$BaseURL.$row['Location'].$row['Filename'].'" target="_blank">'.$row['Filename'].'</a><br>'; }
|
|
Now all the newsletter editor has to do is upload/delete/rename files as he chooses and the links are generated dynamically.
Cheers, Wolf
PS - Be careful about naming your files... it's probably NOT a good idea to include spaces or special characters. |
|
|
|
|


|
|
 | |