vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   vBsubdomain2 (https://vborg.vbsupport.ru/showthread.php?t=41982)

Minots 08-05-2002 10:00 PM

vBsubdomain2
 
Well well... You ask 4 it. Here it is.
This is the extended Version of my first one. Details

It includes the same features + many things more.
The main features are:
* member can as much subdomains (redirektors) as admin allows
* admin can allow/disallow the usage 4 every member and/or usergroup
* full integrated searching for vBsubdomain-user in adminCP
* custom error & redirect templates 4 this hack

Atention!
vBulletin3-Alpha1 is out now, so i will stop to work on this hack
for vB2. It?s possible that I will make a new one for vB3.
Also, the most templates in the zip-file are in german and have
to translate.
And you should only try to install this hack on a test-board.
There isn?t a "1-file-hack-instruction" in the zip! You have to be
advanced install-knowlege to let it work.

OK, hacker! Now it?s your turn.

Edit: a basic translation of templates can be found here

[D]Vincent 08-06-2002 01:58 PM

This is a nice hack indeed, I have 5GB of space so I could easily pull it off if it wasn't for my lack of bandwidth=\ and I only get 15 subdomains. So I'm not going to use it but it's still very nice.

Minots 08-06-2002 02:11 PM

You don?t need many more bandwith for that. ;)
It will
- check the "incoming-URL"
- compare it with DB entrys
- output a realy small site to make a redirektion

look at this code:
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 ?>">Click here to visit <?php echo $row[title?>.</a>
</body>
</noframes>
</html>

That is smaler than you index-page I think. ;)

[D]Vincent 08-06-2002 05:49 PM

I don't even have enough for my vB, it ran out in two weeks last month =\ mainly because of the shoutbox, and it still may run out this month which is why i'm getting a new host soon.

assassingod 08-06-2002 07:10 PM

What exactly is this hack?

Brad 08-06-2002 08:46 PM

Quote:

Originally posted by assassingod
What exactly is this hack?

if you install it a member can ask for a subdomain. when they get one it will redirect to his/her site


membername.yourforumurl.com

countryboy713 08-06-2002 09:01 PM

Quote:

Atention!
vBulletin3-Alpha1 is out now, so i will stop to work on this hack
for vB2
wha! i never heard anything about it being released besides the demo board.

great hack btw

Minots 08-07-2002 12:19 AM

@ countryboy713
You´re right. That´s what I mean. Sorry 4 my bad english.

Schorsch 08-07-2002 04:06 AM

Hi Minots,

ich habe die neue Version gleich installiert, folgende Fehler tauchen auf:

1) in den User Groups wollte ich bei Registerd Users und Admin "Can use vBSubdomain" auf Yes stellen, allerdings hat er den Wert nie uebernommen. Nach druecken auf "Save Changes" ist er immer wieder auf No gesprungen.
Ich ging dann per phpmyadmin rein und habe den wert manuell auf 1 gesetzt.

2) Wo kann ich denn nun die subdomain einstellungen veraendern ?? hab schon alles abgesucht und nix gefunden, weder als admin noch als registered user.

Schorsch 08-07-2002 04:50 AM

Problem 1) gefunden: du hast in der admin-usergroup.php.txt Datei beim letzten schritt (Step 04) das vergessen einzufuegen: cansubdom=$cansubdom

nun merkt er sich die einstellung :)

Update zu Problem 2)

habe nun den inhalt des neuen templates modifysubdom direkt an betreffender stelle des alten templates modifyoptions eingefuegt (anstatt laut anleitung nur $modifysubdom einzufuegen), und nun kann ich wenigstens die subdomaineinstellungen in den user einstellungen sehen :)

soweit so gut :)

jetzt aber folgendes, ich muss jeden user einzeln freischalten damit es funzt (per user find) und das obwohl ich in den usergroups allen registered usern subdomains erlaubt habe

wenn ich das nicht mache kommt fuer den registered user die folgende meldung:
Quote:

Diese Funktion steht Dir momentan nicht zur Verf?gung.
Weitere Informationen dar?ber stehen entweder in der FAQ oder
k?nnen beim Administrator eingeholt werden.
was ist da falsch ?

cu
Schorsch

Highlander 08-08-2002 08:07 AM

hello..

in the installs wroites..that i have to modify..an esixsting TEMPALTe..named modifoptions..but there is no template..named like this..what should i do?

Schorsch 08-08-2002 12:34 PM

Quote:

Originally posted by Highlander
hello..

in the installs wroites..that i have to modify..an esixsting TEMPALTe..named modifoptions..but there is no template..named like this..what should i do?

sure there is! press "show all", then you can find modifyoptions

Minots 08-09-2002 03:01 PM

Quote:

Originally posted by Schorsch
jetzt aber folgendes, ich muss jeden user einzeln freischalten damit es funzt (per user find) und das obwohl ich in den usergroups allen registered usern subdomains erlaubt habe
Das liegt am query
PHP Code:

ALTER TABLE `userADD `subdomSMALLINT(6) DEFAULT 0 NOT NULL 

Du kannst die Spalte per PHPmyAdmin l?schen und verwende
dann einfach diesen hier:
PHP Code:

ALTER TABLE `userADD `subdomSMALLINT(6) DEFAULT 1 NOT NULL 

Weiterhin viel Erfolg w?nscht

Demonslayer 08-09-2002 03:46 PM

what features do you plan on having in the final that aren't in here?

Minots 08-09-2002 03:56 PM

I?m not sure.
But it?s possible that i add features like:
* admin can change users subdomain-settings
* a "dynIP"-feature
* subdomain categorys

At this time I?m waiting for vB3. If the first final was released I?ll
make this hack again. Possible with the features above. ;)

Schorsch 08-09-2002 07:15 PM

Danke Minots!! Das Problem ist geloest :)

jetzt ist mir noch was aufgefallen, wenn jemand als Usernamen z.b. Bablabla Blubbblubb hat, also mit dem space dazwischen, dann funzt die subdomain nicht.

was kann man dagegen machen ?

Danke,
Schorsch

Minots 08-09-2002 07:34 PM

@Schorsch
Wunderbar! Dann bist Du wahrscheinlich sogar der Erste!
:banana:Congratulations!:banana:

Zu deinem "Leerzeichen Problem".:
Als erste Abhilfe, k?nntest Du diesen Membern 2 Redirektoren
g?nnen. In dieser 2. k?nnen sie ja den Namen mit "-" verwenden.

Ansonsten m?sste ich mich nachtr?glich eine "Namens-Korrektur"
einbauen, was ich aber aus zeitlichen Gr?nden eigentlich nicht
m?chte.
Bei der Version f?r das vB3 werde ich aber darauf achten. ;)

Schorsch 08-09-2002 07:37 PM

gute idee mit der 2. subdomain pro user!! werd ich gleich machen :)

und Vielen Dank fuer deine Muehe und Arbeit, Minots, ist echt ein grossartiger hack :)

Gruss,
Schorsch

Schorsch 08-09-2002 10:03 PM

Hi Minots, ich schon wieder :knockedout:

grad hat ein user eine subdomain erstellt, kurz darauf habe ich folgende 2 email automatisch geschickt bekommen (DB ERROR):

Quote:

Database error in vBulletin 2.2.6:

Invalid SQL: INSERT INTO usersubdomain (username, title, url, metaauthor, metakeywords, metadescription, metarevisit, metarobots, hits, userid) VALUES ('frodang', 'Fordang's Server', 'http://www.xxxxxxxxxxx', 'xxxxxxx', 'suchbegriff,wort,wort,...', 'hier gibt es immer meine frische IP', '999 days', 'NOINDEX','0', '723')
mysql error: You have an error in your SQL syntax near 's Server', 'xxxxxxxxx.' at line 1

mysql error number: 1064

Date: Saturday 10th of August 2002 12:55:07 AM
Script: http://www.fetter-esel.com/vB/vB/member.php
Referer:
Quote:

Database error in vBulletin 2.2.6:

Invalid SQL: UPDATE usersubdomain SET title='Frodang's PU-Server',url='http://www.xxxxxxxxxx',metaauthor='Frodang',metakeywords= 'suchbegriff,wort,wort,...',metadescription='hier gibt es immer die frische IP',metarevisit='10 days',metarobots='NOINDEX' where username LIKE 'frodang'
mysql error: You have an error in your SQL syntax near 's PU-Server',url='xxxxxxxxxxxxxx',metaauthor='Frod' at line 1

mysql error number: 1064

Date: Saturday 10th of August 2002 12:57:28 AM
Script: http://www.fetter-esel.com/vB/vB/member.php
Referer:
die subdomain des users funktioniert aber trotzdem.

weisst du was da falsch gelaufen ist ?

Danke :)
Schorsch

Minots 08-09-2002 10:10 PM

So langsam glaube ich, dass ich zu Deinem Tech.Admin werde.
Ich logge mich mal mit Deinen Daten ein & guck mal nach. ;)

Schorsch 08-09-2002 10:18 PM

Hi Minots,

also habs grad mal selber getestet, dieser DB Error kommt wenn man z.b. bei Description einen Apostroph eingibt, z.b. Minot's Server, dann kommt der DB error.

cu
Schorsch

Minots 08-09-2002 10:21 PM

OK, versuche es jetzt noch einmal bitte.

Schorsch 08-09-2002 10:28 PM

nope immer noch nicht, apostrophe mag er anscheinend nicht :banana:
is aber nicht weiter dramatisch.

Gruss,
Schorsch

proxyMX 08-12-2002 12:14 AM

i want this! but im not sure if my host allows it

Minots 08-12-2002 01:38 AM

Simply ask him.
If he allows a 'catch all' domain be happy. ;)

Cold Steel 09-17-2002 12:15 PM

Is there any way to integrate this with Lesane's store hack?

Minots 09-17-2002 01:02 PM

@ Cold Stell

Im sure, that´s possible.
But I never test it. Simply try it with a local installation by yourself.

NuclioN 09-18-2002 12:27 AM

--edit-- i had a problem but it's solved. ;) The mod is working but an url is shooting me to the host website. Maybe it's not allowed to have subdomains??? I shall ask them but maybe it's something that must change, i dunno. Idea?

NuclioN 09-18-2002 12:36 PM

--edit-- sorry, problem solved ;)

wolfe 09-20-2002 03:11 PM

Quote:

Originally posted by Minots
I?m not sure.
But it?s possible that i add features like:
* admin can change users subdomain-settings
* a "dynIP"-feature
* subdomain categorys

At this time I?m waiting for vB3. If the first final was released I?ll
make this hack again. Possible with the features above. ;)

i think it should be added to VB3 as a default hack this is incredible :D

wolfe 09-20-2002 10:32 PM

some of the templates are in german :(

wolfe 09-20-2002 10:39 PM

all of them are :(

wolfe 09-20-2002 11:33 PM

hi i am running VBB 2.2.7 and its not working :(

diavolo 09-30-2002 08:39 PM

hi I tried to upload and copy the query.txt to mysql, but I kept getting:
Code:

You have an error in your SQL syntax near 'INSERT INTO 'setting' ('settinggroupid', 'title', 'varname', 'value', 'descripti' at line 14

You have an error in your SQL syntax near 'INSERT INTO 'setting' ('settinggroupid', 'title', 'varname', 'value', 'description', 'option' at line 17

im sure it's something simple, but I suck at mysql. Could you give me the correct syntax that will work for phpmyadmin?

Dean C 10-21-2002 08:06 AM

I've just spent 10 mins trying to translate the templates via google translator and it got me nowhere :(.

Is there any change you could provide us with the english templates?

Thanks in Advance

- miSt

Chris M 10-23-2002 11:15 PM

I would be very interested to see if this works;)

Satan

Dean C 10-24-2002 07:43 AM

I looked at the coding and can't see why it wouldn't

Just that the freakin' templates are in German lol!

- miSt

TimHL 11-13-2002 06:01 AM

Does this do like http://yourusername.yaxay.com is that what this is ? Please let me know.

Dean C 11-13-2002 06:09 PM

It allows people to have username.yoursite.com and then that subdomain links to a site of their choice :)

- miSt

Goldknight 11-13-2002 06:17 PM

Mist, why not post Mintos's templates at here then use translate feature at here, vb.org to read english heheh.

Or at least kneel and beg Xenon to translate =D


All times are GMT. The time now is 04:46 PM.

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.01267 seconds
  • Memory Usage 1,828KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (8)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