Download Interface |
|
|
Jung Mitglied
|
luiz Geschrieben am 01.09.2012 um 12:36 |
|
|
|
|
Seiten Administrator
|
David Geschrieben am 01.09.2012 um 12:44 |
|
Hello Luiz,
open "infusions/download_interface_panel/downloads.php" and search for the following Part:
GeSHi: PHP if (!iMEMBER) { echo "<a title='".$download_data['download_title']." ".$download_data['download_version']." ~ <hr />".$locale['dli_115']."<hr /><img src=\"".DLI_ROOT."images/error.png\" alt=\"\" border=\"0\" />'><img src='".DLI_ROOT."images/disk.png' alt='' border='0' /></a> <span class='small2'>".$locale['dli_116']."</span>\n"; } elseif($download_data['download_url'] == '#' || $download_data['download_url'] == '' && $download_data['download_file'] == '') { echo "<a title='".$download_data['download_title']." ".$download_data['download_version']." ~ <hr />".$locale['dli_117']."<hr /><img src=\"".DLI_ROOT."images/error.png\" alt=\"\" border=\"0\" />'><img src='".DLI_ROOT."images/disk.png' alt='' border='0' /></a> <span class='small2'>".$locale['dli_116']."</span>\n"; } else { echo "<a href='".DLI_ROOT."downloads.php?download_cat=".$download_data['download_cat']."&download_id=".$download_data['download_id']."&start_download' target='_blank' title='".$download_data['download_title']." ".$download_data['download_version']." ~ <hr />".$locale['dli_118']."<hr /><img src=\"".DLI_ROOT."images/tick.png\" alt=\"\" border=\"0\" />'><img src='".DLI_ROOT."images/disk.png' alt='' border='0' /></a> "; if($download_data['download_url'] != "" && $download_data['download_url'] != "#" && $download_data['download_file'] == "") echo "<span class='small2'>Externer Download</span>\n"; else echo "<span class='small2'>".$download_data['download_filesize']."</span>\n"; }
gewandelt in 0.014 Sekunden, benutzt wurde GeSHi 1.0.8.10
Change it to:
GeSHi: PHP if($download_data['download_url'] == '#' || $download_data['download_url'] == '' && $download_data['download_file'] == '') { echo "<a title='".$download_data['download_title']." ".$download_data['download_version']." ~ <hr />".$locale['dli_117']."<hr /><img src=\"".DLI_ROOT."images/error.png\" alt=\"\" border=\"0\" />'><img src='".DLI_ROOT."images/disk.png' alt='' border='0' /></a> <span class='small2'>".$locale['dli_116']."</span>\n"; } else { echo "<a href='".DLI_ROOT."downloads.php?download_cat=".$download_data['download_cat']."&download_id=".$download_data['download_id']."&start_download' target='_blank' title='".$download_data['download_title']." ".$download_data['download_version']." ~ <hr />".$locale['dli_118']."<hr /><img src=\"".DLI_ROOT."images/tick.png\" alt=\"\" border=\"0\" />'><img src='".DLI_ROOT."images/disk.png' alt='' border='0' /></a> "; if($download_data['download_url'] != "" && $download_data['download_url'] != "#" && $download_data['download_file'] == "") echo "<span class='small2'>Externer Download</span>\n"; else echo "<span class='small2'>".$download_data['download_filesize']."</span>\n"; }
gewandelt in 0.007 Sekunden, benutzt wurde GeSHi 1.0.8.10
Now Guests should be able to download your Downloads ;). |
Liebe Grüße, euer David.
Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
|
|
|
|
Jung Mitglied
|
luiz Geschrieben am 01.09.2012 um 13:17 |
|
I thank you, Brother. It works.
For you :] |
luiz hat folgendes Bild angehängt:
|
|
|
|
Seiten Administrator
|
David Geschrieben am 01.09.2012 um 13:21 |
|
Hehehehe Thanks |
Liebe Grüße, euer David.
Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
|
|
|
|
Jung Mitglied
|
luiz Geschrieben am 01.09.2012 um 13:45 |
|
luiz hat folgendes Bild angehängt:
|
|
|
|
Seiten Administrator
|
David Geschrieben am 01.09.2012 um 17:55 |
|
Which Access you set in the Download-Interface-Adminpanel for this Category? |
Liebe Grüße, euer David.
Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
|
|
|
|
Jung Mitglied
|
luiz Geschrieben am 01.09.2012 um 18:11 |
|
Zitat David schrieb:
Which Access you set in the Download-Interface-Adminpanel for this Category?
Everything is set to "Available for guest" but only registered users can see comments |
Bearbeitet von luiz am 01.09.2012 um 18:26
|
|
|
|
Seiten Administrator
|
David Geschrieben am 02.09.2012 um 13:13 |
|
Please make a Backup from the following File, my code is untested.
Search in the "download_interface_panel.php"-File for the following Code:
GeSHi: PHP echo "<hr class='side' />"; echo "<h2><u>".$locale['dip_108']."</u></h2>\n"; $displayComments = 5; $result = dbquery(" SELECT * FROM ".DB_COMMENTS." INNER JOIN ".DB_USERS." ON user_id = comment_name INNER JOIN ".DB_DLI." ON download_id = comment_item_id INNER JOIN ".DB_DLI_CATS." ON download_cat_id = download_cat WHERE comment_type='D' AND comment_hidden='0' ORDER BY comment_datestamp DESC "); if (dbrows($result)) { $output = ""; $i = 0; while($data = dbarray($result)) { if ($i == $displayComments) { break; } switch ($data['comment_type']) { case "D": $access = dbquery(" SELECT download_id FROM ".DB_DLI." d, ".DB_DLI_CATS." c WHERE d.download_id='".$data['comment_item_id']."' AND d.download_cat=c.download_cat_id AND ".groupaccess('c.download_cat_access') ); if (dbrows($access) > 0) { $comment = trimlink($data['comment_message'], 24); $output .= "<li class='small'><a href='".DLI_ROOT ."downloads.php?download_id=".$data['comment_item_id']."#c".$data['comment_id']."' title='".$data['download_title']." ".$data['download_version']." ~ <hr />".trimlink (parsesmileys (parseubb ($data['comment_message'])) ,250)."<hr />".$data['user_name']." · ".date('d.m.Y - H:i', $data['comment_datestamp'])."' class='side'>".THEME_BULLET ." ".$comment."</a></li>\n"; $i++; } continue; } } echo $output; } else { echo "<div class='small2' align='center' style='padding: 10px;'><em>".$locale['dip_109']."</em></div>\n"; }
gewandelt in 0.008 Sekunden, benutzt wurde GeSHi 1.0.8.10
Replace it with:
GeSHi: PHP echo "<hr class='side' />"; echo "<h2><u>".$locale['dip_108']."</u></h2>\n"; $displayComments = 5; $result = dbquery(" SELECT c.comment_message, c.comment_datestamp, c.comment_item_id, c.comment_id, d.download_title, d.download_version, u.user_name FROM ".DB_COMMENTS." AS c INNER JOIN ".DB_USERS." AS u ON u.user_id=c.comment_name INNER JOIN ".DB_DLI." AS d ON d.download_id=c.comment_item_id INNER JOIN ".DB_DLI_CATS." AS dc ON dc.download_cat_id=d.download_cat WHERE c.comment_type='D' AND c.comment_hidden='0' AND ".groupaccess("dc.download_cat_access")." ORDER BY c.comment_datestamp DESC LIMIT 0,".$displayComments." "); if (dbrows($result)) { while ($data = dbarray($result)) { $linkComment = trimlink($data['comment_message'], 24); $linkTitle = $data['download_title']." ".$data['download_version']." ~ <hr />\n"; $linkTitle .= trimlink(parsesmileys(parseubb($data['comment_message'])), 250)."<hr />\n"; $linkTitle .= $data['user_name']." · ".strftime("%d.%m.%Y - %H:%M", $data['comment_datestamp'])."\n"; echo "<li class='small'><a href='".DLI_ROOT."downloads.php?download_id=".$data['comment_item_id']."#c".$data['comment_id']."' title='".$linkTitle."' class='side'>".THEME_BULLET." ".$linkComment."</a></li>\n"; } } else { echo "<div class='small2' style='padding: 10px; text-align: center; font-style: italic;'>".$locale['dip_109']."</div>\n"; }
gewandelt in 0.007 Sekunden, benutzt wurde GeSHi 1.0.8.10
|
Liebe Grüße, euer David.
Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
|
|
|
|
Jung Mitglied
|
luiz Geschrieben am 02.09.2012 um 15:19 |
|
I turned on the standard comments now but soon I'll see your code. |
|
|