kriptonic
Heavy poster
Registered: 07-2003
Location: Frankfort Ohio
Posts: 623
Karma: 1 (+1/-0)
|
Reply | Quote
|
|
Re: Akheva.com more customizable?
The code for it is this... It will make more sense to you when add-ons are created.
<script type="text/javascript">
/* BEGIN akhevaURL */
akhevaURL = document.location.href.match("http:\/\/com([0-9]*)\.akheva\.com\/(b|f)([a-zA-Z0-9]*)((|)||(f[0-9]+|$))($|(\.)([a-zA-Z0-9]*))($|([\?])((.)*))");
if (akhevaURL.length > 0) {
akhevaCOM = akhevaURL[1];
akhevaIsBoard = akhevaURL[2] == "b" ? true : false;
akhevaBoardID = akhevaURL.length > 3 ? akhevaURL[3]: "";
if ( akhevaBoardID.indexOf("f") != -1 ) {
akhevaForum = akhevaBoardID.substr(akhevaBoardID.indexOf("f"));
akhevaBoardID = akhevaBoardID.replace(akhevaForum,"");
} else {
akhevaForum = akhevaURL.length > 4 ? akhevaURL[4] : "";
}
akhevaPage = akhevaURL.length > 7 ? akhevaURL[7] : "";
akhevaQuery = akhevaURL.length > 10 ? akhevaURL[10] : "";
}
akhevaURL = null;
/* END akhevaURL */
</script>
--- - Kriptonic -
|
7/12/2003, 8:31 am
|
Link to post
Email kriptonic
PM kriptonic
|
Danta
MAN WITH THE GOLDEN CHALICE
Registered: 06-2003
Location: In my cave
Posts: 1179
Karma: 3 (+14/-11)
|
Reply | Quote
|
|
Re: Akheva.com more customizable?
except from the blinking smilies, it makes sense for ppl who know a little from javascript
--- quote: Danta that I've been seeing u around in many great boards,u're kind of famous
|
7/12/2003, 8:47 am
|
Link to post
Email Danta
PM Danta
Blog
|
kriptonic
Heavy poster
Registered: 07-2003
Location: Frankfort Ohio
Posts: 623
Karma: 1 (+1/-0)
|
Reply | Quote
|
|
Re: Akheva.com more customizable?
The add-ons could be a small while before coming out.. I have a few ideas that should work, but I will ask thor if he might look over it a bit and see where a few errors are.
--- - Kriptonic -
|
7/12/2003, 8:58 am
|
Link to post
Email kriptonic
PM kriptonic
|
Thor
Head Administrator
Runboard developer
Registered: 01-2003
Location: RB machine room
Posts: 4995
Karma: 232 (+275/-43)
|
Reply | Quote
|
|
Re: Akheva.com more customizable?
Heh, at the very least, it's funny to see your regexps trying to guess the logic behind akheva URLs I really enjoyed it.
Let me just spill the beans and tell it:
1. Hostname part
com###.akheva.com, ### being anything from 1 to 999 (who knows... those openbrick servers are dirt cheap and look sexy as hell to me. CF storage sucks at the moment, capacity and price wise, but not like it's not going to improve fast with all those disk-on-key devices flooding the shops. I bought a 64 megs one and love it.). So, com###.akheva.com, leading zeroes being stripped.
2. path part (or whatever it is called in an rfcish way):
anything starting with a 'b' means we're accessing a board. anything else, at this moment, is not a board (can be the moderation interface, pms, general pages, anything). a particular forum can not be accessed with a leading 'f', unlike ezboard (so fix your regexp ).
if we're just calling a board (forum list), path will be like /b<short name of the board>
if we're calling a forum in that board, path will be like /b<short name of the board>.f<short name of the forum>
if we're calling a topic in that forum, path will be like
/b<short name of the board>.f<short name of the forum>.t###### (topic numbers range from 1 to 999999. then they roll over to 1).
if we're calling a post in a topic, path will be like
/b<short name of the board>.f<short name of the forum>.t######.p#### (post numbers range from 1 to 9999. they don't roll over, it's 9999 posts per topic hard limit. should be fine for the most verbose folks out there).
if we're not just reading something, but doing other things, like writing a new topic, replying to one or editing a post, add a parameter to the URL. to add a parameter, add a '|' to the URL, then 'pleasedo=XXX'. XXX can be 'followup', 'postnew', 'edit'. there can be other parameters, such as for quoting a text, marking forum(s) as read, etc. just look at the URL's and you'll see it.
|
7/12/2003, 11:25 am
|
Link to post
Email Thor
PM Thor
ICQ
Yahoo
Blog
|
Thor
Head Administrator
Runboard developer
Registered: 01-2003
Location: RB machine room
Posts: 4995
Karma: 232 (+275/-43)
|
Reply | Quote
|
|
Re: Akheva.com more customizable?
Anyway, what is this code supposed to do? Just set some JS variables for the actually JS scripts to work with?
|
7/12/2003, 11:28 am
|
Link to post
Email Thor
PM Thor
ICQ
Yahoo
Blog
|
Thor
Head Administrator
Runboard developer
Registered: 01-2003
Location: RB machine room
Posts: 4995
Karma: 232 (+275/-43)
|
Reply | Quote
|
|
Re: Akheva.com more customizable?
Actually, I like the idea of being able to "mod" (customize in depth) akheva, like you can mod doom, quake, halflife or winamp.
It usually leads to incredible things being produced by enthousiasts such as you. The basic software (akheva software in this case) must have good support for modding, though. I'm all for that idea.
|
7/12/2003, 11:56 am
|
Link to post
Email Thor
PM Thor
ICQ
Yahoo
Blog
|
kriptonic
Heavy poster
Registered: 07-2003
Location: Frankfort Ohio
Posts: 623
Karma: 1 (+1/-0)
|
Reply | Quote
|
|
Re: Akheva.com more customizable?
Exactly... I will change those variables that you have fixed for me, and hey I gave it my best shot trying to figure out the server.
--- - Kriptonic -
|
7/12/2003, 1:30 pm
|
Link to post
Email kriptonic
PM kriptonic
|