Need plugin developer $100 - Status: Resolved
#1
I have hired 2 people on MyBB with 100% success!
One was for development and one was for modification

So, I now need a plugin developer,
the plugin should show only member avatars / member name on /online.php, no guests!


This is what I have: 1980s' - don't get me wrong, I still love 80s' music.
[Image: online.png]

THIS IS WHAT I WANT: Something modern, something 2017 - ironically, I don't like most modern music, as much as 80s' music.


This is what the plugin should display on online.php, member avatar/name that are online.
clicking avatar/name will link back to users profile.

[Image: default2.png]

with the text of something like this in the header:
There are 585 Vistors Online: 51 Members and 534 Guests

hit me on pm if this is you.

I pay through paypal, internationally
Hey man, what's up?
#2
Tha is an easy one man...

You have to go to your index.php file.

Search for this:

	$query = $db->query("
		SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup
		FROM ".TABLE_PREFIX."sessions s
		LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid)
		WHERE s.time > '".$timesearch."'
		ORDER BY {$order_by}, {$order_by2}
	");

On mybb 1.8.10 is on lne 57:

Replace with:

	$query = $db->query("
		SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.avatar, u.invisible, u.usergroup, u.displaygroup
		FROM ".TABLE_PREFIX."sessions s
		LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid)
		WHERE s.time > '".$timesearch."'
		ORDER BY {$order_by}, {$order_by2}
	");

Below you found this:
					$user['profilelink'] = build_profile_link($user['username'], $user['uid']);

Replace with this:
					$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
					$user['avatar'] = htmlspecialchars_uni($user['avatar']);
					if(empty($user['avatar']))
					$user['avatar'] = "images/default_avatar.png";

Then go to your styles and templates open your style and on index templates open

index_whosonline_memberbit

There change all for this code:

<div class="avatarep_online_row"><span><img src="{$user['avatar']}" alt="avatar" class="avatarep_image" /></span><span class="avatarep_span"style="text-align:center;">{$user['profilelink']}{$invisiblemark}</span></div>

Finally open your global.css and add this code:

.avatarep_online_row{text-align:center;width:100px;display:inline-block;}
.avatarep_image{display:block;width:80px;height:60px;border: 1px solid #cacaca; background: #fff;padding:8px;border-radius:4px;}
.avatarep_span{text-align:center;}


Or this code for the shared image:

.avatarep_image {display: block;width: 60px;height: 40px;border: 1px solid #cacaca;background: #fff;padding: 6px;	border-radius: 4px;}
.avatarep_online_row {text-align: center;width: 100px;display: inline-block;padding: 0 5px;}
.avatarep_span{text-align:center;}
Save changes and see the results !!!

Of course you can set your own code...
But this should work...

That is for index page on who is online but inf the online.php file that's something similar...

I will work on it right now, but at the end you get the final results Big Grin

Well that have to work i have a plugin for users on latest 24 hours but you can adjust at your own mybb code Big Grin

See yah !!!
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

#3
That is awesome of you to post this!!
Thank you master neo! Your knowledge makes me giddy. You have perfected the avatar output.

What I am specifically looking for is the /Online.php page, If you can put the request into a plugin format, as a downloadable zip, then I will be happily pay you for the plugin.

the issue is, I don't wan't want to make any core edits to the php files, I just want a downloadable plugin that creates the desired output.
This request is still open.
Hey man, what's up?
#4
Ok there you go i share my plugin, and i work on new window to load desired options.

See yah !!!

I will work on new options when the new window was loaded and addittionally you have not to do anything in next version only deactivate, activate again and done...


Attached Files
.php   onlinetoday.php (Size: 5.48 KB / Downloads: 40)
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

#5
Thanks Neo, can't wait to see what you come up with! The onlinetoday.php shows users within 24 hours on index,

what I need is users who are on right now, on the online.php page But I like where you are going with this!!
Hey man, what's up?
#6
Ok mod is ready and waiting aproval. I will make a thread when ready.

https://community.mybb.com/mods.php?action=view&pid=937

By the way here's the link....
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

#7
(2017-02-12, 12:29 AM)Dark Neo Wrote: Ok mod is ready and waiting aproval. I will make a thread when ready.

https://community.mybb.com/mods.php?action=view&pid=937

By the way here's the link....

Neat mod, do hope it gets the approval!
#8
Hi neo, I love what you did here.
But not what I am looking for, as I am looking for a plugin that shows users avatars/name "currently" online on /online.php, as the example picture shows but I am sure that your plugin will be a BIG hit!
Masterful work sir!
Hey man, what's up?
#9
Ok i try to figure out to add it on next release.

i think that info are usefull like where the users are currently. So i try to not touch that parts.

But you can set it up i do it on localhost for that part at first instance.

To get currentry online or mark it i can modify the code with mybb ones that' what i do on my avatars plugin or i can add an extension in the plugin for that part.

What are usefull for you ?

I can add it on new page or same online page wit the hook but changes on template must be manual because mybb since 1.8.5 had a bug with template replacement routine and i try not do that for security reasons.

But i can glitch it with new data. Or easy you can contact me by pm and i do this job for you on your site.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

#10
(2017-02-12, 12:29 AM)Dark Neo Wrote: Ok mod is ready and waiting aproval. I will make a thread when ready.

https://community.mybb.com/mods.php?action=view&pid=937

By the way here's the link....

I'll look at your submission tomorrow morning since I'll have the time then.


Forum Jump:


Users browsing this thread: 1 Guest(s)