Quantcast

Jump to content

» «
Photo

[REL] GTAForums Table Code Generator

80 replies to this topic
Barguast
  • Barguast

    Thy next foe is...

  • Andolini Mafia Family
  • Joined: 27 Jul 2002

#1

Posted 28 March 2005 - 03:58 PM Edited by Barguast, 18 October 2012 - 12:52 PM.

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

BinarySource
Version 2.0Download (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 InterfaceCode Preview
user posted image user posted image
Questions, Comments, etc.
  • OG Viking likes this

Canoxa
  • Canoxa

    Woosh.

  • Zaibatsu
  • Joined: 08 Oct 2004

#2

Posted 28 March 2005 - 04:43 PM

Good Barguast. I wont download it because I dont have Frameworks.

Toadyd
  • Toadyd

  • Andolini Mafia Family
  • Joined: 10 Jan 2002
  • None

#3

Posted 28 March 2005 - 05:43 PM

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.

segosa
  • segosa

    Ghetto Star

  • BUSTED!
  • Joined: 15 May 2002

#4

Posted 28 March 2005 - 07:31 PM

Wow, that's very nice. Are you going to release the source code?

Daggdave
  • Daggdave

    Big Homie

  • Members
  • Joined: 19 Nov 2002

#5

Posted 28 March 2005 - 07:55 PM

holy sh*t, nice going barguast, I know many people will enjoy this smile.gif thanks for it biggrin.gif

PresidentKiller
  • PresidentKiller

    Anger Manager

  • The Connection
  • Joined: 22 Dec 2004
  • Mexico

#6

Posted 28 March 2005 - 08:03 PM Edited by PresidentKiller, 28 March 2005 - 08:06 PM.

This is very useful. Thanks!

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

Ramirez
  • Ramirez

    The Bulls

  • Members
  • Joined: 23 May 2004

#7

Posted 28 March 2005 - 10:46 PM

Wow bloody impressive I must say.

GTA3Freak-2001
  • GTA3Freak-2001

    Run out of Cake.

  • Members
  • Joined: 25 Nov 2001

#8

Posted 29 March 2005 - 01:56 AM

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.

Johnno
  • Johnno

    WD&P Ogre

  • Members
  • Joined: 15 Sep 2002

#9

Posted 29 March 2005 - 02:19 AM

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

Seriously though, it is great.

Made
  • Made

    Gangsta

  • Members
  • Joined: 21 Jun 2004

#10

Posted 29 March 2005 - 07:46 AM

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.

Barguast
  • Barguast

    Thy next foe is...

  • Andolini Mafia Family
  • Joined: 27 Jul 2002

#11

Posted 29 March 2005 - 11:25 AM

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

sanandreasman
  • sanandreasman

    ass licker

  • Members
  • Joined: 23 Jan 2005

#12

Posted 29 March 2005 - 03:01 PM

Can you use it on any forum? dontgetit.gif

Vin.
  • Vin.

    RD loves me.

  • The Connection
  • Joined: 24 Nov 2001

#13

Posted 29 March 2005 - 03:02 PM

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

Stefaan
  • Stefaan

    Revolutionary

  • Feroci Racing
  • Joined: 26 Jan 2003

#14

Posted 29 March 2005 - 03:10 PM Edited by Stefaan, 29 March 2005 - 03:15 PM.

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.

meta187
  • meta187

    Challenge Convention, Question Authority.

  • The Connection
  • Joined: 01 Jul 2004
  • None

#15

Posted 29 March 2005 - 03:25 PM

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..

HD Rick
  • HD Rick

    Consulente Furio "Dr.X" Andolini

  • Andolini Mafia Family
  • Joined: 29 Aug 2002

#16

Posted 29 March 2005 - 04:22 PM

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

vALKYR
  • vALKYR

    The Object of Affection.

  • Andolini Mafia Family
  • Joined: 01 Jun 2004

#17

Posted 29 March 2005 - 06:27 PM

THISISFANTASTIC!

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


Octember
  • Octember

    propaganda inc

  • BUSTED!
  • Joined: 29 Oct 2004

#18

Posted 29 March 2005 - 06:35 PM

f*ckingbadassbarg.
i'llwhorethis
outnow.thanks!
waddyauseto
makeit?c++?
thankyouthough.
<!--SS-->
o
c
t

Barguast
  • Barguast

    Thy next foe is...

  • Andolini Mafia Family
  • Joined: 27 Jul 2002

#19

Posted 29 March 2005 - 07:08 PM

QUOTE (Stefaan @ Mar 29 2005, 16:10)
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.

Svip
  • Svip

    I eat babies

  • Members
  • Joined: 12 Nov 2001

#20

Posted 29 March 2005 - 07:15 PM

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

Luke
  • Luke

    suckmyrocket

  • Inactive Staff
  • Joined: 01 Dec 2003
  • None

#21

Posted 29 March 2005 - 07:25 PM

QUOTE (Svip @ Mar 29 2005, 19:15)
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?

Svip
  • Svip

    I eat babies

  • Members
  • Joined: 12 Nov 2001

#22

Posted 29 March 2005 - 09:28 PM

QUOTE (Smithers @ Mar 29 2005, 21:25)
QUOTE (Svip @ Mar 29 2005, 19:15)
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.

segosa
  • segosa

    Ghetto Star

  • BUSTED!
  • Joined: 15 May 2002

#23

Posted 29 March 2005 - 09:40 PM

QUOTE (Svip @ Mar 29 2005, 22:28)
QUOTE (Smithers @ Mar 29 2005, 21:25)
QUOTE (Svip @ Mar 29 2005, 19:15)
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.

Barguast
  • Barguast

    Thy next foe is...

  • Andolini Mafia Family
  • Joined: 27 Jul 2002

#24

Posted 29 March 2005 - 11:54 PM Edited by Barguast, 30 March 2005 - 12:11 AM.

QUOTE (Stefaan @ Mar 29 2005, 16:10)
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.

Y_Less
  • Y_Less

    629

  • Members
  • Joined: 14 Mar 2004

#25

Posted 30 March 2005 - 02:47 AM

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.

Snow Racer
  • Snow Racer

    Member Title

  • Feroci Racing
  • Joined: 23 Mar 2003
  • Norway

#26

Posted 01 April 2005 - 07:54 PM

little help?
pic

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

PresidentKiller
  • PresidentKiller

    Anger Manager

  • The Connection
  • Joined: 22 Dec 2004
  • Mexico

#27

Posted 01 April 2005 - 08:11 PM

QUOTE (Snow Racer @ Apr 1 2005, 13:54)
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.

Luke2004
  • Luke2004

    You wanna leave? k. gtfo.

  • BUSTED!
  • Joined: 10 Nov 2004

#28

Posted 06 April 2005 - 06:38 PM

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

EmSixTeen
  • EmSixTeen

    yer ma's got athlete's foot!

  • $outh $ide Hoodz
  • Joined: 13 Apr 2002

#29

Posted 07 April 2005 - 09:27 AM

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

EmSixTeen
  • EmSixTeen

    yer ma's got athlete's foot!

  • $outh $ide Hoodz
  • Joined: 13 Apr 2002

#30

Posted 08 April 2005 - 02:57 AM

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users