Seite 1 von 1
$view = 'detail' ???
Verfasst: Fr 28.Nov, 2003 20:53
von Anonymous
[ENGLISH]- Been dissecting the mod. I now see, although a little sloppy, the code is solid.
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.
Im Code finde ich:Code: Alles auswählen
if ($view == "detail")
$long_desc = nl2br($row['long_desc']);
Woher "$view" erhält den Wert "detail"?
Re: $view = 'detail' ???
Verfasst: Sa 29.Nov, 2003 04:30
von Anonymous
odo324b hat geschrieben:[ENGLISH]- Been dissecting the mod. I now see, although a little sloppy, the code is solid.
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.
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
Verfasst: Sa 29.Nov, 2003 06:05
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.
Verfasst: Sa 29.Nov, 2003 10:42
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:
Verfasst: Sa 29.Nov, 2003 10:45
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.

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.

Verfasst: So 30.Nov, 2003 03:26
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! 
[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! 