MyBB Support

[TROPICAL] Support Thread

Submitted by Tropical, , Thread ID: 5022

Thread Closed
24-06-2015, 08:07 PM
#1
Support Thread
-
I've had about half year experience in MyBB
I started at the beginning of this year and developed through the year
I've helped various people and helped develop a few forums
I've also created multiple forums to mess with for fun
Coding is a fun thing to do and to learn
- - - - - - - - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - - - - - - - -
Things You Can Request

- Help
- Theme Problems
- Basic Problems
- How To Code Something
- Theme Requests (Depends If I Can Get It)
- - - - - - - - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - - - - - - - -
How To Request

Just so that I will receive an alert,
quote the entire thread and delete the content,
and put:

Quote:-
- - - - - - - - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - - - - - - - - -

:noh:





RE: [TROPICAL] Support Thread

#2
Tropical
Yeah i need help. in PHP part.
http://nulledbb.com/staff - The one online and offline...... Thats all
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: [TROPICAL] Support Thread

OP
#3
24-06-2015, 08:11 PM
Mr_Devil Wrote:
Tropical
Yeah i need help. in PHP part.
http://nulledbb.com/staff - The one online and offline...... Thats all

Oh shit
That's fairly easy.

You already got CSS and such?

RE: [TROPICAL] Support Thread

#4
24-06-2015, 08:14 PM
Tropical Wrote:
24-06-2015, 08:11 PM
Mr_Devil Wrote:
Tropical
Yeah i need help. in PHP part.
http://nulledbb.com/staff - The one online and offline...... Thats all

Oh shit
That's fairly easy.

You already got CSS and such?
yeah i know about css/html....
How do i get online and offline thing in my staff page ?
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: [TROPICAL] Support Thread

OP
This post was last modified: 24-06-2015, 08:23 PM by Tropical
#5
24-06-2015, 08:15 PM
Mr_Devil Wrote:
24-06-2015, 08:14 PM
Tropical Wrote:
24-06-2015, 08:11 PM
Mr_Devil Wrote:
Tropical
Yeah i need help. in PHP part.
http://nulledbb.com/staff - The one online and offline...... Thats all

Oh shit
That's fairly easy.

You already got CSS and such?
yeah i know about css/html....
How do i get online and offline thing in my staff page ?

Show me the code.
I need to work with that.

BTW,
you could use:
PHP Code:
$online_check $db->fetch_array($db->simple_select("sessions""*""uid IN (2) AND time>".(TIME_NOW-$mybb->settings['wolcutoff'])));
if(!empty(
$online_check))
 echo 
"online";
else
 echo 
"offline"

RE: [TROPICAL] Support Thread

#6
linkzy

PHP Code:
$query $db->simple_select("users""uid, username, avatar, usertitle as customtitle, displaygroup, usergroup, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away""displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username')); 

Just then need to fetch it, and then you can do

PHP Code:
if($user['lastactive'] > $timecut && ($user['invisible'] == || $mybb->usergroup['canviewwolinvis'] == 1) && $user['lastvisit'] != $user['lastactive'])
{
$status "online";
}
elseif(
$user['away'] == && $mybb->settings['allowaway'] != 0)
{
$status "away";
}
else
{
$status "offline";

RE: [TROPICAL] Support Thread

OP
#7
24-06-2015, 08:23 PM
Akay Wrote:
linkzy


PHP Code:
$query $db->simple_select("users""uid, username, avatar, usertitle as customtitle, displaygroup, usergroup, ignorelist, hideemail, receivepms, lastactive, lastvisit, invisible, away""displaygroup IN ($groups_in) OR (displaygroup='0' AND usergroup IN ($groups_in)) OR uid IN ($users_in)", array('order_by' => 'username')); 

Just then need to fetch it, and then you can do


PHP Code:
if($user['lastactive'] > $timecut && ($user['invisible'] == || $mybb->usergroup['canviewwolinvis'] == 1) && $user['lastvisit'] != $user['lastactive'])
{
$status "online";
}
elseif(
$user['away'] == && $mybb->settings['allowaway'] != 0)
{
$status "away";
}
else
{
$status "offline";


Oh,
well you know more PHP than me :noh: :noh: :noh:

RE: [TROPICAL] Support Thread

#8
24-06-2015, 08:11 PM
Mr_Devil Wrote:
Tropical
Yeah i need help. in PHP part.
http://nulledbb.com/staff - The one online and offline...... Thats all

Really devil -.- Im here with you dude

RE: [TROPICAL] Support Thread

This post was last modified: 24-06-2015, 09:47 PM by linkzy
#9
Thanks :v But i was testing his experience :v :3 @akay

24-06-2015, 09:44 PM
Kill Wrote:
--

I was testing him :3. I know ur best :D
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: [TROPICAL] Support Thread

#10
24-06-2015, 09:44 PM
Mr_Devil Wrote:
Thanks :v But i was testing his experience :v :3 @akay


24-06-2015, 09:44 PM
Kill Wrote:
--

I was testing him :3. I know ur best :D

No i'm not best -.- I mean since we code together
1

Users browsing this thread: 6 Guest(s)