ezportal blok sorunu

Portal eklentileri ile ilgili konular.

ezportal blok sorunu

İleti SilveR 18.09.2006, 16:53

arkadaşlar canversoft adresinden ezportalı indirdim ve kurdum fakat elinde bulunan pafiledb bloğu çalışmıyor.komutlar uymuyor.içeriğini yazıyorum.ilgilenip canversoft adresinde ezportala uyumlu hale getirebilir misiniz?

ben çok uğraştım yapamadım :wink:



[syntax="php"]##############################################################
## MOD Title: paFileDB-Block Integration for Smartor's ezPortal - Top Downloads
## MOD Author: Minc < mithril.inc@gmx.de > (S. von den Berg) http://www.smartor.oftheweek.de
## MOD Description: paFileDB Integration in a Block for Smartors ezPortal, displaying the top downloads...
## MOD Version: 1.4.0
##
## Installation Level: Easy
## Installation Time: 6 minutes
## Files To Edit: portal.php
## templates/subSilver/portal_body.tpl
## language/lang_english/lang_main.php
## Included Files:
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
## Generator: MOD Studio [ ModTemplateTools 1.0.2072.24284 ]
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: I've looked into the mod for the paFileDB-integration into IM, which masterdavid wrote, so I'd like to mention him in here in a most honorable way.
##############################################################
## MOD History:
##
## 2004-12-01 - Version 0.2.0
## First BETA release at http://smartor.is-root.com/viewtopic.php?p=52950
##
## 2004-12-06 - Version 0.2.1
## added file-approval-controll as suggested by AnGeLiX :)
##
## 2004-12-06 - Version 1.0.0
## fixed some small mistakes in the display + language-integration
##
## 2005-05-03 - Version 1.2.0
## Added instructions for newest block
##
## 2005-05-30 - Version 1.4.0
## Added instructions to display posting date
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
portal.php
#
#-----[ FIND ]------------------------------------------
#
//
// END configuration

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Number of shown top Downloads, eg. '1' for the one most downloaded file, etc.
$shown_dls = '3';
#
#-----[ FIND ]------------------------------------------
#
//
// End session management
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
# Show the Top DLs
$sql = "SELECT * FROM " . $table_prefix."pa_files WHERE file_approved=1 ORDER BY 'file_dls' DESC LIMIT 0, $shown_dls";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query database for the most downloads');
}

$i = 1;
while ($file_most = $db->sql_fetchrow($result))
{
$row_class = ( !($i % 2) ) ? 'row1': 'row2';
$template->assign_block_vars('dlrow', array(
'NUMBER_MOST' => strval($i),
'ROW_CLASS' => $row_class,
'FILE_TIME' => create_date($board_config['default_dateformat'], $file_most['file_time'], $board_config['board_timezone']),
'FILELINK_MOST' => append_sid("dload." . $phpEx . "?action=file&file_id=" . $file_most['file_id']),
'FILENAME_MOST' => $file_most['file_name'],
'DESCRIP_MOST' => $file_most['file_desc'],
'INFO_MOST' => $file_most['file_dls'] . ' ' . $lang['Dls'])
);

$i++;
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
# Show the Newest DLs. Change DESC to ASC to show the oldest Downloads first.
$sql = "SELECT * FROM " . $table_prefix."pa_files WHERE file_approved=1 ORDER BY 'file_time' DESC LIMIT 0, $shown_dls";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query database for the most downloads');
}

$i = 1;
while ($file_most = $db->sql_fetchrow($result))
{
$row_class = ( !($i % 2) ) ? 'row1': 'row2';
$template->assign_block_vars('dlrow', array(
'NUMBER_MOST' => strval($i),
'ROW_CLASS' => $row_class,
'FILE_TIME' => create_date($board_config['default_dateformat'], $file_most['file_time'], $board_config['board_timezone']),
'FILELINK_MOST' => append_sid("dload." . $phpEx . "?action=file&file_id=" . $file_most['file_id']),
'FILENAME_MOST' => $file_most['file_name'],
'DESCRIP_MOST' => $file_most['file_desc'],
'INFO_MOST' => $file_most['file_dls'] . ' ' . $lang['Dls'])
);

$i++;
}
#
#-----[ FIND ]------------------------------------------
#
'L_VOTE_BUTTON' => $lang['Vote'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
'L_TITLE_TOP_DOWNLOADS' => $lang['Title_top_downloads'],
'L_TITLE_NEWEST_DOWNLOADS' => $lang['Title_newest_downloads'],
'L_DLS' => $lang['Dls'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/portal_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- END fetch_post_row -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
# Use this one to have a block without (!) displaying the uploading of the file.
# Delete one of the title-variables {L_TITLE_TOP_DOWNLOADS} or {L_TITLE_NEWEST_DOWNLOADS}.
<br />
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="25" align="left"><span class="genmed"><b>{L_TITLE_TOP_DOWNLOADS}{L_TITLE_NEWEST_DOWNLOADS}</b></span></td>
</tr>
<!-- BEGIN dlrow -->
<tr>
<td class="{dlrow.ROW_CLASS}" valign="top"><span class="genmed"><b>{dlrow.NUMBER_MOST}.</b></span></td><td class="{dlrow.ROW_CLASS}"><span class="genmed">&nbsp;<a href="{dlrow.FILELINK_MOST}">{dlrow.FILENAME_MOST}</a>&nbsp;({dlrow.INFO_MOST})<br />{dlrow.DESCRIP_MOST}</span></td>
</tr>
<!-- END dlrow -->
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
#
# Use this one to have a block with (!) displaying the uploading of the file.
# Delete one of the title-variables {L_TITLE_TOP_DOWNLOADS} or {L_TITLE_NEWEST_DOWNLOADS}.
<br />
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="25" align="left"><span class="genmed"><b>{L_TITLE_TOP_DOWNLOADS}{L_TITLE_NEWEST_DOWNLOADS}</b></span></td>
</tr>
<!-- BEGIN dlrow -->
<tr>
<td class="{dlrow.ROW_CLASS}"><span class="genmed">&nbsp;<a href="{dlrow.FILELINK_MOST}">{dlrow.FILENAME_MOST} ({dlrow.INFO_MOST})</a><br />{dlrow.DESCRIP_MOST}<br />{dlrow.FILE_TIME}</span></td>
</tr>
<!-- END dlrow -->
</table>
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Title_top_downloads'] = 'Top Downloads';
$lang['Title_newest_downloads'] = 'Newest Downloads';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
[/syntax]
SilveR
Üye
Üye
 
İleti: 5
Kayıt: 08.04.2006, 15:08

Portal



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron