vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   yaXay user subdomains (https://vborg.vbsupport.ru/showthread.php?t=46258)

Chris M 12-19-2002 09:26 AM

@JulianD - yaXay has never in the time that I have heard of it or seen it had the forums in the root directory (yaxay.com) - It has always been either yaxay.com/yack/ or forum.yaxay.com;)

But if you could get this done, it would be awesome:)

Satan

zajako 12-19-2002 09:50 AM

can't you use the haccess files to make it so that it forwards it making it fake a subomain, when it really i sjust a redirect of sort....

JulianD 12-19-2002 01:08 PM

Yeah, a trick with the htaccess file is what you need to do...

Another good thing about this hack is make it usergroup based... So let me finish it and I'll release it in the Beta forum.

Well... Now I have to go out and make some christmas shopping :D

bharvey42 12-20-2002 04:01 AM

Thanks Julian this will be most useful

Kars10 01-04-2003 02:07 PM

Quote:

Originally posted by JulianD
Yeah, a trick with the htaccess file is what you need to do...

Another good thing about this hack is make it usergroup based... So let me finish it and I'll release it in the Beta forum.

Well... Now I have to go out and make some christmas shopping :D

^bumb^ ...whats with the hack julian?? ;)

Ember 01-04-2003 03:13 PM

Yah man, this hack would rule :)

bharvey42 01-12-2003 10:06 PM

Any updates?

Kars10 01-13-2003 06:59 AM

yes ...i can?t wait to get this hack! :)

Axe 01-13-2003 08:09 AM

A hack like this is real easy...

You just need to be able to wildcard DNS.

have *.yourdomain.com pointing to the IP address.

Then set a default vhost for all non-specific names.

Like you set one up for www.yoursite.com, which goes to your main site, you set one up for forum.yoursite.com, which goes to your forum, gallery.yoursite.com to go to your gallery, whatever...

Then you have all the others by default going to the default vhost with just a php file which simply forwards to their profile URL.

You just have it grab the first part of the hostname the whatever.yourdomain.com.. whack it in a variable like $subdom....

Then have it send the "location"..
Code:

header("Location: http://forum.yoursite.com/member.php?s=&action=getinfo&username=$subdom");
or...
Code:

header("Location: http://www.yoursite.com/forum/member.php?s=&action=getinfo&username=$subdom");
Now, obviously just doing something as simple as this won't do any checking as to whether the name exists or not...

BUT, you can always just whack a lil SQL query in there before you forward 'em to wherever. Once you've figured out what should go in $subdom, simply connect to the vB database, say "Hey, is there anybody with the username $subdom?"

If it says yes, forward to the appropriate URL. If it says no, forward 'em to your forum/website's homepage :)

But, most web hosters ain't gonna be playing around with wildcard DNS on u'r domain, and depending on their mood, they might charge you an arm & a leg to modify the apache config, setup the DNS, etc...

If you've got your own dedicated box though, and know how to do it, it only takes about 10 minutes to set it up, another 10 to figure out the script. You just gotta wait for DNS to update so everywhere knows u'r wildcard DNSing now.

Kars10 01-13-2003 12:13 PM

This is the trick!!
Thanks Axe!!
Will check this out... :)


All times are GMT. The time now is 04:45 AM.

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.01064 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete