Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user danikAdmiral ! (Registered 2024-12-17) 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: 1578
Good idea indeed, how about BB code?
2004-10-21 12:57
Perff
Administrator

Posts: 1679
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: 1578
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: 1679
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: 1578
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
Ghost/Quantum
LightSide
LordNikon/Dekadence
katon/Lepsi De
TheRyk/MYD!
Higgie/Kraze/Slackers
Guests online: 106
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.6)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 No Listen  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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