prcollin Posted May 28, 2008 Share Posted May 28, 2008 I have a job posting site. I want when a user isnt logged in to only see the job description and location. But when they sign in the rest is visible to them. IS there an easy way to do this. Quote Link to comment https://forums.phpfreaks.com/topic/107704-showing-partial-content/ Share on other sites More sharing options...
jonsjava Posted May 28, 2008 Share Posted May 28, 2008 yes, it's doable. and pretty simple, but we need your script to show you how. Quote Link to comment https://forums.phpfreaks.com/topic/107704-showing-partial-content/#findComment-552128 Share on other sites More sharing options...
prcollin Posted May 28, 2008 Author Share Posted May 28, 2008 ok ill have to get it when i get to my laptop which wont be for a couple days i left it at my camp i havent posted the script to my server yet Quote Link to comment https://forums.phpfreaks.com/topic/107704-showing-partial-content/#findComment-552130 Share on other sites More sharing options...
.josh Posted May 28, 2008 Share Posted May 28, 2008 Just add a condition for the part of the content you only wish logged in people to see. If they are logged in, show it, if not, don't. It's the same exact principle/code as the whole login/out thing in general, only you're localizing it to a specific thing. If you managed to do a login system in general, then you should be able to do this no problem. Quote Link to comment https://forums.phpfreaks.com/topic/107704-showing-partial-content/#findComment-552136 Share on other sites More sharing options...
prcollin Posted May 28, 2008 Author Share Posted May 28, 2008 Just add a condition for the part of the content you only wish logged in people to see. If they are logged in, show it, if not, don't. It's the same exact principle/code as the whole login/out thing in general, only you're localizing it to a specific thing. If you managed to do a login system in general, then you should be able to do this no problem. so if user logged in then echo $poster $title $content $reply_address else if user not logged in echo $content something to that effect right? Quote Link to comment https://forums.phpfreaks.com/topic/107704-showing-partial-content/#findComment-552139 Share on other sites More sharing options...
.josh Posted May 28, 2008 Share Posted May 28, 2008 right. something to that effect. Quote Link to comment https://forums.phpfreaks.com/topic/107704-showing-partial-content/#findComment-552152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.