Page Index Toggle Pages: [1] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) BoardPass V1.8/1.9 for YaBB 2.2.2/2.2.3 (Read 16582 times)
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
BoardPass V1.8/1.9 for YaBB 2.2.2/2.2.3
Nov 14th, 2007 at 10:15pm
Print Post  
Hello YaBBer

MF-B and I write/update new BoardPass mod for YaBB 2.2.2/2.2.3

----------------------------------------------------------
BoardPass V 1.8 / V1.9
----------------------------------------------------------





Description:
This mod allow set password access to specific Boards.
Admin, Gmod and Mod have always access to this passwordprotected Board without enter password.

Screenshots:

General Settings - Edit Boards


Locked Board with Password


Enter Password Page


Open Board after Enter Password (Admin, Gmods and Mods always open)


Zip Package included
- BoardPass_Y22.mod
- BoardPass_Y22_german.mod

Installation:
1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server in ASCII mode.

Admin/ManageBoards.pl (ASCII)
Admin/ModList.pl (ASCII)
Languages/English/Admin.lng (ASCII)
Languages/English/Error.lng (ASCII)
Languages/English/Main.lng (ASCII)
Sources/BoardIndex.pl (ASCII)
Sources/Display.pl (ASCII)
Sources/Load.pl (ASCII)
Sources/MessageIndex.pl (ASCII)
Sources/Profile.pl (ASCII)
Sources/Recent.pl (ASCII)
Sources/Search.pl (ASCII)
Sources/Subs.pl (ASCII)
Sources/SubList.pl (ASCII)
Templates/default/BoardIndex.template (ASCII)
Templates/yabb21/BoardIndex.template (ASCII)

yabbfiles/Templates/Forum/default/locking.giflockopen.gif (Binary)
yabbfiles/Templates/Forum/default/lockopen.gif (Binary)

Mod History:
Status BoardPass V1.9 ( July 13th 2008 )
- Updated for YaBB 2.2.3

Status BoardPass V1.8 ( June 05th 2008 )
- Updated for YaBB 2.2.2

Status BoardPass V1.7 (March 26th 2008 )
- Fix by reorder Boards, that make other Boards empty description, and enter empty description boards after reordered boards was clone boards.

Note: After installing, Rebuild Recount Board Totals and Rebuild Message Index

Please make a Backup of these in Boards before too, if you edit your boards: forum.control, forum.master and forum.totals

Status BoardPass V1.6 (March 5th 2008 )
- update for YaBB 2.2.1

Status BoardPass V1.5 (November 14th 2007)
- update for YaBB 2.2
« Last Edit: Jul 13th, 2008 at 11:37am by Jeff »  

BoardPass_V1_9_yabb223.zip ( 13 KB | Downloads )

greetings
Jeff
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: BoardPass V1.5 for YaBB 2.2
Reply #1 - Nov 15th, 2007 at 12:38am
Print Post  
Working a treat  :2thumbsup:
  
Back to top
 
IP Logged
 
Captain John
Senior Member
****
Offline


Pass to Port !

Posts: 264
Location: Reno Beach
Joined: Jan 18th, 2007
Gender: Male
Re: BoardPass V1.5 for YaBB 2.2
Reply #2 - Nov 16th, 2007 at 10:08pm
Print Post  
I love Good Security !!!  ........  Wink
  

Love to live and love on the water
Back to top
 
IP Logged
 
MaddDragger
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Nov 21st, 2007
Re: BoardPass V1.5 for YaBB 2.2
Reply #3 - Nov 21st, 2007 at 8:12pm
Print Post  
i have a question about a step in this mod.

step # 36 out of 39.

It says....

1;


then replace " blah blah blah blah" before it.

Problem is... wich "1;" do i paste it before since there are many.

the code that should be pasted where it says blah blah is here below.

sub BoardPassw {

     #my ($currentboard,$viewnum) = @_;

     $yymain .= qq~

<table border="0" width="80%" cellspacing="1" class="bordercolor" align="center" cellpadding="4">

  <tr>

    <td class="titlebg"><img align="absmiddle" src="$defaultimagesdir/locking.gif" alt="" border="0" /> <b>$maintxt{'900pw'}: $boardname</b></td>

  </tr><tr>

    <td class="windowbg" align="center">

    <br />

     <form action="$scripturl?action=checkboardpw" method="POST">

       <input type="hidden" name="pswviewnum" value="$viewnum" />

       <input type="hidden" name="pswcurboard" value="$currentboard" />

       <input type="password" name="boardpw" value="" size="25"> <input type="submit" value="$maintxt{'900w'}">

     </form>

    <br />

    <br />

    </td>

  </tr>

</table>

<br />

<p align="center"><a href="javascript:history.go(-1)">$maintxt{'900b'}</a></p>

~;

     &template;

     exit;

}



sub BoardPasswCheck {



     my $returnnum = $FORM{'pswviewnum'};

     my $returnboard = $FORM{'pswcurboard'};

     my $spass = ${$uid.$returnboard}{'brdpassw'};

     my $cryptpass = &encode_password("$FORM{'boardpw'}");



     if ($spass ne $cryptpass) { &fatal_error('wrong_pass'); }

     $ck{'len'} = 'Sunday, 17-Jan-2030 00:00:00 GMT';

     my $cookiename = "$cookiepassword$returnboard$username";

     push @otherCookies, cookie(

                       -name    =>   "$cookiename",

                       -value   =>   "$cryptpass",

                       -path    =>   "/",

                       -expires =>   "$ck{'len'}");

     &WriteLog;

     undef $FORM{'boardpw'};

     if ($returnnum ne '') {

           $yySetLocation = qq~$scripturl?num=$returnnum~;

     } else {

           $yySetLocation = qq~$scripturl?board=$returnboard~;

     }

     &redirectexit;

}
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: BoardPass V1.5 for YaBB 2.2
Reply #4 - Nov 21st, 2007 at 8:41pm
Print Post  
lol, why not use Baordmod and install automaticly?  Roll Eyes These way is very easy. Dont know why you manually install it.  Shocked

There no many 1; in this file in last line in Subs.pl  Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
ccarr
Ex Member


Re: BoardPass V1.5 for YaBB 2.2
Reply #5 - Nov 21st, 2007 at 8:42pm
Print Post  
Hi MaddDragger

Are you not letting the BoardMod utility do all this for you.  ???

It works a treat and is so simple to use.   Wink

Jet Li Beat me to it. I Loose again  Grin
  
Back to top
 
IP Logged
 
MaddDragger
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Nov 21st, 2007
Re: BoardPass V1.5 for YaBB 2.2
Reply #6 - Nov 21st, 2007 at 8:53pm
Print Post  
the lovely boardmod gave me 23 errors.......

so sadly, i must do it manually.
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: BoardPass V1.5 for YaBB 2.2
Reply #7 - Nov 21st, 2007 at 8:54pm
Print Post  
are you sure you use YaBB 2.2?  Shocked
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
MaddDragger
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Nov 21st, 2007
Re: BoardPass V1.5 for YaBB 2.2
Reply #8 - Nov 21st, 2007 at 8:59pm
Print Post  
I'm an advanced user, so yes sir.

Open up your BoardMod and load up the password mod. skip all the way down to step 36 and please tell me where that code would go under exactly since it says to paste below "1;" .... theres a shitload of " 1; " in that config file.
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: BoardPass V1.5 for YaBB 2.2
Reply #9 - Nov 21st, 2007 at 9:01pm
Print Post  
sorry, but this modfile was tested on clean YaBB 2.2 so nobody have this error except you with 9 Downloads here.  Undecided

I say last line in Subs.pl  Shocked before 1;
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
MaddDragger
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Nov 21st, 2007
Re: BoardPass V1.5 for YaBB 2.2
Reply #10 - Nov 21st, 2007 at 9:01pm
Print Post  
all the other 22 of 23 errors i can fix by changing the strings easily.. im not worried about those.

its just step 36 Sad
  
Back to top
 
IP Logged
 
Cable
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 97
Joined: Sep 28th, 2007
Re: BoardPass V1.5 for YaBB 2.2
Reply #11 - Nov 22nd, 2007 at 6:34am
Print Post  
Thanks Jet Li and MF-B... another great MOD.

My code is inserted exactly where JetLi says it goes.. very end of Subs.pl


Code
Select All
return $icanview;
}

Code goes here

1; 

  
Back to top
 
IP Logged
 
MaddDragger
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Nov 21st, 2007
Re: BoardPass V1.5 for YaBB 2.2
Reply #12 - Nov 23rd, 2007 at 4:15am
Print Post  
thank you both very much! and happy thanksgiving!
  
Back to top
 
IP Logged
 
MaddDragger
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 8
Joined: Nov 21st, 2007
Re: BoardPass V1.5 for YaBB 2.2
Reply #13 - Nov 25th, 2007 at 6:42am
Print Post  
Personal note to anyone that may have errors at the very end of the mod install...
**its because the mod applys to the yabb default template. if you dont use it then ofcourse this wont work**

all you got to do is change the template folder links from default to whatever template name that you use generally, in the "edit mod" section then just auto-install again.
  
Back to top
 
IP Logged
 
mattcch
New Member
*
Offline


Web

Posts: 45
Joined: Jun 8th, 2007
Gender: Male
Re: BoardPass V1.5 for YaBB 2.2
Reply #14 - Dec 14th, 2007 at 11:20am
Print Post  
Ok, no problem and successfully installed.
Thanks Smiley
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint