Search this site: [Advanced Search]
 

Messages: 1 of 1. Pages: 1
Comments/Replies (0) appear below in chronological order. Comment form is at bottom of page.
Instructions For ifLocal Macro (#410)
Posted: 8/14/2002; 9:14 AM by Terry Frazier
Reply | Trackback URL | Weblog Permalink
Thanks Paul, I needed that. See this for background.
Blunt Force Trauma: Managing Local and Remote URLs in Radio. "I don't know anything about writing macros for Frontier so how would I create an ifLocal macro? For my reference mainly, as I don't fully understand the fix but I most definitely understand the problem -- it's bitten me a couple of times already." Shouldn't be difficult. Code of the macros was posted already:
on ifLocal (url1="/", url2=radio.macros.weblogUrl()) {
 if radioResponder.flSameMachine {return (url1)} else {return (url2)}
} 
Create file ifLocal.txt in Macros folder of Radio, copy this code there and you're done. Now you can use iflocal() in your templates. [toolbox]
Total Messages: 1. Pages: 1

Trackbacks

What other weblogs are saying about this topic. Trackback URL: http://www.terryfrazier.com/410/trackback

Reply to message #410...

You must logon before posting a reply

You must login to your account to post a comment. If you do not have an account you can create one here. It's a bit inconvenient but only takes a moment and helps control spam and other bad actors.