Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

some mybb useful use codes templates

Some Mybb Useful Codes That You Can Use In Your Templates
Better response on post Some Mybb Useful Codes That You Can Use In Your TemplatesHello friends,
Here are some useful template codes for MyBB you can use in your themes.

These i found on web , author unknown.
Hope these help you guys.

{$welcomeblock} - Include welcomeblock (user/guest view of the member bit)
{$mybbversion} - Displays softwares version
{$modcplink} - Displays link to Mod CP
{$admincplink} - Displays link to Admin CP (exclude for clients safety - reinstate it if requested)

{$mybb->settings['bbname']} - Displays boards name
{$mybb->settings['bburl']} - Displays URL to the board (use always when you have to link to something)
{$mybb->settings['homename']} - Displays homepage name (the one in the footer's menu)
{$mybb->settings['homeurl']} - Displays URL to the homepage site (the one in the footer's menu)

{$mybb->user['username']} - Displays users username
{$mybb->user['usertitle']} - Displays users usertitle
{$mybb->user['uid']} - Displays users UID (User ID)
{$mybb->user['avatar']} - Displays URL of the users avatar
{$mybb->user['lastvisit']} - Displays users last visit (date and time)
{$mybb->user['totalpms']} - Displays the total number of users messages (unread + read)
{$mybb->user['unreadpms']} - Displays number of users unread messages
{$mybb->user['postnum']} - Displays the users post count
{$mybb->user['logoutkey']} - Displays users logout key (used to logout successfully)

{$theme['imgdir']} - Displays themes image dirrectory
{$theme['imglangdir']} - Displays language specific theme image dirrectory
{$theme['tid']} - Displays the themes ID number
{$theme['logo']} - Displays themes logo
{$theme['borderwidth']} - Displays themes borderwidth number
{$theme['tablespace']} - Displays themes tablespace number

{$forum['name']} - Displays forums title
{$forum['description']} - Displays forums description
{$forum['url']} - Displays forums URL
{$forum['fid']} - Displays forums ID number
Nice one bro
Do you want to purchase credits? Click here!

Possibly Related Threads...
ThreadAuthor Replies Views Last Post
  HELP: Help Me Install Mybb On My Hosting I Will Pay Jadonking042 1 61 11-08-2017, 04:57 PM
Last Post: Teejay3200
  HELP: I Need Mybb Help prince 2 49 11-07-2017, 07:33 PM
Last Post: prince
  I Need The Premium Version Of Mybb Plugin For Moving Threads To Front Page Otahumele 0 30 11-02-2017, 06:32 PM
Last Post: Otahumele
  How To Add A Beautiful Pagination On Mybb Pedro 1 176 10-31-2017, 05:16 PM
Last Post: Dhron
  How Can I Unforce Mybb Theme on Users donblade 0 44 10-20-2017, 02:56 PM
Last Post: donblade
  HELP: How To Edit Mybb Template prince 15 161 10-18-2017, 12:15 AM
Last Post: prince
  How To Code A Simple Jquery Drop Down Login Form For Mybb James 3 141 10-16-2017, 10:44 AM
Last Post: kharlm
  HELP: Mybb Mydownloads Plugin Cybersky 5 88 10-16-2017, 01:02 AM
Last Post: Cybersky

Users browsing this thread:
1 Guest(s)

List of Users who browsed this thread: Abbey, Badooskid, Bigga, clive, Cybersky, daweb, Dhron, donblade, Drinosblog, mjasiriamalidesk, Otahumele, Pedro, Presh
Some Mybb Useful Codes That You Can Use In Your Templates00