vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Hideaways (https://vborg.vbsupport.ru/showthread.php?t=92397)

amykhar 07-16-2005 10:00 PM

Hideaways
 
This extension lets you allow certain usergroups to create a private forum and an associated public usergroup. There are no queries to run, and you only need to change the parentid of the forums in hideaway.php before you upload it.

Access to the hideaway is denied to anybody except admins and the associated public user group.

The member who creates the forum becomes the usergroup leader and the forum moderator.

Users are responsible to advertise their own forum. No invite link is created. This is not automated. Users can either post an invitation to join their hideaway in some other forum on your site, or they can pm people to invite them. It's up to you on establishing the rules of hideaway promotion.

Users can edit their hideaway descriptions, but not the style or the forum title. The style can not be changed to ensure that we don't run into licensing issus. The title can not be changed because I use it to identify the forum for editing purposes.

The hideaway usergroups permissions are based on the registered user group's permissions. You can change what group their permissions are based off of within the code.

-----------------
FEATURES I WILL NOT ADD:
The ability for people to have more than one hideaway.
The ability for hideaway owners to create a new style for their forum.
The ability for hideaway owners to change the forum title.
The ability for hideaway owners to change any forum permissions.

-------------
This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you. :)
https://vborg.vbsupport.ru/external/2010/02/12.gif

xxskullxx 07-17-2005 08:17 PM

Looks like another great addon amy, I'll be testing it on my local. Thanks for the work :)

kall 07-18-2005 06:53 AM

Oh man! This could be exactly what I am looking for in order to let people create 'Private Events' that they then invite people to...

I wonder if it can be applied to the calendar...

john1744 07-18-2005 07:29 AM

Holy crap, Amy this is exactly one of the features I was wanting. *Prepares to install*

jluerken 07-18-2005 10:42 AM

Sounds to me like the old advanced Superforum hack which was really great but banned from Jelsoft.

The author got much trouble and was not allowed to work on it anymore.

I do not hope that this hack allows some kind of hosting cause then this is against Jelsofts copyright.

I want to see a hack like this and hope that no one will ban this one also :tired:

Chris M 07-18-2005 11:35 AM

Great hack amy :)

Satan

amykhar 07-18-2005 02:53 PM

Quote:

Originally Posted by jluerken
Sounds to me like the old advanced Superforum hack which was really great but banned from Jelsoft.

The author got much trouble and was not allowed to work on it anymore.

I do not hope that this hack allows some kind of hosting cause then this is against Jelsofts copyright.

I want to see a hack like this and hope that no one will ban this one also :tired:

It's different in a few key ways, and I discussed the mod with Jelsoft staff before I wrote it and go the green light.

Amy

amykhar 07-20-2005 05:55 PM

I think you've posted in the wrong thread Brinnie. What you've posted has nothing to do with allowing users to create private forums. Also, I can tell from your postbit in this thread that you haven't clicked the install button; so I must assume you don't have this mod installed on your site.

aethro 07-20-2005 07:10 PM

oh this is exactly what I needed for my forums, great hack :D

[high]* aethro clicks install.[/high]

amykhar 07-20-2005 07:23 PM

Glad you like it :)

aethro 07-20-2005 07:25 PM

Actually i've hit a snag :(

I followed the instructions and when I try to edit the permissions for usergroups it spouts out the following mysql error:

MySQL Error : Unknown column 'hideawaypermissions' in 'field list'
Error Number : 1054

amykhar 07-20-2005 07:29 PM

I love it. :D 8 installs and you're the first one to notice I forgot to put the query in the install file.

Run this query:
Code:

ALTER TABLE usergroup ADD hideawaypermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL

aethro 07-20-2005 07:31 PM

woo hoo! First one to notice somethin! :P Thanks that worked nicely! :D

aethro 07-20-2005 07:33 PM

COURSE after I speak lol

Invalid SQL:
INSERT INTO usergroup (title,usertitle,showinlist,ispublicgroup) VALUES ('PaulForum Group','Registered Member',0,1);

MySQL Error : Unknown column 'showinlist' in 'field list'
Error Number : 1054

Guess theirs more queries :P

amykhar 07-20-2005 07:37 PM

Hmm. That must be from an old hack? Let me go look at a couple of things. BRB.

Amy

amykhar 07-20-2005 07:50 PM

For now, change that line to

Code:

$db->query_write("INSERT INTO ".TABLE_PREFIX."usergroup (title,usertitle,ispublicgroup) VALUES ('$title','$usertitle',$ispublicgroup)");

aethro 07-20-2005 07:54 PM

Yep that works thanks! :D

john1744 07-21-2005 05:07 AM

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '180',
`passwordhistory` = '360',
`hideawaypermissions` = '1',
`forumpermissions` = '1048575',
`attachlimit` = '0',
`pmquota` = '500',
`pmpermissions` = '3',
`pmsendmax` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions` = '205520831',
`genericoptions` = '31',
`profilepicmaxwidth` = '1000',
`profilepicmaxheight` = '1000',
`profilepicmaxsize` = '65535000',
`avatarmaxwidth` = '800',
`avatarmaxheight` = '800',
`avatarmaxsize` = '2000000'
WHERE usergroupid=6;

MySQL Error : Unknown column 'hideawaypermissions' in 'field list'
Error Number : 1054
Date : Thursday, July 21st 2005 @ 02:06:37 AM

I keep getting this error

aethro 07-21-2005 05:32 AM

Read https://vborg.vbsupport.ru/showpost....9&postcount=12

john1744 07-21-2005 06:31 AM

Ok, now i have the same issue as that second error you posted, but Amy says to change that line, what line is she referring to?

PHP Code:

$db->query_write("INSERT INTO ".TABLE_PREFIX."usergroup (title,usertitle,ispublicgroup) VALUES ('$title','$usertitle',$ispublicgroup)"); 


aethro 07-21-2005 06:36 AM

open hideaway.php

Find
Code:


// Throw the whole mess in the database.
$db->query_write("INSERT INTO ".TABLE_PREFIX."usergroup (title,usertitle,showinlist,ispublicgroup) VALUES ('$title','$usertitle',$showinlist,$ispublicgroup)");

Replace with
Code:

// Throw the whole mess in the database.
$db->query_write("INSERT INTO ".TABLE_PREFIX."usergroup (title,usertitle,ispublicgroup) VALUES ('$title','$usertitle',$ispublicgroup)");


john1744 07-21-2005 07:25 AM

Thanks that worked fine.

Is there anyway that it could be made that the user could not see the forum, until they visit it? Then once they post in the forum/visit it, the hideaway would appear on the main category page?

Its kinda hard to see what forums you belong to (as a regular user) if they do not appear on the forum listing.

aethro 07-21-2005 07:45 AM

It should show up for those that are in that usergroup and admins. If you are not apart of the usergroup, you wont see it.

john1744 07-21-2005 08:00 AM

Huh, well I created a Hideaway with my admin account, then used a test account to access the forum, well I posted in the Hideaway with the test account but when I returned to the forum listings page, the Hideaway was not listed.

Also the test account is not listed as part of the Admin's Hideaway Usergroup.

Is this an error? Or does the user need to do something to "join" the hideaway?

BTW thanks for all the help.

john1744 07-21-2005 08:11 AM

huh disregard that last post, it seems users cannot just access the forum. It gives all users the "Insufficient privelages" when they click the link to the hideaway of mine.

amykhar 07-21-2005 02:26 PM

Quote:

Originally Posted by john1744
Huh, well I created a Hideaway with my admin account, then used a test account to access the forum, well I posted in the Hideaway with the test account but when I returned to the forum listings page, the Hideaway was not listed.

Also the test account is not listed as part of the Admin's Hideaway Usergroup.

Is this an error? Or does the user need to do something to "join" the hideaway?

BTW thanks for all the help.

Users can only access the forum if they have joined the usergroup. Hence the term hideaway. ;)

john1744 07-21-2005 03:05 PM

How woudl a user go about joining the usergroup? I mean I know there are ways for someone to join a public usergroup, but where is this? Is there a link that says, "Join this Hideaway usergroup?"

Sorry I'm not having luck with your hacks Amy.

amykhar 07-21-2005 03:29 PM

John, the usergroups are like any other public user group and are joined the same way. In your usercp there is a link called member groups.

Also, until you are a bit more experienced with Vbulletin, you should install only one hack at a time. Let it run a day or so and make sure you don't have issues. That way, you don't end up with compounded errors that can't be narrowed down easily.

john1744 07-21-2005 03:37 PM

That worked fine Amy, and thank you for the help. I will take your advice.

Benj 07-25-2005 09:25 AM

anyway to make these forums publicly viewable but, only invited users can post?

amykhar 07-25-2005 10:38 AM

Yes. But, I don't have time to do it for you at this point. If you don't read code, you are going to have to rely on the kindness of strangers and hope somebody else wants that change and posts it for you.

Amy

Benj 07-25-2005 12:05 PM

ok i cant read code so anyone:D

wcbryant 08-14-2005 07:46 AM

I've got it set up on a test forum, but for some reason the new usergroups aren't being given permission to even view the new forum.

So user 11 'Dotty' (name changed to protect the innocent) is in a usergroup allowed to create. She makes one, and both the 'Dottyhideaway' group and the 'Dotty's Hideaway Forum' are both successfully created. People can apply to Dotty's group, she can add people. But no one can see or access the forum, even with a direct link (except me, the administrator). When I go in to 'Edit Forum Permissions For Usergroup: Dottyhideaway in Forum Dotty's Hideaway Forum', it's set to all no straight down through the options.

Clearly I've done something wrong along the way if no one else has run into it, but after looking around with some help for a while at the hideaway.php code (stock from the download with the modifications directed in this thread), I'm not seeing where the problem is.

Thanks in advance, and great extensions, Amy. I've flagged a few of yours as features I'd like to go live with on my production site. :)

Holidazed 10-04-2005 03:18 PM

I installed the mod and it seems to work. However, when somebody who already has a Hideaway forum clicks the "Create" link, it gives them an error that says:

Code:

Could not find phrase 'hideaway_exists'.
I went in and added the phrase, but I still get the same error.

amykhar 10-04-2005 07:25 PM

It has to be in the right phrase group.

Holidazed 10-04-2005 08:56 PM

It is in the "Permissions" group. What group is it supposed to be in?

amykhar 10-05-2005 01:31 AM

When I wrote it, it worked in Permissions. Not sure where it needs to be since the upgrade and haven't had time to play with it. Won't have time to play with it for a while, either.

Holidazed 10-05-2005 03:30 PM

Argh!! sorry to hear that. It is such a great mod. But this error causes problems. Maybe it should be pulled from the release list until it is working properly.

hbalagh1 10-07-2005 05:57 AM

Yes this is a great mod, specially for your paid members, i hope that phrase issue is resolved soon :)

hbalagh1 10-07-2005 07:32 AM

anyone know how to create if conditions for this, so if they haven't created their private forum yet the edit private forum link doesn't show, and if they have created it, the creat private forum link doesn't show???

Thanks :)


All times are GMT. The time now is 06:22 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.01271 seconds
  • Memory Usage 1,821KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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