inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Jun 1, 2013 18:04:58 GMT -8
Skidjit and @ritab: This plugin is a utility library. It makes it easier for plugin writers to create plugins. That's why some plugins require it. There should be nothing needed to be edited by you guys.
|
|
inherit
157863
0
Nov 20, 2024 10:35:15 GMT -8
Skidjit
Hello Sweetie! :D
1,129
September 2010
skidjit
|
Post by Skidjit on Jun 1, 2013 18:40:17 GMT -8
That is what i thought, but I was not sure. Thank you so much for answering our question.
|
|
Former Member
inherit
guest@proboards.com
134807
0
Nov 25, 2024 12:53:37 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 1, 2013 22:56:24 GMT -8
Thanks for your reply Chris.
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Jun 2, 2013 8:15:36 GMT -8
No problem.
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jun 3, 2013 8:57:58 GMT -8
You should add something to the plugin that will center things while there position is set to "fixed".
I've been using this code below but it's annoying to have to add it to the code every single time.
function centrify( elem ){ var parwidth = parseInt($(elem).parent().css('width')); var elemwidth = parseInt($(elem).css('width')); var centerpx = Math.round(parwidth*0.5)-Math.round(elemwidth*0.5); var centerpercent = Math.round((centerpx/parwidth)*100); $(elem).css('left',centerpercent+"%"); }
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 1, 2013 7:17:34 GMT -8
TexasCan you give me an example of when you would use this? If it's something that I think others would benefit from, then I will added it in. Or you can commit it to the rep yourself. ------ 0.8.13 Added a small method called yootil.outer_html. This will get the outer html of an element, it uses the native outerHTML if it exists, otherwise it uses jQuery.
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 1, 2013 7:40:32 GMT -8
Well, I was creating an alert box (before I had figured out that ProBoards had their own built in one) and I found that there is no possible way to do so without using at least three different css attributes. So I wrote up that function to make it simpler.
Though, now that I think about it, there aren't that many times where one would really need to center an element that's fixed. Seeing as most of the time the only reason for doing so would be an alert, in which case the proboards alert functions are way more dependable and useful.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 15, 2013 2:55:12 GMT -8
For anyone that installed the plugin via the ProBoard library, later on today or tomorrow when it gets approved, you will need to install the new version, or download the latest one now from the first post of this topic.
I noticed that the plugin in the library was not using a compressed version, this has now been fixed but people will need to update for it to use the correct file.
I may implement a notice for all main admins that are using the wrong version to force them to update. I won't add that in until the ProBoards library has updated.
I'll update this topic when I know the plugin is live in the library.
There are currently 120 forums with the wrong version installed, and probably a ton more.
Edit: Library has updated, though it reports the wrong version, so ignore that.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 19, 2013 6:43:40 GMT -8
0.8.17
Added a Queue class to allow you to easily queue functions Added yootil.location.check.profile() (includes all main profile tabs) Added yootil.create.profile_tab()Added yootil.create.profile_content_box()I was needing a way to queue some functions, so thought I would implement it into Yootil. jQuery has a way to queue animations, but I needed it to do other things apart from animation, and couldn't work out if it was possible, so rolled my own simple queue class. Example: $("<div />").css({ width: "100px", padding: "20px", border: "1px solid #000", backgroundColor: "#6CAAD5", position: "fixed", right: "10px", top: "5px", textAlign: "center", display: "none" }).attr("id", "test").html("Hello World!").appendTo($("body"));
var queue = new yootil.queue();
queue.add(function(){ $("div#test").fadeIn("slow").delay(4000).fadeOut("slow", function(){ queue.next(); }); });
queue.add(function(){ $("div#test").html("Hello People!").fadeIn("slow").delay(3000).fadeOut("slow", function(){ queue.stop(); }); });
// This won't run, as the queue was stopped above queue.add(function(){ $("div#test").html("w00t").fadeIn("slow").delay(3000).fadeOut("slow", function(){ queue.next(); }); }); yootil.pixeldepth.net/files/src/queue-js.htmlEdit: You can now set the poll interval, default is 100ms.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 23, 2013 3:59:02 GMT -8
Over 1,000 forums have got this installed now, though I don't see many other plugin authors using it.
Any reason why? Or do people just like reinventing the wheel?
Post your thoughts, am curious.
Note: Am not addressing those smaller plugins.
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 25, 2024 12:53:37 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 23, 2013 4:47:43 GMT -8
Hi, PeterI wonder if it's possible when the main admin views the admin panel it could alert you - To say a update is available for the Yootil Library
I think many who have it installed think it updates auto and forget to look/check that it needs updating I think if it had to some way of alerting you a new update is available More will will see and get the update Just my thoughts Steve
|
|
inherit
157863
0
Nov 20, 2024 10:35:15 GMT -8
Skidjit
Hello Sweetie! :D
1,129
September 2010
skidjit
|
Post by Skidjit on Jul 23, 2013 5:00:16 GMT -8
Hi, PeterI wonder if it's possible when the main admin views the admin panel it could alert you - To say a update is available for the Yootil Library
I think many who have it installed think it updates auto and forget to look/check that it needs updating I think if it had to some way of alerting you a new update is available More will will see and get the update Just my thoughts Steve In a round about way it can. I have several bookmarked threads here, that are telling me that their plugins are being updated. I also have my bookmarks set to send me an email when one of these threads have been posted on. I'm able to keep track of not only updates but other troubleshooting issues and how they are being addressed. What I wonder is if these other plugin creators actually know the exact details of what THIS plugin can to do to make their own jobs easier... or faster?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 23, 2013 6:20:30 GMT -8
@xsteveuk
Yootil Library auto updates, as the code is in a remote file and not inside the plugin.
The only plugin of mine that will notify the main admin when there is an update, is the Monetary System.
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Jul 24, 2013 15:28:52 GMT -8
I just haven't developed anything in a while. That's my reason
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 28, 2013 13:22:15 GMT -8
I use it in most of my plugins. I think there is only one or two of mine that don't.
|
|