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)

KelteN 12-01-2002 03:38 AM

yaXay user subdomains
 
Does anyone know how yaXay made it so every member has their own member.yaxay.com, and it redirects to their profile. How can I do this to my forum, and make it so they are automatically created for every member?

Thanks
ReveX

Dean C 12-01-2002 12:01 PM

A lot of people would love such a hack :D

- miSt

ArunanS 12-01-2002 12:33 PM

I don't think it redirects to tehre profile page. If you check there profile page, it doesn't have the comments, or the image functions. Though the SubDOmain profile does.

bharvey42 12-18-2002 07:49 PM

I would like to know how that was done. Anybody have any ideas?

colicab-d 12-18-2002 10:09 PM

is it not vb subdomains?

JulianD 12-18-2002 10:25 PM

No it isn't.

JulianD 12-19-2002 01:23 AM

I was checking out how to do this hack, and I did it really quick, but with one problem: It only works when you have your forums installed on the root of your site, for example: domain.com.
It won't work if you have your forums on domain.com/forum or forum.domain.com

However, there's a solution, and it's what Minots did with his vB subdomain hack.

Another point, what I did was just display the standard profile just like vBulletin does... Nothing like the information displayed in the yaxay site...

So, if you people are still interested, I could do something to get this hack done.

bharvey42 12-19-2002 01:46 AM

For me at least I will have to have mine installed to forum directory

Dean C 12-19-2002 08:30 AM

Well yaxay's is not installed in the public_html directory...

Please reelease such a hack Julian :)

- miSt

Kars10 12-19-2002 08:40 AM

Quote:

Originally posted by JulianD
I was checking out how to do this hack, and I did it really quick, but with one problem: It only works when you have your forums installed on the root of your site, for example: domain.com.
It won't work if you have your forums on domain.com/forum or forum.domain.com

However, there's a solution, and it's what Minots did with his vB subdomain hack.

Another point, what I did was just display the standard profile just like vBulletin does... Nothing like the information displayed in the yaxay site...

So, if you people are still interested, I could do something to get this hack done.

My Forum is installed in root-directory.
Man that would be very cool!!
What do u think are the server-requirements for using this hack??

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... :)

Graphics 01-21-2003 09:03 PM

Kars10 did u get it working

Kars10 01-22-2003 06:41 AM

Yes, this works! :)
Can write a short install in the next days..
;)

Btw: Thanks Axe!

Axe 01-24-2003 07:20 AM

No problem, any time I can help out :)

Graphics 01-25-2003 02:34 PM

Quote:

Originally posted by Kars10
Yes, this works! :)
Can write a short install in the next days..
;)

Btw: Thanks Axe!

can you write one?

Kars10 01-26-2003 01:54 PM

Sorry, im very busy these days. I promise i write one soon!! ;)


All times are GMT. The time now is 07:35 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.01133 seconds
  • Memory Usage 1,759KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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