Author Topic: make images clickable when they don't have access  (Read 7452 times)

0 Members and 1 Guest are viewing this topic.

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
make images clickable when they don't have access
« on: March 04, 2006, 09:09:35 PM »
Hey.
How can I remove the no-click function, so users can click on the image.
It's becuase I use [MOD] Information if Guest follows direct link to an image. And it's easier for a user to login and view the image (if it is a random image) Instead of having to login from index.php and then they can't find the ramdom image anymore.

Hope you guys get me point. :)

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: make images clickable when they don't have access
« Reply #1 on: March 04, 2006, 09:22:13 PM »
mmmm..."no-click" function? what are you talking about?
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 BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: make images clickable when they don't have access
« Reply #2 on: March 04, 2006, 11:50:23 PM »
I mean.
When people has access to view the category but not the image. Then they see the thumbnails but can't click on them. :)

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: make images clickable when they don't have access
« Reply #3 on: March 05, 2006, 01:07:12 AM »
Don't know what you mean.

If they don't have the permission to view the image detailed,
of course they can not click the image,
what other solution would be else?
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: make images clickable when they don't have access
« Reply #4 on: March 05, 2006, 01:09:30 AM »
The other solution is to remove the click protection because I use this mod: http://www.4homepages.de/forum/index.php?topic=7062.0


Offline ch€ri{Bi}˛

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: make images clickable when they don't have access
« Reply #5 on: March 05, 2006, 09:15:07 AM »
Ok  tell me if it is what you mean... :P

 :!: in 4images script : there is no login page! 

well, i mean... yes, users can login on every page if they want... and there are some  usefull MOD to indicate the user what to do if he want to see a picture... BUT...

it could be a good thing if the user can get an intermediate login page when he tries to access to a protected picture...  and if the user can login and if he is allowed to see the picture, then he is redirected to see the picture's detail... and if it's a random picture, the user can see it directly after login!

So instead of no information or popup message or redirection to index page , the user is getting a page either to be identified, or to be registered... :wink:
ch€ri{Bi}˛


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: make images clickable when they don't have access
« Reply #6 on: March 05, 2006, 09:50:24 AM »
In includes/functions.php find:
Code: [Select]
  if (!check_permission("auth_viewimage", $image_row['cat_id']) || !check_permission("auth_viewcat", $image_row['cat_id'])) {Replace it with:
Code: [Select]
  if (!check_permission("auth_viewcat", $image_row['cat_id'])) {
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 BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: make images clickable when they don't have access
« Reply #7 on: March 05, 2006, 10:48:23 AM »
Would $show_link = 1; not do the same? (one line below the code in functions?)

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: make images clickable when they don't have access
« Reply #8 on: March 05, 2006, 05:48:14 PM »
possible
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)