Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Feedback > User Request: HTML parser for text in trivia and the like
2004-10-20 20:15
Ben
Account closed

Registered: Feb 2003
Posts: 163
User Request: HTML parser for text in trivia and the like


Just recently I tried to add a <a href=""></a> tag to a trivia text but this, I discovered, is not translated into a link to this (in this case) other scener. My request now, I reckon, simply boils down to whether the CSDb crew would like to consider implementing a (basic) HTML parser.

In the design of such a system, I can imagine you want to impose some constraints on the user, e.g. only 'internal links' to sceners, releases et cetera. So, let this not keep you from doing so :)

Thanks in advance!
2004-10-21 12:44
jailbird

Registered: Dec 2001
Posts: 1576
Good idea indeed, how about BB code?
2004-10-21 12:57
Perff
Administrator

Posts: 1665
We already have link-recognition in the forum and a few other places, meaning that if you write:
http://www.somedomain.com/path/file.html
this will automaticly be translated to an <a href...> (as you see. :) )

This could easily be added to other places like trivia etc.

But I guess we could make special CSDb-tags which would make links to internal entries. Something like:
<scener id=XXX> which will be converted to something like:
<a href="..../scener/?id=XXX>Handle-of-XXX</a>

BTW: What is BB code?? (Can't know everything. :) )
2004-10-21 12:59
jailbird

Registered: Dec 2001
Posts: 1576
Perff:
What is BB Code?
http://www.loveshack.org/forums/misc.php?s=&action=bbcode
2004-10-22 11:48
Ben
Account closed

Registered: Feb 2003
Posts: 163
Quote: We already have link-recognition in the forum and a few other places, meaning that if you write:
http://www.somedomain.com/path/file.html
this will automaticly be translated to an <a href...> (as you see. :) )

This could easily be added to other places like trivia etc.

But I guess we could make special CSDb-tags which would make links to internal entries. Something like:
<scener id=XXX> which will be converted to something like:
<a href="..../scener/?id=XXX>Handle-of-XXX</a>

BTW: What is BB code?? (Can't know everything. :) )


That would be great!
2004-10-25 19:40
Perff
Administrator

Posts: 1665
Now you got it.

There are 4 new CSDb-tags:
<scener id="XX">
<group id="XX">
<release id="XX">
<event id="XX">

If you write a valid id instead of the XX it will be translated into a link to the current entry in CSDb with it's name as the link. If the id is not valid it will just be displayed as above.
The "'s are optional.

This should work both in the forum, in PM's and other places. If you find a spot where you think it should work, but dosn't just post about it.

There might be bugs in the parsing/converting code still. If this is the case just let me know. :)

(You can also read about this new feature in the help section: http://noname.c64.org/csdb/help.php)

/Perff
CSDb maintainer.
2006-08-06 09:39
jailbird

Registered: Dec 2001
Posts: 1576
Perff, it would be nice to add a parser for forums as well:

i.e. <forum id="XX">

RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
tempest/extend
Harry/Alivers
MagerValp/G★P
grip
Visage/Lethargy
Sentinel/Excess/TREX
Guests online: 114
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.043 sec.