PDA

View Full Version : We should be able to attach .js files...


BirdOPrey5
08-09-2010, 03:38 PM
JavaScript files... I think people are having hard times figuring out why they need to rename attached .txt files to .js before using them.

Should be an easy fix for someone with admin access. :cool:

cad2go
08-09-2010, 04:44 PM
can you not zip them?

Paul M
08-09-2010, 08:20 PM
Should be an easy fix for someone with admin access. :cool:
Its not broken ;)

can you not zip them?
Yep, just zip them.

BirdOPrey5
08-09-2010, 08:45 PM
Why should I have to zip a single file? I can upload .txt files without zipping them. Why the extra step for .js files? is there some sort of security issue? Otherwise please re-consider- there are a number of times when a mod may consist of a single .js file, zipping is just more work for the author and the users.

Lynne
08-09-2010, 09:24 PM
In my mind, instructions for any modification should always be put into a text file - it's just a good idea to always have install instructions available on your computer for any modification your download instead of always having to go back to the modification thread. So, that means every modification should include at least one txt file. If you want to include any other files, then you would zip it together with the text file.

kh99
08-09-2010, 11:02 PM
is there some sort of security issue?


Yeah, I think

Its not broken ;)


means that it's some sort of security issue. :)

BSMedia
08-09-2010, 11:29 PM
Yeah, I think



means that it's some sort of security issue. :)

Care to elaborate? I dont think there is any security issue at all with attaching .js files.

BirdOPrey5
08-10-2010, 01:47 AM
In my mind, instructions for any modification should always be put into a text file - it's just a good idea to always have install instructions available on your computer for any modification your download instead of always having to go back to the modification thread. So, that means every modification should include at least one txt file. If you want to include any other files, then you would zip it together with the text file.

I agree with you for a real mod that is a good idea... but for a BB Code that seems overkill. I've seen people who see a download and automatically think it means there is something to install- then they ask in product threads why they can't import the files- and the answer is inevitably "because there are no files to import."

KevinL
08-10-2010, 12:21 PM
It takes like a half a second to zip one file...get over it lol

BirdOPrey5
08-10-2010, 05:17 PM
It takes 2 seconds to go to the Admin CP and add support for .js files to attachments...

That means once I (or me and 3 other people) have to spend a half second making zips 4 times then in the interest of time we're better served attaching them directly. Plus, most important, it makes it easier for the regular users.

Seriously, this is like a 'no brainer.'

Paul M
08-10-2010, 10:13 PM
means that it's some sort of security issue. :)
I dont see how you conclude that.

Personally I think we should only allow zip files (and images of course), but historically we allow a few others as well. There are no plans to add JS files to that list, and given that no one seems to have found this a problem over the last 8+ years, I dont see that its a great issue. Personally, I have never seen a mod that consists of just one JS file, that does not mean there arent any, but they must be very rare (and in fact, you could remove the need by using a plugin to inject any new JS).

Brandon Sheley
08-10-2010, 10:42 PM
It takes like a half a second to zip one file...get over it lol

ditto :up:


Seriously, this is like a 'no brainer.'
exactly, it works fine how it is ;)

BirdOPrey5
08-11-2010, 12:15 AM
I dont see how you conclude that.

Personally I think we should only allow zip files (and images of course), but historically we allow a few others as well. There are no plans to add JS files to that list, and given that no one seems to have found this a problem over the last 8+ years, I dont see that its a great issue. Personally, I have never seen a mod that consists of just one JS file, that does not mean there arent any, but they must be very rare (and in fact, you could remove the need by using a plugin to inject any new JS).

Continuing to do something simply for the sake because 'that's how it's always been' is quite sad actually... :down:

My Rainbow BB Code is just one .js file and my random text BB Code would have been if I could have uploaded one but instead I opted to just put the whole code in the BB Code replacement instead of the more efficient external file because it's easier then telling someone to rename a file.

Why have feedback forum at all if the answer is always 'because we always have done it that way.' ?

KW802
08-11-2010, 12:46 AM
Why have feedback forum at all if the answer is always 'because we always have done it that way.' ?
Because they've always done that way! :p











(Sorry, couldn't resist... it was just too easy.:D)

Lynne
08-11-2010, 01:05 AM
My Rainbow BB Code is just one .js file and my random text BB Code would have been if I could have uploaded one but instead I opted to just put the whole code in the BB Code replacement instead of the more efficient external file because it's easier then telling someone to rename a file.
Don't you think you should include instructions with the js code? I hate coming across a product xml file (or any mod file) and it not having a text file that goes along with it that lists a quick description, mod revision, instructions to install and uninstall, etc. It seems much cleaner to put a text file and js file in a folder together and zip it. That way the file and text file are always together.

BirdOPrey5
08-11-2010, 02:55 AM
Install: Add a BB Code
Uninstall: Delete BB Code

I get you, I really do... I could put all the info from the first post into a text file but I would be the only BB Code developer to do this and I think it would just annoy users more... if the instructions are in the post why do I need to download a text file... if they're not in the post then I'm a lot less likely to bother with the mod if I have to download a file to 'see' it first.

My point has been made, if the powers that be choose not to act on it so be it, it's just ridiculous an admin can't be bothered to add the .js extension to the allowed files list. I guess it's too much to ask. :rolleyes:

Marco van Herwaarden
08-11-2010, 05:49 AM
Install: Add a BB Code
Uninstall: Delete BB Code
If that is all, why include a .JS at all? Following your instructions there seem to be no need to upload it somewhere.

PS Please do not forget that many users are not experienced in developing and have no clue what to do with such a file.

it's just ridiculous an admin can't be bothered to add the .js extension to the allowed files list.If a suggestion is really usefull then it is added, but it is not about time or effort like you seem to suggest as it costs us more time to respond to request then to simply add an extension.

But if you read back the thread, it is not such a no brainer, some other users also seem to share our point.

Xencored
08-11-2010, 07:37 AM
Defo should add ".rar" ^^

Naan-Kadavul
08-11-2010, 08:30 AM
It could be done in Admincp --- Attachement Manager. allow .js extensions.

.js - javascript..

(not all people have java client installed in their pc)

Rar files are not secured. Virus problem may arise. So lets avoid .rar extensions as an attachment.

Xencored
08-11-2010, 09:16 AM
Rar files are not secured. Virus problem may arise. So lets avoid .rar extensions as an attachment.

And Zip's are?

Naan-Kadavul
08-11-2010, 09:56 AM
.rar , .zip, .7z

anything which is compressed into small format is not so secured in my view.

Paul M
08-11-2010, 10:01 AM
Continuing to do something simply for the sake because 'that's how it's always been' is quite sad actually... :down:

Why have feedback forum at all if the answer is always 'because we always have done it that way.' ?

Defo should add ".rar" ^^
Changing something just for the sake of changing it is also pointless. Having a feedback forum does not mean every suggestion is going to get implemented. Its been considered, and rejected. Its sad that some cannot handle rejection very well.

Rar files are not secured. Virus problem may arise. So lets avoid .rar extensions as an attachment.
Not really sure what this means - how are .rar files more (or less) secure than zip files ?

BTW, rar files have also been considered in the past, but it was decided that zips are the common compression method that everyone can handle - if people used rar they would have to provide a zip as well, which rather defeats the purpose.

Xencored
08-11-2010, 01:42 PM
Having a feedback forum does not mean every suggestion is going to get implemented. Its been considered, and rejected. Its sad that some cannot handle rejection very well.

What the hell? get out the wrong side of the bed today Paul?

Ive never seen it asked before than again ive never looked. I saw this thread and thought i would ask (as most of my files are Rar's)

i think your Its sad that some cannot handle rejection very well.
Was wayyyy OTT ....

BirdOPrey5
08-11-2010, 01:56 PM
Changing something just for the sake of changing it is also pointless. Having a feedback forum does not mean every suggestion is going to get implemented. Its been considered, and rejected. Its sad that some cannot handle rejection very well.


I can handle rejection fine if it's based on logic. Give me a good reason not to do this-
A security issue (though this doesn't seem to be the case)
It would break something else (also not true)
It would make life harder for someone (again not true)
But if any of the above were true I would take it as a good reason and go about my day. Instead the only reason I'm given is 'because it's always been done that way' and that is NOT a reason at all.

Unless a new point is raised I'm done commenting on this, my position has been made known and I've given several reasons why it's a good idea and no one has given a good reason why it's a bad idea. Period.

As for .rar files I couldn't care less... zips are much more popular and do the same thing so I don't see a need but if you want to give the mod authors the choice, that's fine too- I'd never use it because there are lots of people who can unzip files (it's built into windows) who would need to have their hands held to unrar a file.

Paul M
08-11-2010, 07:49 PM
What the hell? get out the wrong side of the bed today Paul?

Nope. ;)

Ive never seen it asked before than again ive never looked. I saw this thread and thought i would ask (as most of my files are Rar's)

i think your
Was wayyyy OTT ....
I never mentioned any names (or suggestions either), your assumption that its directed purely at you is OTT. :erm:

kh99
08-11-2010, 08:12 PM
I dont see how you conclude that.


I think it was the little winking icon, but sorry if I misunderstood.

BirdOPrey5
08-11-2010, 08:43 PM
Also .css files. :p

Xencored
08-11-2010, 10:42 PM
Nope. ;)


I never mentioned any names (or suggestions either), your assumption that its directed purely at you is OTT. :erm:

Hehe you quoted me :up:

Marco van Herwaarden
08-12-2010, 04:04 AM
Closing as the original question is answered and the thread only goes off topic now.