Common questions

4.49K
.
INDONESIA
Help. How to remove description text in category? (on select file in category)
.
CaptainAslam
INDONESIA
How to edit this script, to guest can't get download link:

echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">' .
'<a href="index.php?act=down&amp;id=' . $file . '"><img src="../images/file.gif" border="0" alt=""/></a>&#160;' .
'<a href="index.php?act=down&amp;id=' . $file . '">' . $lng['download'] . '</a></h3>' .


The code on this section (view.php code)

// Ссылка на скачивание файла

$dl_count = !empty($adrfile['ip']) ? intval($adrfile['ip']) : 0;
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">' .
'<a href="index.php?act=down&amp;id=' . $file . '"><img src="../images/file.gif" border="0" alt=""/></a>&#160;' .
'<a href="index.php?act=down&amp;id=' . $file . '">' . $lng['download'] . '</a></h3>' .
'<small><span class="gray">' . $lng_dl['size'] . ':</span> <b>' . $siz . '</b> kB<br />';
if ($prg == "zip") {
echo "<a href='?act=zip&amp;file=" . $file . "'>Открыть архив</a><br/>";
}
.
Максим
В стельку трезвый
CaptainAslam (02.03.2011/01:48)
How to edit this script, to guest can't get download link:

echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">' .
'<a href="index.php?act=down&amp;id=' . $file . '"><img src="../i
$dl_count = !empty($adrfile['ip']) ? intval($adrfile['ip']) : 0;
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">';
if($user_id){
echo '<a href="index.php?act=down&amp;id=' . $file . '"><img src="../images/file.gif" border="0" alt=""/></a>&#160;' .
'<a href="index.php?act=down&amp;id=' . $file . '">' . $lng['download'] . '</a>';
}else{
echo $lng['download'];
}
echo '</h3><small><span class="gray">' . $lng_dl['size'] . ':</span> <b>' . $siz . '</b> kB<br />';
if ($prg == "zip") {
echo "<a href='?act=zip&amp;file=" . $file . "'>Открыть архив</a><br/>";
}
.
INDONESIA
Максим (02.03.2011/02:26)
[php]$dl_count = !empty($adrfile['ip']) ? intval($adrfile['ip']) : 0;
echo '</p></div><div class="gmenu"><p>' .
'<h3 class="red">';
if($user_id){
echo '<a href="index.php?act=down&amp;id=' . $file
Thanks!
.
CaptainAslam
INDONESIA
How to edit this script to guest cant get link (forum/index.php):
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&amp;id=' . $fres['id'] . '">';
echo '<img src="thumbinal.php?file=' . (urlencode($fres['filename'])) . '" alt="' . $lng_forum['click_to_view'] . '" /></a></div>';
} else {
echo '<br /><a href="index.php?act=file&amp;id=' . $fres['id'] . '">' . $fres['filename'] . '</a>';
}

Thanks
.
В стельку трезвый
CaptainAslam (03.03.2011/03:20)
How to edit this script to guest cant get link (forum/index.php):
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&amp;i
if($user_id){
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&amp;id=' . $fres['id'] . '">';
echo '<img src="thumbinal.php?file=' . (urlencode($fres['filename'])) . '" alt="' . $lng_forum['click_to_view'] . '" /></a></div>';
} else {
echo '<br /><a href="index.php?act=file&amp;id=' . $fres['id'] . '">' . $fres['filename'] . '</a>';
}
}else{
echo 'You guest!';
}
.
How to edit this code, so that guest can't view archive:
if ($prg == "zip") {
echo "<a href='?act=zip&amp;file=" . $file . "'>View the archive</a><br/>";
}
.
Максим
В стельку трезвый
m9 (04.03.2011/19:17)
How to edit this code, so that guest can't view archive:
if ($prg == "zip") {
echo "<a href='?act=zip&amp;file=" . $file . "'>View the archive</a>
";
}
if ($user_id && $prg == "zip") {
echo "<a href='?act=zip&amp;file=" . $file . "'>View the archive</a><br/>";
}
.
Максим, Very Thanks for your help
.
CaptainAslam
INDONESIA
Максим (03.03.2011/12:50)
[php]
if($user_id){
if (in_array($att_ext, $pic_ext)) {
echo '<div><a href="index.php?act=file&amp;id=' . $fres['id'] . '">';
echo '<img src="thumbinal.php?file=' . (urlencode($fres['filename']))
can't be used, error
Всего: 123