Password Protect Boards

Started by Yağız..., May 29, 2011, 02:35:56 PM

Previous topic - Next topic

nixlike

hi Yağız...
are you going to come up with a new version for SMF 2.0.1 as well? Im looking forward to it ;)

Yağız...

Quote from: nixlike on October 01, 2011, 03:27:44 AM
hi Yağız...
are you going to come up with a new version for SMF 2.0.1 as well? Im looking forward to it ;)
Done :)

nixlike

that was a very quick one, respect! if you dont see me in here again, everything worked out fine with the installation. if not I'll be back here. thanks for the quick reaction ;)

revengelove

#23
for 2.0rc3 in attachment


edit,

revengelove, Since this mod does not state any license, it is considered to be under a propietary/closed license, that is, you cannot redistribute the package without the mod's author permission.

Kevin1

Get free Gprs tricks for all telecom operators here.
http://teknotech.in

NanoSector

The 2.0.1 version should work on 2.0.2 :)

Just click "Advanced" in the Browse Packages screen, and enter "SMF 2.0.1", then click Save and install.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Kevin1

#26
@Yoshi2889
Sorry for bumpning the thread, and it is working fine in 2.0.2 without changing the advance option..
great mod..
But any way to hide the total Posts & Topics of the password protected board from the members??
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

NanoSector

#27
Quote from: Akram210712 on February 22, 2012, 02:23:20 AM
@Yoshi2889
Sorry for bumpning the thread, and it is working fine in 2.0.2 without changing the advance option..
great mod..
But any way to hide the total Posts & Topics of the password protected board from the members??
Try this:

In Themes/your_theme/BoardIndex.template.php, find:

<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '


Replace all of that with:

<p>', ($board['passwd'] && !$context['user']['is_admin'] ? '-' : comma_format($board['posts'])), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', (($board['passwd'] && !$context['user']['is_admin']) ? '- ' . $txt['board_topics'] : ($board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'])), '


Sadly, you'll have to do that in all themes :(

EDIT: Fixed a bug in which guests would get "1" displayed.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Kevin1

There is no such text in the index file of the albaanaigh theme..
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

NanoSector

Quote from: Akram210712 on February 23, 2012, 01:16:38 AM
There is no such text in the index file of the albaanaigh theme..
You did look in BoardIndex.template.php, right?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Kevin1

Bro there is no file named "BoardIndex.template.php"

There are
Quotecss
images
languages
Settings.template.php
Settings.template.php~
index.php
index.template.php
license.html
theme_info.xml
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

Kevin1

Sorry i found that file, it is under default theme..
Thanks alot.. it worked..
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

NanoSector

Quote from: Akram210712 on February 25, 2012, 05:32:10 AM
Sorry i found that file, it is under default theme..
Thanks alot.. it worked..
Oh of course, I should have said "If it's not in that theme, it's under  the default theme", my bad :-[

Glad it worked though :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

-=[Vyorel]=-

Nice mod, but how to resolve this error?
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.unapproved_topics, b.unapproved_posts FROM smf_boards AS b LEFT JOIN smf' at line 6
My mods for SMF - [6].

Mishqa

: Hi there. Well I installed the Passwd Protect mod to my forum/site but I dont know how to use it, I was reading Installation Instructions for 2.0. And all I see are codes. But I dont know how to use them. Where am I suppose to put the code? In a post or something? I don't understand how to use these codes or what I'm suppose to do after the Psswd Protect package is installed in my site. D

NanoSector

Hi Mishqa,

You can set a password for a board at Admin > Forum > Boards > (the board you wish to set a password for) > Modify (on the right).
Now regular members have to fill in that password when entering the board :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Mishqa

Okay I think I got it now, I can only provide one password to all?  is there a way to hide certain post from the members who have the password to protected board? See I have consultants on my site and the board that is protected is for members who need to communicate with my consultants in a confidential way? Is that possible for a member to creat a topic and hide it from the other users on the board? Did I explain myself?  :o

NanoSector

Quote from: Mishqa on May 17, 2012, 06:07:42 AM
Okay I think I got it now, I can only provide one password to all?
From what I've seen, yes.

Quoteis there a way to hide certain post from the members who have the password to protected board? See I have consultants on my site and the board that is protected is for members who need to communicate with my consultants in a confidential way? Is that possible for a member to creat a topic and hide it from the other users on the board? Did I explain myself?  :o
No idea, you could use the Approving system to mark topics as unapproved and then hide them from the members.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Mishqa


NanoSector

Quote from: Mishqa on May 17, 2012, 03:18:42 PM
And how do I do that?  :laugh:
First, go to Admin > Core Features > tick "Post Moderation" so the On switch is green. Save.

Go to Admin > Forum > Boards. Go to the board you have password protected. there should be a new switch that says something about approving topics, tick that.

Then, unapprove any topic in that board you don't want certain people to see.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: