Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
yourname.vbulletin.com (Subdomain Redirection) Details »»
yourname.vbulletin.com (Subdomain Redirection)
Version: 1.00, by Overgrow Overgrow is offline
Developer Last Online: Jun 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-04-2003 Last Update: Never Installs: 19
 
No support by the author.

SUBDOMAIN REDIRECTION v.1.0

Goal: Give every user a quick link to their profile or gallery or hacklist. Also add quick subdomains for anything else you want.

Usefuleness: I was jealous of the Yaxay profiles that were automatically assigned to each username.yaxay.com. Then I saw the hack by Minots: vBSubDomains. This did way more than I wanted it to-- I don't need to offer users redirection then have them point "porn.overgrow.com" to some kiddie site. So I duplicated what I thought Yaxay was doing-- and here it is.
Quote:
REQUIREMENTS:

OK, this is important. I can't help you with these requirements:

Your server must respond to blahblahblah.yourdomain.com by redirecting you to the default domain. If it does not do this already, you must ask your tech support if they can set it up. I did this by asking "Please setup Wildcard DNS for Overgrow.com. I would like *.overgrow.com to point to: /home/overgrow/HTML."

You must be using an index.PHP file as your document root file. Meaning when I hit your dot.com, it is serving me a PHP file. There are other ways around this using .htaccess but they are undesirable as they cause every hit to your main root domain to be processed through an additional php file.
Installation:

-Make sure *.yourdomain.com responds
-Add PHP to your root index.php

Difficulty: Somewhat Easy

Speed: Quick

Release: 1.0-- Feb 05, 2003

Hopping bunny: :bunny:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-05-2003, 02:24 PM
PSI|Dr-X PSI|Dr-X is offline
 
Join Date: Aug 2002
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MM i will try it on a localhost (maybe it works) if i set an adress for it
Reply With Quote
  #3  
Old 02-05-2003, 02:50 PM
PSI|Dr-X PSI|Dr-X is offline
 
Join Date: Aug 2002
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awsome it works *clicks install*
Reply With Quote
  #4  
Old 02-05-2003, 03:19 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have tecks vbhome (lite) installed so that is my ROOT index.php, should i still add the code or can i just put it in like a new file say called index2.php ?
Reply With Quote
  #5  
Old 02-05-2003, 03:21 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks very nice - i'll be sure to test this in the future

- miSt
Reply With Quote
  #6  
Old 02-05-2003, 04:40 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

>>i have tecks vbhome (lite) installed so that is my ROOT index.php, should i still add the code or can i just put it in like a new file say called index2.php ?

The point is to put the code right on the top of your ROOT index.php. Since that is what most people are after on your domain, that should be as fast and uncluttered as possible. Don't bother including another file or sending it off to process before going to your root index.php--

With this code, it only does a few matching operations then runs as normal, with no database access additions, when people are just going to your normal root index. It should add virtually no overhead unless people are looking for a user's subdomain.
Reply With Quote
  #7  
Old 02-05-2003, 04:48 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a lot more you can do with this as well. Since mine points to my user's galleries, I have another processing file doing some more work called /view in the root directory.

http://~shabang~.overgrow.com
my gallery

http://~shabang~.overgrow.com/view/pussy.jpg
any image can be referenced
Reply With Quote
  #8  
Old 02-05-2003, 05:10 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Btw does this redirect or actually show the correct page?
Reply With Quote
  #9  
Old 02-05-2003, 05:19 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Header redirects.. you'll need more than a simple php hack if you want to go to a true /friendly/url/format. I believe fastforward outlines this somewhere around here!
Reply With Quote
  #10  
Old 02-05-2003, 05:37 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Overgrow


Nope, the point is to put the code right on the top of your index.php. Since that is what most people are after on your domain, that should be as fast and uncluttered as possible. Don't bother including another file or sending it off to process before going to your index.php--
so i should add your code to my vb home light index.php or my forums/index.php ? cheers
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06214 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete