Sideclef Posted September 14, 2008 Share Posted September 14, 2008 If I say added an update and I have an updates page on my site. How would I go about setting something up to make the link change until the user clicked the link. I want this to only occur once for just that link but I also would like to set up some sort of function to call to when might need it again. Would this call for a table or would this be straight code to do this? Quote Link to comment https://forums.phpfreaks.com/topic/124197-link-color-to-show-update/ Share on other sites More sharing options...
Sideclef Posted September 14, 2008 Author Share Posted September 14, 2008 Any one have any ideas?? I am not asking for someone to write a code just to help stear me in the right direction so that I can do some research on it I have goolged it but I cant seem to find what I am looking for. If you could just give me the functions name or the relative functions name I would appreciate it Quote Link to comment https://forums.phpfreaks.com/topic/124197-link-color-to-show-update/#findComment-641453 Share on other sites More sharing options...
gingerboy101 Posted September 14, 2008 Share Posted September 14, 2008 Short and dirty, I would add an extra column say 'new' to your table and set default to be 'u' = unread, when the end user clicks on the link and reads the xxxx on the new page just update the table to 'r' read. Quote Link to comment https://forums.phpfreaks.com/topic/124197-link-color-to-show-update/#findComment-641487 Share on other sites More sharing options...
Sideclef Posted September 14, 2008 Author Share Posted September 14, 2008 Yeah I thought of that but, I will be changing it every time there is a new update and it don't seem that it would be that efficient to do it that way. Thanks for the post though. I guess I could just reset it every time but it seem like a lot of work to do every time. Quote Link to comment https://forums.phpfreaks.com/topic/124197-link-color-to-show-update/#findComment-641491 Share on other sites More sharing options...
gingerboy101 Posted September 14, 2008 Share Posted September 14, 2008 Is the link just for the user? if not then how long dose the link stay on the site for. e.g. if the user comes back x days later will the link still be valid? if the answer is yes and the user has already read the link then I can see no other way, unless you store that the link has been read some where, user cookie? I would guess that the only way would be store the responce in a table. Quote Link to comment https://forums.phpfreaks.com/topic/124197-link-color-to-show-update/#findComment-641498 Share on other sites More sharing options...
Sideclef Posted September 15, 2008 Author Share Posted September 15, 2008 Yeah I was wanting it to stay the highlighted color until clicked. Wither it be days or even months. I guess I could write a script to update the table each time I do it. That wouldn't be so hard I guess. Its basically to show that something new has been added. If I make an update say a few days later and the user hasn't clicked the link I guess it wouldn't really matter if it was for the prior update or not it would still be new. Thanks hun much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/124197-link-color-to-show-update/#findComment-641899 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.