Log in

View Full Version : Dorm Manager System


Darkwaltz4
06-13-2004, 10:00 PM
What Dorm Manager System is:
-Creates forums based on your default dorms settings based on post count eligibility. The creator (leader) of the dorm is granted several powers, which only exist in the dorm manager system (there is no extra usergroup). These include regulating members who apply for membership to their dorm, creating threads when the default forum option is set to private, and regulating the existing threads of their dorm. This includes setting one of them as 'Public', which makes it accessible to the whole forums regardless of membership (guestroom). Leaders also can delete their dorm. Members can only exist in one dorm at a time, and everything is completely automated.

Requirements:
-(Optional) A specified parent dorm forum set up

Features:
Settings:
Dorm Name-- Dorm, Clan, Room, Floor etc
Guestroom Name-- Lobby, Guestroom, Closet etc
The Master Dorm Forum-- forum which all the dorm forums appear in
Postcount requirements to lead or join a dorm
Maximum members per dorm, maximum total dorms, maximum threads allowed per dorm
Options between name/numeric dorm name type, and limits on the sizes of both.
Standard forum settings--resembles the forum creation page in the admin cp, which all created forums recieve

-MANY more which I cannot remember!

Installation:
-Upload a few files, run a couple of them, a handful of file edits. Clean installation should take less than 10 minutes for the average admin. Complete instructions are inside the zip.

Upgrade hack version 3.1.3 to 1.4:
-For upgrade information Please see this post (https://vborg.vbsupport.ru/showpost.php?p=763429&postcount=122)

Upgrade hack version 3.1.2 to 3.1.3:
-For upgrade information Please see this post (https://vborg.vbsupport.ru/showpost.php?p=523415&postcount=46)

Supplemental Images:
-Additional Screenshots can be found in the second attachment, (https://vborg.vbsupport.ru/attachment.php?attachmentid=19175)CLICK HERE (http://CLICK%20HERE%3C/a%3E%3C/b%3E%3C/font%3E).

Donations and Future Versions:
-PayPal Donations to blackwaltz4@msn.com are gladly accepted, and paid mods are something we could discuss.

This hack is fully free and I'll give support through vbulletin.org :)

Possible Future Features: None (?)

Notes:
-Long live RPGN & G-force2k2, to whom this concept is owed, but I automated years later.
-I refuse to make this like vBHosting, or anything that violates Jelsoft agreements.
-FFGON.com IS NOT LONGER OPERATED by me or my partner, Cloudclone.
-vB2 version of this hack can be found HERE (https://vborg.vbsupport.ru/showthread.php?t=66003).




I UPDATE WHEN NEEDED

If you like this hack and you don't want to miss an update:
https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=66161)
THANKS! :up:

MindTrix
06-14-2004, 01:22 PM
Yay first in line, Brilliant once i figure out how to adapt this for my site its going straight on, Thank you sirrrrrrrrrrrrrrrrrrrrrrrrr

MindTrix
06-14-2004, 01:32 PM
I noticed you need a required amount of posts to make your own dorm, is that setable? Any chance of some admin cp screenies? :p

MindTrix
06-14-2004, 01:52 PM
Database error in vBulletin 3.0.1:

Invalid SQL: INSERT INTO phrasetype VALUES (151,'dorms','Dorm Hack',3)
mysql error: Duplicate entry '151' for key 1

mysql error number: 1062

ummmm help lol

Darkwaltz4
06-14-2004, 01:58 PM
Database error in vBulletin 3.0.1:

Invalid SQL: INSERT INTO phrasetype VALUES (151,'dorms','Dorm Hack',3)
mysql error: Duplicate entry '151' for key 1

mysql error number: 1062


ummmm help lol
alright, what that means is you have another hack competing for one of the phrasegroup slots :-p

ill get a more dynamic thing and post it in my next post
admin screenshots? >.< and yes, you can set both postcount requirements to make and create dorms.

MindTrix
06-14-2004, 02:00 PM
Yeah i gathered that was what it was. Umm you want me to sit and wait then? :p By admin screenshots i meant in the admin cp where you set the settings etc

Darkwaltz4
06-14-2004, 02:12 PM
sorry about that. okay, if your install file errored out, please run the following file to finsih it. DO NOT RUN THIS IMEDIATELY because i commented out the beginning code so as to not cause duplicate problems. so if you run it by itself, it will miss stuff :-p ill be applying this change to the zip file soon. should work, not tested :-p

err, this file is for people like mindtrix :-p god, im still half asleep and stumbling over talking ^_^ and yeah i know ss's of the admincp, its just who needs screenshots of that >.< i explained what it looked like, and rendered it using the admincp display functions :-p you know makeyesnocode? :-p

MindTrix
06-14-2004, 02:16 PM
Thank you for the quick fix, worked like a charm now on with the rest of the install

Darkwaltz4
06-14-2004, 02:21 PM
excellent :-p im guessing you have the arcade installed? the fix actually searches for a suitable new phrasetype id because vbulletin is incredibly sloppy with assigning ids to its phrases :-p i guess they didnt intend other people to add their own phrase sets, since all the way up to 150 is 'reserved for future vb use' and the special phrasegroups are multiples of 1000 >.> completely destroying the dynamic aspect of mysql >.<

anyway, enough ranting :-p hope it goes well

MindTrix
06-14-2004, 02:22 PM
me 2, onto file edits, booo

MindTrix
06-14-2004, 02:33 PM
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@general.v76host.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


When trying to view the dorms_admin.php

Darkwaltz4
06-14-2004, 02:37 PM
did you upload it? did you chmod it to 777? (chmodding isnt necessary, but might help)

on an unrelated to your issue, but might help it, is if you edit the dorms_admin file and remove the set_time_limit(0); line from the top, because depending on your server settings, it might warn you, or crash out if your php is on safemode. although now i figure its like your tonsils; remove it, it does less good than harm :-p

tell me if its still doing it when trying the above three things

MindTrix
06-14-2004, 02:43 PM
CHMOD'd etc and yes definetly uploaded lol. I removed that line and still the same problem, happens when viewing Dorm.php aswell

Darkwaltz4
06-14-2004, 02:44 PM
does it give a line or anything like that in the file? this has never happened to me, and both dorms and dorms admin have worked perfectly on my test and public board, and the files are exact.

MindTrix
06-14-2004, 02:46 PM
nope it only gives the message i showed you, and it only appears on them 2 files :)

Darkwaltz4
06-14-2004, 03:00 PM
can you link me? :-p through pm or messenger if you insist it

MindTrix
06-14-2004, 03:24 PM
maybe it has something to do with the database prob at the beginin?

Darkwaltz4
06-14-2004, 03:28 PM
if it was, then it would have had a mysql error, not an internal server error

i ran my own install instructions when i installed the hack onto ffgon.com, and its working just fine.

do you have access to your server log files? they might have a clue into whats happening

MindTrix
06-14-2004, 03:29 PM
not to sure, i just pestered my host about the same thing but hes beeing slow at responding

MindTrix
06-14-2004, 03:31 PM
error: file is writable by others

thats the error for the files in question

MindTrix
06-14-2004, 03:35 PM
i put the dorms admin back 2 644 on chmod and it works now

Darkwaltz4
06-14-2004, 03:39 PM
....lmao...okay whatever works :-p

MindTrix
06-14-2004, 03:40 PM
lol but yeah, i put the CHMOD's on the files back to their original and it works perfect now, time to get testing :) Thanks for the brilliant support

Darkwaltz4
06-14-2004, 03:43 PM
im betting your server is set to not allow files to exist so 'freely' that is, completely accessible via 777 :-p or i dont know, im not a sysadmin, maybe in a few years or something, lol

and of course :-p id like to see more people using my hacks

MindTrix
06-14-2004, 04:00 PM
hehe well me and another member are running over it now, it works like a dream, One request though -- If your not a member of someones dorm , then you shouldnt be able to see any posts there :)

Darkwaltz4
06-14-2004, 04:05 PM
alright, i might be able to hijack the password system and have it hide stuff as another option :-p ill think about it for the next version

oh, and i found one error in the templates:

in dorms_leaderview
<phrase 1="$numthreads" 2="$doptions[maxmembers]">
should read
<phrase 1="$numthreads" 2="$doptions[maxthreads]">

if you have the same member max as thread max, you wouldnt have noticed this. itll be updated in the new version

MindTrix
06-14-2004, 04:08 PM
Question :) lol on the dorm.php page near the bottom right theres a button saying PUBLIC, what does this do? Also, the other member invited me to join his dorm, and it automatically let me etc, i didnt get a request, neither did he when i invited him. And were not showing up as beeing members of the dorms

Darkwaltz4
06-14-2004, 04:13 PM
okay, only in your dorm, (if the admin public option is turned off) then only members of your dorm can post in threads that you create. however, to have a thread which allows the rest of the forum to post in it, you can set 1 thread to 'Public' which becomes a special thread which everyone can post in. (this was something many people wanted during my experience of manual dorm-doing, and the guestroom function is an example of me hijacking the sticky system :-p)

you get listed as members in the forum description. if those are turned off, you wont see the listed members obviously. other than forum listings, membership is invisible, although your dorm will appear as unlocked in the dorm listing. im not sure why it isnt pming. ill look at it right now. and i spent an hour crunching the entirety of private.php into 7 lines of code :-p and they all work on my test forum and mainsite forum btw.

Darkwaltz4
06-14-2004, 04:32 PM
oh, if your already registered to a dorm, the invite request will not go through, and you wont get the option to choose a dorm (because your in one! the see the inview and outview based on if you are joined to a dorm)

and i looked at your forum descriptions, and both of you are showing up on your respective dorms, so where do you not show up? the dorm display is rendered when in any aspect of the dorm control panel, and is normally displayed as the description when on a dorm forum

MindTrix
06-14-2004, 04:35 PM
ok heres a picture of the dorm page. I invited a member to join but he never got a pm or anything, and hes not showing up as a member of my dorm. Same vice versa

Darkwaltz4
06-14-2004, 04:44 PM
your member has to apply for your dorm before he will show up in your queue. this is to prevent leaders from roping people into their dorms without their consent :-p

he needs to access the dorm control panel, and find the list of created dorms, and sign up for yours. then you should get a pm, and then he will show up for whatever you plan to do with it.

and the sendpm function posts up the pm to the database just fine. if it isnt appearing then it is probably caused by filtering things, such as being ignored, viewer having admin notifications off, or the pm being sent when the viewer has a full pm box. (thus the 'extra' isnt grabbed when pm listings are queried)

MindTrix
06-14-2004, 04:47 PM
if you go to dorm.php it does not show a list of created dorms though

Darkwaltz4
06-14-2004, 04:49 PM
can you get me a screenshot of that? its working on ffgon.com, like 9 people have signed up to the 5 dorms right now, all but one created by me

MindTrix
06-14-2004, 04:50 PM
look back a page, i added a screenshot, and at the time there was another member who had created a dorm and invited me 2 it, and i had invited him 2 mine

Darkwaltz4
06-14-2004, 05:02 PM
the invitations would have been stopped, because it wont invite a member who is already joined to a dorm. both yours to him, and his to you.

i would bet you have redirects turned off, there are important messages being posted in those redirects :-p mainly 'user is already a member of a dorm and it makes no sense to invite them to ours' (only more elegantly)

MindTrix
06-14-2004, 05:03 PM
Ahh i get you. Does that mean dorms are not beeing shown because we are both already owning a dorm? but if one of us wasnt we would see the dorms?

Darkwaltz4
06-14-2004, 05:06 PM
that is true :-p when you load dorms.php, it goes like this

if your regged to a dorm {
if you are leader {
member+leader view
} else {
just member view
}
} else {
outview (lists dorms to join, or outputs create form)
}

i didnt think a formal listing of dorms was needed to people who were already registered to a dorm, because they wouldnt be able to join a new one until quiting their current dorm, and they could just look at the forum listing.

MindTrix
06-14-2004, 05:10 PM
Yeah i getcha i thinkkkkkkkkkkk i got it figured now lol, i guess ad ons can be made for this huh? like the thing i requested earlier, or errrm dorm with most members on forum home etc :p

Darkwaltz4
06-14-2004, 05:16 PM
yeah for forumhome addons, its pretty simple, but i tend to despise them because there is never a way around the extra query it adds to the most trafficed page. both would take more than a few seconds for me to eck out :-p so i might come up with something for later versions

dndog
06-14-2004, 08:54 PM
When I go to dorms.php, I get a blank white page...

How can I fix this?

Darkwaltz4
06-14-2004, 08:56 PM
thats because the style you are on is missing the templates :-p

the newest version will auto-install templates onto the main template set.

im compiling a list the next version will have fixed/changed/or added to, and ill do it tonight and put it up tomarrow :-p

MindTrix
06-15-2004, 10:24 AM
how do you quit someones dorm?? I want to leave the members i am with at the moment and go to someone elses.

But because i am part of a dorm i cannot find anywhere that lets me request to join or leave

Darkwaltz4
06-15-2004, 01:08 PM
originally i was going to include a request to leave thing for members, but then whats the point, the member can just send a pm requesting they be removed :-p the reason the initial request does this is because its more than pm sending, it adds the user to the queue.

and i have the next version ready

dndog
06-15-2004, 05:20 PM
There still seems to be a bug with joining the dorm...it gives me a database error.

Darkwaltz4
06-15-2004, 05:27 PM
aha, found it, and ill post up the changes right now

find in dorms.php

$DB_site->query("INSERT INTO dorms_queue VALUES (NULL,$bbuserinfo[userid],$_POST[reqdorm],0)");

replace with

$DB_site->query("INSERT INTO " . TABLE_PREFIX . "dorms_queue VALUES (NULL,$bbuserinfo[userid],$_POST[reqdorm],0)");

any more botched queries anyone finds tell me, theyre hard to spot in the code

Darkwaltz4
06-16-2004, 02:02 PM
New UPDATE:

Version 3.1.3 Update
Fixed Multiple PM Liquidate Bug
Fixed Last Missing Phrase
Fixed Query Missing Prefix
Fixed No-dorm ACP Warnings
Fixed Forum-Crippling Description Bug
Fixed Potential Double Action Value Bug
OPTIMIZED ALL FILES

I actually recoded the bulk of the dorms.php file :-p go download it. I think this one is the most important upgrade, because it fixes the problem of when you have too many members in your forum (and it overloads mysql)

MindTrix
06-17-2004, 11:20 AM
Upgraded from the first version without a single problem. Nice one. Any plans for any future versions or new features etc?

Darkwaltz4
06-17-2004, 01:49 PM
The only feature I can think of, would be some sort of admin controller in the acp. You know, like adding/editing/removing dorms. But im not sure of the point of that. Simply editing the actual forums will do the trick, and be sure to just use the forum refreshing system, so I dont know how needed such a function will be. Thats it for the planned addon list, and FFGON is very happy to have their dorms back :-p Anything else I might be able to do custom, but I'm trying to work on the next ffgon project, which is converting my tt hack to vb3 (which wont be available here), and theyll be of minor costs, like from 5-10$ depending on evasiveness to the hack :-p

FRANKLY IM HAPPY ITS FINALLY BUGFREE !

Dean C
06-17-2004, 10:42 PM
Hehe what an original idea - thanks for sharing with the community :)

DBC-DevNull
06-18-2004, 04:57 AM
ok i have i guess would be a bug

I made a dorm to test it out. I manually deleted the dorm and now i can`t liquidate or leave this dorm. I tried to remake it and still a no go

Lionel
06-18-2004, 07:12 AM
I installed no problems, but when I go to dorms.php I get a page with headers and footers saying 'Welcome to the Dorm Control Panel' with nothing else on it, no links, no controls, nada. How do I populate/create a dorm?

and I got 13 templates instead of 9

never mind, that was the cookies driving me crazy, showing the page sometimes, and some other times not showing it.

Darkwaltz4
06-18-2004, 01:20 PM
DBC-DevNull: The dorm is linked to the forum via the forumid. The forum has no formal connection to the dormid. The dorm table contains formal lists of members including the leader, as well as the dorm number. Deleting a forum and then manually making it back would not work, because the dorm table needs to be updated with the new forumid, as well as each member needs the new forumid, or else nothing will be linked.

What happens when you try to leave or resign? Any vb errors? Any db errors? Or does it appear that the dorm manager simply refreshes?

Lionel: It REALLY sounds like you tried to install the vb2 version of the hack, instead of the vb3 version. I highly suggest you check the php files, the tops should say 3.1.X, and if they don't you should download the file from the beginning of this exact thread, and start all over. If it does, they tell me if there is still problems and I will help you with them.

DBC-DevNull
06-18-2004, 04:25 PM
DBC-DevNull: The dorm is linked to the forum via the forumid. The forum has no formal connection to the dormid. The dorm table contains formal lists of members including the leader, as well as the dorm number. Deleting a forum and then manually making it back would not work, because the dorm table needs to be updated with the new forumid, as well as each member needs the new forumid, or else nothing will be linked.

What happens when you try to leave or resign? Any vb errors? Any db errors? Or does it appear that the dorm manager simply refreshes?

Lionel: It REALLY sounds like you tried to install the vb2 version of the hack, instead of the vb3 version. I highly suggest you check the php files, the tops should say 3.1.X, and if they don't you should download the file from the beginning of this exact thread, and start all over. If it does, they tell me if there is still problems and I will help you with them.


no errors and i can`t leave the current dorm

Darkwaltz4
06-18-2004, 04:42 PM
first of all, leaders cant resign from their dorm without liquidating it. so there isnt a resign problem, its a liquidation one. and im looking into it. if i have to change something, i might be adding member thread creation support as well as auto-installer for templates. maybe. and only if this requires a new version

one thing to check: are you checking the checkbox before clicking liquidate? without it the action would just be ignored.

Lionel
06-18-2004, 06:24 PM
no that was the latest version.... i had a cookie problem, everything seems to be fine

Darkwaltz4
06-18-2004, 06:25 PM
okay...good to see everythihng worked, although i dont know how a cookie problem could have produced what you described was happening

but congratulations nonetheless :)

Mystictrunks03
06-19-2004, 09:37 PM
this is awesome! im definately gonna download this thanks alot no problems for me except is the otion public acess mean if u put no for any other non-members of the dorm cannot see? and do u make threads in the dorm.php or valid members can make threads in the forum itself? just wanting to make sure....

Darkwaltz4
06-21-2004, 04:34 PM
Public Access means that if you set it, ANYONE in your forums, regardless of if they are joined to the dorm or not, can post in any thread in it. with this off, this only applies to the public threads. As a member of a dorm, all threads in it are in your posting reach.

If the dorm forum is closed to the public (same option) then the only way for threads to be made is via the DCP, otherwise, the new thread button is usable by ANYONE in your forums. also this will disable the thread limit.

Everyone can view these threads, just not post in them if the public option is turned off.

Mystictrunks03
06-21-2004, 09:12 PM
r u gonna have a next version thats gonna have some more features like turn off public view cept for admins and mods of the forum?

Darkwaltz4
06-21-2004, 10:45 PM
if enough people want it and DEV ends up NOT having an issue with deleting dorms

MindTrix
06-27-2004, 04:48 PM
Any update on auto adding templates?

Darkwaltz4
06-27-2004, 06:47 PM
again, ill add this in if a new version is required :-p i might add some things in the next week, seeing as my tt project is almost done. well see....until then, you all can come up with things and ill think about them :-p

dethfire
07-02-2004, 01:52 AM
hmmm posting of new threads doesn't work for me, doesn't post for some reason, no errors though

ambrosious
09-04-2004, 11:16 PM
Works PERFECT, thanks!

Can I set a switch somewhere that will allow members to be active in more than one dorm?

dndog
09-05-2004, 02:50 PM
Can I set a switch somewhere that will allow members to be active in more than one dorm?

That would be nice.

ambrosious
09-07-2004, 01:38 AM
Anyone?

Darkwaltz4
09-07-2004, 07:49 PM
making membership applicable globally would make this hack too much like vbhosting :-p however if you spend a few seconds looking at the code, you could remove the conditional which checks if someone is joined to a dorm. personally i believe removing this aspect would break down the hack anyway.

if you make your default forum settings to make the forum active, then anyone can post in it regardless of membership to it, and in either scenario, guestrooms are still free of membership restrictions.....so this feature isnt needed, its already there technically

ambrosious
09-09-2004, 01:25 AM
Well, but, with this system, people get to create their own forums, which adds to the fun.

ambrosious
10-23-2004, 07:48 PM
Or, maybe it don't add to the fun?

Darkwaltz4
10-24-2004, 12:00 AM
oh um, i refer you to my original posted warning, i wont do anything to make this hack work along the lines of vbhosting, and giving that power to the users would make it such :-p sorry

rex_b
10-28-2004, 10:43 PM
I'm trying to make a post in my form and it never shows. What could be the problem?

Thanks,
Rex

rex_b
10-28-2004, 10:50 PM
I found it's setting the "forum is open" option to no

why is that?

rex_b
10-28-2004, 11:00 PM
Ok I tried setting that option to yes and it wouldn't show a post that I created in the dorms.php But I'm beginning to think that dorms.php bypasses that option that's why it's set to no b/c only you and members can post in that forum.

I'm still confused... hehe

Darkwaltz4
10-29-2004, 08:36 PM
okay if you changed the options in the dorm config that affect how all dorms are and you want to update them all (such as what you just did) then you have to access the dorm forum update script which will reflect changes onto existing dorm forums.

from how you describe it it seems like the problem, but if using the update script doesnt work then please tell me

ACP -> Forums & Moderators -> Dorms Configuration -> [Bottom] Update Existing Dorm Forums -> [Click 'Refresh']

Grohl
12-23-2004, 05:37 PM
okay if you changed the options in the dorm config that affect how all dorms are and you want to update them all (such as what you just did) then you have to access the dorm forum update script which will reflect changes onto existing dorm forums.

from how you describe it it seems like the problem, but if using the update script doesnt work then please tell me

ACP -> Forums & Moderators -> Dorms Configuration -> [Bottom] Update Existing Dorm Forums -> [Click 'Refresh']
When I downloaded, I also got 13 templates in the file instead of 9. Would this be why I'm having problems? =p

Darkwaltz4
12-24-2004, 03:20 AM
1) what are your 'problems'?

2) and there are 13 templates, i dont know where the number 9 is floating around from...might be a typo from the vb2 version instuctions or something. whats in the zip is what needs to be applied. [UPDATE] yeah, typo. theres 13 templates, the 9 is something i forgot to change.

anyway, please describe what you believe isnt working correctly.

boxingscene
12-25-2004, 04:58 AM
I think this hack is great, especially for my forum which is very busy and near 8200 members. The one thing I noticed that I would like to have is making Dorm threads readable only to Dorm admins and Dorm members. I want these Dorm to be private club areas for users, they arent that private when any member can see them.

Grohl
12-26-2004, 05:55 PM
The problem is the layout, see attachment.
I assumed this was a template error, and don't know enough to mess with the php

docvader
12-27-2004, 06:54 AM
Brilliant hack. Just what I've been looking for. Do you have any suggestions as to how to set up the forum permissions, ie, what "parent" the dorm system should have, and what permissions the "parent forum" should have??? If you do not assign a "parent" to the dorm system, threads will just show up on the main forum index page.

I created a forum category which is not active and not visible. I use that as the parent of the dorm hack system. This way, dorm functions and threads are not visible on the forum index page. You access my dorm area, which I use as a secret area, via a navigation bar link. So far, it keeps everyone out, unless they've been invited. The general public can't even see activity within it. I think....

Any ideas would be welcome.

rich
http://x.russbo.com/vb/index.php

Darkwaltz4
12-27-2004, 02:26 PM
boxingscene: you could set permissions for now... the only other hack alternative would be to have it create sub-usergroups for each dorm room and create access masks for them...but large amounts of dorms mean equal amounts of usergroups. however, i just came up with something right now...utilizing the password system. however the dorm leader would be in control of that (editable by the admin of course, from the forum editing screen) well see, when i have time of course. (i have to make the auto-template installer! [ive done it for other hacks, so not difficult])

grohl: templates are all designed to work correctly with the default vbulletin 3 layout. any discrepencies are caused from your custom layouts, and i cant help you too much on making them more uniform, because i wasnt one of the creators of the custom layout, sorry :-/

docvader: without a parent forum, then the dorms themselves show up on forumhome, not any inner threads, but the other settings will work just fine (just cleaner to have a parent forum with many dorms). for the parent forum itself i tend to make it visible but not active, and in the description, leave a link to the panel. this keeps random people from making threads in the parent forum itself (which has no normal locks). however if you want like a faq page, where users can contribute to it, you have to set up access masks. whatever is easier to get the effect you want.

bishop93
12-27-2004, 03:44 PM
I see that the permissions to create a dorm is based on post count. Is there any way (or plans) to make this where, say, only subscribers can create a dorm rather than based on posting points?

JD210
12-27-2004, 09:45 PM
Does this work with 3.0.3?

boxingscene
12-27-2004, 11:20 PM
Does this work with 3.0.3?

Yes, I'm running it on a heavy modded 3.03 to boot

JD210
12-27-2004, 11:27 PM
Thanks, I appreciate the fast response.

docvader
12-28-2004, 12:41 AM
Works great on my heavily hacked 3.03. Wish I had started using it earlier.

docvader
12-28-2004, 12:53 AM
AARGH. Darkwaltz, I'm not sure what I did, but once I moved the Dorms into an "inactive" and "invisible" forum parent. And now, I can't invite people to join the dorms, apparently, my PM's are not being sent to people to invite them.

Any idea what sort of things would stop this? Being a child of an "inactive" parent forum? A child of an "invisible" forum? Would permissions of the parent forum affect your dorm permission structure?? Wish I knew more about how you've got this set up so I can troubleshoot it, but, I'm a bit bewildered.

Had it working PERFECTLY before I moved the dorms into a parent forum. Didn't like them being exhibited on the forum index page on their own.

thanks
rich

Darkwaltz4
12-28-2004, 03:52 AM
docvader: no, shouldnt have done anything, although you might want to try running the 'update dorm forums' function at the bottom of the dorm config page in the acp. UPDATE: yeah, just checked the code, the script should fix your problem (after all it was coded for stuff like that :-p)

bishop93: no, not really, although might be something to look into..

jd210: apparently yes

bishop93
12-28-2004, 04:04 AM
Thanks for the quick reply.

Having it post based, I'm sure, works for many sites that would utilize such functionality. On the other hand, having this as a subscriber "perk" is exactly what I need and the functionality that you have already built into this mod is fantastic! I just need it to be able to be configured for subscribers only since I just can't allow anyone to post a 'dorm' and I don't want to created inflated post counts to limit people (my only other thought for a solution, that is). :(

I have the rest of this week to test anything out that you might want if you decided to take a crack at it. We go live on Sunday and I'll have to postpone this feature if not. But otherwise, I'm open to suggestions and implementation tests even on the test server later.

Darkwaltz4
12-28-2004, 04:09 AM
hmm, maybe i could put in a usergroup thing.

oh, and to eliminate the 'inflated post count' problem, just set the default dorm setting of 'posts count towards postcount' to off (and run the update function if you have existing dorms) and if you want to undo any postcount from previous forums, update counters. thats what my forum does :-p

so, two things i might do if i have some time...
password and usergroup support, and the auto-template-installer

bishop93
12-28-2004, 04:11 AM
:D Thanks! I'll be looking forward to it -- if you have time. ;)

Darkwaltz4
12-28-2004, 04:18 AM
oh, a quick and dirty hack you could do yourself if i dont come through for you~

find in dorms.php...

if(!$bbuserinfo[userid]) print_no_permission();


now, usergroups have certain id numbers, which you can find by hovering links in the acp usergroup screen. so if you want to restrict it to certain groups, find the number (ill call it X for my example) then edit that line to be...


if(!$bbuserinfo[userid] and $bbuserinfo[usergroupid]!=X) print_no_permission();


this will restrict the page from being accessed by any usergroup that isnt X (which i assume would be your subscrber group, or any existing one you might want) also, you can allow more than one, by just finding out the extra groups' numbers (Y and Z for the example) and adding more and etc's to the code...


if(!$bbuserinfo[userid] and $bbuserinfo[usergroupid]!=X and $bbuserinfo[usergroupid]!=Y and $bbuserinfo[usergroupid]!=Z) print_no_permission();


this isnt confusing is it? like i said, this is the less elegant way to get what you want in case i cant find time to do it elegantly :-p

docvader
12-28-2004, 05:36 AM
Thanks DW. Your support of this hack is unsurpassed and greatly appreciated.

I still have some troubles. Got it to work again, reinstalled php file and templates (I had altered the templates a little), and now it's sending PM's and allowing the opening of threads. However, my registered users, who I accept into the dorm, cannot access it. Get the usual "you have no permission" error.

I'm baffled. Any suggestions???

rich

Darkwaltz4
12-28-2004, 05:40 AM
what are your global dorm settings, and parent forum settings?
do you mean they cant access the panel, the dorm forum they belong to, or the threads that were created in the dorm forum?

docvader
12-28-2004, 06:02 AM
OK DW, you da man. I had the parent forum as one of my older restricted forums, and the permissions setup was keeping people out. I trashed it, and created a new parent forum. I figured out a few things, which I'd like to share with you all, in case you're trying to do this. I think this works. DW no doubt will have more and better suggestions.

I made a link to the dorms.php in my navigation bar. That is the only entrance to the dorms. I think, for this to work, you have to make members try to enter via your http://www.site.com/forums/dorms.php link. If they try to access through threads on your forum index page, in some cases, they will be able to view what's going on.

I made a parent forum in vb, which you can call whatever you want. I made mine as follows:
act as a forum: no
forum is active: no
forum is open: no
index posts in search: no
no password


I found that if you make it active, ie, visible, people can access it via the forum index page, where they can see the forum. (I tried to make that link the forum/dorms.php link, but was unsuccessful in doing so; my ignorance as to how to do that properly I guess).

This way, it's not visible. People don't know it even exists, unless they enter through the navigation bar link. The nav bar link brings them to DW's dorms area, where the dorm figures out access. People can't bypass and enter the area, because the dorm php takes care of all access.

So far, so good.

Thanks
rich
x.russbo.com/index.php

docvader
12-28-2004, 02:05 PM
OK, the above keeps it from being seen on the forum index, and keeps non dorm members out, but anybody who clicks on "New Posts" or some sort of "Posts from one, two, etc days ago" can see the dorm threads pop up, and read them. That's the issue. How do we get around that? I'm keeping forum and child forum off of the forum jump menu also. Can't seem to figure out how to keep it from showing up on any sort of forum search.

I see Boxingscene in post 77 has the same issue.

Thanks!
rich
http://x.russbo.com/vb/index.php

docvader
12-29-2004, 03:15 AM
OK, easy fix, which is why it took me a few hours to figure out.

I made the parent forum "active" so that it is visible on the forum index page. It will show the various dorms underneath it.
If you alter permissions for that parent forum, and set everything to "No" for all usergroups (except for your main admin, user id 1), when people do a search query, the parent forum, and the various dorms underneath, will not show up in any search (new posts, last day posts, two week posts, etc).

Accepted dorm members can access the dorm area via the dorms.php link, where ever you may have placed it.

Love this hack.
rich

docvader
12-29-2004, 03:39 AM
Aargh. Again. That didn't do it. Keep looking...

docvader
12-29-2004, 03:58 AM
Think this works.

I made the parent forum inactive so that it doesn't show.
I made the permissions for registered users so that they can post in the parent forum, but cannot search.

If the parent forum is active and visible, registered users will be able to see it and enter through forum index, but not through the dorms.php link. So, I made it invisible.
Turning "search forum" in the permissions off, for the parent forum, keeps registered users from searching in the "new posts, etc" search.php query.

Also, I used this hack, even though the above seemed to do the trick: https://vborg.vbsupport.ru/showthread.php?t=62936&highlight=exclude+forums

Confused? So am I. But, we're testing this now, this seems to do the job.

rich

Darkwaltz4
12-29-2004, 05:27 AM
hehe, i really hate seeing all that you went through today, and i wasnt online at all to help out during it >.< but i think that one of the features i was planning would have taken care of exactly what you were trying to do :-p

utilizing the password system would i think be something like this...
------------------------------------------------------
admin options: allow password use/require password use (y/n)

dorm leader then can create a password for dorm which will be put un-md5'd into the dorm table (ull see why in a sec) upon creation of dorm, then setting the password into the forum system as normal. then pming the leader a backup copy of the password for himself.

subsequent members then get pmed a copy of the password upon acceptance, and the leader can change the password when he likes, which then sends an update pm to existing members, etc.

the password system then works like any other passworded forum, as the dorm hack would only use the password system as a wrapper (much like everything else :-p) thus....disabling vieiwing of contents/updates from non-members (those with the set password, on top of posting access with the dorm hack itself). oh, and also the proper authorities of course bypass the passwording to allow for moderation, but this is a standard vb feature of passworded forums :-p (which also works to advantage)

now keep in mind this is just me thinking out loud for right now, but if you think its great ill work on that :-p

docvader
12-29-2004, 12:15 PM
hehe, i really hate seeing all that you went through today, and i wasnt online at all to help out during it >.< but i think that one of the features i was planning would have taken care of exactly what you were trying to do :-p

utilizing the password system would i think be something like this...
------------------------------------------------------
admin options: allow password use/require password use (y/n)

dorm leader then can create a password for dorm which will be put un-md5'd into the dorm table (ull see why in a sec) upon creation of dorm, then setting the password into the forum system as normal. then pming the leader a backup copy of the password for himself.

subsequent members then get pmed a copy of the password upon acceptance, and the leader can change the password when he likes, which then sends an update pm to existing members, etc.

the password system then works like any other passworded forum, as the dorm hack would only use the password system as a wrapper (much like everything else :-p) thus....disabling vieiwing of contents/updates from non-members (those with the set password, on top of posting access with the dorm hack itself). oh, and also the proper authorities of course bypass the passwording to allow for moderation, but this is a standard vb feature of passworded forums :-p (which also works to advantage)

now keep in mind this is just me thinking out loud for right now, but if you think its great ill work on that :-p
Great idea. If you've got the time, I'd use it. But, to keep your life simpler, which is always a nice thing to do, is there anyway of keeping the new posts in the dorms off off the search.php? There is a simple &exclude command that you can keep in the navbar search link, to exclude search of some forums, but the problem is, the dorm keeps creating new forum numbers. So, that's a difficult option to implement. (Which is why I went the route I did; my above suggestions works, by the way).

Darkwaltz4
12-29-2004, 03:41 PM
thats why i said i wish i was here BEFORE you went to all the trouble to get what you wanted :-p but theres more than one way to skin a cat, my way would have done what you wanted, and also what someone wanted previous to you~

oh, and i just looked at your sites implementation of my hack, and im impressed o.o, even better than i intended it...

memo to self for next version: fix bug with title length for text titles...

oh, and i might make a hard-installer template utility, with a press/lift/stick functions...for admins, and release here..

docvader
12-29-2004, 09:44 PM
Thanks. I like this hack, because I want an "invitation only" section on my forum, for people to discuss private issues, with invites out to only those that they want to invite. It's perfect.

Let me know what else you come up with, I'm more than happy to play with it on my site. Right now, my implementation of it seems to be doing exactly what I wanted it to.

boydekort
12-30-2004, 06:56 AM
hey Darkwaltz4 you are one of the few that helps every user congratz on that I might install your hack when I get home
I just wanted to say that.

Darkwaltz4
12-30-2004, 07:04 AM
o.o thanks, i want to see that my hacks end up working like i wanted them to, for more than just myself :-p

oh, and my template wizard is done :-p wrote it in under 3 hours, i feel special ^_^ ill be using it for the auto-template installer for the dorm hack (which is why i wrote this wizard) ill be putting it on vborg in the morning, going to bed now..

boydekort
12-30-2004, 07:13 AM
goodnight :)

Darkwaltz4
12-31-2004, 04:56 AM
on a side note, the next version of the dorm hack will have a template install file rendered with the hack i just wrote last night, PLS Hard Install Template Wizard (https://vborg.vbsupport.ru/showthread.php?t=73513) ...so go check it out :-p (especially if you write hacks yourself, will find it very useful)

yoyoyoyo
01-16-2005, 03:36 AM
on a side note, the next version of the dorm hack will have a template install file rendered with the hack i just wrote last night, PLS Hard Install Template Wizard (https://vborg.vbsupport.ru/showthread.php?t=73513) ...so go check it out :-p (especially if you write hacks yourself, will find it very useful)
this will give me a chance to check out the new upgrade to the PLS Hard Install Template Wizard! I will install both of them later this week. I assume this dorm system is OK with 3.0.5?

Kali
02-09-2005, 06:41 AM
Just installed on 3.0.6 with no problems. Thought I'd mention it for those who aren't sure if they should try it or not. :)

Zachariah
03-31-2005, 10:20 PM
Thanks, I'll give it a try.

Darkwaltz4
04-18-2005, 03:41 AM
Thanks..again, apologzing for absense

Ismba: youve posted in both versions' threads of this hack, i hope you dont get confused, as each are slightly different, and this version i would say has more features and is easier/better to use, also.. to copy/paste from an email about the same question regarding uninstallation..
-------------------------------------

The Dorm manager system manipulates existing features of vbulletin, built to circumvent blocks in certain situations.....therefor..

to remove the features from your forum, just delete dorms.php, and set the permissions of the dorm forums back from locked, etc. if you want to finish it off, delete the dorms_ tables in your database. this will not harm your forums in any way, and as long as you remove links and mention of it, it will be as if the dorm system never existed :)

Polo
04-21-2005, 02:10 AM
does this work with vbulletin 3.0.7?

Paul M
04-21-2005, 02:46 AM
does this work with vbulletin 3.0.7?well since it states above that it works ok on 3.0.6, i'd say it's going to work on 3.0.7.

Polo
04-21-2005, 12:13 PM
Ok, I will figure it out soon ;)

Vizionz
07-21-2005, 08:54 AM
works with 3.07 so ya know.

ambrosious
07-26-2005, 02:00 PM
Quick question: Can members be allowed to join more than one dorm? If I make it public in the options, well that defeats the purpose of having the dorms. If I make it private, only one dorm is allowed per person, either to join or create.

Is there a way to make it so that members can join more than on dorm?

Darkwaltz4
07-26-2005, 02:06 PM
members join more than one: no
public defeats purpose: not entirely, as people would still be able to 'belong' to their own selected group of friends
way to join more than one: no, THAT would defeat the purpose. you may as well just have regular forums then. if someone wants to post in not their dorm, they can just post in the public thread of that dorm. (or if they want to switch, they quit the first and join the new)

Saphrym
08-22-2005, 03:44 PM
The one thing I noticed that I would like to have is making Dorm threads readable only to Dorm admins and Dorm members. I want these Dorm to be private club areas for users, they arent that private when any member can see them.

I'd like the threads to be private also... where only the dorm users and admins can see them. Any fix for this yet?

Darkwaltz4
08-23-2005, 01:43 PM
alright, i think ill take this back up again, and add in the password system :) as well as fix up some stuff, and use my template installer (which is created) which i promised :p

yoyoyoyo
08-23-2005, 01:51 PM
alright, i think ill take this back up again, and add in the password system :) as well as fix up some stuff, and use my template installer (which is created) which i promised :pcool.. thanks!

Darkwaltz4
08-23-2005, 06:34 PM
wow, youre not going to believe this...but yeah, the version up there right now, is using the vb2 version templates o.o thats why theres 13 of them...

I apologize to anyone who used them, there should have been 9, and im positive thats where all the design errors came from.

When i post up the new version, it will have all of the correct templates, and installed with my installer, so upgrading to the correct versions will take seconds. Again, probably the biggest blunder ive made in haste >.<

Right now ive finished redesignig the files in vb coding standards, and organized things in a much better manner, so the next update with the password thing should be up by hopefully tomorrow.

Darkwaltz4
08-25-2005, 07:50 PM
NEW VERSION 1.4
-Bugfixes: a few, correct template set

-Changes: some light template tweaks, optimizations for all pages, proper vB Code Standards

-Additions: allowed usergroups, optional passwords, log into any dorm cp if admin, automatic template installation/update

And a few more which I didnt keep track of....

Upgrade:
-Download the zip file in the first post, and the upgrade zip in this post. Follow the instructions in the upgrade zip.

Be sure to click install!

Sykoi
09-08-2005, 04:27 PM
I've installed this version and I seem to have a bit of a problem; my members are complaining about not being able to join other dorms, and the admin control (To control dorms) isn't working right for me (When you submit any form it sends you back to your own family)

Darkwaltz4
09-09-2005, 05:26 PM
users can only be a member of one dorm (family) at a time. i looked at your site and you seem to have many members who are joined properly. were you using an older version and it has now stopped working? or did you install this version and it has now begun working?

also i believe the admin workaround i believe is working properly. unless you are not able to complete actions which you specify, ill have to fix it. otherwise your meant to just do the one action at a time.

Sykoi
09-10-2005, 10:33 PM
I installed new version (From old version, the version right before the latest) and it stopped working correctly.

Try creating your own family, then using the admin control system... It bugs out and always goes back to your own family (Sending anyone who has an invite to that family as well)

Darkwaltz4
09-11-2005, 02:05 AM
alright i think i know of what the problem is.

i technically only applied the admin override system for dorm (family) leaders who vanish and leave their members stranded (as this was an issue on my implementation, and even as admin i couldnt do something easily to do this :-p).

can users still create dorms and manage them as before? can you as admin create and manage your own dorm? (so only the part about accessing through the ACP?)

dotagious
09-30-2005, 02:38 AM
Is it possible to set a different leader requirement, such as reputation instead of post count or a comination of reputation, post count and/or days registered?

Darkwaltz4
09-30-2005, 04:12 PM
sure, but this quick fix will need to be hardcoded

first, find this in dorms.php

if ($bbuserinfo['posts'] < $options['pcreatedorm'])
{
$reason = construct_phrase($vbphrase['dorms_err_create'], $options['pcreatedorm'], $options['dormname']);
$cantmakedorm = true;
}


for reputation, first decide the target rep, ill call it X, then add this underneath that

if ($bbuserinfo['reputation'] < X)
{
$reason = 'You need a higher reputation to create a dorm';
$cantmakedorm = true;
}


And likewise for days registered, target days is called X, add underneath again

if (floor($bbuserinfo['joindate'] / (3600 * 24)) < X)
{
$reason = 'You have not been registered long enough to create a dorm';
$cantmakedorm = true;
}


to remove different requirements, just remove the respective 'if' block.
also, you can likewise impose the same restrictions on joining a dorm by doing the same, except changing $cantmakedorm = true; , to $cantjoindorm = true; , and changing the respective descriptions to match.

ronoxQ
11-16-2005, 07:25 PM
Any chance you'll update to version 3.5? :)

KBV
11-26-2005, 07:51 PM
Same as above. ^^ Looks like a sweet mod and just what I'm looking for actually.

dotagious
12-20-2005, 01:48 PM
same here... 3.5 possible?

DS MrSinister
12-20-2005, 05:48 PM
My guess he will be working on this hack as well. Not sure

https://vborg.vbsupport.ru/showpost.php?p=849659&postcount=126

ambrosious
07-22-2006, 12:39 AM
Any luck on converting this to 3.5.x?

Darkwaltz4
07-22-2006, 02:50 AM
yes, i will begin working on old and new hacks in the coming months, and heres some good news:

ive just been hired by a company to do vbulletin and related work :) and ill be doing other hacks in my extra time. also, ive just gotten a computer thats new and all to myself (and its so cool! hehe) and ill be living on my own in a little over a week! :-p