Firon Posted March 29, 2007 Report Share Posted March 29, 2007 I've added some extra bbcodes to the forum.[noparse] for font face[hr /] and = <hr /> (Horizontal Line) for strikethrough (<del> </del>)[pre] [/pre] for fixed-width formatting and for superscripting and subscripting, respectively for changing text size (in em) for highlighting text[align= ALIGNMENT ] [/align] for text alignment[ul] [/ul], [ol] [/ol], and [li] [/li] for lists[/noparse]List bbcodes are sane now. They work like the HTML equivalents.[noparse][ul][li]list item 1[/li][li]list item 2[/li][li]list item 3[/li][/ul][/noparse]will display[ul][li]list item 1[/li][li]list item 2[/li][li]list item 3[/li][/ul]I also added [noparse][noparse][/noparse][/noparse] so you can avoid bbcode parsing for whatever reason.Now mods and admins can move posts out of a thread, so hijacked threads should no longer need to be locked.It also detects if there's bots crawling the site and displays 'em in the online user list.It should also mark a topic as read once you've read it, instead of when you mark all posts as read. However, after an hour of not browsing the forums, it will "forget" which ones you have and haven't read and just mark 'em all as read up to that last time you viewed it.Double posts are no longer allowed (except for mods and admins). It will not let you do it. Link to comment Share on other sites More sharing options...
Lord Alderaan Posted March 29, 2007 Report Share Posted March 29, 2007 Marvelous! I love bb code I was just looking for strikethrough yesterday heheh. And font size \o/ \o/ Thanks Firon.Hmmz I can't get [style=] to work with numbers, points or CSS terms (small)? What is the syntax? changes something to the text but doesn't strike it through for me. Link to comment Share on other sites More sharing options...
Firon Posted March 29, 2007 Author Report Share Posted March 29, 2007 I must've screwed up the array. Will fix now.Edit: fixed. Stupid typo. Link to comment Share on other sites More sharing options...
Firon Posted March 30, 2007 Author Report Share Posted March 30, 2007 Now you can't double post, unless you're an admin or mod. Removed style. Link to comment Share on other sites More sharing options...
Ultima Posted March 30, 2007 Report Share Posted March 30, 2007 /me is confused about the image bit...Nice changes Link to comment Share on other sites More sharing options...
Firon Posted March 31, 2007 Author Report Share Posted March 31, 2007 It was a function I added but then removed. Link to comment Share on other sites More sharing options...
Lord Alderaan Posted April 2, 2007 Report Share Posted April 2, 2007 Oooh shiny! It works now Link to comment Share on other sites More sharing options...
Firon Posted April 3, 2007 Author Report Share Posted April 3, 2007 I love want to marry the strikethrough function. It's just handy to have. Link to comment Share on other sites More sharing options...
Ultima Posted April 3, 2007 Report Share Posted April 3, 2007 EXACTLY! lol there have been so many times that I needed to use strikethroughs, but they weren't available (I ended up having to use the quote thing to show what "This post originally" wrote )... Which reminds me, I need to start using lists in the Speed sticky Link to comment Share on other sites More sharing options...
tjobo Posted April 4, 2007 Report Share Posted April 4, 2007 Great!Could be nice if you update the BBcode page with this too.http://forum.utorrent.com/help.php#bbcode Link to comment Share on other sites More sharing options...
Firon Posted April 5, 2007 Author Report Share Posted April 5, 2007 I wanted to update it, but I was lazy... I'll do it eventually. >_> Link to comment Share on other sites More sharing options...
Firon Posted May 17, 2007 Author Report Share Posted May 17, 2007 Added the size tag (uses pixels) and fixed some of the other bbcodes.list bbcodes are sane now. They work like the HTML equivalents.[noparse][ul][li]list item 1[/li][li]list item 2[/li][li]list item 3[/li][/ul][/noparse]will yield[ul][li]list item 1[/li][li]list item 2[/li][li]list item 3[/li][/ul] Link to comment Share on other sites More sharing options...
Ultima Posted May 17, 2007 Report Share Posted May 17, 2007 Wee! /me stabs PunBB again for inserting <br /> between <li></li> tags Link to comment Share on other sites More sharing options...
Firon Posted May 17, 2007 Author Report Share Posted May 17, 2007 feel free to figure out how to fix it Link to comment Share on other sites More sharing options...
Ultima Posted May 18, 2007 Report Share Posted May 18, 2007 I'd love to... but it sounds like more trouble than it's worth ;D I'll live with the extra <br />'s Link to comment Share on other sites More sharing options...
Honeyfrog Posted June 8, 2007 Report Share Posted June 8, 2007 What the hell is that thing? A galloping llama? Link to comment Share on other sites More sharing options...
Falcon4 Posted June 17, 2007 Report Share Posted June 17, 2007 Hmm...[ul][li]This[/li][li]should[/li][li]be[/li][li]unbroken[/li][/ul](by the extra BR's)I think the parser might be doing a simple nl2br($input) and automatically adding "BR"'s whereever a line break is in the input. By removing the line breaks... you remove the BR's in the LIs =) Link to comment Share on other sites More sharing options...
Firon Posted June 17, 2007 Author Report Share Posted June 17, 2007 Go get the PunBB code and find out what exactly to do. Link to comment Share on other sites More sharing options...
Falcon4 Posted June 17, 2007 Report Share Posted June 17, 2007 Just don't put line breaks when you're writing a list, like I did above.If you really want to overcomplicate things, you might want to maybe do some preprocessing on "ul" items to remove line breaks before it hits the nl2br() function... Link to comment Share on other sites More sharing options...
ArlyNow Posted July 22, 2007 Report Share Posted July 22, 2007 :cool: Thanks for the new add-ons.With all the BB Code changes, is there a reason why the tags work for the Thread posts and not the Signatures? Link to comment Share on other sites More sharing options...
Ultima Posted July 23, 2007 Report Share Posted July 23, 2007 Because for the most part, they're annoying and clutter threads up. Link to comment Share on other sites More sharing options...
raingrass Posted July 25, 2007 Report Share Posted July 25, 2007 SO Great. Link to comment Share on other sites More sharing options...
duzap Posted November 3, 2007 Report Share Posted November 3, 2007 Very useful, thanks man! Link to comment Share on other sites More sharing options...
xent121 Posted December 2, 2007 Report Share Posted December 2, 2007 Yey...just a question: is there something like a [thread] in PunBB that we can use? I'll edit the BBCode Help File for you![noparse][thread=1234]Go here![/thread][/noparse] Link to comment Share on other sites More sharing options...
Firon Posted December 3, 2007 Author Report Share Posted December 3, 2007 No. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.