Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Thread Options MyBB Show to group syntax | {$something}
Not Solved
hi ive been working on a mybb forum for while i have faced 2 questions which i couldnt ind the answer on web:

1. whats is the syntax to make showing of an block level code or element conditional based on user groups and/or ids ? ( or in other words how can i limit showing a an element to specific group by editing templates&styles>template )

2. when u r editing templates in mybb u often see {$something} i assume these are shortcuts to other codes i wanna know where are their target and where i can edit those resources

thx in advance these will help alot

[ive asked this question in another forum too <snip>
Not Solved
1. You can't use conditionals in templates without a plugin, but generally it's best to leave it to a custom plugin.

2. Those are just PHP variables. They can be found throughout MyBB. You can find a complete list here: http://crossreference.mybboard.de/_variables/index.html

Also, please do not link to forums with hacking or illegal content.
No longer involved in the MyBB project.
Not Solved
thx alot about the link for number 1 question i had found conditional templates which allows me to use some php in my templates, is

if($mybb->user['gid'] == 0)

some html  content that i want to show to specific grp like <p>hey</p>


gonna work? i dunno php yet Sad
Jump to the post that solved this thread.

Forum Jump:

Users browsing this thread: 1 Guest(s)