Password Protect Boards 0.2 released

Started by Dragooon, September 20, 2007, 11:09:35 PM

Previous topic - Next topic

[SiNaN]

MoreBloodWine:

BoardIndex.template.php

Find:

if (!empty($board['last_post']['id']))

echo '
<div style="float: left;">
', $board['last_post']['link'], '<br />', $txt[525], ' ', $board['last_post']['member']['link'], '</div>';

if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))

echo '
<br /><div style="float: right; white-space: nowrap;">', $board['last_post']['time'], '&nbsp;<a href="', $board['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" /></a></div>';


Replace:

if (!empty($board['last_post']['id']) && (empty($board['passwd']) || in_array($board['id'],$_SESSION['board_access']) || $context['user']['is_admin']))
{
echo '
<div style="float: left;">
', $board['last_post']['link'], '<br />', $txt[525], ' ', $board['last_post']['member']['link'], '</div>';

if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))

echo '
<br /><div style="float: right; white-space: nowrap;">', $board['last_post']['time'], '&nbsp;<a href="', $board['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" /></a></div>';
}
Former SMF Core Developer | My Mods | SimplePortal

MoreBloodWine

#121
@SiNaN
     Thx

@Dragoon
     I figured I'd make another post about this but with pictures.

1. When protecting a childboard it doesnt show to anyone but admins even if you have the board permissions set to show to everyone.

2. When viewing the protected childboards as an admin the below isnt seen like it is with main boards.


I'd expect the same to be true for the next pic but since admins dont need to log in I cant test it.

Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


ASF

does this MOD work wit SMF 1.1.5? because everytime i install it i get this error.

$txt['passwdBoard1'] = "Password for this board"; $txt['passwdBoard2'] = "Leave blank for no password"; $txt['passwdBoard3'] = "Please enter the board password: "; $txt['passwdBoard4'] = "Enter Board"; $txt['passwdBoard5'] = "This board is password protected and you have not provided the correct password during this session"; $txt['passwdBoard6'] = "Board Unlocked";


Even on default theme.

babjusi

Quote from: ASF on October 20, 2008, 09:19:01 PM
does this MOD work wit SMF 1.1.5? because everytime i install it i get this error.

$txt['passwdBoard1'] = "Password for this board"; $txt['passwdBoard2'] = "Leave blank for no password"; $txt['passwdBoard3'] = "Please enter the board password: "; $txt['passwdBoard4'] = "Enter Board"; $txt['passwdBoard5'] = "This board is password protected and you have not provided the correct password during this session"; $txt['passwdBoard6'] = "Board Unlocked";


Even on default theme.

Where do you get this error? At the top of your forum? If so, open the Modifications.english.php file in the languages directory and make sure that all the contents in there are between the starting and closing php tags

ASF

Quote from: babjusi on October 30, 2008, 11:48:46 AM
Quote from: ASF on October 20, 2008, 09:19:01 PM
does this MOD work wit SMF 1.1.5? because everytime i install it i get this error.

$txt['passwdBoard1'] = "Password for this board"; $txt['passwdBoard2'] = "Leave blank for no password"; $txt['passwdBoard3'] = "Please enter the board password: "; $txt['passwdBoard4'] = "Enter Board"; $txt['passwdBoard5'] = "This board is password protected and you have not provided the correct password during this session"; $txt['passwdBoard6'] = "Board Unlocked";


Even on default theme.

Where do you get this error? At the top of your forum? If so, open the Modifications.english.php file in the languages directory and make sure that all the contents in there are between the starting and closing php tags

Yes, the error appears at the top of the forum.

But everything in modification file seems to be between the php tags.

I have attached my file, take a look.

babjusi

Quote from: ASF on October 31, 2008, 12:57:33 AM
Quote from: babjusi on October 30, 2008, 11:48:46 AM
Quote from: ASF on October 20, 2008, 09:19:01 PM
does this MOD work wit SMF 1.1.5? because everytime i install it i get this error.

$txt['passwdBoard1'] = "Password for this board"; $txt['passwdBoard2'] = "Leave blank for no password"; $txt['passwdBoard3'] = "Please enter the board password: "; $txt['passwdBoard4'] = "Enter Board"; $txt['passwdBoard5'] = "This board is password protected and you have not provided the correct password during this session"; $txt['passwdBoard6'] = "Board Unlocked";


Even on default theme.

Where do you get this error? At the top of your forum? If so, open the Modifications.english.php file in the languages directory and make sure that all the contents in there are between the starting and closing php tags

Yes, the error appears at the top of the forum.

But everything in modification file seems to be between the php tags.

I have attached my file, take a look.

No, it wasn''t. Anyway, try the attached file and let me know

ASF

man thanks for your help, it worked briliantly.

babjusi


Fronty

someone help me please
I install  in 1.1.6 version and get this error

Notice: Undefined variable: user_info in /home/r30580/public_html/Sources/Load.php on line 742

Notice: Undefined variable: user_info in /home/r30580/public_html/Sources/Load.php on line 742

Notice: Undefined variable: board_info in /home/r30580/public_html/Sources/Load.php on line 742

:'(

Omebolle

Hi there, I'm new at this and just installed the 1.1.8 forum. Now I want to add the password protect mod to make some threads safe. I uploaded the files to my site, but how do I install those files to get them working.

Omebolle

#130
Bump... I thought I could just point my browser to the install.php I uploaded, but that won't work. Then I tried to find the files I have to manually change, couldn't find them in MySQL account. Can someone please help me here?

Sorry, must have been blind, finally found out how to do it. Through the package manager. It Works!!!

Smoky "Rider" Blue

Hey Dragooon... like you arent busy enough, but could you please update this for the rc.. really could use it bout now..  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

dvk01

can this be altered to make admin and global mods  also enter a password

drxdragon

will/could this be updated for 1.1.8?

Smoky "Rider" Blue

drxdragon it will work for 1.1.x ;)

search this thread...
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

shadow82x

Dragooon, is there a SMF2.0 version?
Colin B
Former Spammer, Customize, & Support Team Member

Smoky "Rider" Blue

dragooon must still be a bit busy..  :P
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Dragooon

Quote from: Shadow82x on May 02, 2009, 05:24:11 PM
Dragooon, is there a SMF2.0 version?
No

I've dropped support for this mod due to lack of time. So anyone else can adopt it, make sure to PM me before though.

Xtreme Zone

Field 'passwd' doesn't have a default value
File: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\Forum\Sources\Subs-Boards.php
Line: 1100


When i try to add a board it says this, ive tried everything, and i do mean everything. So, if this question is already answered than am sorry for the post but im just still kinda new to the forum setup and coding so if anyone has a answer to this questions please reply or email me at [email protected]

Thanks

BikerMK

Quote from: SmokyBlue on April 19, 2009, 10:36:27 PM
drxdragon it will work for 1.1.x ;)

search this thread...
Hello,
I think it isn´t so!!!

Since I updated to 1.1.9 it doesn´t work for the "normal members".

The error-messages is this:
Quote8: Undefined index: passwdBoard4
Datei: /homepages/44/d119644466/htdocs/biker/modules/Forum/smf/Themes/default/BoardIndex.template.php (main sub template - eval?)
Zeile: 147

Anyone there who can help me?



Advertisement: