A more intelligent "Make me your homepage" button or link.
I have a link on the front page of my portal site which when clicked makes it the users homepage. My question is, is there a way to make it go away (not appear) after it has been clicked? Preferrably controlled by the server and not client side.
Yes, you could add a column to the user table indicating if that link had been clicked or not. Then, you make the link run a script that first updates the user table to indicate that it has been clicked and then sets the page as the home page.
Finally, you have a conditional around the link that checks that value in the user table. If it is filled, you don't show the link.
Yes, you could add a column to the user table indicating if that link had been clicked or not. Then, you make the link run a script that first updates the user table to indicate that it has been clicked and then sets the page as the home page.
Finally, you have a conditional around the link that checks that value in the user table. If it is filled, you don't show the link.
instead of adding a column, I'd just add a user profile field that's hidden.
That's all fine and dandy if you have the slightest clue. Unlike me.
What else would be good is the ability to upload a multimedia file through the gallery addon, and have the script create the wma file link which contains the text file to link to movie.wmv
Those two things would really make my day if someone would create them who knows how. And..... begin...
I know this thread is ancient but I dont want to crap up the site so my question is what is the code to make a button or link to make my site the home page?