[wp-hackers] Integrate URLs from custom plugins?

Boris Anthony lists.permutype at gmail.com
Sun Jun 3 02:40:44 GMT 2007


Thanks for the help you two. I still haven't managed to get what I  
want to do to work (but I haven't been able to give it the full  
concentration i would like to yet either so...)

If and when I get it working I'll post a full how-to here. :)

thanks again!

B.

On 1-Jun-07, at 8:21 PM, Alex Günsche wrote:

> On Fri, 2007-06-01 at 19:51 -0400, Boris Anthony wrote:
>> the reason I want to forward to another template is because, for the
>> map for example I would incude all the stuff I need to display a map
>> (and the whole layut wuld be different anyways), and for stats as  
>> well.
>
> I think the easiest way would be with
> 	if ( false !== strpos($_SERVER['REQUEST_URI'], '/map') )
> or
> 	if ( '/map' == substr($_SERVER['REQUEST_URI'], -4, 4) )
>
> and use the template_redirect hook (as Jennifer proposed) in a plugin.
>
> HTH
>
> Alex
>
>
> -- 
> Alex Günsche, Zirona OpenSource-Consulting
> http://www.zirona.com/ | Hilfe für das HQ AC: http://www.prohq.de
> PubKey for this address: http://www.zirona.com/misc/ag.ml2007.asc
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list