MyBB Community Forums

Full Version: support developers or Webmasters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hello.

well then I'm modifying a theme to my liking

and I put the day of registration, the user details in the header.

and tried and

{$mybb->user[postnum]}

{$mybb->user[regdate]}

{$mybb->user[warninglevel]}

but only {$mybb->user[postnum]} work

others do not work.

if I could explain developers, or people with knowledge.

like to ask, if there is a tutorial, they are greatly appreciated.
Check in phpMyAdmin to see if those columns actually exist. If not, find the column you're looking for. For example Registration Date might be registration_date rather than regdate (not saying it is, I have no clue). Keeping in mind, though, that most data like that will be in a non-human friendly form.
if I put in regdate.

I listed the numbers, I can see the date as such.

happens with the other variables, q do not work.
You need php snippet for that.
yes, I know I need php

and I want to know how.
I want to see change

or make
You can use a function like this for registration date in the php snippet:

$user_regdate = my_date($mybb->settings['dateformat'], $mybb->user['regdate']);

You need Yumi's PHP in Templates / Complex Templates plugin if you want to use php code in templates.
I have php in templates and

I have only to put

$user_regdate = my_date($mybb->settings['dateformat'], $mybb->user['regdate']); 

and now?

Proquad if so I put it, and I got it

=my_date(Array['dateformat'], Array['regdate'])

what is the problem?
That is a php code. Please make sure you put them in php tag:

<?php
$user_regdate=my_date($mybb->settings['dateformat'],$mybb->user['regdate']);
?>
Quote:and thank you very much.

if it works

I just had to put this

<?php
$user_regdate=my_date($mybb->settings['dateformat'],$mybb->user['regdate']);
?>
$user_regdate

tanks.

Now I'll have to see how it works to put more things

you're a genius Wink
another question.

I want to change the staff group

and I want to change it by putting an avatar to each user. of staff.

only that the function
{$mybb->user['avatar']}

I put my avatar in all members, and I want to see your avatar.

in this case, how could I make?
Where do you want to display the avatar?
Pages: 1 2