[wp-hackers] wp-hackers Digest, Vol 90, Issue 59

zanematthew at gmail.com zanematthew at gmail.com
Mon Jul 23 15:50:45 UTC 2012


Please let me know if I'm replying to these correctly. I've been on the
list for a few weeks now, but this is my first reply :D

Message 1 & 3: Re: Your development Setup
I use (and love) Sublime text2. I've work remotely and locally before, and
now back to local. Sublime text2 has a plugin called sftp which I've used
also. FYI, every few months I switch editors for a change, I've used
bbedit, coda, textmate, textwrangler, notepad++, dreamweaver, nano, pi, vi,
css edit, and so far Sublime I've used the longest.

Message 3: Access $post near template_include
Can't you just hook into the
template_redirect<http://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect>action?
I've been using on that my site and it works well, here's my
routes.php, maybe overkill for what you need.

Message "drop in plugins"
Isn't this what MU is for?

On Mon, Jul 23, 2012 at 8:00 AM, <wp-hackers-request at lists.automattic.com>wrote:

> Send wp-hackers mailing list submissions to
>         wp-hackers at lists.automattic.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.automattic.com/mailman/listinfo/wp-hackers
> or, via email, send a message with subject or body 'help' to
>         wp-hackers-request at lists.automattic.com
>
> You can reach the person managing the list at
>         wp-hackers-owner at lists.automattic.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of wp-hackers digest..."
>
>
> Today's Topics:
>
>    1. Re: Caching as part of the core (Mike Schinkel)
>    2. Re: Your development Setup (Brian Layman)
>    3. Re: Access $post near template_include (Mario Peshev)
>    4. Re: Your development Setup (Almog Baku)
>    5. Custom post types or plugin to manage and keep dynamic
>       content updated. (Aero Maxx)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 22 Jul 2012 15:54:33 -0400
> From: Mike Schinkel <mike at newclarity.net>
> Subject: Re: [wp-hackers] Caching as part of the core
> To: wp-hackers at lists.automattic.com
> Message-ID: <66806DEC-16A6-43A3-993C-BF9371932991 at newclarity.net>
> Content-Type: text/plain; charset=us-ascii
>
> On Jul 22, 2012, at 1:31 PM, Brian Layman wrote:
> > Drop in plugins are what they are because they must be loaded early on,
> or at least at very specific times in the initiation process, to do their
> job.
> > They are so specific in function, that the list of file names is hard
> coded into the core.
>
> But clearly the method $dropins use to find and load files could be
> improved, no?
>
> Consider this as a strawman proposal[1]:
>
> 1.) Move the require() in /wp-settings.php for /wp-includes/plugin.php
> from line 78 to 31 so that it gets loaded before any drop-ins.
> 2.) On line 32 of /wp-settings.php call a function that looks for a
> '/wp-content/dropins/' directory; if it exists then include() all the .php
> files in the directory.
> 3.) Deprecate existing dropins and implement do_action() hooks to run in
> place of existing dropins.
> 4.) Document that any file in dropins directory is responsible to add the
> actions it needs to support its own drop-in functionality.
>
> Thoughts?  If I don't get someone to explain an obvious reason this won't
> work I can add to Trac.
>
> -Mike
> [1] http://en.wikipedia.org/wiki/Straw_man_proposal
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 22 Jul 2012 17:09:35 -0400
> From: Brian Layman <wp-hackers at thecodecave.com>
> Subject: Re: [wp-hackers] Your development Setup
> To: wp-hackers at lists.automattic.com
> Message-ID: <500C6C0F.8070308 at thecodecave.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> AND notepad++
> http://amiworks.co.in/talk/debugging-php-using-xdebug-and-notepad-part-i/
>
> (Thanks again Scribu, I never would have looked for this otherwise!)
>
> Brian Layman
>
> On 7/22/2012 3:25 PM, Mike Schinkel wrote:
> > On Jul 22, 2012, at 11:42 AM, Simon Prosser wrote:
> >>> So Sublime offers XDEBUG & Zend Debugger support now?
> >> https://github.com/Kindari/SublimeXdebug
> > Nice. Might be time to give Sublime another look.
> >
> > -Mike
> >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 23 Jul 2012 00:19:20 +0300
> From: Mario Peshev <mario at peshev.net>
> Subject: Re: [wp-hackers] Access $post near template_include
> To: wp-hackers at lists.automattic.com
> Message-ID:
>         <
> CAN_8tK4YYuENoTZTiTP0YSuepwQG0H-060w3TJPG9C03KaLagQ at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Some very idiotic question here, got the add_filter line commented and the
> same function used as another hook on the line above it.
>
> Thanks Mike, pretty much better now.
>
> Mario Peshev
> Training and Consulting Services @ DevriX
> http://www.linkedin.com/in/mpeshev
> http://devrix.com
> http://peshev.net/blog
>
>
>
> On Sun, Jul 22, 2012 at 10:22 PM, Mike Schinkel <mike at newclarity.net>
> wrote:
>
> > On Jul 22, 2012, at 8:21 AM, Mario Peshev wrote:
> > > I'm trying to do some on-the-fly manipulations on the page template
> that
> > > take place in template-loader.php, by filtering the template_include
> part
> > > at the end. However I am not sure how to get the post ID there as I
> still
> > > don't have an access to the global variables for post and the loop and
> I
> > > also can't get it from the server variable due to permalink specifics.
> > >
> > > Is there a workaround to get the post ID at that point of loading?
> >
> > The global variable $post is available by the time the 'template_include'
> > hook fires.  Add this to your theme's functions.php file to see it in
> > action:
> >
> > add_filter( 'template_include', 'marios_template_include' );
> > function marios_template_include( $template_file ) {
> >   global $post;
> >   echo "Post ID: " . $post->ID . "</br>";
> >   return $template_file;
> > }
> >
> > Hope this helps.
> >
> > -Mike
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 23 Jul 2012 02:52:21 +0300
> From: Almog Baku <almog.baku at gmail.com>
> Subject: Re: [wp-hackers] Your development Setup
> To: "wp-hackers at lists.automattic.com"
>         <wp-hackers at lists.automattic.com>
> Message-ID:
>         <
> CALncZpS6pHy_6xt6ktKNBRvQV2huu9Pn_MMx7EKHyCxYr7WFew at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> I have to say i was never hear about phpstorm and sublime before.
> It make me wonder about my IDE, because eclipse is great! But it heavy and
> slow too.
>
> About notepad++, it a great tiny and nice editor. Sometimes I use it.
> BUT- its not an IDE. Its an editor. You cannot manage your development with
> it.
>
> ?????? ??? ???, 23 ????? 2012, Brian Layman ???:
>
> > AND notepad++
> > http://amiworks.co.in/talk/**debugging-php-using-xdebug-**
> > and-notepad-part-i/<
> http://amiworks.co.in/talk/debugging-php-using-xdebug-and-notepad-part-i/>
> >
> > (Thanks again Scribu, I never would have looked for this otherwise!)
> >
> > Brian Layman
> >
> > On 7/22/2012 3:25 PM, Mike Schinkel wrote:
> >
> >> On Jul 22, 2012, at 11:42 AM, Simon Prosser wrote:
> >>
> >>> So Sublime offers XDEBUG & Zend Debugger support now?
> >>>>
> >>> https://github.com/Kindari/**SublimeXdebug<
> https://github.com/Kindari/SublimeXdebug>
> >>>
> >> Nice. Might be time to give Sublime another look.
> >>
> >> -Mike
> >>
> >> ______________________________**_________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/**mailman/listinfo/wp-hackers<
> http://lists.automattic.com/mailman/listinfo/wp-hackers>
> >>
> >
> > ______________________________**_________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/**mailman/listinfo/wp-hackers<
> http://lists.automattic.com/mailman/listinfo/wp-hackers>
> >
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 23 Jul 2012 01:35:51 +0100
> From: Aero Maxx <aero.maxx.d at gmail.com>
> Subject: [wp-hackers] Custom post types or plugin to manage and keep
>         dynamic content updated.
> To: "wp-hackers at lists.automattic.com"
>         <wp-hackers at lists.automattic.com>
> Message-ID: <-1346563978441712930 at unknownmsgid>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello All,
>
> I've been working on a lottery site as a hobby project which isn't live at
> the moment and I'm wanting to include some statistical facts about the
> individual numbers in the lottery games.
> This question maybe OT so I apologise in advance if so.
>
> The urls would similar to http://www.domain/facts/([0-9]{1,})/ or
> http://www.domain.com/ <http://www.domain.com/facts/game/lotto/>
> facts/game/lotto/ <http://www.domain.com/facts/game/lotto/>([0-9]{1,})/
>
> These urls are from the rewrite rules the last number in the urls is the
> ball number 1-49.
>
> I'm not sure what the best way to go about this is, would it be best
> advised to do a custom post type and put short codes into the posts to keep
> the ever changing statistics update, this would mean I could put the custom
> post type into the menu easily and have the individual games as a drop down
> from the number facts pages.
>
> Or would it be best to create a single page called facts have the short
> code from a plugin inserted here and have the plugin handle everything, it
> would mean I would have to use custom links in the menu to get the links
> for individual game statistics. The only downside I can see is that I would
> lose the blog style listing when viewing the number facts for an individual
> game as the custom post type option would have an individual post per
> number and game. So this option may not look quite as good or easy to read
> and find and could potentially be more work and hassle for me to make it
> look good.
>
> The number fact page for an individual number would have some basic textual
> facts and a graph also in the page.
>
> You can see a rough idea of what I mean here, click on any number to see
> the page information I was talking about above not linked to an individual
> number as the link is quite long! -
> http://lottery.merseyworld.com/Palace.html
>
> What are your thoughts any help advice or suggestions your able to provide
> would be most helpful!
>
> Thanks
> Daniel
>
>
> ------------------------------
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
> End of wp-hackers Digest, Vol 90, Issue 59
> ******************************************
>



-- 
"The following will cause your email to be flagged:
*u, ur, sumthing, sumeone, dat, dis, ight, dere, plz, thx*"

Zane Matthew Kolnik
443-804-8161
http://bmxraceevents.com/
http:/zanematthew.com/ <http://blog.zanematthew.com/>
http://twitter.com/zanematthew/


More information about the wp-hackers mailing list