Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 245
Total: 245

Author Topic: [Mod] Custom BBCode  (Read 11911 times)

0 Members and 1 Guest are viewing this topic.

Offline Sarke

  • Member
  • *
  • Posts: 34
    • View Profile
[Mod] Custom BBCode
« on: January 11, 2007, 02:17:58 pm »
Custom BBCode
SMF Version: 1.1.1

Description: Adds the ability to create custom BBCode for your forum.

Link to Mod
« Last Edit: February 04, 2007, 09:58:35 am by Sarke »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: [Mod] Sarke's Custom BBCode
« Reply #1 on: January 11, 2007, 03:23:10 pm »
Great idea for a mod. Good clean code.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Sarke

  • Member
  • *
  • Posts: 34
    • View Profile
Re: [Mod] Sarke's Custom BBCode
« Reply #2 on: January 12, 2007, 07:36:41 pm »
Thanks!

Added button support.
« Last Edit: January 13, 2007, 03:52:57 am by Sarke »

Offline ScriptNurse

  • Member
  • *
  • Posts: 2
    • View Profile
Re: [Mod] Sarke's Custom BBCode
« Reply #3 on: January 29, 2007, 11:14:11 pm »
Is it possible to nest BBC's? As an alternative, can tags have inline style attributes like:

< span style="padding-left: 100px;" >$1< /span >

I have tried this can't get it to do what I want, so I figured I must be doing something wrong.

For my screenwriting site, I would want to be able to have tags like this:

[ myscript ]
[ scene ]INT. KITCHEN - NIGHT[ /scene ]
[ action ]The moonlight shines eerily through the open window.[ /action ]
[ character ]TOM[ /character ]  <--- indented 100px
[ paren ](hushed)[ /paren ]  <--- indented 75px
[dialogue ]Sshh! Quiet![ /dialogue ]  <--- indented 50px
[ /myscript ]

You get the idea.

I defined all of the tags as < span >, figuring that was safest. I also tried < div >, but the result was the same. If you have any suggestions or recommendations or other examples, I would love to review them.

Thank you for a great mod, by the way!

Offline Sarke

  • Member
  • *
  • Posts: 34
    • View Profile
Re: [Mod] Sarke's Custom BBCode
« Reply #4 on: January 30, 2007, 01:05:30 am »
Not in this version, but the coming version will.  The reason is that the SMF code does BBCode that parses and the ones that don't separately.  Currently only non-parsed tags work, so any BBCode inside a custom BBCode will not be parsed.

Offline ScriptNurse

  • Member
  • *
  • Posts: 2
    • View Profile
Re: [Mod] Sarke's Custom BBCode
« Reply #5 on: January 30, 2007, 06:08:11 am »
I see. I'll be looking for it. Thanks again!

Offline Sarke

  • Member
  • *
  • Posts: 34
    • View Profile
Re: [Mod] Custom BBCode
« Reply #6 on: February 04, 2007, 09:59:12 am »
2.00 released.

- Major rewrite.
- New settings interface.
- Support for parsing inside tags (nested tags).
- Support for different tags with the same name.
- Some other smaller stuff.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5850 Views
Last post September 03, 2007, 02:14:42 pm
by SMFHacks
3 Replies
4386 Views
Last post September 05, 2007, 10:03:12 am
by npereira
0 Replies
4378 Views
Last post December 21, 2010, 05:27:36 pm
by trof
0 Replies
3049 Views
Last post March 13, 2016, 10:04:19 pm
by SMFHacks
1 Replies
1580 Views
Last post June 07, 2023, 11:35:28 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal