The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
||||
|
||||
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. |
#3
|
||||
|
||||
Quote:
|
#4
|
||||
|
||||
True. I tend to use a sledgehammer approach when a screwdriver would work just as well
|
#5
|
|||
|
|||
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... |
#6
|
||||
|
||||
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?
|
#7
|
||||
|
||||
could some one make this? would be nice.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|