The Chess Variant Forum

General Category => General Discussion => Topic started by: Asher Hurowitz on January 26, 2018, 09:34:08 pm

Title: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: Asher Hurowitz on January 26, 2018, 09:34:08 pm
Unfortunately according to the forum logistics it says we have almost completely taken up our allotted forum attachment space. I don't think it would be right to delete posts. What should I do?
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: GothicChessInventor on January 26, 2018, 11:04:30 pm
Have everyone use an image hosting site and don't attach images directly. Just show thumbnails.

Ask then to change their posts one at a time and delete the attachments once the hosting site shows the images ok.
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: HGMuller on January 27, 2018, 10:12:12 am
It would be useful to make an inventory of which fraction of the allotted space is taken up by which type of images. And then try to find alteratives for the most demanding categories.

My guess is that whole-board images of chess positions take up a pretty large amount of space, and posting one for every position in a game would be prohibitively expensive. In any case it is a huge waste of storage space and bandwidth, as the information contained in them could have been encoded in a very small text description (like FEN), to be expanded to an image in the client browser. This is how most Chess forums solve it. (E.g. on TalkChes you just put the FEN preceded by a [d] tag in your posting, to get a diagram. Or a PGN game between [pgn][/pgn] tags to get an interactive board where you can step through the game.
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: chilipepper on January 27, 2018, 07:29:06 pm
Asher, are you sure that almost all the allotted space has been used? That's surprising to me.

I know that this isn't YouTube or Flickr, but those sites (with advertising supported by page views) allow anyone to post any photo or video, seemingly without a limit.

I use Flickr, and often post high-resolution photos. One such photo uses more memory than an entire chess game encoded in images (1 image/move x 100 moves). When I check Flickr (free-membership) it always says that I've used 0.0% of my 1TB of free memory. And Flickr allows videos too (which I presume use more memory than photos):

https://www.flickr.com/photos/148997126@N03/24525422338/

I also often visit this site:

https://www.cloudynights.com/forum/135-north-american-total-solar-eclipse-2017/

Which also allows uploading astronomy photos (by anyone for free). Does anyone know how that site is supported?

Are there other options?
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: chilipepper on February 12, 2018, 02:54:06 pm
I'm getting an error when trying to upload images - even a small 50x50 pixel image of one chess piece.

I had the problem when trying to submit a chess variant, and also here when trying to upload a single image.

The message I get is: "An Error Has Occurred! - The upload folder is full. Please try a smaller file and/or contact an administrator."

Let me know if there is anything I can do. Thanks. ???
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: HGMuller on February 13, 2018, 12:10:34 pm
I have discovered that this website has a support forum, and after I registered and posted a queston there they deliver prompt service ( https://support.createaforum.com/8/adding-javascript-powered-features-to-forum-posts/ ).

What it boils down to is that the admin of this board should put a line in the header or footer (in the way described there) to invoke the JavaScript that would expand any diagrams included in postings. I am sure I can easily supply a script that does the job, but for testing purposes it would be best to make the link point to a script on my website, so that I can debug it without assistance from the admins here. Once it works fully satisfactory, we can have the script itself, and the individual piece images it draws on, hosted on this website, and chage the link in the header/footer to point to that.

The link I would need initially in the header is

<script type="text/javascript" src="http://hgm.nubati.net/variants/CVF.js"></script>

Let me know whe this has been placed, then I will create diagram support.

Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: GothicChessInventor on February 13, 2018, 09:25:48 pm
I have discovered that this website has a support forum, and after I registered and posted a queston there they deliver prompt service ( https://support.createaforum.com/8/adding-javascript-powered-features-to-forum-posts/ ).

What it boils down to is that the admin of this board should put a line in the header or footer (in the way described there) to invoke the JavaScript that would expand any diagrams included in postings. I am sure I can easily supply a script that does the job, but for testing purposes it would be best to make the link point to a script on my website, so that I can debug it without assistance from the admins here. Once it works fully satisfactory, we can have the script itself, and the individual piece images it draws on, hosted on this website, and chage the link in the header/footer to point to that.

The link I would need initially in the header is

<script type="text/javascript" src="http://hgm.nubati.net/variants/CVF.js"></script>

Let me know whe this has been placed, then I will create diagram support.

Good job H.G.! That is exactly what we need here!
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: HGMuller on February 14, 2018, 04:11:44 am
Well, the job still has to be done. The diagram script already exists (I use it on chessvariants.com to post diagrams), but it scans the page for 'anchors' in HTML of the form
<div class="idiagram"></div> enclosing with the diagram. It doesn't seem we can post HTML directly here, though (unlike chessvariants.com). So I will adapt the script to just do an initial pass over the page for HTML elements with class="post" (which is how the forum software wraps the text of individual postings), exract the text, and scan each such text for [diag][/diag] BBcode-style tags, replacing those by <div class="idiagram"></div> HTML tags, before running the existing script to expand the latter.

But I cannot do anything if the forum header here would not invoke the script. I have no admin permissions on this board.
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: chilipepper on April 17, 2018, 06:06:46 pm
Does anyone know the status of our ability to post diagrams to this forum?

I know we can use external image hosting websites (post images externally, and link to images here). I find that to be somewhat cumbersome and inconvenient. Has it been settled that this is the permanent method for posting diagrams and illustrations here? ???
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: HGMuller on April 18, 2018, 03:58:08 am
The status is "no progress, and not being worked on". Creating this possibility requires an action of the board admin.
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: Asher Hurowitz on April 18, 2018, 08:26:37 am
The status is "no progress, and not being worked on". Creating this possibility requires an action of the board admin.

I am working on it. I work very hard on this forum constantly and this is on the top of my to-do list.
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: chilipepper on April 18, 2018, 10:06:07 am
Thanks Asher. :)
Title: Re: FORUM ANNOUNCEMENT: ATTACHMENT FILE HUGE PROBLEM!!!
Post by: John_Lewis on April 18, 2018, 05:43:58 pm
Thanks Asher. :)

Thanks Asher.  :)