inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 7, 2012 1:51:09 GMT -8
Go ahead with your push, I've pushed everything my side now... github.com/pixelDepth/Yootil/tree/master/srcI tried a batch script, but windows wasn't liking it, so I wrote a couple of PHP scripts to run via a bat file. Worth the effort as well, no more manually compressing the library now as well. I don't have anything installed on my laptop to run the min for me. I might run a bash script to update the src for me and update the min manually and commit it. No worries, I can always do the min and combine my end. Doesn't take long at all now. ;D
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Nov 7, 2012 9:25:02 GMT -8
I've implemented the yootil.locationcheck module now. This class is designed to let us have a very standard way of determining the current page. This way, if PB makes changes or we missed a case in early PB codes, we update one file to update all modules for this case. I've begun outlining yootil.useraction as well, but that is not yet implemented. If you have suggestions for useraction in terms of what you'd like to see, please send it my way. I'm also looking into writing a yootil.log module. The general idea is that we want to improve logging for users, so you would ideally make your own name space and use this to debug in each name space appropriately, allowing filter inside the JS console. Peter: Sounds like you're using Windows, but I committed my bash script to compile the src dir into yootil.src.js. It produces -slightly- different results from yours with end of file white space.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 7, 2012 9:44:02 GMT -8
I've implemented the yootil.locationcheck module now. This class is designed to let us have a very standard way of determining the current page. This way, if PB makes changes or we missed a case in early PB codes, we update one file to update all modules for this case. I've begun outlining yootil.useraction as well, but that is not yet implemented. If you have suggestions for useraction in terms of what you'd like to see, please send it my way. I'm also looking into writing a yootil.log module. The general idea is that we want to improve logging for users, so you would ideally make your own name space and use this to debug in each name space appropriately, allowing filter inside the JS console. Peter: Sounds like you're using Windows, but I committed my bash script to compile the src dir into yootil.src.js. It produces -slightly- different results from yours with end of file white space. Cool, have pulled them now. Suggestions... Change yootil.locationcheck to yootil.location or if you prefer, add an alias, or yootil.location.check (though getting a little long). Change yootil.useraction to extend yootil.user or added as a child of yootil.user (yootil.user.action) Yeah, I use windows
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Nov 7, 2012 9:58:56 GMT -8
I've implemented the yootil.locationcheck module now. This class is designed to let us have a very standard way of determining the current page. This way, if PB makes changes or we missed a case in early PB codes, we update one file to update all modules for this case. I've begun outlining yootil.useraction as well, but that is not yet implemented. If you have suggestions for useraction in terms of what you'd like to see, please send it my way. I'm also looking into writing a yootil.log module. The general idea is that we want to improve logging for users, so you would ideally make your own name space and use this to debug in each name space appropriately, allowing filter inside the JS console. Peter: Sounds like you're using Windows, but I committed my bash script to compile the src dir into yootil.src.js. It produces -slightly- different results from yours with end of file white space. Cool, have pulled them now. Suggestions... Change yootil.locationcheck to yootil.location or if you prefer, add an alias, or yootil.location.check (though getting a little long). Change yootil.useraction to extend yootil.user or added as a child of yootil.user (yootil.user.action) Yeah, I use windows user.action makes sense. I'd do location.check because I can see us creating location.create later to create urls given specific parameters, ya know? Edit: Merged changes. Will update min now.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 7, 2012 10:04:55 GMT -8
Cool, have pulled them now. Suggestions... Change yootil.locationcheck to yootil.location or if you prefer, add an alias, or yootil.location.check (though getting a little long). Change yootil.useraction to extend yootil.user or added as a child of yootil.user (yootil.user.action) Yeah, I use windows user.action makes sense. I'd do location.check because I can see us creating location.create later to create urls given specific parameters, ya know? Yeah, I get ya. That's good with me. I've just pushed some minor things. I thought about pushing my build folder, but most of what is in there is really specific to my working environment, so not sure if that will be any use to anyone. If so, I can do it. I'll update the docs in a bit, however I will hold off from updating the yootil.min.js file that is being used by any plugins. The plugin links the one I'm hosting, the one on GitHub is more experimental. Edit: We are using github.com/mishoo/UglifyJS/ for compression now, no longer Googles one. This is my command so you can see what I'm doing... node ../../uglifyjs/bin/uglifyjs -nc -o ../yootil.min.js ../yootil.src.js call copyright.bat Docs updated. yootil.pixeldepth.net
|
|
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 Nov 7, 2012 18:58:16 GMT -8
Okay so I have a question. I'm trying to use the yootil.location.check__is_page function to hide remove the body of the forum if someone goes to the messages page. I can't seem to get it right though...below is what I have.
if(yootil.location.check__is_page("conversations")) $('#body').remove(); }
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Nov 7, 2012 19:32:35 GMT -8
Okay so I have a question. I'm trying to use the yootil.location.check__is_page function to hide remove the body of the forum if someone goes to the messages page. I can't seem to get it right though...below is what I have. if(yootil.location.check__is_page("conversations")) $('#body').remove(); } So, first, we'd want to use the "message_list()" method instead. Second, you missed a . between "check" and the method you're calling... "check.message_list() Third, I'm not sure they have an item with the ID of body on PB by default. Your custom template may, but by default I don't see it. Try using an alert to make sure the code works other than the hiding part first.
|
|
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 Nov 7, 2012 19:43:27 GMT -8
Okay so it would be
if (yootil.location.check.message_list()) { $('body').remove(); // there isn't a ID of body...not really sure why I put the "#" there. }
|
|
inherit
16846
0
Nov 19, 2012 15:20:20 GMT -8
Chris
3,036
December 2003
cddude
|
Post by Chris on Nov 7, 2012 20:05:49 GMT -8
Okay so it would be if (yootil.location.check.message_list()) { $('body').remove(); // there isn't a ID of body...not really sure why I put the "#" there. } That looks right. Be warned that removing the body tag probably isn't the best idea though.
|
|
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 Nov 8, 2012 5:46:24 GMT -8
Okay,
So that doesn’t work for me. I tried it but nothing happens. (I even removed the “body” tag and tried removing the “#container” but that didn’t work either.
(I do have yootil installed on my forum just encase you were wondering.)
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 8, 2012 6:18:55 GMT -8
Okay, So that doesn’t work for me. I tried it but nothing happens. (I even removed the “body” tag and tried removing the “#container” but that didn’t work either. (I do have yootil installed on my forum just encase you were wondering.) if(yootil.location.check.message_list()){ $("#content").hide(); }
Edit: Remember that the DOM needs to be loaded.
|
|
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 Nov 8, 2012 6:26:48 GMT -8
Sorry to be such a noob, but I have no idea how to do that I tried this $(document).ready(function(){ if(yootil.location.check.message_list()){ $("#content").hide(); } });
But all that did was mess up my Floating clock plugin.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 8, 2012 6:30:06 GMT -8
Sorry to be such a noob, but I have no idea how to do that I tried this $(document).ready(function(){ if(yootil.location.check.message_list()){ $("#content").hide(); } });
But all that did was mess up my Floating clock plugin. Link to your forum? I'll have a look at the source and see what's wrong.
|
|
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 Nov 8, 2012 6:30:53 GMT -8
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 8, 2012 6:33:11 GMT -8
Can you open it up for guests temporarily?
|
|