MyBB Community Forums

Full Version: Need plugin developer $100 - Status: Resolved
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
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 !!!
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.
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...
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!!
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....
(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!
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!
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.
(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.
Pages: 1 2