Techious
http://www.techious.com/forums/

Custom BBcode tags
http://www.techious.com/forums/viewtopic.php?f=4&t=726
Page 1 of 1

Author:  Skillers [ Thu Aug 10, 2006 4:42 pm ]
Post subject:  Custom BBcode tags

With our shiny new forum software we can create our own custom BBcode tags, which means greater functionality for you as a poster. If you would like to request one, do so in this thread, and I will see what I can do.

Existing BBCodes;

Here are some of the BBcodes that you may need help with, have no help line or have been added by us;

Default BBCodes;

List - The help line info for these tags are a bit uninformative, so I suggest you read this to get yourself acquainted with their use.

Flash - This BBcode lacks a help line (probably because this is BETA software), use it like so;
Code:
[flash=width,height]link[/flash]
Where width and height are the dimensions of the flash and link is the location of the flash. If users have it set to yes in "User Control Panel -> Preferences -> Viewing Posts -> Display Flash animations" they will see the flash embedded in the post, if not they will see a link to the flash displayed as "[ Flash ]".
And example of the flash code would be;
Code:
[flash=500,500]http://specialkflash.bravehost.com/Trapped.swf[/flash]
whcih would display my "trapped" flash animation like so;

(Note, this is dependant on your user settings as stated above, you may want to check out some of the new features of your User Control Panel).

Our BBcodes;

Centre - This will set the alignment of the text to be centred, used like so;
Code:
[centre]This text has been centred[/centre]
Which displays as;
This text has been centred


Right - This set the text to be aligned to the right, used like so;
Code:
[right]This text has been aligned to the right[/right]
Which displays as;
This text has been aligned to the right


Strike - This code creates a line through text, used like so;
Code:
[strike]This text has been struck out[/strike]
Which displays as;
This text has been struck out

Google - This tag turns the text entered between the tags into a link to a Google.com search page as though the text had been entered into the Google search box. It is still subject to all he Google commands, such as phrase (") and exclude (-). For example;
Code:
[google]Word "this is a phrase" -exclude[/google]
Becomes this - Word "this is a phrase" -exclude.
This is useful if you wish to tell users to Google for the answer as it is easy to find, or to help them find a download or even as fun. However, I do not want to see people responding to every help request with this tag.

Wiki - This tag behaves in a similar manner to the Google tag, however it will link the user to the page with the title of the text entered of the English Wikipedia. For example;
Code:
[wiki]English Wikipedia[/wiki]
Becomes this - English Wikipedia.

Spoiler - This tag allows you to create a hidden spoiler tag, useful for posting stuff some people may not want to read, such as game plotlines. To use it, just type this;
Code:
[spoiler="Click this for spoilers!"]OH NOES! I ruined it for you![/spoiler]
Which becomes this;
Spoiler for Click this for spoilers!:
OH NOES! I ruined it for you!


Youtube - A useful little tool for posting YouTube videos, and very simple to use. To use it you first need to take the video code from the video URL, like so;
Code:
http://www.youtube.com/watch?v=copOYXvEsRs
use copOYXvEsRs
Then insert it into the youtube tag, like this;
Code:
[youtube]copOYXvEsRs[/youtube]
Which will give you this;

Watch this video on Youtube.
Please do not use this tag excessively.

Topic and Post - This tags create links to individual threads and posts on the forum.

To use topic, take the number from the URL, after the t=;
Code:
http://www.techious.com/forums/viewtopic.php?f=4&t=726
Is this topic's URL. Use 726.
Then insert it into the topic tag like this;
Code:
[topic=726]Link text.[/topic]
Which gives - Link text.

Post links work in the same way, except make it so the person is linked to a specific post in the thread. To find the URL of the post, click on the little arrow at the top of the individual post, next to where it says "Re: ..." in bold red type. Take the number from the URL, after the p=;
Code:
http://www.techious.com/forums/viewtopic.php?p=21756
Is the URL for the post after this one. Use 21756.
Then insert it into the post tag like this;
Code:
[post=21756]Link Text.[/post]
Which gives - Link text.

Author:  Skillers [ Fri Sep 14, 2007 9:20 pm ]
Post subject:  Re: Custom BBcode tags

New tags added - Spoiler and Youtube!

ENJOY!

EDIT: Any suggestions for new tags, feel free to post them here!

Author:  Lord Metritutus [ Fri Sep 14, 2007 10:28 pm ]
Post subject:  Re: Custom BBcode tags

The youtube one is awesome!

Author:  Skillers [ Fri Sep 14, 2007 10:38 pm ]
Post subject:  Re: Custom BBcode tags

Thank you. I wanted to create a very easy to use tag, and I believe I nailed it with the video code only, it keeps the posts clean and easy to use.

Anyway, I'm always looking to add new tags, and suggestions are greatly appreciated, as I currently cannot think of any new ones. If you have the corresponding HTML/Javascript (basically code you would find on a normal webpage) that makes it work, that would be excellent, but I should be able to find it myself, if not.

Author:  Si [ Thu Apr 17, 2008 8:38 am ]
Post subject:  Re: Custom BBcode tags

How about a bbcode tag to link to a topic or post inside the forum... such as [topic]726[/topic] which would take you back to this topic?

Author:  Skillers [ Thu Apr 17, 2008 11:22 am ]
Post subject:  Re: Custom BBcode tags

Hmm, yeah, that could be good. Would it be possible to get it to show the name of the topic aswell?

Author:  Si [ Sat Apr 26, 2008 1:15 pm ]
Post subject:  Re: Custom BBcode tags

We now have [topic] and [post] BBcodes.

For using [topic] enter the topic number and the text you want for the link. For example:
Code:
[topic=726]Custom BBcode tags[/topic]

will lead to this post as so: Custom BBcode tags

The same is for [post], except you put a post number instead of the post name. Example:
Code:
[post=33402]Re Custom BBcode tags by Si[/post]

will give you: Re Custom BBcode tags by Si

Author:  Skillers [ Sat Apr 26, 2008 1:34 pm ]
Post subject:  Re: Custom BBcode tags

I knew I was meant to do something. I take it you couldn't find a way to automatically show the post name?

Author:  Si [ Sat Apr 26, 2008 6:46 pm ]
Post subject:  Re: Custom BBcode tags

No, the BBCode system is unable to support this.

Author:  Skillers [ Sat Apr 26, 2008 8:27 pm ]
Post subject:  Re: Custom BBcode tags

OK. I just updated the first post with the new tags.

Author:  Si [ Sun May 11, 2008 2:58 pm ]
Post subject:  Re: Custom BBcode tags

Just for announcement, I have completed the BBCode guide and made it up to date with all of our custom tags, you will find it on the top in between FAQ and Rules!

If you are unsure on how a BBCode tag should be used, you will find it in there.

And note to Skillers: How about a different video that doesn't have embed restricted?

Author:  Skillers [ Sun May 11, 2008 3:06 pm ]
Post subject:  Re: Custom BBcode tags

Thanks Si.

Heh, that video isn't restricted, it's been removed. If you want to suggest a video to use in it's place, feel free, it was just a video I happened to have open at the time. We really need to make a TCHS video.

Author:  Si [ Sun May 11, 2008 3:11 pm ]
Post subject:  Re: Custom BBcode tags

It's bad wording on YouTubes part, its been "removed" from being embeddable.

Author:  Skillers [ Sun May 11, 2008 4:00 pm ]
Post subject:  Re: Custom BBcode tags

Oh, OK, it is still there, lol. Well if you want a different video, just say.

Author:  Skillers [ Thu Jun 05, 2008 1:48 pm ]
Post subject:  Re: Custom BBcode tags

I've updated the Youtube tag to have a Clickable link underneath it now.

Author:  Si [ Thu Jun 05, 2008 3:02 pm ]
Post subject:  Re: Custom BBcode tags

Can you change "Clicky" to "Watch this video on YouTube"?

Author:  Skillers [ Thu Jun 05, 2008 3:07 pm ]
Post subject:  Re: Custom BBcode tags

OK, done.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/