New bbcode: post and thread

Administration issues and rules for the forum.

Moderator: Student Council

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
Lagomorph
Posts: 1540
Joined: Sun Oct 21, 2007 10:26 pm
Location: in search of carrot cake
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

New bbcode: post and thread

Post by Lagomorph » Thu May 14, 2009 2:43 pm

The forums are now updated to include "post" and "thread" bbcodes. These two bbcodes are intended to serve as shorthand for linking to posts and threads on the forums. You can do the same thing using the "url" bbcode, however, these two bbcodes accomplish it in much less space.

The syntax is as follows:

Code: Select all

[post=POST-ID]TEXT[/post]
[thread=THREAD-ID]TEXT[/thread]
Here's some examples that demonstrate these bbcodes versus the url bbcode

Code: Select all

[url=http://www.superhighschool.com/sjs/forums/viewtopic.php?p=34356#p34356]Link to a post using the url bbcode[/url]
[post=34356]Link to the same post using the post bbcode[/post]

[url=http://www.superhighschool.com/sjs/forums/viewtopic.php?f=9&t=3056]Link to a thread using the url bbcode[/url]
[thread=3056]Link to the same thread using the thread bbode[/thread]
These render as:
As you can see, they accomplish the same thing as the url bbcode but with less text.

For the post bbcode, use the number after the "p=" in the URL. For the thread bbcode, use the number after the "t=" in the URL.

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 1 guest