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
  #22  
Old 05-18-2003, 01:08 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a very cool hack.

I am using this with Velocd's custom HTML page hack, to give my users a custom webpage... very cool.
Reply With Quote
  #23  
Old 05-18-2003, 02:07 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey i forgot about this hack

Unfortunately i can't use it as i already have a service set up using postnuke for subdomain homepages

- miSt
Reply With Quote
  #24  
Old 05-18-2003, 04:11 PM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still pondering over whether I should use this for the member profile or the custom page

Or maybe both
Reply With Quote
  #25  
Old 05-18-2003, 08:48 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've modified this hack quite a bit now - moved code to member.php, added stuff to .htaccess, modified the custompage hack.

You have a choice of 3 URLs to use:

username.domains.com OR

www.username.domains.com OR

www.domains.com/home/username

I've made it so that instead of basing it on the userid, it is based on the username, so .htaccess cloaking works.
Reply With Quote
  #26  
Old 06-09-2003, 05:18 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin,
Can you tell me how did you do that:
www.domains.com/home/username?
It's what I was thinking of the last two days...
Reply With Quote
  #27  
Old 10-21-2003, 02:19 PM
AmericanWoman AmericanWoman is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin, are you planning to release your modifications as an update or add-on to this hack? I'd really love to see them.

Going to install the base version of this on my dev site tonight and see how it goes...

Thanks to all the hackers who've worked on this!
Reply With Quote
  #28  
Old 02-08-2004, 08:59 AM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just about to test this on a vbulletin 3 site, theres no code changes to vb so it should work ok will let u all know
Reply With Quote
  #29  
Old 02-10-2004, 05:53 PM
M1th's Avatar
M1th M1th is offline
 
Join Date: Jul 2002
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, what if there are two usernames like "Member 1" and "Member_1" what would happen then?
Reply With Quote
  #30  
Old 02-11-2004, 02:18 PM
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How could you get this to work with forum names?
Reply With Quote
  #31  
Old 04-01-2004, 01:33 PM
influence influence is offline
 
Join Date: Jan 2002
Location: inside a bullet
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone port this over to vb3.0 please
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 12:26 AM.


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.04943 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (1)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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