MyBB Community Forums

Full Version: Lastposter avatar 3.0.x
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Hello,
sorry for Offtopic, but what is this theme - http://community.mybb.com/uploads/mods/p...d220a1.png ?

Thank you
@methoz It's MyTrade theme by @eNvy, but personalized by him, me, and Joseahfer so, we are proud of all work, but the base theme is MyTrade you can get it for free here on extends - themes area.

@Ashley1 Yeah i work so hard, but i dunno how ipb is going on i never used that board before, and have no knowledge about it.

But i make some method and i actually testing on my forum, i set some optimizations like users load once and modal stays there with some time to not load before 2 seconds on mouseover, and more improves, but i have to works more and more xD.
(2016-06-19, 03:14 PM)Dark Neo Wrote: [ -> ]@methoz It's MyTrade theme by @eNvy, but personalized by him, me, and Joseahfer so, we are proud of all work, but the base theme is MyTrade you can get it for free here on extends - themes area.

@Ashley1 Yeah i work so hard, but i dunno how ipb is going on i never used that board before, and have no knowledge about it.

But i make some method and i actually testing on my forum, i set some optimizations like users load once and modal stays there with some time to not load before 2 seconds on mouseover, and more improves, but i have to works more and more xD.

See also this method: It's a CSS dropdown, and there's an option with a javascript onclick.

http://www.w3schools.com/w3css/w3css_dropdowns.asp
Yes that method and others i already know it, but i can not get some data, id on pms and portal to make unique on that modals and that is the reason of why i am currently developing, but i got some parts ready, I use this code:


					$(document).on("ready", function(){
						var myTimer;
						$("#forum_member2").on("click", function(e){
							e.preventDefault();	
							return false;
						});
						$("#forum_member2").on("mouseenter", function(){
						var ID_href = $(this).attr("href");
						var Data = "id=" + ID_href;
						myTimer = setTimeout( function()
						{			
							$.ajax({
								url:ID_href,
								data:Data,
								type:"post",
								dataType:"json",
								beforeSend:function()
								{
									$("#forum_member2").append('<div class="modal_avatar"></div>');	
									$("div.modal_avatar").css({
										"display": "block",
										"top": "50%",
										"left": "40%",
										"position": "fixed",
										"marginTop": - ($("#forum_member2").outerHeight() / 2),
										"marginLeft": - ($("#forum_member2").outerWidth() / 2),										
										"width": 400														
									});						
									$("div.modal_avatar").fadeIn("fast");										
									$("div.modal_avatar").html("<center><img src='images/spinner_big.gif' alt='Retrieving info'><br>Loading...<br></center>");
								},									
								success:function(res){																			
									$("div.modal_avatar").html(res);
								}
							});								
							return false;
						}, 2000);
						}).on("mouseleave", function(){
							if(myTimer)
							clearTimeout(myTimer);							
							$("div.modal_avatar").fadeOut("fast");
                                                         $("div.modal_avatar").remove();
							$(this).stop();
						});
					});
				

This is my script and i get values on modals by some new window. I use this to prevent to use and load when you wont do that.

Only values are loeaded when you stay 2 seconds with mouse over avatar and then load the new popup and when you leave then do not shown.
Ok i´ve finished the new test version for 2.8.7 series of plugin if anyone want to test it i already done, bions are tut the additions are this.

- New options since 2.8.6 (To shows or not avatar guests, formatted names and modal events).
- New code for modal events on hover.

When you select this option now a new code works on it, maybe i add the click event too, but now works with modals of mybb like previous released versions.

Modal hover effects loads another templates, you can customize it and select wich event you want to run on modal or disable modals pop up effects.

Protection to load once and no load on hover event as is. You have to stay 2 seconds to prevent any mistake when you navigate on your forum and not make invasive the modal events.

You load at first time modal second time you only show or hide, only load again if your selection is another one, i work so hard on it, but if any user can optimize or betterize the code feel free to do it.

That's all see you on next release and when this is done and finished after some reviews and tests i upload new version here.

Right now is on github to finish it...

Cheers...


NOTE: TO use it you have to disable another versions, then upload new files, activate and then make youur template changes and style changes, at this point many things are changes so i have to work on some template and style customizations yet....
I am running v2.8.7 and no issues to report so far.
Thank you so mucho @Ashley1 i am thinking on update asap here i test on our forum and all goes fine, i thik this latest version is ready to use on live forums.
Still no problems, except a typo on line 47 of inc\languages\english\admin\avatarep.lang.php 

defaul -> default

Big Grin

PS: How to get the avatar to show on latest threads on index.php ? Using sidebox plugin which uses the portal boxes.
Thanks for the feedback i will fix that Big Grin

Avatar is showed in portal by the way, i think if that mod takes default values all data must be loaded automatically.

I've used on the past that mod but i do not remember how it works. So i just not know how to load avatar honestly but have to be an easy task right now with latest version of plugin.

I review it if i can, what mod do you have it for modal boxes ?

Any link can be usefull to test it and let it know the right value or a way to add avatars in there.
(2016-07-21, 07:43 PM)Dark Neo Wrote: [ -> ]Thanks for the feedback i will fix that Big Grin

Avatar is showed in portal by the way, i think if that mod takes default values all data must be loaded automatically.

I've used on the past that mod but i do not remember how it works. So i just not know how to load avatar honestly but have to be an easy task right now with latest version of plugin.

I review it if i can, what mod do you have it for modal boxes ?

Any link can be usefull to test it and let it know the right value or a way to add avatars in there.

I use sidebox plugin - http://mods.mybb.com/view/sidebox

You can see it on my site, but you have to register.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36