|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
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
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Am I to assume this will ruin the cache?
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
Weird Al It will run under the cache
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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)
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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...
|
|
|
|
Joined: Nov 2001
Posts: 170
Member
|
Member
Joined: Nov 2001
Posts: 170 |
Lk
My English is not that good I misunderstands you
Thanks
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
Oh man, I've been begging for this hack for 7 months. Thanks 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
great work wwb 
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
*Bump* ![[Linked Image]](http://www.ronaldreagan.com/smilies/hey_you.gif)
|
|
|
|
Joined: Apr 2001
Posts: 142
Member
|
Member
Joined: Apr 2001
Posts: 142 |
doesn't work on my 6.5 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
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: $ThisHTML .= &PageBottom; add above: $ThisHTML .="<prives$priv></prives>"; that's INSTEAD of adding that code after $ThisHTML .= $Footer.
|
|
|
|
Joined: Apr 2001
Posts: 142
Member
|
Member
Joined: Apr 2001
Posts: 142 |
Thanks LK, it works now 
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Sure could use a 6.6 version of this. 
|
|
|
|
Joined: Feb 2003
Posts: 22
Junior Member
|
Junior Member
Joined: Feb 2003
Posts: 22 |
Is it possible to make it work under ultimatebb.php also? If yes, where do I need to modify? Thanks!
|
|
|
|
Joined: Jul 2002
Posts: 51
Member
|
Member
Joined: Jul 2002
Posts: 51 |
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!!!
|
|
|
|
Joined: Jun 2002
Posts: 111
Member
|
Member
Joined: Jun 2002
Posts: 111 |
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 
|
|
|
|
Joined: Jun 2003
Posts: 14
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 14 |
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...
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
So basically with this hack you can't use the PHP addition? Is that correct?
- MT
|
|
|
|
Joined: Jun 2003
Posts: 14
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 14 |
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...
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
Has anyone gotten this to work in 6.6.1? I tried and got an error.
- MT
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Did you use this version or the 6.6.x version ?
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
I don't think so. Let me try it again...
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
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
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
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
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
|
|
|
|
Joined: May 2000
Posts: 1,168
Member
|
Member
Joined: May 2000
Posts: 1,168 |
I'll take it that's a NO... 
|
|
|
|
Joined: Jul 2002
Posts: 51
Member
|
Member
Joined: Jul 2002
Posts: 51 |
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.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|