View Full Version : A more intelligent "Make me your homepage" button or link.
page-zone
12-15-2004, 02:21 PM
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.
amykhar
12-15-2004, 02:26 PM
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.
Colin F
12-15-2004, 02:37 PM
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.
amykhar
12-15-2004, 04:57 PM
True. I tend to use a sledgehammer approach when a screwdriver would work just as well :D
page-zone
12-15-2004, 05:41 PM
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...
djjeffa
07-27-2006, 12:36 AM
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?
Smiry Kin's
07-27-2006, 01:41 PM
could some one make this? would be nice. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.