Home page

Not finished yet but in progress...







-TEXT FILES- ADMINISTRATION

Capabilities


The main purpose of this was at first to convert ASCII text files to HTML without any further editing (very handy to for readme files ;-) and I hate fixed fonts).

It automaticaly converts return characters tabulations and special HTML entities. It also removes unecessary return characters, spaces and tabulations:


The text below:

As you can       see there is an
 ugly return character...
And awfull spaces    ...


will become once converted:

As you can see there is an ugly return character...
And awfull spaces ...


Only return characters followed by a non letter or number are converted to <br> tag. Unecessary spaces and tabulations are rounded to one space.


But Tabulation are still possible at the begin of a line...
So your text appears well formated!


Note:

As you may know Tabulations are not possible in HTML so where is the trick??
Well once a Tabulation* has been identified it is replaced by <em></em> which in the style sheet is referenced by:


em
{
padding-left:20px;
font-size: inherit;
background: transparent;
color:inherit;
}


*A tabulation can be the real tabulation char or 4 spaces.





This stayed like this for months maybe years... but came a time when ASCII TEXT became unsuficient so I decided to introduce HTML in my text files!
But I couldn't simply authorize html tags... else my ASCII files would have been corrupted so I remembered the BBCODE style tags.
I decided to replace < and > by [ and ].

But my parser is more intelligent than a HTML browser: only tags with a proper ending tag are replaced by their HTML equivalent. Moreover all tags have to be in lowercase: [B]This won't work[/B] but This will work!

Since this parser isn't for stupid people it's not tolerant at all: if you forgot an ending tag it won't work:

[b]Why my text isn't in bold ??? [br] Hey I put a "br" tag I did nothing wrong!! :(

I forgot to mention that "single" tag like <br> <img> and so on have to be written [br /] [img src="/favicon.ico" /]:

exemple

Do not forget the _space_ before the '/'.

Some special tags



If you don't want the parser to touch some part of your text use the special tags [letit][/letit]: All the text between those tags stay unchanged, like if it was normal HTML... This is how I can show you all those examples without any problems...

I strongly recommend you to use the letit tag only on special situation ! This parser helps you to make valid HTML (and you don't have to use the SHIFT key to write [ or ]...).

Another useful special tag is the [NBSP /] which is automatically replaced by &nbsp;.

That's not all



This very intelligent parser is also able to detect URIs: http://www.ucnetwork.com will be clickable automatically unlike most forums, my parser respects RFC on URI format so every valid URI should be clickable, if an URI is not valid then only its valid part will be clickable.

Exemples:

http://2072:password@www.ucnetwork.com/?to=index.php valid URI

http://2072:password@www.ucnetwork.com/&to=index.php invalid URI

http://2072:password:www.ucnetwork.com/&to=index.php invalid URI

http://2072:password@www.ucnetwork.com/?to=index.php, The comma isn't a problem


To avoid spam, the parser will also detect valid email addresses and will make them unreadable for robots:

my email is: 2072 AT 2072productions DOT com





Program Usage



To create a new "text" file simply enter a name followed by ".txt", the name cannot contain spaces, and you should write in lowercase only else some browser or robots may have troubles to access the file. This server runs over FreeBSD so everything is case sensitive...

Always keep a copy of the file on your own computer!

To edit a "text" file, you can directly type in the name of the file and check the "edit box or select it in the drop down list (the "edit box will be checked automaticaly) than click the OK button.

To delete a "text" file, select it in the drop down list and check the "delete box and uncheck the "edit box and click OK. Once you've clicked OK the file has been deleted, but, the file will be loaded into the main window so if you change your mind you can click OK and the file will be created again.

NOTE:


- You can only edit, create or delete ".txt" files.*
- You cannot create empty files.


*Actually there is some other files you can edit:
- styles.css (style sheet used for MSIE browsers)
- styles2.css (style sheet used for non MSIE browsers)
- main_index_fr.data (French index bar) where you can add/change the link of the index bar at the top of each pages.
- main_index_en.data (English index bar)




How to link the text files ?


To link these files you must use a special feature to include your new links in the 'site map' and to track visitors.
This is a special tag: [|MHREF()|] this tag call a php function that create all the links of ucnetwork.com.

Syntax:


[|MHREF( $text=false, $url=false, $A_CLASS="", $toindex=TRUE, $align=false, $size=false)|]


if $toindex is set to true then MHREF will produce something like:

<a href="/?to=$url">$text</a>

else $url will be considered as an URI:

<a href="$url">$text</a>

This is useful to create external links but in that case you should use the standard [a href=""][/a] syntax, MHREF is usefull when making internal links.

$A_CLASS is the same as the class="" attribute. (look at syles.css to see defined class for anchor tags).

$align is the HTML 'align' attribute: can be either left, center, right, MHREF will create a <div></div> around the <a></a>

$size is the css 'size' property: can be a value in %, em, pt units Example: "1.2em" or "90%" etc...


Example:

The code [|MHREF("Our great link page","ucnlinkspage.php","nav",true,"center","5em")|] will render as:
Our great link page


producing the HTML code:

<div align="center"><a style="font-size:5em"
class="nav"
href="/?to=ucnlinkspage.php">Our great link page</a></div>

To be continued.......


Home pageValid HTML 4.01! Best viewed in sRGB Valid CSS!
Previous Page - Next Page
All rights reserved.
All trademarks and registered trademarks mentioned on this website are the properties of their respective owners.

Privacy Policy