Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Rodrigo Yeowtch ! (Registered 2024-11-24) 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: 1677
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: 1677
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
katon/Lepsi De
Skate/Plush
Matt
kbs/Pht/Lxt
Guests online: 76
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 What Is The Matrix 2  (9.6)
10 No Bounds  (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 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Crossbow  (9.8)
4 Lft  (9.8)
5 HCL  (9.8)

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