PDA

View Full Version : vbSubdomains v1.0 (german/english)


Minots
06-01-2002, 10:00 PM
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.

Neo
06-02-2002, 05:14 AM
care to give a example?

Minots
06-02-2002, 05:16 AM
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.

http://www.minots.de/images/minots/suboptions.jpg

hagi
06-02-2002, 05:23 AM
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.

Minots
06-02-2002, 05:27 AM
@ 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.

Dean C
06-02-2002, 07:20 AM
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???

Minots
06-02-2002, 08:13 AM
@ 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
<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
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,

Neo
06-02-2002, 04:06 PM
This is a really nice hack. Good job :)

Velocd
06-02-2002, 04:08 PM
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 ;)

bluecat
06-02-2002, 07:44 PM
Does anyone have this on their board so we can see how it works?

GeOrGe
06-02-2002, 10:56 PM
Is this working on 2.5.6?

ULTIMATESSJ
06-03-2002, 12:39 AM
this sounds like an amazing hack, but with a fairly large board, won't this use up a LOT of your webspace

hagi
06-03-2002, 02:34 AM
I think its just a redirection url. You dont give out webspace, just a free subdomain.

MrBojangle1
06-03-2002, 02:45 AM
hey Hagi what is this for you gonna use it on PGamers? and how many posts til I can use it?

Pilot
06-03-2002, 12:53 PM
Whats the point of this?

Schumi
06-03-2002, 02:44 PM
Hey guys,

i have a problem:

I use the version 2.2.6 and i didn't find any row of the install.txt in the global.php.

How can I resolve the problem?Does anyone knows it?

So, nun in Deutsch*g*

Also, ich bin den Anweisungen in der Install.txt gefolgt, doch wenn ich die Zeilen in der global.php suche, findet er die nicht. Ich benutze die VErsion 2.2.6 .

Weiss jemand, wie ich es doch zum laufen kriege?

Gruss / best regards
Schumi

Minots
06-03-2002, 04:57 PM
@ Schumi
Ich habe die install.txt überarbeitet.
Unter Step 8.2 findest Du entsprechende Anweisungen.

english:
To use this hack with vBullentin v2.2.6 download the lates version
aof my hack (current 1.2) and look at Step 8.2 in 'install.txt'

hidjra
06-03-2002, 06:29 PM
Does this work on 2.2.4????

Minots
06-03-2002, 06:33 PM
@hidjra

Yes, I did it for 2.2.4 and add today the instructions for 2.2.6.
Now you can use it for vB 2.2.4 and 2.2.6

Just show in 'install.txt'.
Step 8.1 -> for vBullentin v2.2.4
Step 8.2 -> for vBullentin v2.2.6

Any more questions or ideas for future versions?

MrBojangle1
06-04-2002, 10:30 PM
can I see a working version please like a url of one that is out now? I want to test the accuall http://sub-doman.forum.com

Minots
06-04-2002, 10:47 PM
OK, for the next 60 min. everbody can see a demonstration
on my board.
loginname: testuser
password: demo

greetings,

WebMasterAJ
06-04-2002, 11:15 PM
Ahhh.... interesting... I figured it out even though I can't read a word of your site...

Very nice hack indeed....

Minots
06-04-2002, 11:24 PM
Yes, it?s not easy for anyone who don?t know the german language......
And it is not easy for me to tell everything in english...
I hope that we will understand us nevertheless.

// Edit //
a) OK, now it?s time to cancel 'testuser' so my primary free
subdomain-service can go on.
b) I have updatet the install instructions. ;) Now it?s install.htm with textfields for better viewing and easier copy&paste. Hope you like it.

With best regards,

Mutt
06-09-2002, 02:20 PM
with 'wildcards' enabled????

anyone know how to enabel wildcards?

my domain can handle with or without the www meaning

http://sfn2.com and http://www.sfn2.com both work but http://Mutt.sfn2.com does nothing.

Sounds like I need the catch all domain and not sure what need to be done to make it one.

The Piper
06-09-2002, 06:11 PM
This seems like a really nice hack. Is there any way to allow subdomains only for a certain user group, such as "Contributing members"? That should be another incentive for members to contribute... :)

Thanks a lot!
Paulo

Minots
06-11-2002, 10:28 AM
I?m working on vBSubdomains v2.0 @ this time.
And there will be such a option too. ;)
Some more details:
* Member will see the 'Hint' of vBSubdomains in UserCP -> Options only if he is allowed to use it
* Admin can set amount of allowed subdomains per user
* Admin can set usergroup(s) who will able to use subdomains
* Admin can set vBSubdomain-VIP who don?t need min. amount of posts
* Admin can disable/allow vBSubdomain for each member
* Full integrated search for vBSubdomain-user (adminCP -> search user)
* Full integrated search for vBSubdomain-VIPs (adminCP -> search user)
* custom error-templates
...............................................
The options/changes above are all done.
Now I have to translate everything (templates, etc.) in englisch and
a hack-instruction must be done.
After that I will release it as vBSubdomains v2.0 (beta1) in forum "Beta Hacks". ;)

Nice greetings,

Russ
06-12-2002, 11:17 PM
Two things.

1. PLEASE PLEASE hurry :) hehe.. just kidding, take your time.
2. Is there going to be instructions for 2.2.5 or are they basically just close enough to 2.2.6?

Cheers - and thanks for the hack, seems excellent, I'm just getting my host to check whether I can use it or not.

Later...

Minots
06-13-2002, 04:06 AM
Hi Russ.
I don?t test it with 2.2.5 but vBSubdomain v1.x should work with it.
Just look at step 7.1 & 7.2 in install.htm and take what is closer to v2.2.5 ;)

vBSubdomain v2.0 beta will be a 2.2.4 release (first)

Greetings,

Minots
06-18-2002, 10:30 PM
Hi again Hackers. :D

The release of vBSub. v2.0 will be possible in the next 7 days.
At this point I have to say 'sorry' to all vBulletin 2.2.4 user.
The future version of Hack will be first for vBulletin 2.2.6 and not for 2.2.4

Dark_Wizard
06-19-2002, 12:38 AM
This is a very interesting hack...does it limit the amount of space a user can have in their domain?

Minots
06-19-2002, 02:29 AM
You will not give out webspace with this hack.
It just redirect the requested URL.
i.e. http://member.yourboard.com --> http://home.tribot.com/~username
Simply a redirection service. ;)
In version 2.x of vBSubdomains the admin will be able to set the amount of subdomains a member can set.

Schorsch
07-04-2002, 03:31 AM
Hiiiillfffee !!!

in meinen profil einstellungen steht immer nur http://MEINNICKNAME.yourdomain.com

was soll das yourdomain ?? da muss doch meine domain stehen! was ist falsch gelaufen ?

thx
Schorsch

Minots
07-04-2002, 09:08 AM
Originally posted by Schorsch
Hiiiillfffee !!!

in meinen profil einstellungen steht immer nur http://MEINNICKNAME.yourdomain.com

was soll das yourdomain ?? da muss doch meine domain stehen! was ist falsch gelaufen ?

thx
Schorsch

Sieht ganz so aus, als wenn Du ein paar Einstellungen und der 'global.php' vergessen hast.
Gem?? Step 7.x solltest Du Folgendes dort einf?gen:

// **** set variables for vBSubdomains by Minots ****
// replace 'youdomain.com' with the domain name who will be used
// by the subdomain service. 'wildcards' aka 'catch-all' must be enable!
$maindomain = "yourdomain.com";
// replace 'index.php' with your homepage startpage
// in most cases it will be 'index.php', 'forum.php', 'index.htm' or 'index.html'
$startpage ="index.php";

Ich hoffe Dir ist jetzt aufgefallen, dass Du "yourdomain.com" mit deiner Domain ersetzen musst. ;)
Die Anf?hrungszeichen ("") m?ssen ?brigens bleiben. ;)

Hoffe, es ist nicht zu kompliziert.

Schorsch
07-04-2002, 01:16 PM
ups hab ich uebersehen!! danke!!

nun kommt aber wenn ich die eingerichtete subdomain aufrufen will immer nur

The page cannot be found

HTTP 404 - File not found

was ist da los ?

und mir ist nicht ganz klar WOHIN ich die .htaccess und die vbsubdomain.php kopieren soll, in mein vB root verzeichnis /vB oder in das html verzeichnis von meinem webspace ?

Minots
07-04-2002, 03:52 PM
Die ".htaccess" und "vbsubdomain.php" müssen in dein HTML-Root Verzeichniss.
Also dort hin, wo auch deine Startseite liegt.

Schorsch
07-04-2002, 11:33 PM
hmmm immer noch http 404 not found, bedeutet das das bei mir keine wildcards aktiviert sind ?

Minots
07-05-2002, 07:56 AM
@Schorsch
Es ist nicht leicht eine "Ferndiagnose" zu machen, wenn man deine Domain nicht kennt.
Schick mir doch bitte mal eine PN mit deiner URL, dann gehts sicherlich leichter und schneller.

Demonslayer
07-09-2002, 09:52 PM
can you please let us know the progress of version 2 since it's not in the beta hacks area.

thanks, this is my favorite vb hack so far! :D

Minots
07-14-2002, 06:45 PM
Hi all.

I´m sorry for my lateness.
In real-life I have to do many things with higher preference as this hack.

The current status for release 2.beta 1 is:
* writing the html-install

If everthing is done, I will let you know in this thread.

Best regards,

Schorsch
07-19-2002, 03:41 AM
Hi Minots,

hatte nun etwas zeit drann rummzumachen, kriegs aber immer noch nicht gebacken :(

Nun kommt das folgende wenn ich meine subdomain http://FetterEsel.fetter-esel.com aufrufen will:

Warning: Unable to access ./global.php in /home/virtual/site73/fst/var/www/html/vbsubdomain.php on line 10

Fatal error: Failed opening required './global.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site73/fst/var/www/html/vbsubdomain.php on line 10


wenn ich meine startseite www.fetter-esel.com aufrufe (wo ja die .htaccess drinne liegt) aufrufen will kommt GENAU dasselbe.

was ist falsch ?

Danke,
Schorsch

edit: habe jetzt vorlaeufig die .htaccess rausgenommen damit ich das board wieder nutzen kannst.

Minots
07-19-2002, 11:12 PM
@ Schorsch

Die Grundeinstellung des Hacks sieht vor, dass sich das Forum im
Web-Hauptverzeichniss deines Speicherplatzes befindet.
Also dort, wo Du deinen netten Disclaimer (index.htm) gespeicherst hast.
Aus diesem Grund befindet sich in der 10. Zeile von "vbsubdomains.php" folgender Eintrag.:
require('./global.php');

Der genaue Standpunkt Deiner "global.php" lautet allerdings "./vB/global.php" und kann deshalb nicht gefunden werden.

?ndere einfach in "vbsubdomains.php" die Zeile 10 um.:
require('./vb/global.php');
Das m?sste es dann gewesen sein. ;)

Und was die ".htaccess" angeht.
Sie legt die Priorit?t der "Startseiten" fest. Lautet der Eintrag z.B.
DirectoryIndex vbsubdomain.php index.php index.html
dann sucht dein Webserver zuerst nach "vbsubdomain.php" um sie anzuzeigen/zu bearbeiten.
Wenn diese Datei nicht vorhanden ist, dann versucht er es als n?chstes mit "index.php" usw.

Ich hoffe, das bringt Dich ein wenig weiter. Andernfalls frag mich einfach weiter. Wir bekommen das schon hin. ;)

In diesem Sinne,

Schorsch
07-20-2002, 01:30 AM
Hi Minots,

habe ich geaendert!

es kam anschliessend noch die meldung:

Warning: Unable to access ./admin/config.php in /home/virtual/site73/fst/var/www/html/vB/global.php on line 124

dasselbe fuer sessions.php und einige andere.

gut, dann dachte ich mir, ich aendere in der global.php ./admin/xyz.php in vB/admin/xyz.php und es sollte funzen. falsch gedacht, die fehlermeldung war zwar weg, ABER wenn ich mein forum oder nen beitrag anschauen wollte kam nix als ne weisse seite :(

was kann ich tun ?

und ich habe noch ne Frage: Ich habe meine alte .htacces durch Deine ersetzt, in der alten standen jede menge wirre sachen drin die ich nicht verstehe. Habe ich jetzt dadurch ne sicherheitsluecke oder wozu war meine alte .htaccess da ?

DANKE fuer deine Hilfe :)

Gruss,
Schorsch

Minots
07-20-2002, 04:08 PM
Hallo Schorsch.

Was in deiner alten .htaccess stand weiß ich nicht und kann Dir deshalb auch nicht sagen, ob Du jetzt ein Sicherheitsproblem hast. Aber Du wirst davon doch ein Backup gemacht haben, oder?

Wegen dieser weißen Seite:
Benutzt Du jetzt die .htaccess die beim Hack dabei ist, oder das Beispiel aus meinem vorherigem Posting?
Außerdem müsste ich noch wissen, wie deine "Disclaimer-Seite" heißt und welche Einstellung Du in der global.php gemacht hast.
Ich meine diese -> $startpage ="index.php";

Schorsch
07-20-2002, 05:33 PM
Hi Minots,

jep ich benutzte die .htaccess die bei deinem hack dabei war:

DirectoryIndex vbsubdomain.php index.html index.php

meine disclaimer seite heisst index.html

in meiner vB/global.php habe ich das folgende:

// **** set variables for vBSubdomains by Minots ****
// replace 'youdomain.com' with the domain name who will be used
// by the subdomain service. 'wildcards' aka 'catch-all' must be enable!
$maindomain = "fetter-esel.com";
// replace 'index.php' with your homepage startpage
// in most cases it will be 'index.php', 'forum.php', 'index.htm' or 'index.html'
$startpage ="index.html";

Gruss,
Schorsch

Minots
07-20-2002, 06:04 PM
Merkw?rdig... Klingt so als sei alles in Ordnung.
Ich habe Dir noch eine PN geschickt. ;)

Schorsch
07-20-2002, 08:39 PM
Danke Minots, du hast auch PN :)

Gruss,
Schorsch

Demonslayer
07-24-2002, 02:28 AM
What would I do if i wanted the subdomain to be something other than the username (they get an input field to put it in) and a site other than the homepage?

I hope it isn't anything too hard to do...

Schorsch
07-29-2002, 01:45 PM
@Minots:

you have a PM :)

regards,
Schorsch

Minots
08-06-2002, 01:44 PM
First beta of vBSubdomain2 is out!
Be carefull! Read all! Find it here -> https://vborg.vbsupport.ru/showthread.php?s=&threadid=41982

Schorsch
08-06-2002, 02:35 PM
@Minots:

do you have any ideas for my problem or will the new version solve my problem ?

regards,
Schorsch

Minots
08-07-2002, 12:44 AM
Hi again Schorsch.
Habe eine kleine ?berraschung f?r Dich. :D
Probier mal folgende Urls aus.:
http://www.fetter-esel.com
http://FetterEsel.fetter-esel.com
http://minots.fetter-esel.com

Zufrieden? :)

Schorsch
08-07-2002, 02:40 AM
wow Minots, ich weiss echt nicht wie ich dir danken kann :) SUPER arbeit!!! Vielen Dank!!

Kannst du mir noch kurz erklaeren was du geaendert hast damit es funzt ?

und kann ich ohne weiteres auf deine neue Version updaten, oder gibts dann wieder evtl. das alte problem ?

Gruesse,
Schorsch

Minots
09-17-2002, 01:14 PM
Hi everybody.
A simple question: Does someone know that this hack is still working with vB2.2.7 ?

NuclioN
09-18-2002, 01:05 AM
--problem solved-- installing new version. ;)

proxyMX
09-23-2002, 08:34 PM
not working properly on 2.2.7

wolfe
09-23-2002, 08:43 PM
Originally posted by proxyMX
not working properly on 2.2.7

i know it aint also some of the templates are in German can someone sort this please

Minots
02-05-2003, 11:01 PM
does someone test it with vb2.2.9?

Logtenberg
09-11-2003, 12:08 AM
Has anyone got this to work on version 2.30?

gmarik
09-14-2003, 11:21 AM
Has anyone got this to work on version 2.30?

Not me. But would want to. :ermm:

influence
04-01-2004, 01:28 PM
can someone port this over to vb 3.0 please

Minots
04-01-2004, 03:49 PM
at the moment i?m working on the download-addon for vb3
(can be seen at http://www.board-24.de/downloads.php ) .
after that i?ll do this hack (vbSubdomains) for vb3 too.

Just wait a little bit. ;)

trafix
04-01-2004, 09:02 PM
i hope the vb3 version works unlike the vb2 version ;)

yl88
05-29-2004, 07:00 AM
Good job!

i hope we can see there is version for vb 3.0

thanks.

animeonline
08-09-2004, 09:21 PM
Hi Minots,
First off it looks like you did a great job here.
I do have some questions though. How do I set up wildcards for my domain?
I can't seem to get the subdomains to resolve at this point. also how do I set the proper order in the htaccess file?
Thank you very much for your time :)