• [MOD] Hidden / Password protected categories v1.1 (2009-06-30) 5 0 5 1
Currently:  

Author Topic: [MOD] Hidden / Password protected categories v1.1 (2009-06-30)  (Read 123511 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #15 on: November 07, 2008, 03:15:32 AM »
Hmmm...I found a lot of PHP bug reports regarding this issue.
So far I could only found one work around this. Try redownload the package again, catpass.php was updated.

P.S.
Because I don't know how to setup PHP the same way as it's on your host, I can't test it myself. So, please bear with me ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Gazzagreen

  • Newbie
  • *
  • Posts: 25
  • trying to get things to go my way :)
    • View Profile
    • LoveMansfield.co.uk Social website
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #16 on: November 07, 2008, 10:34:53 AM »
Hi V@no

It's the same fault  :cry:

 One thing I noticed about my server is that sometimes I need to add apostrophes ('') to statements to make them work, such as...

($something =0)

would need to be:

($something =='0')

Think this may be the problem?

Also, When I type the password straight into the database in the users table under the name of the user I'm logged in as, I still come to the password page? I would think I should go straight to the category if I have the password in the database already?

Gazza :?
« Last Edit: November 07, 2008, 10:48:56 AM by Gazzagreen »

Offline metal_brain

  • Jr. Member
  • **
  • Posts: 90
  • For all the reasons we have to die
    • View Profile
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #17 on: November 07, 2008, 10:56:45 AM »
such a great Mod  :D
thanks V@no

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #18 on: November 07, 2008, 03:09:01 PM »
It's the same fault  :cry:
Can you PM me with a link to phpinfo() on your site?

Also, When I type the password straight into the database in the users table under the name of the user I'm logged in as, I still come to the password page? I would think I should go straight to the category if I have the password in the database already?
it depends on how you typed it ;) its not just simple password, it's in this format:
catid,pass|catid,pass|catid,pass
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Gazzagreen

  • Newbie
  • *
  • Posts: 25
  • trying to get things to go my way :)
    • View Profile
    • LoveMansfield.co.uk Social website
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #19 on: November 07, 2008, 04:47:40 PM »
Can you PM me with a link to phpinfo() on your site?

how do I get phpinfo()?

Shows what a newbie I am eh?

Off to work now for 12 hour shift!

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #20 on: November 07, 2008, 07:39:02 PM »
create a php file:
Code: [Select]
<?php
phpinfo
();
?>
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline Gazzagreen

  • Newbie
  • *
  • Posts: 25
  • trying to get things to go my way :)
    • View Profile
    • LoveMansfield.co.uk Social website
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #21 on: November 08, 2008, 05:22:00 AM »
done, i sent you a link

Gazza  :mrgreen:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #22 on: November 08, 2008, 05:51:50 AM »
ok, I've updated the package with new catpass.php file
try now.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Gazzagreen

  • Newbie
  • *
  • Posts: 25
  • trying to get things to go my way :)
    • View Profile
    • LoveMansfield.co.uk Social website
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #23 on: November 08, 2008, 02:41:48 PM »
YEEEES!

You've cracked it again V@no! Works beautifully now :)

Many thanks.
Gazza

rinaldos

  • Guest
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #24 on: November 09, 2008, 08:57:10 PM »
Bug or a feature?

If a categorie is marked as privat, everbody (Also Guest) can see this category.
When I remove Step 5 this one: cat_unhide($cat_id);

then no one can see the category when it is marked as private (only the marked private User) .

Is this code in Step 5 cat_unhide($cat_id); necessary?

Gruß
Ingo

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #25 on: November 09, 2008, 09:36:12 PM »
I can't reproduce it.

I've added category "Private" set "View category" to private, after that nobody but admin could see and access that category.
Even if you logged in as a regular user (user: test pass: test) you still wont be able access that category.
But user "test2" (user: test2 pass: test2) is allowed to see that category.

The conclusion: maybe it's your other modifications interfering with this mod?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

rinaldos

  • Guest
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #26 on: November 10, 2008, 05:59:58 AM »
I do not know if a other MOD concluse with this MOD. Maybe. Everything works fine, only the private Feature of 4images is gone. Did I need the code line for  the password feature?

Gruß
Ingo

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #27 on: November 10, 2008, 06:54:12 AM »
?
did you follow exactly the installation instructions?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

rinaldos

  • Guest
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #28 on: November 10, 2008, 05:57:21 PM »
Yes exactly :-) As I saw the error, i control the installation and I saw no errors.....

Ingo

Offline Werner1340

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Hidden / Password protected categories v1.0.1 (2008-11-06)
« Reply #29 on: November 15, 2008, 06:41:24 AM »
Hello V@no,

one more question from my side  :D:

Is it possible to have following structur in a pass-protected categorie:

Maincategorie (=pass-protected, the Subcategories should not be seen)
- Subcategorie 1 (=pass-protected, seen by everyone)
- Subcategorie 2 (=pass-protected, seen by everyone)
.....
.....

I tried everything to have it this way, but nothings works.

On my Homepage you can see what i tried so far.

http://fotowerner.at

Maincategorie = Gästehaus -> pass = test

in there you will find:

subcat1 -> pass = 1 (Settings are: Hidden=no, seen by everyone)
subcat2 -> pass = 2 (Settings are: Hidden=no, set to "private") set to private hides the sucat2 in Mainpage.
That's what i want. But when i click on subcat2, it jumps back to the Mainpage ?

Are the settings wrong, or what can i do?

Big Thanks in advance..................Werner