vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   A more intelligent "Make me your homepage" button or link. (https://vborg.vbsupport.ru/showthread.php?t=72924)

page-zone 12-15-2004 02:21 PM

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.

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

Quote:

Originally Posted by amykhar
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. :)


All times are GMT. The time now is 07:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01058 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete