vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbSubdomains v1.0 (german/english) (https://vborg.vbsupport.ru/showthread.php?t=39332)

Minots 06-01-2002 10:00 PM

vbSubdomains v1.0 (german/english)
 
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
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,

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

Quote:

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:
PHP Code:

// **** 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

Code:

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:

Code:

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.


All times are GMT. The time now is 02:49 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.01265 seconds
  • Memory Usage 1,834KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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