Shortcodes

vBLink includes useful shortcodes to display related information about your vBulletin forum and users in your posts such as you can create links to the profile page of a user of display the title of your forum.

_images/13_shortcodes.png

User

User shortcodes allows you to display information about a vBulletin user. You can either directly use the id of a vBulletin user or provide an id from one of the linked WordPress accounts.

All the shortcodes have the following set of attributes in common.

Attributes
Name Description
id vBulletin user id.
wp_id WordPress user id.

Attention

You should only use one of those attributes. If you provide both of them wp_id will have priority over id.

Username

Displays the username of a vBulletin user.

[vb_user_username id="1"]

Tip

You can use Profile Link shortcode to create a link to the user’s vBulletin profile page.

Email

Displays the email address of a vBulletin user.

[vb_user_email wp_id="1"]

Title

Displays the title of a vBulletin user.

[vb_user_title id="1"]

Profile URL

Displays the profile URL of a vBulletin user.

[vb_user_profile_url id="1"]

Avatar

Displays the avatar of a vBulletin user.

Attributes
Name Default Description
use_placeholder false Display the default avatar if user doesn’t have one.
width original width Width of the avatar.
heigth original height Height of the avatar.
[vb_user_avatar id="1" use_placeholder="true" width="50" height="50"]

Avatar URL

Displays the avatar URL of a vBulletin user.

Attributes
Name Default Description
use_placeholder false Returns the URL of default avatar if user doesn’t have one.
[vb_user_avatar_url id="1"]

Forum

Forum shortcodes allows you to display information about linked vBulletin forum.

Title

Displays the title of linked vBulletin forum.

[vb_forum_title]

URL

Displays the URL of linked vBulletin forum.

[vb_forum_url]

Version

Displays the version of linked vBulletin forum.

[vb_forum_version]