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)

trafix 04-26-2003 04:52 AM

I presume that the .htaccess goes in the main forum folder not the root folder fo the site......

trafix 04-26-2003 06:13 AM

in my admin/usergroup.php

there are 2 occoasions of

PHP Code:

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,canview,showgroup,cansearch,canemail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,canviewothers,caneditpost,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,canpublicevent,canpublicedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm,canwhosonline,canwhosonlineip,cangetattachment)
    VALUES (NULL,'"
.addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$showgroup,$cansearch,$canemail,$canpostnew,$canmove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$caneditpost,$candeletepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpublicevent,$canpublicedit,$canthreadrate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm,$canwhosonline,$canwhosonlineip,$cangetattachment)"); 

I would persume to replace both cases with your new code??

there is also 2 occessions of
PHP Code:

makeyesnocode("Is Super Moderator","ismoderator",$usergroup[ismoderator]);
  
makeyesnocode("Can access control panel","cancontrolpanel",$usergroup[cancontrolpanel]); 

one again i persume that i change both ???

I think you need to look at redoing the instructions for this hack.
I will let you updated as i contunue the instalation process.

trafix 04-26-2003 07:01 AM

another error in your instructions

admin-usergroup.php.txt
PHP Code:

--Step 04---------------
Find:
  
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread=$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canviewothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,canusepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$canpostattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicevent=$canpublicevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenypmreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm,canwhosonline=$canwhosonline,canwhosonlineip=$canwhosonlineip,cangetattachment=$cangetattachment WHERE usergroupid=$usergroupid");

Replace with:
  
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview,showgroup=".intval($showgroup).",cansearch=$cansearch,canemail=$canemail,canpostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread=$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canviewothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,canusepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$canpostattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicevent=$canpublicevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenypmreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm,canwhosonline=$canwhosonline,canwhosonlineip=$canwhosonlineip,cangetattachment=$cangetattachment WHERE usergroupid=$usergroupid"); 

You forgot to put
PHP Code:

cansubdom=$cansubdom

in the replace with line

trafix 04-26-2003 07:59 AM

I have finished installing.....

i got this error when i tried to add a new subdomain
Quote:

Database error in vBulletin 2.3.0:

Invalid SQL: INSERT INTO usersubdomain (username, title, url, metaauthor, metakeywords, metadescription, metarevisit, metarobots, hits, userid) VALUES ('fun', 'party party party', 'http://www.atmyparty.com/', 'Alistair Fenton', 'party', 'party time', '10 days', 'ALL','0', '2')
mysql error: Duplicate entry '2' for key 1

mysql error number: 1062
i was also getting some other errors as well

trafix 04-26-2003 11:41 AM

Minots, do you have either icq or Y! mesenger?

trafix 04-26-2003 01:49 PM

un installing :(

let us all know when you get a working version 4 vb 2.3.0 +

yxboom 04-30-2003 01:44 PM

I would really like to get this hack installed on my board but sounds too buggy :(

trafix 04-30-2003 02:12 PM

buggy is an understatement.... i was on the tail end of installing to when i lost my internet connection .... it took the isp company 2 hrs to fix the problem .... when i got back on line i found out than nobody could access the website at all cos of the hack ...

I dont have a test board :)

Logtenberg 05-19-2003 07:36 PM

Is it possible to have a sub-domain for each member by default (without them having to do anything)?

Morpheus84 05-21-2003 05:18 PM

bei mir geht garnix :(
er speichert die einstellung nicht, ob die gruppe subdomains nutzen darf :(
(habe vB 2.3.0)

Und ich hab auch kA, wie ich ne SubDomain anlegen kann :(

Minots, kannst du mir evtl. n bissl. per icq: 178197828 helfen ?

Vielen Dank dir :)


All times are GMT. The time now is 05:25 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.01196 seconds
  • Memory Usage 1,766KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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