UBB.Dev
Posted By: wwb95 [6.5] Hide privet forum - 08/21/2003 9:48 PM
Modification Name: Hide privet forum

Author(s): wwb95

Description:
Hide privet forum

-If the forum is privet and the user has access
to it, it will be shown for him in forum summary
-If the forum is password protected and the user
has set its password it will be shown for him
-if he know the password but he did not set it he
need a direct link to the forum so he can set the
password so it will be shown for him in the form
summary
Requirements: ubb 6.5

Download Link: linke

Credits: n/a

Notes:
I have done a privet forum hack for
6.21 and I do not now if it will work for 6.5

I have the 6.5 code but I did not have it running
so I can not test it
Can any body test it and give me a feed back
Posted By: Ian Spence Re: [6.5] Hide privet forum - 08/21/2003 10:48 PM
Am I to assume this will ruin the cache?
Posted By: wwb95 Re: [6.5] Hide privet forum - 08/21/2003 10:57 PM
Weird Al
It will run under the cache
Posted By: LK Re: [6.5] Hide privet forum - 08/21/2003 11:17 PM
nice job...
it won't ruin the cache, it does exactly the same thing as Recent Visitors...

wwb, btw, I think you forgot to add ultimatebb.php steps (if someone clicks "forum home" link from the main buttons line, ultimatebb.php file loads forum summary, and also many people tend to add ultimatebb.php to their favorites instead of .cgi)
Posted By: wwb95 Re: [6.5] Hide privet forum - 08/21/2003 11:34 PM
LK
First Thank you for replaying
I do not know but I think it will run-in the cache because it will replace the string in the
sub FilterPNTF
before the check
return $string if (($vars_pntf{Enabled} ne "yes") or ($vars_pntf{Mode} eq "hidden"));

and the last line in forum_summary will run any
way
print &FilterPNTF($ThisHTML);
so it will call the sub any way if the PNTF is
set or not

any way I am not the expert you are and if you
say so it is most probably you are write

for the php step can you pleas do it since I do
not have access to 6.5 board and I do not know
how to code php


thank you
Posted By: LK Re: [6.5] Hide privet forum - 08/22/2003 12:13 AM
wwb, you're correct..
"ruin" doesn't mean "run in", it means "destroy"... so by saying "it won't ruin the cache", I meant "it won't destroy the cache, [it will run with cache on]".

about ultimatebb.php: to get it to run under php, almost every step has to be different...
I don't have the time to do it right now, I'll probably do it tomorrow (unless someone else wants to do it...
Posted By: wwb95 Re: [6.5] Hide privet forum - 08/22/2003 12:58 AM
Lk

My English is not that good I misunderstands you

Thanks
Posted By: The Finman Re: [6.5] Hide privet forum - 08/24/2003 1:57 AM
Oh man, I've been begging for this hack for 7 months. smash

Thanks smile
Posted By: AllenAyres Re: [6.5] Hide privet forum - 08/24/2003 4:39 AM
great work wwb smile
Posted By: The Finman Re: [6.5] Hide privet forum - 08/31/2003 1:31 AM
*Bump* [Linked Image]
Posted By: ZeNissart Re: [6.5] Hide privet forum - 09/24/2003 4:06 PM
doesn't work on my 6.5 frown
Posted By: LK Re: [6.5] Hide privet forum - 09/24/2003 6:27 PM
There is a bug, in ubb_lib.cgi's portion (only in the code you pasted from this mod's instructions) find check_explicit and replace it with check_explicit2...

also in ubb_forum_summary.cgi find:
Code
	$ThisHTML .= &PageBottom;
add above:
Code
$ThisHTML .="<prives$priv></prives>";
that's INSTEAD of adding that code after $ThisHTML .= $Footer.
Posted By: ZeNissart Re: [6.5] Hide privet forum - 10/02/2003 12:03 PM
Thanks LK, it works now wink
Posted By: RandyM Re: [6.5] Hide privet forum - 10/02/2003 5:40 PM
Sure could use a 6.6 version of this. wink
Posted By: Ian Spence Re: [6.5] Hide privet forum - 10/02/2003 6:09 PM
Quote
quote:
Originally posted by Randy.x:
Sure could use a 6.6 version of this. wink
https://www.ubbdev.com/ubb/ultimatebb.php/ubb/get_topic/f/33/t/000098

Keep in mind that it does not work with the accelerator or at all for that matter, but it's there
Posted By: Vtec44 Re: [6.5] Hide privet forum - 10/03/2003 12:25 AM
Is it possible to make it work under ultimatebb.php also? If yes, where do I need to modify? Thanks!
Posted By: Hexican Re: [6.5] Hide privet forum - 10/30/2003 5:13 AM
Found not really a bug but something not really covered...

When you go into a forum and select the drop down box to jump to another forum, the hidden forums are shown. You cannot jump to them but they are still shown.

Anyway to turn the drop down off or hide the forums from the box???

Thanks and great job guys!!!
Posted By: twslex Re: [6.5] Hide privet forum - 11/08/2003 12:59 AM
Hi,

Found more ways that it keeps on turning around the block, if someone has the time to look into it, would be great.

Thanks for the time anyway smile
Posted By: ¤®Ðìmý®¤ Re: [6.5] Hide privet forum - 12/10/2003 6:36 PM
Has anybody found a solution for the php problem yet?
I think it might be a cache problem. If you log out and update the Style Template Associations , the php does not show the private forums, but as soon as you press the forum home link, or enter the board trough a link again, the php file shows the hiden forums again...
Posted By: Digital Boy Re: [6.5] Hide privet forum - 12/12/2003 7:28 PM
So basically with this hack you can't use the PHP addition? Is that correct?

- MT
Posted By: ¤®Ðìmý®¤ Re: [6.5] Hide privet forum - 12/14/2003 8:30 PM
Quote
quote:
Originally posted by Matt Torbin:
So basically with this hack you can't use the PHP addition? Is that correct?

- MT
Well, the private forums will still show up on the ultimatebb.php file... but will be hiden when people use the ultimatebb.cgi file...
Posted By: Digital Boy Re: [6.5] Hide privet forum - 12/15/2003 4:49 PM
Has anyone gotten this to work in 6.6.1? I tried and got an error.

- MT
Posted By: Ian Spence Re: [6.5] Hide privet forum - 12/15/2003 4:58 PM
Did you use this version or the 6.6.x version ?
Posted By: Digital Boy Re: [6.5] Hide privet forum - 12/15/2003 5:42 PM
I don't think so. Let me try it again...
Posted By: Digital Boy Re: [6.5] Hide privet forum - 12/15/2003 5:58 PM
I tried it and got an error. Sorry, my Perl is still very rusty so I'm not sure what the issue is.

Right now I'm going through the hacks that I can just quickly bang out and then I'll go back and work on the ones that need some special attention.

- MT
Posted By: Digital Boy Re: [6.5] Hide privet forum - 01/01/2004 12:32 AM
Quote
Originally posted by Weird Al:

Did you use this version or the 6.6.x version ?

Does someone have this version? The link is busted.

Thanks,

- MT
Posted By: Digital Boy Re: [6.5] Hide privet forum - 01/02/2004 11:30 PM
Anyone?? Anyone??
Posted By: Digital Boy Re: [6.5] Hide privet forum - 01/06/2004 5:12 PM
I'll take it that's a NO... frown
Posted By: Hexican Re: [6.5] Hide privet forum - 01/23/2004 1:00 AM
I have used the 6.5 version and it works well with the exception of the "jump to" drop down box shows the name of the forum but will not allow access.

You cannot run the accelerator as it will show the forum as soon as it jumps to .php . I disabled the accelerator (the option in the CP) and has worked great for a couple of months now.

Sorry, I do not have the 6.6 either... would like it though.
Posted By: LK Re: [6.5] Hide privet forum - 02/07/2004 4:51 PM
Try https://www.ubbdev.com/ubb/upload/00004463/hideprivate.txt

This is stephen's first version, not the update which he has applied in November.
© UBB.Developers