MyBB Support

[TROPICAL] Support Thread

Submitted by Tropical, , Thread ID: 5022

Thread Closed
Tropical
Fulltime Member
Level:
0
Reputation:
35
Posts:
1.04K
Likes:
54
Credits:
117
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

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
24-06-2015, 08:15 PM
#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

Tropical
Fulltime Member
Level:
0
Reputation:
35
Posts:
1.04K
Likes:
54
Credits:
117
OP
24-06-2015, 08:16 PM
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

Akay
We are!
Level:
0
Reputation:
28
Posts:
946
Likes:
109
Credits:
2.05K
24-06-2015, 08:23 PM
#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

Tropical
Fulltime Member
Level:
0
Reputation:
35
Posts:
1.04K
Likes:
54
Credits:
117
OP
24-06-2015, 08:25 PM
#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

Coin
Level:
0
Reputation:
59
Posts:
1.13K
Likes:
54
Credits:
243
24-06-2015, 09:44 PM
#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

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
24-06-2015, 09:44 PM
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

Coin
Level:
0
Reputation:
59
Posts:
1.13K
Likes:
54
Credits:
243
24-06-2015, 09:48 PM
#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: 1 Guest(s)