• [MOD] Information if Guest follows direct link to an image/category 5 0 5 1
Currently:  

Author Topic: [MOD] Information if Guest follows direct link to an image/category  (Read 38035 times)

0 Members and 1 Guest are viewing this topic.

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Information if Guest follows direct link to an image
« Reply #15 on: January 31, 2006, 07:17:53 PM »
hhmm, thanks for the answer. Then i must see what i can do...

*edit*

can you say me what conflicts are in the file??? I mean, all other works....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Information if Guest follows direct link to an image
« Reply #16 on: January 31, 2006, 07:34:31 PM »
Quote

can you say me what conflicts are in the file??? I mean, all other works....


Sorry. There are too many MODs to describe in your file to see what might be the relative source of the problem.

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] Information if Guest follows direct link to an image/category
« Reply #17 on: February 01, 2006, 01:50:12 AM »
I've added a solution in the original post for the categories.
Hope martrix dont mind ;)
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Information if Guest follows direct link to an image/category
« Reply #18 on: February 01, 2006, 05:58:35 AM »
Thanks V@no....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [MOD] Information if Guest follows direct link to an image/category
« Reply #19 on: February 01, 2006, 07:23:09 PM »
Thanks V@no

 8)

Offline Brian2

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Information if Guest follows direct link to an image/category
« Reply #20 on: February 15, 2006, 05:30:09 PM »
When you click on a link to a category that you're not allowed to view now, you get redirected to news.php. I don't have news.php. Shouldn't it redirect to index.php?

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: [MOD] Information if Guest follows direct link to an image/category
« Reply #21 on: February 15, 2006, 06:07:45 PM »
martrix doesn't mind... more to the contrary - he appreciates it :D
MAяTRIX


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Information if Guest follows direct link to an image/category
« Reply #22 on: February 15, 2006, 06:49:22 PM »
Quote

When you click on a link to a category that you're not allowed to view now, you get redirected to news.php. I don't have news.php. Shouldn't it redirect to index.php?


I don't see any readings, from the first post, that indicates news.php file for redirecting ... perhaps it was modified before I posted this note  :?:

Offline Brian2

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] Information if Guest follows direct link to an image/category
« Reply #23 on: February 15, 2006, 11:29:25 PM »
I duplicated index.php and called it news.php, redirecting works now but I still find it weird and this can't be how it was meant to work.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] Information if Guest follows direct link to an image/category
« Reply #24 on: February 16, 2006, 12:22:10 AM »
I think I get what you're trying to say ...

In your details.php file,

find :

Quote

if (!$cat_id || !isset($cat_cache[$cat_id])) {
header("Location: " .$site_sess->url($url, "&"));
  exit;
}


replace with :

Code: [Select]

if (!$cat_id || !isset($cat_cache[$cat_id])) {
header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
  exit;
}


Then, try again.