Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
isaacsol

2 New BBCodes - Tables and MP3 Players

Recommended Posts

Hey everyone,

 

I have been hard at work trying to think of BBCodes that will help organise and improve the forums. I have just coded 2 more for the forums. The Table BBCodes, and the MP3 player. The first that I will show you is the MP3 Player. To use it use the following code:

 

[mp3player='1']www.dec-chronicles.co.uk/music/Badinerie.mp3[/mp3player]

To get:

 

(That is me playing the flute ^_^ the strings are synthesised.)

 

When you place the location to your mp3 file, DO NOT add the "http://" or it will corrupt the code as the automatic URL BBCode will change it so it won't work.


Now for the second of the new BBCodes, the Table Group. This group consists of 5 new codes. table (main code), th (header) thw (header with width, requires an option), tr (creates a new row of cells) and td (creates a new cell, width is optional if you use an option). Remember that the widths are in percent, not pixels. This means that the tables can scale to size on any screen. Here is an example of the code in action:

 

[table=Table title][th]Column Title 1[/th][th]Column Title 2[/th][th]Column Title 3[/th][tr][td]Row 1, Cell 1[/td][td]Row 1, Cell 2[/td][td]Row 1, Cell 3[/td][/tr][tr][td]Row 2, Cell 1[/td][td]Row 2, Cell 2[/td][td]Row 2, Cell 3[/td][/tr][tr][td]Row 3, Cell 1[/td][td]Row 3, Cell 2[/td][td]Row 3, Cell 3[/td][/tr][/table]

 

Which produces:

 

Table title
Row 1, Cell 1 Row 1, Cell 2 Row 1, Cell 3
Row 2, Cell 1 Row 2, Cell 2 Row 2, Cell 3
Row 3, Cell 1 Row 3, Cell 2 Row 3, Cell 3

 

If you have problems making tables with this code, let me now and I will help you with them.

 

Enjoy,

~Isaac~

 

P.S. The BBCodes are not Parsing on the website, I will try and fix this issue soon. I apologise for the inconvenience.

Share this post


Link to post
Share on other sites

*jaw-drop*

 

Wow you sure are pouring these out fast! ^~^ I'll have to play around with the table thing before I can use it, but it sure looks awesome! Great job!

Any chance of being able to upload midis or wavs as well? Also, do you have a recommendation for a site to upload mp3s to? I wanna' start putting soundtracks to my tutorials. xD

 

I dunno if this will work, might as well try:

 

[removed]

 

EDIT: Nope. lol Need to find a site that works..

 

Also, it kinda' seems like the player does not buffer unless you click on the play button, can you change this?

Share this post


Link to post
Share on other sites

Sorry, the file doesn't buffer unless you click on it. That is part of the flash file. It doesn't play Midi files unfortunately. Also, the player in the first post uses the ID "1", do not use it for your players in this topic ^__^

 

P.S. Your URL is the problem with your file. Not the player :P

Share this post


Link to post
Share on other sites

xD Yeah I know it was the URL. lol I meant I would give that site a try. xD

 

 

 

Edit: So it appears you can use text as the ID. : / Cool.

Share this post


Link to post
Share on other sites

SWEET!

Been waiting for tables. Good job Isaac :alright:

 

EDIT: You should make a topic with every code and an example of each. I think it will help everyone.

Share this post


Link to post
Share on other sites

I think I will do that later on when we have a few more custom BBCodes. Also, do you have any suggestions for codes?

Share this post


Link to post
Share on other sites

There is already a tutorial in progress for the new BBCodes. These two can be included.

Share this post


Link to post
Share on other sites

Cool. I'll get the BBCodes working on the website shortly. This would be a good time announce one that I added yesterday called Dropcap. See the first "C" in this paragraph? Does that. It basically enlarges the first letter of the paragraph, I'm sure everyone here has seen it. It's called the drop cap. By the way isaacsol, don't make any box bbcodes, I've got those covered :) I'm planning to make one bbcode which will have many variations and styles.

Share this post


Link to post
Share on other sites

Its the large C, the first letter of my post above. It's very common on websites and in novels.

 

I have finished adding the BBCode to the website, however I haven't got all the CSS that I need so the table bbcodes aren't 100% done. Also the code tags are not rendering properly, but this should be fixed later today. :)

Share this post


Link to post
Share on other sites

Could you also make sure that they carry over and work on the front page Marked? Thanks! ^_^

 

Also, are there any rules with drop-caps? Like not using them i all yer' posts or only once per post?

 

Den, here's some pictures of drop-caps:

 

 

drop-caps_06.pngdropcap6.GIF

 

00130000-decorative-initial-d-q75-494x500.jpgCathachOfStColumba.jpg

 

Share this post


Link to post
Share on other sites

Of course, they are both working on the frontpage. I just need the CSS for the tables and to fix the code bbcode.

 

There are no rules for the Dropcap. I don't know why any members would use it excessively in their posts, its just for decoration in topics, mainly projects.

 

I just discovered that the BBCodes are stored in the database (well its obvious but i never checked) so later I'm going to work on using that to generate the bbcodes on the site. So when Isaac or I add new bbcodes, they will automatically work on the website. However, some bbcodes are pretty advanced and use their own php files, so we'll see if I can get that to work. Would be very useful though. Especially when we extend the site for users to submit their own content.

Share this post


Link to post
Share on other sites

Oh, sorry. You can see all the new bbcodes we add in the "Other Styles" dropdown box when making a new post. The drop cap bbcode is:

[dropcap]block of text. Preferably two or more lines.[/dropcap]

Share this post


Link to post
Share on other sites

I am not going to make any box BBCodes :) I am more into making BBCodes like that ones I have implemented so far (Anchor and Anchor links, Table and MP3 Player) :P

 

That drop-cap BBCode looks nice, will be good for the Story and Literature forum. Do you have to add the BBCode again for each forum, or do you just have to put all the text within it?

Share this post


Link to post
Share on other sites

buffering isnt a problem with me, yay! is it possible that, if the mp3 playing stopped when another one starts playing, rather than at the same time?

Share this post


Link to post
Share on other sites

Yes, but it would involve you knowing what ID you have used for EVERY player in the topic, even those others have made. Which is very hard to do.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...