[DEV] Pafiledb [DOWNLOAD MOD] 0.0.9d

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
sublimenal
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 6:46 am
Contact:

Post by sublimenal »

eh for anyone that cares with help created a block for ezportal that is compatible with the latest release of pafiledb 0.0.9

download it here: http://www.covguild.com/pafile_block.zip

Code: Select all

############################################################## 
## MOD Title: Block for pafiledb 0.0.9 for ezportal
## MOD Author: few different peeps
## MOD Description: This will allow you to have most downloaded and newest downloaded for pafiledb 0.0.9 for ezportal
##					The old version of this block doesnt work on the new version 0.0.9.d but this one will.
## MOD Version: 1
## 
## Installation Level: (Easy) 
## Installation Time: 2 Minutes 
## Files To Edit: portal.php
##		  templates/portal_body.tpl
##		 
## Included Files: toplist_download.php
##		           toplist_newest.php
##				   templates/pa_toplist_download.tpl
## 				   templates/pa_toplist_newest.tpl
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

##
put the files in the respective directorys

# 
#-----[ OPEN ]------------------------------------------ 
# 

portal.php


# 
#-----[ FIND ]------------------------------------------ 
#

$template->pparse('body');

# 
#-----[ Before, ADD ]------------------------------------------ 

include($phpbb_root_path . 'toplist_download.'.$phpEx); //most downloaded file
include($phpbb_root_path . 'toplist_newest.'.$phpEx); //Newest downloaded file


# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/subsilver/portal_body.tpl


# 
#-----[Find, anywere on portal ]------------------------------------------ 
#



############for newest download use this############


<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
   <tr>
	<td class="catHead" height="25"><span class="genmed"><b>{TITLE_LATEST}</b></span></td>
  </tr>

<!-- BEGIN dlrow2 -->  
  <tr>
	<td class="row1"><span class="genmed"><b>{dlrow2.NUMBER_LATEST}.</b> <a href="{dlrow2.FILELINK_LATEST}">{dlrow2.FILENAME_LATEST}<br></a></span></td>
  </tr>
<!-- END dlrow2 -->
</table>



#####for most downloaded block use this###########



<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
   <tr>
	<td class="catHead" height="25"><span class="genmed"><b>{MOST_DL_TITLE}</b></span></td>
  </tr>
<!-- BEGIN dlrow -->  
  <tr>
	<td class="row1"><span class="genmed"><b>{dlrow.NUMBER_MOST}.</b> <a href="{dlrow.FILELINK_MOST}">{dlrow.FILENAME_MOST}<br> ({dlrow.INFO_MOST})</a></span></td>
  </tr>
<!-- END dlrow -->
</table>


#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 

the 2 tpl contain the orginal data from the previous block i changed it to look better but you can use the code in the tpl files.
any questions

msn me:   sublime1014@msn.com
oktracer
Registered User
Posts: 27
Joined: Sun Feb 29, 2004 6:27 am
Contact:

Post by oktracer »

Great work! can't wait to try it on my site :D

update- tried it and love it but, found the following that should be changed in toplist_download.php and toplist_newest.php

change the line

Code: Select all

$sql = "SELECT * FROM " . phpbb . "_pa_files ORDER BY file_dls DESC LIMIT 0," . 5 . " "
to

Code: Select all

$sql = "SELECT * FROM " . $table_prefix . "pa_files ORDER BY file_dls DESC LIMIT 0," . 5 . " "
sublimenal
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 6:46 am
Contact:

Post by sublimenal »

OK thanks for the help! I was pretty sure i made errors somewhere and im glad you found them. this is probally a simple task for most people but it took a long time for me to do it. lol

anways the zip file is updated with those changes.
oktracer
Registered User
Posts: 27
Joined: Sun Feb 29, 2004 6:27 am
Contact:

Post by oktracer »

Sorry there part of the code got cut when I pasted it.

Newest Downloads

Code: Select all

$sql = "SELECT * FROM " . $table_prefix . "pa_files ORDER BY file_time DESC LIMIT 0," . 10 . " ";
Most Downloads

Code: Select all

$sql = "SELECT * FROM " . $table_prefix . "pa_files ORDER BY file_dls DESC LIMIT 0," . 5 . " ";
sublimenal
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 6:46 am
Contact:

Post by sublimenal »

man why didnt i see that lmao! tell u the truth i didnt even looks. well ok its fixed and updated in the download location.
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

Hi ppl,

I need your help here :roll:
I have this mod installed and always works fine until now!
When I go to admin painel, menu from the left side dont appear... and says this:
Fatal error: Cannot redeclare admin_display_cat_auth() in /home/diverti/public_html/forum/admin/admin_pa_catauth.php on line 213


How can I solve this?
Please, help me... :roll:
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

This is my line 213:

Code: Select all

function admin_display_cat_auth($cat_parent = 0, $depth = 0)
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

GRRRRRRRR I have another error !!! :evil:
Only users with Opera browser can make downloads. IE users cant do it :roll:

What´s wrong?
Please help me... please!

This is my pafile site: www.divertidos.net/forum (click Legendas DivX)
or directly link: www.legendas.divertidos.net

If I open with IE appears this message bellow:
Line: 75
Char: 106
Error: Unterminated string constant
Code:0
URL: http://www.divertidos.net/forum/dload.p ... le_id=1313


But with opera is fine... no errors found...
HELP :roll:

P.S. Sorry my poor English, I´m a Portuguese guy ( Euro2004 RuleZZZ ;) )
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

Please... Is URGENT! :roll: :roll: :roll:
sublimenal
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 6:46 am
Contact:

Post by sublimenal »

sorry i havent replied becuase i havent a clue what the problem is. weird that it hangs up when a ie user trys to download.

offsubject: are u using the pafiledb script or the enhanced mod for phpbb?
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

sublimenal wrote: sorry i havent replied becuase i havent a clue what the problem is. weird that it hangs up when a ie user trys to download.

offsubject: are u using the pafiledb script or the enhanced mod for phpbb?


I´m using this mod... I change only the layout :wink:
black97
Registered User
Posts: 62
Joined: Fri Apr 26, 2002 9:23 am

re

Post by black97 »

I am getting this error when i click on OK in the download configuration in admin panel

Code: Select all

Failed to update pafiledb configuration for auth_search

DEBUG MODE

SQL Error : 1062 Duplicate entry 'auth_search' for key 1

INSERT INTO phpbb_pa_config (config_name, config_value) VALUES ('auth_search', '0')

Line : 39
File : /home/.sites/56/site60/web/pafiledb/includes/functions.php
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

Please :roll:
User avatar
MatrixForum
Registered User
Posts: 37
Joined: Thu Jul 24, 2003 12:59 am
Location: Italy - Rome
Contact:

Post by MatrixForum »

Hi...
When I click on maintenance (in panel admin) this appears me:
Image
Image
MBMF³
Image
User avatar
MatrixForum
Registered User
Posts: 37
Joined: Thu Jul 24, 2003 12:59 am
Location: Italy - Rome
Contact:

Post by MatrixForum »

News? :oops:
MBMF³
Image
Locked

Return to “[2.0.x] MODs in Development”