Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Dunny, Ruben), 48 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 709
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 24
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#223012 - 02/24/09 10:39 PM [Unsupported Modification] Option for completly private board
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Okay, this should do the trick according to what your wishes were. You can totally forget worrying about setting Guest permissions for anything. You can revert all Guest permissions back to stock, and this modification alone will do the trick. Give it a shot and let me know if I got it right.

Open up your copy of ubbthreads.php in the root folder.

find:
Php Code:
	 // Does user have to be logged in?
		if (!isset($user['USER_ID']) || !$user['USER_ID']) {
			if (array_get($init, 'regonly', 0) == 1) {
				$fatal_error = true;
				$fatal_error_msg = "FATAL_NOT_LOGGED";
			} // end if
		} // end if 

replace with:
Php Code:
	 // Does user have to be logged in?
		if (!isset($user['USER_ID']) || !$user['USER_ID']) {
			if (($ubb != "newuser") && ($ubb != "faq") && ($ubb != "boardrules") && ($ubb != "login") && ($ubb != "logout") && ($ubb != "start_page") && ($ubb != "adduser")) {
				$fatal_error = true;
				$fatal_error_msg = "FATAL_NOT_LOGGED";
			} // end if
		} // end if 


find:
Php Code:
 if (isset($left_column_data['template'])) {
		smartyDisplay($left_column_data);
	} // end if
	if (isset($smarty_display['body'])) {
		// Need to set graemlin url based on the user's style
		$smarty->register_outputfilter("graemlin_url");
		smartyDisplay($smarty_display['body']);
	} // end if
	if (isset($right_column_data['template'])) {
		smartyDisplay($right_column_data);
	} // end if 

replace with:
Php Code:
 if ((isset($user['USER_ID'])) && ($user['USER_ID'])) {
		if (isset($left_column_data['template'])) {
			smartyDisplay($left_column_data);
		} // end if
	} // end if
	if (isset($smarty_display['body'])) {
		// Need to set graemlin url based on the user's style
		$smarty->register_outputfilter("graemlin_url");
		smartyDisplay($smarty_display['body']);
	} // end if
	if ((isset($user['USER_ID'])) && ($user['USER_ID'])) {
		if (isset($right_column_data['template'])) {
			smartyDisplay($right_column_data);
		} // end if
	} // end if 


Enjoy.


Edited by Gizmo (03/01/09 12:13 AM)
_________________________
Marching Percussion ( Drumline ) Community
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#223067 - 02/25/09 02:25 PM Re: [Unsupported Modification] Option for completly private board [Re: DLWebmaestro]
DonB Offline
newbie
Registered: 06/06/06
Posts: 33
Appears to work perfectly! Mucho thanks.
Top
#223073 - 02/25/09 03:00 PM Re: [Unsupported Modification] Option for completly private board [Re: DonB]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Glad I could be of assistance. smile
_________________________
Marching Percussion ( Drumline ) Community
Top
#223075 - 02/25/09 03:08 PM Re: [Unsupported Modification] Option for completly private board [Re: DonB]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
A hack is fine if people are willing to do so on each version change.
But the reason for my post in this forum was a suggestion to get this migrated into a permanent CP option.


Edited by Ruben (02/25/09 03:09 PM)
_________________________
Blue Man Group
Top
#223082 - 02/25/09 03:28 PM Re: [Unsupported Modification] Option for completly private board [Re: Ruben]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Baby steps man, it takes more coding to integrate these things into the CP. I wanted to get this out to him as quickly as I could so he could begin implementing it. Once finals are over this week, I'll have more time to tinker with things. smile

Plus, you don't usually have to re-implement on version changes. I just pull up my copy of BeyondCompare and copy over the changed stock code, leaving my modifications alone.
_________________________
Marching Percussion ( Drumline ) Community
Top
#223091 - 02/25/09 03:52 PM Re: [Unsupported Modification] Option for completly private board [Re: DLWebmaestro]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
i still advocate for modifying the stock ubbthreads.php and add some pre and post hooks in, so we don't need to modify ANY stock code at all!

we do the _run and _gpc now, but there should be a way to add in mods to the ubbt-engine...

that would allow easily added features in a ../add-ons directory and not interfere in upgrades..

right now, upgrades cause pain for this reason.. Beyond Compare makes it easier, but it's really something that isn't NECESSARY given a more flexible "ubb=xxx" engine wink
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#223120 - 02/25/09 05:36 PM Re: [Unsupported Modification] Option for completly private board [Re: SD]
DonB Offline
newbie
Registered: 06/06/06
Posts: 33
Unfortunately this hack apparently broke captcha, see http://www.ubbcentral.com/forums/ubbthreads.php/topics/223119.html
Top
#223141 - 02/25/09 06:53 PM Re: [Unsupported Modification] Option for completly private board [Re: DonB]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
So back to my original post.
Add this to the list.
_________________________
Blue Man Group
Top
#223142 - 02/25/09 07:08 PM Re: [Unsupported Modification] Option for completly private board [Re: Ruben]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Sorry about that. I do my testing on my laptop, and don't have ImageMagick or GD2 installed. I never use captcha on my Website, so I never thought to install either of those locally. Anywho, I made some changes that should fix it. Here are the entire instructions with the changes implemented.

Open up your copy of ubbthreads.php in the root folder.

find:
Php Code:
	 // Does user have to be logged in?
		if (!isset($user['USER_ID']) || !$user['USER_ID']) {
			if (array_get($init, 'regonly', 0) == 1) {
				$fatal_error = true;
				$fatal_error_msg = "FATAL_NOT_LOGGED";
			} // end if
		} // end if 

replace with:
Php Code:
	 // Does user have to be logged in?
		if (!isset($user['USER_ID']) || !$user['USER_ID']) {
			if (($ubb != "newuser") && ($ubb != "faq") && ($ubb != "boardrules") && ($ubb != "login") && ($ubb != "logout") && ($ubb != "start_page") && ($ubb != "adduser") && ($ubb != "captcha")) {
				$fatal_error = true;
				$fatal_error_msg = "FATAL_NOT_LOGGED";
			} // end if
		} // end if 


find:
Php Code:
 if (isset($left_column_data['template'])) {
		smartyDisplay($left_column_data);
	} // end if
	if (isset($smarty_display['body'])) {
		// Need to set graemlin url based on the user's style
		$smarty->register_outputfilter("graemlin_url");
		smartyDisplay($smarty_display['body']);
	} // end if
	if (isset($right_column_data['template'])) {
		smartyDisplay($right_column_data);
	} // end if 

replace with:
Php Code:
 if ((isset($user['USER_ID'])) && ($user['USER_ID'])) {
		if (isset($left_column_data['template'])) {
			smartyDisplay($left_column_data);
		} // end if
	} // end if
	if (isset($smarty_display['body'])) {
		// Need to set graemlin url based on the user's style
		$smarty->register_outputfilter("graemlin_url");
		smartyDisplay($smarty_display['body']);
	} // end if
	if ((isset($user['USER_ID'])) && ($user['USER_ID'])) {
		if (isset($right_column_data['template'])) {
			smartyDisplay($right_column_data);
		} // end if
	} // end if 
_________________________
Marching Percussion ( Drumline ) Community
Top
#223146 - 02/25/09 07:20 PM Re: [Unsupported Modification] Option for completly private board [Re: DLWebmaestro]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Tested and verified that Captcha works with this method.
_________________________
Marching Percussion ( Drumline ) Community
Top
#223166 - 02/26/09 12:00 AM Re: [Unsupported Modification] Option for completly private board [Re: DLWebmaestro]
DonB Offline
newbie
Registered: 06/06/06
Posts: 33
DLWebmaestro:

I opened things up this evening on my board and immediately ran into one more snag with this hack; I think it is probably the last one. I have e-mail verification turned on, and when the new member clicks on the verification link they get a fatal error. I'm back to using the stock code.

I think I know what I would need to add, but I would rather not guess, and the full code in this thread should be fixed anyway.

Thanks again for your work on this one!
Top
#223167 - 02/26/09 12:03 AM Re: [Unsupported Modification] Option for completly private board [Re: DonB]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Replace:
Php Code:
if (($ubb != "newuser") && ($ubb != "faq") && ($ubb != "boardrules") && ($ubb != "login") && ($ubb != "logout") && ($ubb != "start_page") && ($ubb != "adduser") && ($ubb != "captcha")) { 

with:
Php Code:
if (($ubb != "newuser") && ($ubb != "faq") && ($ubb != "boardrules") && ($ubb != "login") && ($ubb != "logout") && ($ubb != "start_page") && ($ubb != "adduser") && ($ubb != "captcha") && ($ubb != "verifyemail")) { 


Learning as we go! wink

I would fix the full code, but the edit time has long passed.

I'm working on getting this fully CPed down to all the nitty gritties.
_________________________
Marching Percussion ( Drumline ) Community
Top
#223169 - 02/26/09 12:08 AM Re: [Unsupported Modification] Option for completly private board [Re: DLWebmaestro]
DonB Offline
newbie
Registered: 06/06/06
Posts: 33
That was quick! I will implement/test it tomorrow.
Top
#223222 - 02/26/09 02:29 PM Re: [Unsupported Modification] Option for completly private board [Re: SD]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Originally Posted By: Sirdude
i still advocate for modifying the stock ubbthreads.php and add some pre and post hooks in, so we don't need to modify ANY stock code at all!

we do the _run and _gpc now, but there should be a way to add in mods to the ubbt-engine...


I'll definitely be working on getting a hook system in for 8.0. I still have to figure out the nitty gritties, and then we'll need to figure out where all the hooks need to be, documented, etc.
Top
#223224 - 02/26/09 02:54 PM Re: [Unsupported Modification] Option for completly private board [Re: Rick]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
Loc: Texas
Sweet! :thumbsup:
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#223226 - 02/26/09 02:58 PM Re: [Unsupported Modification] Option for completly private board [Re: AllenAyres]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Do we need to send some hand rolled cubans to Rick to speed up the process?
_________________________
Blue Man Group
Top
#223227 - 02/26/09 03:44 PM Re: [Unsupported Modification] Option for completly private board [Re: Ruben]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
i'll donate a box, if he puts it in 7.5.2 wink
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#223228 - 02/26/09 03:46 PM Re: [Unsupported Modification] Option for completly private board [Re: SD]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
A BOX!!!!
I was thinking just a couple.
Wow I didn't know it was that important.

Heh Heh Heh.
_________________________
Blue Man Group
Top
#223229 - 02/26/09 04:45 PM Re: [Unsupported Modification] Option for completly private board [Re: Ruben]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Rick can just go up to Canada to get some Cuban cigars any time he wants. Victoria is so beautiful.
_________________________
Marching Percussion ( Drumline ) Community
Top
#223239 - 02/26/09 06:10 PM Re: [Unsupported Modification] Option for completly private board [Re: DLWebmaestro]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
Loc: Texas
Yes, I went there the one time I was in Seattle, the boat ride there was beautiful too - we must have seen 30-40 whales.
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#223241 - 02/26/09 06:14 PM Re: [Unsupported Modification] Option for completly private board [Re: AllenAyres]
Ruben Online   hyper

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
There be whales here. Quoted by Scotty from Star Trek.

One of these days I will make it out there. I would love to see those huge mammals.
_________________________
Blue Man Group
Top
#223387 - 03/01/09 12:16 AM Re: [Unsupported Modification] Option for completly private board [Re: Ruben]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
I split this unsupported modification from the feature request that it was originally tacked on to; the original thread can be found here


Edited by Gizmo (03/01/09 12:23 AM)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#223538 - 03/03/09 09:58 PM Re: [Unsupported Modification] Option for completly private board [Re: Gizmo]
DLWebmaestro Offline
enthusiast
Registered: 03/26/08
Posts: 333
Loc: North Carolina
Clickity click for a fully-CPed version with more options/flexibility.
_________________________
Marching Percussion ( Drumline ) Community
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image