WWW Statistika

Hi,
gwbbcode trans is simple program written in freepascal and Lazarus.
It use gwbbcode database file skill_db.php and extract Guild Wars skills.
gwBBcode can be found here

Skills can be edited and saved back to skill_db.php
or exported to js files for gwbbcode generator written by Morten
or exported to series of html files with skills tables sorted by profession, by attribute, elite only and by chapter.
Program is not finished but next things do work.

File menu
Open skill_db
Save skill_db

Open abbr_db
Save abbr_db

Export to -> generator files
Export to -> html skill tables

Options menu
Select picture subdir  -  if you select gwbb subdir with skill images they'll be showen with rest of data. Selecting or not selecting doesn't affect including images in html files.
CR+LF instead LF  -  windows or unix end of line
Use php extesion  -  .php instead of .htm
Correct filenames  - lowercase letters and space -> _
No header and footer  - header and footer of html file will not be included. Good if you use some WYSIWYG editor. Just paste code.
Simple HTML page or use gwBBCode  -  second option do not work yet. It will use gwBBcode pop-ups on pictures and skill names.
Choose template  - submenu with templates: default and minimal (for people with 500k per page limit). More templates will be added. About editing template latter in text

Manipulation with base fields (adding, deleting, replacing) not works.
skill_db and abbr_db editing works.


Do NOT work for now
Options menu
use gwBBCode  -  It will use gwBBcode pop-ups on pictures and skill names.

Statistics on bottom ow window is refreshing only when you load base.
translation of gwBBcode build to html do not work

Templates
For making of new template you'll need some html knowlege.
Templates are in templates subdir. Each template in own subdir.
Each template have 6 dat files. In fact this files are parts of html file.
Program combine this files and make final file.

There are some commands you can insert in this files and program will replace it with real data from base.


footer.dat  - beggining of html file. Allowed commands: [[title]], [[content]] and [[keywords]]. In this file you can change encoding page for other languages. Here you can add your css file too.


theader.dat - table header. No commands. In this file you can change table and line colors...

skill.dat - is used for each row of table. One row=one skill. Commands [[skillimage]], [[skillname]], [[skillstats]], [[skilldescription]], [[skilltype]], [[skillchapter]]

elite.dat - same as skill.dat, change collor here or use <strong> so elite skills looks different. Same commands as in skill.dat

tfooter.dat - close tabele

footer.dat - close html. Use to insert links or put back link.



Program create four sets of html files

1.one profession - one html (monk.htm, warrior.htm.... and index_prof.htm)
2.one attribute - one html (monk_divine_favor.htm... and index_attr.htm)
3.one chapter - one html (core.htm, tyria.htm.... and index_chapt.htm)
4.only elite skills - one html (elite_skills.htm)

Some of this files are huge (250 kB plus skill images), so, you'll maybe wanted to split them.
Files are pure html (generator use javascript). I'm not sure if it is 100% W3 compatible (for example I removed alt="" for images in minimal template to save space) but all browsers will show it correctly.



gwBBcode->gwBBcode generator tutorial

1.Open skill_db.php file (greed will be filled with skills data)
2.In options menu check what you want (only CR+LF or LF affects generator's files).
3.IMPORTANT! For each profession primary attribute must be first in table or generator will not work correctly. Go to attribute pages and sort them using MoveUp and MoveDown buttons (find primary attributes in guide book).
4.From start menu select Export->Generator files and then select output directoru for new files.
5.TODO.txt file will be also created with text like this

 

  Some things you'll need to do yours own:

In attributes.js file rearange attributes in that way that primary attribute should> be first (with ,1). Do it in both parts of file.
In generator.htm file find next lines add missing (new) classes.
            this.E = 1;
            this.Me = 2;
            this.Mo = 3;
            this.N = 4;
            this.R = 5;
            this.W = 6;
            this.A = 7;
            this.Rt = 8;
            this.P = 9;
            this.D = 10;
            this.No = 11;

6.copy created files in generator_files subdir

I contacted Morton and he told me that he is working on new version of Generator.
It looks great and I hardly wait final version.
Progress can be seen here
 


gwBBcode->html skill lists tutorial

1.Open skill_db.php file (greed will be filled with skills data)
2.In options menu check what you want (CR+LF or LF, htm or php extension,... and template) All this have some default values, so if you do not have special needs you can skip this step.
3.From start menu select Export->HTML skill tables
4.New window will pop-up. Enter relative path from htm file to gwBBcode img_skills subdir and to img_interface subdir. Press OK
5.Select output directoru for new files.

Download v0.6 (30.dec.2006.)

windows32 executable, 551 kB here  

source, Lazarus, 37 kB here  

generator example, 10 kB here

html examle, 283 kB here

Contact

Ova adresa e-pošte je zaštićena od spambotova. Omogućite JavaScript u vašem brauzeru da biste je videli.  

 

 

 

LIVE CHAT

Drag images here


Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /srv/disk3/2169298/www/guildwars.nasrpskom.com/libraries/src/Document/HtmlDocument.php on line 480