$view = 'detail' ???

Enthält archivierte Beiträge von Hotschi's Board zum Download MOD.
Posten ist hier nicht möglich, bitte das Supportforum dafür verwenden!
Gesperrt
Anonymous

$view = 'detail' ???

Beitrag von Anonymous »

[ENGLISH]
  • Been dissecting the mod. I now see, although a little sloppy, the code is solid. :wink:

    In the code, I find:

    Code: Alles auswählen

    if ($view == "detail")
    $long_desc = nl2br($row['long_desc']);
    Where does "$view" get the value "detail"?
[GERMAN -- GOOGLE]
  • , den Umb. zergliedernd..., Ich sehe jetzt, obgleich wenig sloppy, der Code fest ist. :wink:

    Im Code finde ich:

    Code: Alles auswählen

    if ($view == "detail")
    $long_desc = nl2br($row['long_desc']);
    Woher "$view" erhält den Wert "detail"?
Anonymous

Re: $view = 'detail' ???

Beitrag von Anonymous »

odo324b hat geschrieben:[ENGLISH]
  • Been dissecting the mod. I now see, although a little sloppy, the code is solid. :wink:

    In the code, I find:

    Code: Alles auswählen

    if ($view == "detail")
    $long_desc = nl2br($row['long_desc']);
    Where does "$view" get the value "detail"?
[GERMAN -- GOOGLE]
  • , den Umb. zergliedernd..., Ich sehe jetzt, obgleich wenig sloppy, der Code fest ist. :wink:

    Im Code finde ich:

    Code: Alles auswählen

    if ($view == "detail")
    $long_desc = nl2br($row['long_desc']);
    Woher "$view" erhält den Wert "detail"?
In the old version of the PHP, this mods is work.
But in the newest version of the PHP it need add something to get the $view value.
on http://phpbb.hotschi.de/board/viewtopic.php?p=925#925
Anonymous

Beitrag von Anonymous »

[ENGLISH]
  • Sorry, that's not what I meant. :?

    The DL Mod works just fine. I'm trying to figure out HOW it works. Right now, I just can't find where the value for $view is generated. Not that there's anything wrong.

    I'm just curious.
[GERMAN -- GOOGLE]
  • Traurig, ist das nicht, was ich bedeutete. :?

    Die DL-Umb.-Arbeiten gerade fein. Ich versuche, darzustellen aus, WIE es funktioniert. Gerade finden im Augenblick kann ich nicht, wo der Wert für $view erzeugt wird. Nicht das dort ist alles falsch.

    Ich bin gerade neugierig.
Anonymous

Beitrag von Anonymous »

odo324b hat geschrieben:[ENGLISH]
  • Sorry, that's not what I meant. :?

    The DL Mod works just fine. I'm trying to figure out HOW it works. Right now, I just can't find where the value for $view is generated. Not that there's anything wrong.

    I'm just curious.
[GERMAN -- GOOGLE]
  • Traurig, ist das nicht, was ich bedeutete. :?

    Die DL-Umb.-Arbeiten gerade fein. Ich versuche, darzustellen aus, WIE es funktioniert. Gerade finden im Augenblick kann ich nicht, wo der Wert für $view erzeugt wird. Nicht das dort ist alles falsch.

    Ich bin gerade neugierig.
OH... Sorry for my misunderstanding. :oops: :P

Detail is mean the downloads.php page turn to the detail info of one of the download item. So, in the code of the downloads.php, there has one line :

Code: Alles auswählen

if ($row['long_desc'] != "") $info = "<a class="gen" href="downloads.$phpEx?view=detail&id=" . $file_id . "&cat=" . $row[cat] . "">" . $lang['Dl_info'] . "</a>";[code]
this line mean that when the the long_desc field in that record is not null then return a link is downloads.php?view=detail&id="this record ID"&cat="this record of Cat."
So, when user click on this link, the downloads.php will do those code in this condition "if ($view == "detail")"

Is it what you need? I'm also a user of the Downloads mods. I hope you can get what you want. :wink:
Anonymous

Beitrag von Anonymous »

Joe hat geschrieben:
odo324b hat geschrieben:[ENGLISH]
  • Sorry, that's not what I meant. :?

    The DL Mod works just fine. I'm trying to figure out HOW it works. Right now, I just can't find where the value for $view is generated. Not that there's anything wrong.

    I'm just curious.
[GERMAN -- GOOGLE]
  • Traurig, ist das nicht, was ich bedeutete. :?

    Die DL-Umb.-Arbeiten gerade fein. Ich versuche, darzustellen aus, WIE es funktioniert. Gerade finden im Augenblick kann ich nicht, wo der Wert für $view erzeugt wird. Nicht das dort ist alles falsch.

    Ich bin gerade neugierig.
OH... Sorry for my misunderstanding. :oops: :P

Detail is mean the downloads.php page turn to the detail info of one of the download item. So, in the code of the downloads.php, there has one line :

Code: Alles auswählen

if ($row['long_desc'] != "") $info = "<a class="gen" href="downloads.$phpEx?view=detail&id=" . $file_id . "&cat=" . $row[cat] . "">" . $lang['Dl_info'] . "</a>";
this line mean that when the the long_desc field in that record is not null then return a link is downloads.php?view=detail&id="this record ID"&cat="this record of Cat."
So, when user click on this link, the downloads.php will do those code in this condition "if ($view == "detail")"

Is it what you need? I'm also a user of the Downloads mods. I hope you can get what you want. :wink:
Sorry for some typing mistake. :oops: :P

One more thing, when do the condition $view=detail, it will shown the page of the detail info. :wink:
Anonymous

Beitrag von Anonymous »

[ENGLISH]
  • Ok, $value is sent to download.php upon a 'refresh' of itself, through the url it generates. I didn't see it there.
    Thanks! :wink:
[GERMAN -- GOOGLE]
  • Heißen Sie, $value wird gesendet zu download.php nach ' erneuern ' von sich, durch das URL gut, das es erzeugt. Ich sah es nicht dort.
    Danke! :wink:
Gesperrt