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
vbSubdomains v1.0 (german/english) Details »»
vbSubdomains v1.0 (german/english)
Version: 1.00, by Minots Minots is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-01-2002 Last Update: Never Installs: 21
 
No support by the author.

Hi everybody.

First of all I hope that my english is not to bad to
understand because my favorite language is german.

I have done my first hack and here it is.
This hack will make it possible to give all registered members
a free subdomain.
It looks like http://username.yourdomain.com and using "frame-redirection".

This hack will only work if you have a real toplevel-domain with 'wildcards' enabled. Somebody know it as 'catchAll-subdomain' (*.yourdomain.com automatic redirect to your homepage).

Some hack details:
* member can edit the subdomain options at the userCP -> edit options
* member can change hompage title
* member can change homepage url
* member are able to set metatag 'author'
* member are able to set metatag 'keywords'
* member are able to set metatag 'description'
* member are able to set metatag 'revisit'
* member are able to set metatag 'robots'
* special-chars in username are allowed
* all subdomain-hits are counted. cause this it?s possible to create a "subdomain top 10" or anything else in future versions
* subdomains are avaible for all registered and all new members
* admin can set the amount of posts a member need before he can use the subdomain (requsted by hagi)
* works with vBullentin v2.2.4 (Step 7.1) & v2.2.6 (Step 7.2)

I wish that there will be no problems by installing this hack
because I?m not often online for the next 1 - 2 weeks.
Nevertheless I will come as often I can to help and to answer at your questions.

The one and only thing I ask for is:
Please rate this hack and click the 'install-button' if you use it.
So i can see your opinion about it and know whether future versions are meaningfull.

Show Your Support

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

Comments
  #2  
Old 06-02-2002, 05:14 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

care to give a example?
Reply With Quote
  #3  
Old 06-02-2002, 05:16 AM
Minots's Avatar
Minots Minots is offline
 
Join Date: Jan 2002
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi again.
Here is a snapshot of userCP -> edit subdomain options
for a better illustrate.
(with german templates)
The attachment contains a snapshot from adminCP where you
set the amount of needed posts.

Reply With Quote
  #4  
Old 06-02-2002, 05:23 AM
hagi hagi is offline
 
Join Date: Jan 2002
Location: Chi-town
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is their a way to make it so that certain usergroups or if they have been here for xx days and have xx amount of posts because i wouldnt really want people to just join the board so they can have a subdomain.
Reply With Quote
  #5  
Old 06-02-2002, 05:27 AM
Minots's Avatar
Minots Minots is offline
 
Join Date: Jan 2002
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ neo
Sorry, at this time i can´t give a sample(-account) cause I am
using my domain (minots.de) for another free subdomain service.
If my hoster enabled wildcards to my second domain (d0x.de)
I will make a "demonstration board-account", so you will be
able to see and test this hack live.

@hagi
This is a great idea and I will try to include it in the next version.
Reply With Quote
  #6  
Old 06-02-2002, 07:20 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill try this 2nite... it looks AMAZING.... ive been trying to get a hack like this for months...

but i can't quite understand how this works... does it jus give a redirect???
Reply With Quote
  #7  
Old 06-02-2002, 08:13 AM
Minots's Avatar
Minots Minots is offline
 
Join Date: Jan 2002
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Mist

I will try to give you a short description how it works.
Lets see it with an example url like http://membername.boardname.com

Because you have set a catchAll-Subdomain for your topLevel-domain (*.boardname.com) all requests are going to your main html-directory.

The result of the .htaccess entry "DirectoryIndex vbsubdomain.php index.php index.html" is that the server
was first processing the file vbsubdomain.php.

In vbsubdomain.php the there are routines who
1.) get the host name (http://membername.boardname.com)
2.) get the "www." away if present
3.) delete everthing after the first slash "/" if present
4.) delete the ".boardname.com"
result of this is that we now have the pur "membername"

5.) after that it checks if "membername" is in the usersubdomain-table
if it isn?t --> auto proceed to your main hp-file like "index.php, index.htm, ..."
6.) if in table get subdomain variables(options) and do a framed html-output with all collected subdomain-options
PHP Code:
<html>
<head>
<title><?php echo $row[title?></title>
<meta name="keywords" content="<?php echo $row[metaauthor?>">
<meta name="keywords" content="<?php echo $row[metakeywords?>">
<meta name="description" content="<?php echo $row[metadescription?>">
<meta name="revisit-after" content="<?php echo $row[metarevisit?>">
<meta name="robots" content="<?php echo $row[metarobots?>">
</head>
<frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">
<frame name="main" src="<?php echo $target_url ?>">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
<a href="<?php echo $target_url ?>">Hier klicken um <?php echo $row[title?> zu besuchen.</a>
</body>
</noframes>
</html>
7.) it counts how often a subdomain was used
PHP Code:
mysql_query("UPDATE usersubdomain SET hits=hits+1 WHERE username='$subhost'") or die (mysql_error()); 
The file vbsubdomain.php contains a few lines of code
for error-handling.

I hope that my description isn?t to hard to understand and you
will now have a good overview how and why this hack works.

With friendly greetings,
Reply With Quote
  #8  
Old 06-02-2002, 04:06 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a really nice hack. Good job
Reply With Quote
  #9  
Old 06-02-2002, 04:08 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, this looks great but still kinda cloudy on how it works. It looks as if members are allowed to add their own sub-domains, whatever that would mean
Reply With Quote
  #10  
Old 06-02-2002, 07:44 PM
bluecat's Avatar
bluecat bluecat is offline
 
Join Date: Apr 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have this on their board so we can see how it works?
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 07:42 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.04891 seconds
  • Memory Usage 2,299KB
  • 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_php
  • (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