Jump to content

[REL] GTAForums Table Code Generator


Barguast

Recommended Posts

I've just finished creating this program that lets you create and manage tables for use on these forums without having to understand the table code or worry about missing out a tag and screwing up an entire topic. I made it to help me maintain this topic after I 'misplaced' the formatted version of the code which made it very difficult to update. Given the number of PMs I receive asking how to code tables I'm hoping it'll prove useful to other members as well as myself. It's still a little rough around the edges (the program code especially) but it does the job pretty well.

 

The program is written in C#, so you'll need to have the Microsoft .NET Framework installed to use it. Hopefully most people have this already since it is a pretty big download at roughly 23MB. To check whether or not you have it installed, click Start > Control Panel > Add / Remove Programs. If the item Microsoft .NET Framework is listed then you already have it installed, if not you can download it from here.

 

I realise there are better / more appropriate platforms that this could've been written for, but it was primarily an exercise for teaching myself C#. I should also point out that this is only the second program I've written in this language - the first being a Notepad clone. This, coupled with the fact that it took just three days to finish means you shouldn't expect too much from it.

 

Instructions

 

Most of the program should be fairly self explanatory. Right-click any cell on the table to access the menu that allows cells, rows and columns to be inserted, deleted and highlighted. After selecting a cell, the text box at the bottom of the form can be used to edit the contents. You can resize the rows and columns of the table, although this is purely for convenience when designing the table - as with any table on these forums, the rows and columns will size themselves once posted.

 

Once the table is ready, select the 'Generate Code' option from the Table menu. Click the 'Copy to Clipboard' button to copy the code which can be pasted into your post. At the moment, there are just two formatting options for the table code. You can switch between the bordered and un-bordered tables with the 'Borders' checkbox, and also remove any whitespace (ie. carriage returns) from the end of the cell contents with the 'Trim trailing whitespace' checkbox.

 

Hold the CTRL key down to select multiple cells or hold the SHIFT key down to select a region between one cell and the currently selected cell. You can also combine the CTRL and SHIFT key to make more complex selections. Whenever multiple cells are selected, operations will affect all of the selected cells. For example, if two cells in different columns are selected, and you click the 'Delete Column' option, both of the columns will be deleted. The same goes for the highlight and resize column / row options.

 

Existing table code can be imported via the 'Import Code' option which can be found in the File menu. The limitations of this option can be found in the Import Code dialog, but it should be capable of importing most tables found on the forum.

 

Downloads

 

 

Binary Source
Version 2.0 Download (37KB, ZIP) (Link updated: 15/10/2012)) Download (88 KB, ZIP) (Down)
Example Table File (2 KB, XML) (Down) An example table file which is shown in the screenshots below. This can be loaded via the File menu.

 

Screenshots

 

 

Version 2.0 Interface Code Preview
user posted image user posted image
Questions, Comments, etc. Edited by Barguast
  • Like 2
31805323.png
Link to comment
Share on other sites

Nice idea, and a very usable one aswell. I'm sure this will save people loads of time, and will be very much appreciated in the community.
Link to comment
Share on other sites

PresidentKiller

This is very useful. Thanks!

 

Btw, C# is a good language, don't underestimate it. wink.gif

Edited by PresidentKiller

uLAyIka.png

Link to comment
Share on other sites

GTA3Freak-2001
Well this is probably the most useful tool on the forums, I can't stand trying to understand the table codes so this for me is great. I am sure there are hundreds others like me who avoid the table codes thus making this an extremly useful tool.
Link to comment
Share on other sites

It managed to get Freakeh posting in the depths of WD&P, so good work tounge.gif.

 

Seriously though, it is great.

Link to comment
Share on other sites

Good going Barg it looks like a great program and I'm pretty sure it will save people loads of time. I'll get it when I have enough time to download the Microsoft .NET Framework.
Link to comment
Share on other sites

Wow, thanks for the positive feedback everyone.

 

I've made a few minor alterations since I first posted this topic but they are mainly cosmetic. I can't stress enough how much of a rush job this program was. I'm thinking of re-doing it all from stratch - next time I might actually plan or design some of it before I start coding tounge.gif

 

@Segosa - I've added the source code download to the first post smile.gif

31805323.png
Link to comment
Share on other sites

Wow man, this is a good program. I just downloaded it and tried it. Very usefull. I myself know tableing, but the amount of people that ask me to do thier coding for them gets stressfull, but I remember back when I couldn't do it.

 

Anyway, i'm rambling on, good work Bargaust. smile.gif

9zkgc.png

Link to comment
Share on other sites

Very nice work man, wil help great with my tabling needs.

 

But, could you ad the 'color tag system' and bold different typos and image insertion, please?

Oh and Table into TAble would be nice too..

 

Nonetheless, great work.

Edited by Stefaan
Link to comment
Share on other sites

This would have been nice to know oh say... 3 weeks ago before I gave up my sanity tableing the GTA4 board Index!!! tounge.gif

 

 

*whispers* Thanks for your help on that BTW..

Link to comment
Share on other sites

Great idea Barg!!! Very impressive. Good thinking to pick something that can be useful to others while helping teach yourself.

 

HD Rick

aka Dr.X

"Kill her. That's all you have to do."

"Kill Mary?"

"She's a risk. And get the priest as well."

Link to comment
Share on other sites

THIS IS FANTASTIC!

One minor problem though ... this fellow takes up 14 MB of Runtime confused.gif

 

 

8jjZhSV.jpg

Link to comment
Share on other sites

 

f*ckingbadassbarg.i'llwhorethisoutnow.thanks!waddyausetomakeit?c++?thankyouthough.<!--SS-->

o

c

t

 

user posted image

user posted image

user posted image

Link to comment
Share on other sites

But, could you ad the 'color tag system' and bold different typos and image insertion, please?

Oh and Table into TAble would be nice too..

I was planning on adding color / link / img / bold buttons, etc. That certainly won't be difficult to do. There are many parts of the code that I'm not happy with at all and I've already started rewriting most of it.

 

Thanks again for all your comments, I'm glad you like it smile.gif

 

@vAL - That'll probably be the .NET framework - once it's loaded into memory it's shared between all programs that use it so it shouldn't really be a problem.

 

@Octember - I used C# to code it.

31805323.png
Link to comment
Share on other sites

Any change of a Linux version? E.g. a text based version?
Link to comment
Share on other sites

Any change of a Linux version? E.g. a text based version?

This is a tool designed to help people who are new to the forums or don't understand how HTML tables work and therefore probobly don't understand the table tags here on GTAForums, making a linux version wouldn't honestly benefit that many people, since it's not the most popular OS, by far...

 

On the same subject though, can programs written in C# would need the .NET Framework even run on Linux, since .NET is a Microsoft thing?

adam broke it.

Link to comment
Share on other sites

Any change of a Linux version? E.g. a text based version?

This is a tool designed to help people who are new to the forums or don't understand how HTML tables work and therefore probobly don't understand the table tags here on GTAForums, making a linux version wouldn't honestly benefit that many people, since it's not the most popular OS, by far...

 

On the same subject though, can programs written in C# would need the .NET Framework even run on Linux, since .NET is a Microsoft thing?

I understand, but making it work in a textbased area would be kind of cool.

Link to comment
Share on other sites

Any change of a Linux version? E.g. a text based version?

This is a tool designed to help people who are new to the forums or don't understand how HTML tables work and therefore probobly don't understand the table tags here on GTAForums, making a linux version wouldn't honestly benefit that many people, since it's not the most popular OS, by far...

 

On the same subject though, can programs written in C# would need the .NET Framework even run on Linux, since .NET is a Microsoft thing?

I understand, but making it work in a textbased area would be kind of cool.

You're in luck.

 

http://www.mono-project.com/Main_Page

 

.NET Framework for Linux.

Link to comment
Share on other sites

But, could you ad the 'color tag system' and bold different typos and image insertion, please?

I've added 'Bold', 'Italics', 'Underline', 'Text Colour', 'Link', and 'Image' buttons which do pretty much what you'd expect - nothing special.

 

The cells will still only display their contents and not format them (e.g. even if you change the text colour to red, the cell will still display '[color=FF0000]Text[/color]' rather than 'Text').

 

@Svip- I wouldn't have a clue about converting this to / compiling it for Linux, I'm afraid.

Edited by Barguast
31805323.png
Link to comment
Share on other sites

Nice work.

 

I may look into using this as I do tend to hardcode alot of big tables in Liberty City and it can get a bit tedious.

Link to comment
Share on other sites

PresidentKiller
little help?

pic

 

I have frameworks... what else I should get?

Do you have the .NET Framework 1.1? Is it correctly installed?

 

Some "buffer-overflow protection" programs make the .NET Framework do weird things. If you have any of those, you should disable them.

uLAyIka.png

Link to comment
Share on other sites

Nice Work. I guess the only downside, I need frameworks - it's a 23mb file and I'm on dialup sad.gif

user posted image

With <3, Tsuroki

Link to comment
Share on other sites

Wow, nice one Barguast, I'll download and test it when I'm home. I've never had any problem with coding the tables, it gives me something to do when I'm bored haha, but this could be handy smile.gif

F4tISZ2.png

xY1j6rP.gif

Link to comment
Share on other sites

Should really have edited my above post, but whatever.

 

This is a great program Barguast, it does everything you could want it to do, and seemingly more through handiness. Props to you for taking the time and putting the effort into making this for the community, it's appreciated. Even I'll use it smile.gif

F4tISZ2.png

xY1j6rP.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.