Welcome Guest ! Please   Login or Register


Check out our latest Premium Themes, Majestic , Majestic - Dark and Musk Themes for MyBB 1.8 Click to Shop Now

Now open for Custom Theme requests : Click to Order Now





 
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some MyBB Useful Codes that you can use in your templates

envira Offline
Doctor Web
*******

Posts: 1,245
Joined: Aug 2012
Likes Received : 303

Facebook Google Plus Twitter
Nationality: India

Mood: Lazy

Points: 63,357.44Points
Post: #1
Smile Some MyBB Useful Codes that you can use in your templates

Hello 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.

Code:
{$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

[Image: lt79ucY.png]
08-20-2013 01:04 AM
Find
6
Quote




Nexus Offline
Junior Member
**

Posts: 15
Joined: Nov 2013
Likes Received : 2

Nationality: India

Mood: None

Points: 1.73Points
Post: #2
RE: Some MyBB Useful Codes that you can use in your templates

thanks
12-17-2013 04:37 PM
Find
0
Quote




VetFalco Offline
Junior Member
**

Posts: 14
Joined: Jul 2014
Likes Received : 0

Nationality: Italy

Mood: None

Points: 6.64Points
Post: #3
RE: Some MyBB Useful Codes that you can use in your templates

thanks Big Grin
07-20-2014 06:46 PM
Find
0
Quote




Sevenink Offline
Junior Member
**

Posts: 2
Joined: Sep 2014
Likes Received : 0

Nationality: Undisclosed

Mood: None

Points: 7.63Points
Post: #4
RE: Some MyBB Useful Codes that you can use in your templates

Thank you, this /is/ super useful.
09-05-2014 08:55 AM
Find
0
Quote




Yorne Offline
Member
***

Posts: 56
Joined: Mar 2014
Likes Received : 0

Nationality: Belgium

Mood: Artistic

Points: 112.92Points
Post: #5
RE: Some MyBB Useful Codes that you can use in your templates

Thanks.
09-06-2014 07:40 PM
Find
0
Quote




Yasu Offline
Junior Member
**

Posts: 3
Joined: Sep 2014
Likes Received : 0

Nationality: Canada

Mood: None

Points: 24.22Points
Post: #6
RE: Some MyBB Useful Codes that you can use in your templates

Thank Envira, really cool.
09-08-2014 02:05 AM
Find
0
Quote




rida.rwp Offline
Junior Member
**

Posts: 11
Joined: Dec 2014
Likes Received : 0

Nationality: Pakistan

Mood: None

Points: 303.01Points
Post: #7
RE: Some MyBB Useful Codes that you can use in your templates

Thanks dear
12-16-2014 01:27 PM
Find
0
Quote




Mihnea Offline
Junior Member
**

Posts: 3
Joined: Dec 2014
Likes Received : 0

Nationality: Romania

Mood: None

Points: 23.87Points
Post: #8
RE: Some MyBB Useful Codes that you can use in your templates

This tutorial was helpful!

Thank you!
12-17-2014 02:07 AM
Find
0
Quote




Kenert Offline
Junior Member
**

Posts: 2
Joined: Mar 2015
Likes Received : 0

Nationality: Estonia

Mood: None

Points: 0.87Points
Post: #9
RE: Some MyBB Useful Codes that you can use in your templates

Thank you!
03-03-2015 08:34 PM
Find
0
Quote




Fahadistic Offline
Junior Member
**

Posts: 3
Joined: Oct 2014
Likes Received : 0

Nationality: Pakistan

Mood: None

Points: 14.10Points
Post: #10
RE: Some MyBB Useful Codes that you can use in your templates

Thanks for sharing. Smile
03-30-2015 12:36 PM
Find
0
Quote





Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Star Simple jQuery Drop Down Login Form tutorial for MyBB envira 42 7,720 11-29-2016 08:50 PM
Last Post: DmitriyCauct
Information Add Social Links to Your MyBB Forum envira 5 3,993 10-25-2016 01:08 AM
Last Post: Chub
  [1.8x] [How] MyBB Reputation Gabbar 0 464 10-29-2015 09:41 AM
Last Post: Gabbar
Star [1.8x] MyBB jQuery User Dropdown Menu with Font Icons and jQuery envira 0 1,254 07-07-2015 12:29 AM
Last Post: envira
Heart Global Tool Tips with Jquery for Mybb myskins 6 4,386 09-06-2014 07:42 PM
Last Post: Yorne
  Forum Hover Effect on MyBB Index Page envira 8 4,564 08-17-2014 11:59 PM
Last Post: !!!a
Smile Multiple Colored Category Headings/ Thead MyBB envira 9 4,521 07-20-2014 06:47 PM
Last Post: VetFalco
  How To Create Free MyBB-Based Forum. Jero 15 3,462 07-20-2014 06:44 PM
Last Post: VetFalco
Smile Tutorial to make 4 column footer for MyBB envira 9 5,220 07-20-2014 06:43 PM
Last Post: VetFalco
Heart Tutorial to make MyBB Tabbed Profiles/ Profile Tabs with jQuery envira 33 13,375 07-20-2014 06:18 PM
Last Post: VetFalco

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

About Myskins

MySkins Studio is MyBB Themes Resource Website.

At MySkins Studio, We procreate MyBB Themes both custom MyBB Themes and premium Mybb Themes.We believe in quality and assure you the best MyBB themes at a very reasonable price , that suits your taste.

Feel free to drop in a request and get a quote.