Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.217
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - File repository 2.5 - upload & approval of file bugs
File repository 2.5 - upload & approval of file bugs

4 Replies / 1463 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


razvan_vlad
Reputation: 0.3 Add RepSubtract Rep
Local time: 7:38 AM

blank.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Jul 16, 2008
Last Visit: 20 Aug 2008
Posts: 2
Points: 100 

Post File repository 2.5 - upload & approval of file bugs Posted: Fri Aug 15, 2008 4:15 am

hi guys,
i have ravennuke and installed filerepository 2.5.
1) whenever i try uploading a new file, i get an "SQL Error: There was a problem uploading the file."
I am not sure if i solved this right: inside index.php
I changed the code
Code:
$file_insert = "INSERT INTO ".$prefix."_fr_files (parent_id, user_id, user_ip, upload_date, title, custom1, custom2, custom3, comments, filename, file_size, approved) VALUES ($parent_id, $user_id, '$user_ip', '$upload_date', '$title', '$custom1', '$custom2', '$custom3', '$comments', '$filename', $filename_size, $approved)";

to
Code:
$file_insert = "INSERT INTO ".$prefix."_fr_files (parent_id, user_id, user_ip, upload_date, title, custom1, custom2, custom3, comments, filename, file_size, approved) VALUES ('$parent_id', '$user_id', '$user_ip', '$upload_date', '$title', '$custom1', '$custom2', '$custom3', '$comments', '$filename', '$filename_size', $approved)";

Now I am able to upload files just if i click on the File Repository module under the Modules section on the left column, but not if i try uploading files under the administration menu.

2) files are uploaded as explained above, but when i get to approve the files i see no file there. Howerver the title link says
Code:
File Awaiting Approval (5)

the content is
Code:

No Files!
There are no files currently awaiting administrative approval.

Inside the admin/index.php there's some code for this:
Code:

case "approve":
       //GET FILES AWAITING APPROVAL
       $faa_sql = $db->sql_query("SELECT
                           a.username AS submitter,
                           b.name AS category,
                           c.app_name AS application,
                           d.id,
                           d.title,
                           d.comments,
                           d.filename
                        FROM
                           ".$prefix."_users a,
                           ".$prefix."_fr_categories b,
                           ".$prefix."_fr_apps c,
                           ".$prefix."_fr_files d
                        WHERE
                           a.user_id = d.user_id AND
                           b.id = c.parent_id AND
                           c.id = d.parent_id AND
                           approved= ".$file_id);
       $faa_numrows = $db->sql_numrows($faa_sql);
     print "faa_numrows = '$faa_numrows'";
       if($faa_numrows == 0){

i added the print function but this always returns 0.
any ideas?
thanks a lot.
 

 
View user's profileSend private message Reply with quote

razvan_vlad
Reputation: 0.3 Add RepSubtract Rep
Local time: 7:38 AM

blank.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Jul 16, 2008
Last Visit: 20 Aug 2008
Posts: 2
Points: 100 

Post Re: File repository 2.5 - upload & approval of file bugs Posted: Sun Aug 17, 2008 5:35 pm

anybody? Confused
 

 
View user's profileSend private message Reply with quote

mjhufford
Reputation: 474.9 Add RepSubtract Rep
Local time: 10:38 PM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Dec 13, 2006
Last Visit: 26 Dec 2008
Posts: 3
Points: 274 

Post Re: File repository 2.5 - upload & approval of file bugs Posted: Mon Dec 22, 2008 4:30 pm

razvan_vlad wrote:
anybody? Confused


Email me - mj@guitarvoice.com.

I wrote the module a few years ago and have since released a newer version. I'd be curious to get some feedback from you and get it working well.
 

 
View user's profileSend private message Reply with quote


mjhufford
Reputation: 474.9 Add RepSubtract Rep
Local time: 10:38 PM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Dec 13, 2006
Last Visit: 26 Dec 2008
Posts: 3
Points: 274 

Post Re: File repository 2.5 - upload & approval of file bugs Posted: Mon Dec 22, 2008 4:32 pm

razvan_vlad wrote:
anybody? Confused


Email me - mj@guitarvoice.com.

I wrote the module a few years ago and have since released a newer version. I'd be curious to get some feedback from you and get it working well.
 

 
View user's profileSend private message Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 7:38 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: File repository 2.5 - upload & approval of file bugs Posted: Tue Dec 23, 2008 4:36 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

mjhufford wrote:
razvan_vlad wrote:
anybody? Confused


Email me - mj@guitarvoice.com.

I wrote the module a few years ago and have since released a newer version. I'd be curious to get some feedback from you and get it working well.


Wow, there is a name I have not seen in awhile. I hope all is well.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
4 Replies / 1463 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum