[TROPICAL] Support Thread

by Tropical - 24-06-2015, 08:07 PM
Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#1
OP
Posted: 24-06-2015, 08:07 PM
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:





Mr_Joker
24-06-2015, 08:36 PM
لا إله إلا الله‎
Posts:
6,327
Joined:
Jan 2015
Likes:
299
Credits:
318
Reputation:
162
2 Years of Service
#2
Posted: 24-06-2015, 08:11 PM
Tropical
Yeah i need help. in PHP part.
http://nulledbb.com/staff - The one online and offline...... Thats all
| Monopoly- Best forever .. | v4hl - ;) | Addicted | Senpai | Nyan | Sensei | H | fdigl |
[Image: gZD4Fba.png]

Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#3
OP
Posted: 24-06-2015, 08:14 PM
(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?
لا إله إلا الله‎
Posts:
6,327
Joined:
Jan 2015
Likes:
299
Credits:
318
Reputation:
162
2 Years of Service
#4
Posted: 24-06-2015, 08:15 PM
(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 ?
| Monopoly- Best forever .. | v4hl - ;) | Addicted | Senpai | Nyan | Sensei | H | fdigl |
[Image: gZD4Fba.png]

Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#5
OP
Posted: 24-06-2015, 08:16 PM (This post was last modified: 24-06-2015, 08:23 PM by Tropical.)
(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"

We are!
Posts:
1,044
Joined:
Jan 2015
Likes:
108
Credits:
1,906
Reputation:
25
2 Years of Service
#6
Posted: 24-06-2015, 08:23 PM
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";
        } 
Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#7
OP
Posted: 24-06-2015, 08:25 PM
(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:
@Believer rocks
Paradigm
Posts:
1,283
Joined:
May 2015
Likes:
43
Credits:
-1,050
Reputation:
45
2 Years of Service
#8
Posted: 24-06-2015, 09:44 PM
(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
لا إله إلا الله‎
Posts:
6,327
Joined:
Jan 2015
Likes:
299
Credits:
318
Reputation:
162
2 Years of Service
#9
Posted: 24-06-2015, 09:44 PM (This post was last modified: 24-06-2015, 09:47 PM by linkzy.)
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
| Monopoly- Best forever .. | v4hl - ;) | Addicted | Senpai | Nyan | Sensei | H | fdigl |
[Image: gZD4Fba.png]

@Believer rocks
Paradigm
Posts:
1,283
Joined:
May 2015
Likes:
43
Credits:
-1,050
Reputation:
45
2 Years of Service
#10
Posted: 24-06-2015, 09:48 PM
(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
linkzy
24-06-2015, 09:55 PM
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)