Don’t know how this can be fixed though.. Maybe if the text would be in a textarea, it would not copy like that to the clipboard.. not sure though.. if not, maybe there has to be some button to do the copying to clipboard through javascript what would take those html comment tags away..?
I’ve been thinking about this as well and there doesn’t appear to be any quick solutions to this problem ... even placing the snippet calls and code in a textarea would still require the commenting to prevent the document parser picking up the calls.
The JS function would work but we need a way of uniquely identifying each snippet call/piece of code so that the function can pick out the correct information ... this is made slightly more difficult because of the possibility of nested tags within code etc. The only thing I can think of is that the bbcode parser is completely revised to be more like a tokeniser and that each main snippet call/code block is given a unique ID in order that it can be extracted by the JS function. (the button could also be dynamically inserted at the correct places with this method)
This is by no means a small piece of work so if anybody is willing to assist with this, it would be great.
Speaking of these, can we exempt these from the most popular downloads, or probably better should we just bump the download count for past resources? On that same note, can we easily add the past distributions after the fact and modify the download count to reflect the current status?
I think we need to add a TV checkbox to allow for resources to be exempted from the ’most downloaded’ listing - this would allow for easier admin going forward. We can update any download counts retrospectively, so all core distributions can be easily updated with their existing download counts as required.
@Ryan: I am still working on getting the test repository up and running - I’m being extremely careful to make sure that there is no crossover between the test repository and the main repository, especially with the various chunk calls etc. I am not far off now having a setup for you to start work on the layout changes.