Advertise Here

Author Topic: [Code] Password Protect v2  (Read 22365 times)

0 Members and 1 Guest are viewing this topic.

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: [Code] Password Protect v2
« Reply #30 on: September 27, 2009, 07:07:02 pm »
Could you please post the code you used and your Forum URL?
<--- Donate to SMF For Free! :D

Offline Zelkova

  • SMF For Free Member
  • *
  • Posts: 22
    • View Profile

  • Total Badges: 12
    Badges: (View All)
    Poll Voter Level 3 Windows User Topic Starter Combination
Re: [Code] Password Protect v2
« Reply #31 on: October 01, 2009, 07:41:47 pm »
Sorry it took me so long to reply, I thought it was just my forum acting funky so I did not pay any mind to it. Sadly I now making a forum for my friend and having the same problem.

Password protect v1 works but it always ask for the password again when making a new thread or replying. The v2 one don't do anything.

The forum is www.xeno.smfforfree3.com and the headers are
Code: [Select]
<script src="/jquery.js"></script>
The footers are
Code: [Select]
<script type="text/javascript">
PasswordProtect("7","zelkova");
</script>
<script src="http://209.85.62.24/15/114/0/f309916/PasswordProtectv2.js"></script>

The only other codes I have is slayer shop code and Moose v1 shop code (Planning to be use for something special.)

Right now the forum is still in the creation stage so feel free to create an account if needed and I can always delete it later.
« Last Edit: October 01, 2009, 07:45:35 pm by Zelkova »

Offline clairebear

  • SMF For Free Master
  • *
  • Posts: 1019
    • View Profile

  • Total Badges: 23
    Badges: (View All)
    Fifth year Anniversary Search Level 5 1000 Posts Poll Voter
Re: [Code] Password Protect v2
« Reply #32 on: February 07, 2010, 07:19:03 am »
i dont see how this is unsafe?
www.teardrop.mysmf.com

A support forum for support in loss from early miscarriage to five years.

Offline Andrew

  • Helpers
  • *
  • Posts: 2060
  • Andrew at your service
    • View Profile
    • Alabama Weather Prediction

  • Total Badges: 32
    Badges: (View All)
    10 Poll Votes Level 6 Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Code] Password Protect v2
« Reply #33 on: February 07, 2010, 11:01:04 am »
i dont see how this is unsafe?

People can easily view the source of your forum and see the passwords for the boards.

Zelkova: Do you still need help on this?

Offline King_Star

  • SMF For Free Member
  • *
  • Posts: 61
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Password Protect v2
« Reply #34 on: February 21, 2010, 10:01:24 am »
Password protect version 2 is not working for me.. will anyone solve this case ?

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Password Protect v2
« Reply #35 on: February 21, 2010, 01:01:08 pm »
Can you post your forum URL so I can see whats wrong?
Check out Revolution X's Brand new Code Index!

Offline King_Star

  • SMF For Free Member
  • *
  • Posts: 61
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Password Protect v2
« Reply #36 on: February 22, 2010, 01:39:01 am »
Forum Url: http://www.smf4free.com/forums/allinone/index.php
On this forum the board GPRS tips and trick i want to protect.. Added those your code but nothing happened..

By the way One more thing i want to ask is there any code for that particular post to protect it, means only registered user can see it, if it is guest then it should ask to get register in order to view that post

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Password Protect v2
« Reply #37 on: February 22, 2010, 03:40:38 pm »
Quote
Forum Url: http://www.smf4free.com/forums/allinone/index.php
On this forum the board GPRS tips and trick i want to protect.. Added those your code but nothing happened..

I don't see the code in your source code -  when you try this again if it does not work please post the code exactly as you used it so we can see if you got it right.    Did you put 33 for the Board number? 

By the way One more thing i want to ask is there any code for that particular post to protect it, means only registered user can see it, if it is guest then it should ask to get register in order to view that post

No, there isn't a code to password protect one post.
« Last Edit: February 22, 2010, 03:43:46 pm by simply sibyl »

Offline King_Star

  • SMF For Free Member
  • *
  • Posts: 61
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Password Protect v2
« Reply #38 on: February 23, 2010, 02:31:14 am »
In Header
<script src="/jquery.js"></script>


In Footer:

<script type="text/javascript">
PasswordProtect("33","jl");
</script>
<script src="http://209.85.62.24/15/114/0/f309916/PasswordProtectv2.js"></script>

But nothing happened. what should i do now ?
« Last Edit: February 23, 2010, 02:36:20 am by King_Star »

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Password Protect v2
« Reply #39 on: February 23, 2010, 02:44:17 am »
Moose is gonna have to look at this.    I tried it, and this code won't work for me either.   

King_Star  none of these password protect codes REALLY do the job.   Anyone with javascript disabled in their browser will not be effected by the code.    Anyone can also read the source code and grab the password from it.

Why not use Membergroups and Permissions to do this.
« Last Edit: February 23, 2010, 02:49:21 am by simply sibyl »

Offline King_Star

  • SMF For Free Member
  • *
  • Posts: 61
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Password Protect v2
« Reply #40 on: February 23, 2010, 05:14:41 am »
I think Membergroup permission is not the effective way. Its true that it will hide specific board from unregistered user (from guest). but there is loss. by this way new comer (guest) is never going to know that there is particular informatin available on board until the title of that board appears on screen.
R u getting what I means ? I means to the guest title of the board should appear but as soon as they clicks on board. they should get prompted to ask for register or password to see it.



 

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Password Protect v2
« Reply #41 on: February 23, 2010, 06:56:26 am »
I think Membergroup permission is not the effective way. Its true that it will hide specific board from unregistered user (from guest). but there is loss. by this way new comer (guest) is never going to know that there is particular informatin available on board until the title of that board appears on screen.
R u getting what I means ? I means to the guest title of the board should appear but as soon as they clicks on board. they should get prompted to ask for register or password to see it.


Since this code is not working you'll have to wait to see if Moose can fix it.   He's in college and is a busy guy so I don't know when that will be.
As has been mentioned many times -- they can read the source code and get the password anyways.

You can let Guests know what Boards, features, etc are available to Members.    Create either a Guest Board with the information in it, or if you are using the Portal an Html Block viewable only to Guests - with the information in it.   That way they will know what things you have that are only available to Members/have to login to view them.   This way you don't have to annoy your members with passwords  and Guests will know what is available  ;)

« Last Edit: February 23, 2010, 07:02:10 am by simply sibyl »

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Password Protect v2
« Reply #42 on: February 23, 2010, 09:20:44 am »
Code should be fixed now (tested it on my test board :) ).  I updated first post, and I shall post it here too:

Code: [Select]
<script src="http://209.85.62.24/15/114/0/f309916/PasswordProtectv2.js"></script>
<script type="text/javascript">
PasswordProtect("BOARD","PASSWORD");
</script>

Check out Revolution X's Brand new Code Index!

Offline King_Star

  • SMF For Free Member
  • *
  • Posts: 61
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Password Protect v2
« Reply #43 on: February 23, 2010, 09:29:19 am »
k i m gona check it . if problem is there i will let u know

Offline King_Star

  • SMF For Free Member
  • *
  • Posts: 61
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Password Protect v2
« Reply #44 on: February 23, 2010, 09:36:29 am »
yeah its working..but new problem is there. i mean guest are still able to view those post of that board from info center - recent topic..

any remedy for it ?

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
2943 Views
Last post January 17, 2008, 06:22:54 am
by LaundryLady
3 Replies
2075 Views
Last post October 16, 2008, 12:37:37 pm
by Josh[y]
1 Replies
1684 Views
Last post October 17, 2008, 07:24:53 pm
by Agent Moose
1 Replies
771 Views
Last post October 23, 2008, 06:45:51 am
by Crasy
3 Replies
2315 Views
Last post May 19, 2010, 03:38:59 pm
by decoy