Re: [PHP] Need help calling multiple functions with if_is
Hi Vince, On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote: ?php if (is_home(?php wpads('728leaderboard'); ?) (is_page(42)(?php wpads('leaderboard1'); ? (is_page(10)(php? wpads('leaderboard5);?) ? Try: ?php if (is_home(wpads('728leaderboard');) (is_page(42)( wpads('leaderboard1') (is_page(10)(wpads('leaderboard5)) ? All I did was pull out all the jumps into PHP since the whole thing is a php if statement I didn't see the need to keep opening and closing php... Unless I'm not understanding why you are :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need help calling multiple functions with if_is
That looks like it should work, but it doesn't. There isn't a reason to close the embedded php statements, but I suspect wpads isn't recognizing the call when it is embedded like this. It just brings up a blank page in all instances, which is the same issue I was having with the original code string. On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim li...@pruimphotography.com wrote: Hi Vince, On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote: ?php if (is_home(?php wpads('728leaderboard'); ?) (is_page(42)(?php wpads('leaderboard1'); ? (is_page(10)(php? wpads('leaderboard5);?) ? Try: ?php if (is_home(wpads('728leaderboard');) (is_page(42)( wpads('leaderboard1') (is_page(10)(wpads('leaderboard5)) ? All I did was pull out all the jumps into PHP since the whole thing is a php if statement I didn't see the need to keep opening and closing php... Unless I'm not understanding why you are :) -- ~~ Vince Leibowitz CapitolAnnex.com twitter.com/CapitolAnnex myspace.com/capitolannex facebook.com/profile.php?id=501233189 vince.leibow...@gmail.com AOL, MSN, Yahoo: vpltz || ICQ: 118433437 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need help calling multiple functions with if_is
On Jul 31, 2010, at 3:34 PM, Vince Leibowitz wrote: That looks like it should work, but it doesn't. There isn't a reason to close the embedded php statements, but I suspect wpads isn't recognizing the call when it is embedded like this. It just brings up a blank page in all instances, which is the same issue I was having with the original code string. On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim li...@pruimphotography.com wrote: Hi Vince, On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote: ?php if (is_home(?php wpads('728leaderboard'); ?) (is_page(42)(?php wpads('leaderboard1'); ? (is_page(10)(php? wpads('leaderboard5);?) ? Try: ?php if (is_home(wpads('728leaderboard');) (is_page(42)( wpads('leaderboard1') I just noticed right here... You're missing a ' which would cause problems... Very possibly what would fix it in fact (is_page(10)(wpads('leaderboard5)) ? All I did was pull out all the jumps into PHP since the whole thing is a php if statement I didn't see the need to keep opening and closing php... Unless I'm not understanding why you are :) -- ~~ Vince Leibowitz CapitolAnnex.com twitter.com/CapitolAnnex myspace.com/capitolannex facebook.com/profile.php?id=501233189 vince.leibow...@gmail.com AOL, MSN, Yahoo: vpltz || ICQ: 118433437 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need help calling multiple functions with if_is
On 31 July 2010 21:34, Vince Leibowitz vince.leibow...@gmail.com wrote: That looks like it should work, but it doesn't. There isn't a reason to close the embedded php statements, but I suspect wpads isn't recognizing the call when it is embedded like this. It just brings up a blank page in all instances, which is the same issue I was having with the original code string. On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim li...@pruimphotography.com wrote: Hi Vince, On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote: ?php if (is_home(?php wpads('728leaderboard'); ?) (is_page(42)(?php wpads('leaderboard1'); ? (is_page(10)(php? wpads('leaderboard5);?) ? Try: ?php if (is_home(wpads('728leaderboard');) (is_page(42)( wpads('leaderboard1') (is_page(10)(wpads('leaderboard5)) ? All I did was pull out all the jumps into PHP since the whole thing is a php if statement I didn't see the need to keep opening and closing php... Unless I'm not understanding why you are :) ?php if (is_home) wpads('728leaderboard'); elseif (is_page(42)) wpads('leaderboard1'); elseif (is_page(10)) wpads('leaderboard5); ? That's assuming you just want to call wpads. If you want to output the return of wpads, stick echos in there. And might I kindly ask of you to please read http://dk2.php.net/manual/en/control-structures.if.php and http://dk2.php.net/manual/en/language.basic-syntax.phpmode.php Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need help calling multiple functions with if_is
Peter, That works like a dream! Thanks very much for your help and pointing me to those pages. I've already noticed something over there that will fix another problem I've been having. You folks are great for offering the assistance. Have a good weekend. Vince On Sat, Jul 31, 2010 at 2:50 PM, Peter Lind peter.e.l...@gmail.com wrote: On 31 July 2010 21:34, Vince Leibowitz vince.leibow...@gmail.com wrote: That looks like it should work, but it doesn't. There isn't a reason to close the embedded php statements, but I suspect wpads isn't recognizing the call when it is embedded like this. It just brings up a blank page in all instances, which is the same issue I was having with the original code string. On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim li...@pruimphotography.com wrote: Hi Vince, On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote: ?php if (is_home(?php wpads('728leaderboard'); ?) (is_page(42)(?php wpads('leaderboard1'); ? (is_page(10)(php? wpads('leaderboard5);?) ? Try: ?php if (is_home(wpads('728leaderboard');) (is_page(42)( wpads('leaderboard1') (is_page(10)(wpads('leaderboard5)) ? All I did was pull out all the jumps into PHP since the whole thing is a php if statement I didn't see the need to keep opening and closing php... Unless I'm not understanding why you are :) ?php if (is_home) wpads('728leaderboard'); elseif (is_page(42)) wpads('leaderboard1'); elseif (is_page(10)) wpads('leaderboard5); ? That's assuming you just want to call wpads. If you want to output the return of wpads, stick echos in there. And might I kindly ask of you to please read http://dk2.php.net/manual/en/control-structures.if.php and http://dk2.php.net/manual/en/language.basic-syntax.phpmode.php Regards Peter -- hype WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 /hype -- ~~ Vince Leibowitz CapitolAnnex.com twitter.com/CapitolAnnex myspace.com/capitolannex facebook.com/profile.php?id=501233189 vince.leibow...@gmail.com AOL, MSN, Yahoo: vpltz || ICQ: 118433437 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php