Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

New Custom Bbcodes For This Board


43 replies to this topic

#1 miCRoSCoPiC^eaRthLinG

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 145 posts
  • Gender:Male
  • Location:Nakorn Chaisri, Thailand
  • myCENT:69.96

Posted 30 March 2005 - 04:27 PM

HI all,
I'm in the process of introducing a couple of new BBCodes to help us make better posts and make parts of the content stand out. Two such new BBCodes are CONSOLE and NOTE. Out of these, the NOTE BBCode is for use of the Mods & Admins only. Anybody else found using them in their posts will be penalized suitably.

1. CONSOLE
This code is to be used for displaying console input/output in your posts. The text to be shown has to be enclosed within a matching pair of [ CONSOLE ] [ /CONSOLE ] tags.
Example:
CONSOLE

[root@getafix root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0D:88:39:D2:69
inet addr:10.19.168.5 Bcast:10.19.168.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fe39:d269/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6587 errors:0 dropped:0 overruns:0 frame:0
TX packets:12936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1650710 (1.5 Mb) TX bytes:2043205 (1.9 Mb)
Interrupt:225 Base address:0xb800


2. NOTE
This BBCode is to be used by the Mods & Admins ONLY. This will make your instructions (when you edit posts) stand out way better. An example:
Notice from microscopic^earthling:
Posted in wrong section. Topic moved.
This code takes your username as an option and dispays it in the header. Thus the format would be, [ NOTE = YourUserName ] Notice Text [ / NOTE ] . Don't include the SPACES that I've put after the [] brackets - that's just to demonstrate the code.


Just now I finished implementing yet a third BBCode - HIGHLIGHT
3. HIGHLIGHT
This will help you highlight certain parts of your post with a desired color. The highlight color is passed on as an option to the BBCode. Format: [b][ HIGHLIGHT = color ] YourText [ / HIGHLIGHT ]. This would give an output like"
This is Yellow Highlighted Text

These are for a starter - more to come. If you have any suggestions for cool BBCodes, don't hesitate to post/add-in to this topic and I'll add them to the board after reviewing.

All the best & Have fun :)

#2 JJBDude

    Member [Level 3]

  • Kontributors
  • PipPipPipPipPipPip
  • 93 posts
  • Location:England/Cambridgeshire

Posted 30 March 2005 - 04:37 PM

Nice work there micro, shame not all members can use all the new BB Codes but I understand why we cannot. Have anything else up your sleeves?

#3 odomike

    Core2Q-QX6800

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,095 posts
  • Gender:Male
  • Location:Nigeria
  • Interests:Website designing, Graphics designing, Computer Softwares, networking, computer games (RPGs), Education, making friends.

Posted 30 March 2005 - 04:45 PM

Yea JJBDude. Whats the essence of introducing the new BBCodes if all the members cannot use them?

I dont see any sense in it at all.

#4 JJBDude

    Member [Level 3]

  • Kontributors
  • PipPipPipPipPipPip
  • 93 posts
  • Location:England/Cambridgeshire

Posted 30 March 2005 - 04:59 PM

I do see a point in it as it lets admins/mods do more things which is good but I don't see why we had to be told about it. Just makes us membes jealous........... But even if you didn't tell us, I suppose we would find out sooner or later.

#5 miCRoSCoPiC^eaRthLinG

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 145 posts
  • Gender:Male
  • Location:Nakorn Chaisri, Thailand
  • myCENT:69.96

Posted 30 March 2005 - 05:13 PM

Lol.. hold on dude.. There's plenty more to come. Out of the three I put in today, only ONE is not for use by all - for the rest you dont even have to pay a single penny :) .. Besides that NOTE thing isn't even worth cribbing about. I'll try get in more of such cool one's that you wouldn't even bother touching that NOTE thingy... :)

Have fun !

#6 Wyllt

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 110 posts
  • Location:London, Ontario

Posted 30 March 2005 - 05:32 PM

odomike, on Mar 30 2005, 11:45 AM, said:

Yea JJBDude. Whats the essence of introducing the new BBCodes if all the members cannot use them?

I dont see any sense in it at all.

View Post


Well as it was stated that only one* of the codes are for mods and admins only, and what's the need of the note one unless you are an admin or mod anyways?

*see I just used the highlight and I'm not in trouble (I hope :) ).


microscopic^earthling:
Nice job, I like those BBCodes, very usefull and tres cool. :)

#7 miCRoSCoPiC^eaRthLinG

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 145 posts
  • Gender:Male
  • Location:Nakorn Chaisri, Thailand
  • myCENT:69.96

Posted 30 March 2005 - 05:39 PM

Thanks :) Here's another (pretty useless one) - unless you want to impress someone with some scrolling text... lol.. It's the BBCode implementation of our good old HTML <MARQUEE> tag. This one takes left & right as options (for now) and scrolls texts accordingly. I've limited the text scroll area width - as it was expanding in a very undesirable way and distorting the page. But I haven't specified any height params, so you can put in as many lines of text as you want and the box will expand to fit it in. Keep in mind that this one takes a little time to start off - I mean the scroll action wouldn't start till the whole page load is completed.

Examples:

[MARQUEE=right]Left to Right Scrolling Text[/MARQUEE]

[MARQUEE=left]
Right to Left Scrolling Text.
With multiple lines of text.
I quite like this one :)
[/MARQUEE]

#8 serverph

    Ancient Enigma

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,952 posts
  • Gender:Male
  • Location:under the stars
  • Interests:http://kapamilyatalk.com<br />http://scq.serverph.uni.cc<br />http://reseller.premium.ws<br /><br />trap17 IP to access cpanel: https://64.69.46.210:2083/<br />alternative to access cpanel: gamma.xisto.com/~cpanelusername<br />Get your T17 banners here: http://www.trap17.com/banners/<br />TRAP17 Forum Search plugin: http://plugins.astahost.com/<br /><br />[url=http://reseller.premium.ws][img]http://img40.echo.cx/img40/2713/resellerfree4rd.png[/img][/url] |
  • myCENT:67.66

Posted 30 March 2005 - 06:00 PM

nice ones, admin micros :) been waiting for that NOTE tag all along. why? because i used to use the CODES tag to include mod notes to erring and edited posts. aside from making other members informed on what pitfall to avoid in their posts also, i didn't want to add more credits to that member who violated forum rules. and the NOTE tag is the way to do it. B)

now i'm a happy mod. :)

#9 miCRoSCoPiC^eaRthLinG

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 145 posts
  • Gender:Male
  • Location:Nakorn Chaisri, Thailand
  • myCENT:69.96

Posted 30 March 2005 - 06:34 PM

Thanks serverph.. You got some cool avatar :) .. BTW I forgot to mention about another pretty useless BBCode - the Horizontal Rule. Once again, similar to HTML HR tag, this one inserts a page break line - to neatly divide your content into multiple horizontal sections. This one, takes options like "noshade" or null option - and draws the line accordingly. The "noshade" option makes the line thick and solid and devoid of the standard 3D Shading.


Here's another line followed by a "noshade"-ed line.
[hr=noshade][/hr]
This is the last line of text !

#10 beeseven

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 629 posts

Posted 30 March 2005 - 11:24 PM

Maybe a spoiler tag for game boards? I'm not sure if there already is one, but if not it could be like

SPOILER:
Like this, maybe

then when you hover over it it turns normal color. (if you're wondering if it really is a spolier, it just says "Like this, maybe")

#11 ill

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 385 posts
  • Location:United States
  • Interests:webdesign, hangin out wastin my life away... uhm??

Posted 31 March 2005 - 04:54 AM

odomike, on Mar 30 2005, 10:45 AM, said:

Yea JJBDude. Whats the essence of introducing the new BBCodes if all the members cannot use them?

I dont see any sense in it at all.

View Post


As once previously stated, you are very immature.

How can you not see the purpose in these new BB codes!? These are to help the community! ..And that they shall do.

#12 boyCradle

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 469 posts
  • Location:Manila, Philippines

Posted 31 March 2005 - 06:35 AM

wow. i have been gone for two weeks for a vacation and there are plenty of improvements here at Trap 17. I hope this small additions to the forum could atleast prevent spamming just to increase their credits.

#13 miCRoSCoPiC^eaRthLinG

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 145 posts
  • Gender:Male
  • Location:Nakorn Chaisri, Thailand
  • myCENT:69.96

Posted 31 March 2005 - 07:34 AM

Hey why don't you guys check out this little tutorial I wrote about custom bbcodes. It's an attempt to show how these BBCodes get translated to HTML or how BBCodes are parsed in general. Find it here: http://www.astahost.com/Howto-Custom-Bbcod...-Ipb-t3839.html

Take a look at it and see if you can come up with more neat ones that will be really useful to our community. But try and do some stress tests on them - sometimes the content can span out and distort your whole page really bad. My BBCodes aren't perfected either. Am still working on them. Anyways, if you do create one - either make a post in here or pm me, and I'll add them to the board here. :) Maybe, we can spill out some extra credits for the great work you've done :)

All the best...


I've made some major changes in the NOTE BBcode. The one you saw yesterday was a simple note tag - the one I'm implementing today has much better color theme making it look more like a real note. Since I'm upgrading the old NOTE tag, the earlier example won't be visible anymore and instead it'll be replaced by the new one. Even then, I'm putting in an example here for your convenience. Example:

Notice from microscopic^earthling:
This is a demonstration of the new NOTE tag. Click on the X on top-right corner to expand/collapse the note and have some fun. I'm trying to implement some custom graphics in the header to make it look even better.

Have fun B)

#14 beeseven

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 629 posts

Posted 31 March 2005 - 11:36 PM

I just noticed a glitch or something similar--
If there are multiple notes on a page and you try to collapse the second, the first collapses and the second stays open. Don't think that this is too important but it's something that could be fixed.

#15 miCRoSCoPiC^eaRthLinG

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 145 posts
  • Gender:Male
  • Location:Nakorn Chaisri, Thailand
  • myCENT:69.96

Posted 01 April 2005 - 07:20 AM

beeseven, on Apr 1 2005, 06:36 AM, said:

I just noticed a glitch or something similar--
If there are multiple notes on a page and you try to collapse the second, the first collapses and the second stays open. Don't think that this is too important but it's something that could be fixed.

View Post


Hey thanks for bringing that to my notice :) I'll try fix it - if I fail, I'll release the code in here and see if any of you can sort it out... (anyways, I'm going to post the code after a few days).

#16 beeseven

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 629 posts

Posted 05 April 2005 - 11:51 PM

If you can't figure anything out, maybe you could use JS to select a random number and then name the div/whatever you use that. There's a chance it'd be the same, but if you use a really big upper limit, you could decrease it a lot.

#17 canute24

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 241 posts
  • Location:Mangalore, India
  • Interests:Comps (software and hardware too), Electronics (Hardware Design, Gadgets, Consumer Goods) , Web Designing, Cars, Stocks and Trade. I am an Army System hardcore fan.

Posted 06 April 2005 - 01:44 PM

microscopic^earthling, on Mar 30 2005, 09:57 PM, said:

HI all,
    I'm in the process of introducing a couple of new BBCodes to help us make better posts and make parts of the content stand out. Two such new BBCodes are CONSOLE and NOTE. Out of these, the NOTE BBCode is for use of the Mods & Admins only. Anybody else found using them in their posts will be penalized suitably.

1. CONSOLE
This code is to be used for displaying console input/output in your posts. The text to be shown has to be enclosed within a matching pair of  [ CONSOLE ]  [ /CONSOLE ] tags.
Example:
CONSOLE

[root@getafix root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0D:88:39:D2:69
inet addr:10.19.168.5 Bcast:10.19.168.255 Mask:255.255.255.0
inet6 addr: fe80::20d:88ff:fe39:d269/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6587 errors:0 dropped:0 overruns:0 frame:0
TX packets:12936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1650710 (1.5 Mb) TX bytes:2043205 (1.9 Mb)
Interrupt:225 Base address:0xb800
2. NOTE
This BBCode is to be used by the Mods & Admins ONLY. This will make your instructions (when you edit posts) stand out way better. An example:
Notice from microscopic^earthling:
Posted in wrong section. Topic moved.
    This code takes your username as an option and dispays it in the header. Thus the format would be, [ NOTE = YourUserName ] Notice Text [ / NOTE ] . Don't include the SPACES that I've put after the [] brackets - that's just to demonstrate the code.
Just now I finished implementing yet a third BBCode - HIGHLIGHT
3. HIGHLIGHT
This will help you highlight certain parts of your post with a desired color. The highlight color is passed on as an option to the BBCode. Format: [b][ HIGHLIGHT = color ] YourText [ / HIGHLIGHT ]. This would give an output like"
This is Yellow Highlighted Text

    These are for a starter - more to come. If you have any suggestions for cool BBCodes, don't hesitate to post/add-in to this topic and I'll add them to the board after reviewing.

All the best & Have fun :)

View Post


So you are a admin mow. Congrats. And keep up the good work. :D

#18 CrashCore

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 225 posts

Posted 11 April 2005 - 11:53 PM

Alright, microscopic^earthling, so I don't know if you were saying only mods to suggest new BB Codes, but I thought it would be cool to have a [ BLINK ] tag. Here's my idea:
<script language="javascript">
var color[COLOR=red]*[/COLOR] = 0;
var hexco[COLOR=red]*[/COLOR] = '';
function bl[COLOR=red]*[/COLOR]() {
  color[COLOR=red]*[/COLOR] = (16777215 - color[COLOR=red]*[/COLOR]);
  hexco[COLOR=red]*[/COLOR] = color[COLOR=red]*[/COLOR].toString(16);
  hexco[COLOR=red]*[/COLOR] = "#" + ("000000").substring(0,6 - hexco[COLOR=red]*[/COLOR].length) + hexco[COLOR=red]*[/COLOR];
  document.all.b[COLOR=red]*[/COLOR].style.color = hexco[COLOR=red]*[/COLOR];
}
setInterval("bl[COLOR=red]*[/COLOR]()",[COLOR=blue]{option}[/COLOR]);
</script>
<span id="b[COLOR=red]*[/COLOR]">[COLOR=blue]{content}[/COLOR]</span>
* = digits (if possible) that would start at 1 and count up depending on how many times this code was used and by how many people in one page.

Otherwise, if the option to change automatically do b1, b2, b3, etc. to change blinking speeds wouldn't work, then just put it as replace all *'s with 1's and get rid of the option tag and replace it with a number (it is in milliseconds). I thought 500 is pretty good (blinks every half a second). Well, tell me what you think of it.

#19 CrashCore

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 225 posts

Posted 11 April 2005 - 11:56 PM

Arg... sorry about that, I'm a little inexperienced with the [ CODE ] tag. Here's what I wanted it to look like:


<script language="javascript">
var color* = 0;
var hexco* = '';
function bl*() {
color* = (16777215 - color*);
hexco* = color*.toString(16);
hexco* = "#" + ("000000").substring(0,6 - hexco*.length) + hexco*;
document.all.b*.style.color = hexco*;
}
setInterval("bl*()",{option});
</script>
<span id="b*">{content}</span>


* = digits (if possible) that would start at 1 and count up depending on how many times this code was used and by how many people in one page.

Otherwise, if the option to change automatically do b1, b2, b3, etc. to change blinking speeds wouldn't work, then just put it as replace all *'s with 1's and get rid of the option tag and replace it with a number (it is in milliseconds). I thought 500 is pretty good (blinks every half a second). Well, tell me what you think of it.

#20 electriic ink

    "Britons never never shall be slaves." As true now as it was in 1740.

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,262 posts
  • Gender:Male
  • Location:Heaven
  • Interests:Promotion: Aug 4 2005 8.24pm BST
  • myCENT:74.43

Posted 01 May 2005 - 01:41 PM

I like the tags he created as they are. Can't we leave them like that or they'll get to compucated?

#21 wariorpk

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 661 posts

Posted 02 May 2005 - 11:19 PM

I personally think all the codes are good, even the ones I can't use. It would be cool if you could add a blue notepad for us normal members.

#22 CrashCore

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 225 posts

Posted 03 May 2005 - 02:24 AM

wariorpk, do you mean to do things such as post notes? The notice is more needed because mods and admins need to be able to put an easily visible notice like that for various reasons...

#23 wariorpk

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 661 posts

Posted 03 May 2005 - 07:07 PM

I think posting notes in your own post would be cool, it just seems like something cool to add.

#24 snlildude87

    Moderator

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,325 posts
  • Location:Mawson, Antarctica

Posted 03 May 2005 - 07:48 PM

wariorpk, on May 2 2005, 08:19 PM, said:

...even the ones I can't use....

View Post

Well, the only one you guys can't use is the note thing, but there is a feature in Invision Power Board where you could store your notes: http://www.trap17.co...y-controls.html

Scroll down to "Your personal note pad", and you should see a little text box to store anything you wish there.

Have fun!

#25 wariorpk

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 661 posts

Posted 04 May 2005 - 07:13 PM

Thanks for the info I'll store anything I need to remember there.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users