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. 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. 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 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. 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? 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. Link to comment https://forums.phpfreaks.com/topic/107704-showing-partial-content/#findComment-552152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.