Author Topic: Umleitung Kategorie und Details, Redirect Categorys and Details  (Read 6862 times)

0 Members and 1 Guest are viewing this topic.

bildergallery

  • Guest
Hallo zusammen,
wenn eine Kategorie oder die Detailseite nicht vorhanden ist, wird ein Umleitung auf die
Seite ausgeführt. Wo kann ich das einstellen, dass eine Fehlerseite/Template aufgerufen wird?

Hi,
if category or the detail page not available, a redirect to the
page executed. Where can i adjust that an own error page/template?

Gruss Ivan

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Umleitung Kategorie und Details, Redirect Categorys and Details
« Reply #1 on: October 20, 2008, 08:59:38 PM »
Hallo Ivan,

wird das nicht in "Apache" in der "httpd.conf" hinterlegt?

nobby

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Umleitung Kategorie und Details, Redirect Categorys and Details
« Reply #2 on: October 20, 2008, 09:08:23 PM »
... etwa hier ...

if (!check_permission("auth_viewcat"$cat_id) || !check_permission("auth_viewimage"$cat_id) || !$image_row) {
  
redirect($url);
}


... und hier ...

if (!$cat_id || !isset($cat_cache[$cat_id]) || !check_permission("auth_viewcat"$cat_id)) {
  
redirect("index.php");
}

« Last Edit: October 20, 2008, 10:24:20 PM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Umleitung Kategorie und Details, Redirect Categorys and Details
« Reply #3 on: October 20, 2008, 10:47:50 PM »
@mawenzi

und warum habe ich da nun so falsch gelegen?

werden in php die fehlerseiten anders behandelt?

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Umleitung Kategorie und Details, Redirect Categorys and Details
« Reply #4 on: October 20, 2008, 11:18:33 PM »
@nobby
... du hast ivans Anfrage sicher nur falsch verstanden ... ;)
... an den genannten Code-Abschnitten in der details.php und categories.php kann man die gewünschten Seiten definieren auf die umgeleitet werden soll bei Nichtvorhandensein der Image-Id bzw. der Cat-Id. Oder man kann dort auch eine Meldung platzieren, die dann angezeigt wird bevor weitergeleitet wird ...
... das ganze hat nichts mit Server-Fehlerseiten zu tun ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Umleitung Kategorie und Details, Redirect Categorys and Details
« Reply #5 on: October 21, 2008, 01:22:39 PM »
ja, ja es leuchtet  :) manchmal nicht einfach  :wink: