TeamDGT

Registrations are currently open (for some short Time)!

DGT Girl

[XF Addon] Content BBCode 2.0.2

No permission to download
Compatible Versions:
2.2, 2.3
Visible Branding:
No
About

Note
: v2.0 of this addon is a re-release of my existing "[thread] and [post] BBCode" addon with a new addon ID. If you previously used this addon, it should automatically upgrade when installing this new version - but otherwise, just uninstall the old addon before installing this new one - no data will be lost.

This addon creates additional BBCodes for linking to various content found on XenForo forums:
  • thread
  • post
  • search (see below for details)
  • tag
  • xfmg
    • media
    • category
    • album
    • image
    • thumbnail
  • forum (node)
  • prefix
    • thread
    • resource
  • resource
The search tag has options allowing you to link to searches across multiple content types:
  • forums
  • threads
  • posts
  • resources
  • media
  • media comments
  • user profiles
  • tags
  • Google
    • site search
    • web search
    • image search
    • map search
    • video search
    • news search
This addon was originally created to replicate the [THREAD] and [POST] BBCodes which were used in vBulletin and may be present in post content after migration.

I've basically aimed to reproduce the original vBulletin (v3.8.x) functionality of simply rendering a link to a thread or post with the user supplied link text - if the user does not have permission to access the thread or post, they'll find out when they click the link! Thread titles are not rendered automatically, so there is no risk of information leakage.

The main reason you'd want to use this addon is if you have migrated content from vBulletin or another forum which uses [thread] and [post] BBCodes.

The additional BBCode tags were added primarily to support some forum statistics scripts I had written for my sites as I needed a way of programmatically generating links which were also independent of the site URL.

If you just want to use the thread and post tags, you can always disable the other custom bbcode tags in the admin UI.

Requirements

This addon requires PHP 5.4 or higher and has been tested on XF v2.0, v2.1 and v2.2

The [thread] and [post] component of this addon basically does the same job as @Xon's Thread & Post BB Code for XF2 addon - but mine is (deliberately) much less sophisticated and does no permission checking or thread/post lookups. You should not install both addons!

Usage

In post content (or anywhere that BBCode is allowed), the following substitutions will occur:

RICH:
You must log in to view
(1 lines)

... will be rendered as:

HTML:
You must log in to view
(1 lines)

Alternative syntax:

RICH:
You must log in to view
(1 lines)

... will be rendered as:

HTML:
You must log in to view
(1 lines)

POST

RICH:
You must log in to view
(1 lines)

... will be rendered as:

HTML:
You must log in to view
(1 lines)

SEARCH

Examples:

RICH:
You must log in to view
(17 lines)

TAG

Examples:

RICH:
You must log in to view
(1 lines)

... will be rendered as:
HTML:
You must log in to view
(1 lines)

XFMG

Examples:

RICH:
You must log in to view
(3 lines)

.. will be rendered as:

HTML:
You must log in to view
(3 lines)

You can also display full sized images:

RICH:
You must log in to view
(1 lines)

... will be rendered as:

HTML:
You must log in to view
(1 lines)

Note that if lightbox is enabled for images - the image will be rendered using the standard lightbox template in the same way that the IMG bbcode tag works.

Similarly, you may display a thumbnail as follows:

RICH:
You must log in to view
(1 lines)

Unlike other links, images and thumbnails will only display if the user has permission to view them.


FORUM

Examples:

RICH:
You must log in to view
(1 lines)

... will be rendered as:

HTML:
You must log in to view
(1 lines)

PREFIX

Examples:

RICH:
You must log in to view
(3 lines)

... will be rendered as:

HTML:
You must log in to view
(3 lines)

RESOURCE

RICH:
You must log in to view
(1 lines)

.. will be rendered as:

HTML:
You must log in to view
(1 lines)
  • Like
Reactions: Shinde
Author
DGT Girl
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from DGT Girl

Latest updates

  1. v2.0.2 - minor bugfix

    This is a minor bugfix to resolve an error which can occur when someone uses the [XFMG=thumb]...
Back
Top