php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#224853 - 02/26/04 07:52 PM Re: File Download Page v1.0 [Re: Kelly]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.

   Re: File Download Page v1.0 to Del.icio.us Add to del.icio.us
  Digg Re: File Download Page v1.0 Digg it
I tried to install it on a 6.3.2 board not using the iip. and it was harder than I thought. I never did get it right. I deleted it all and ill try again later.
_________________________
DrChaos
LeetGamers

Top
#224854 - 03/01/04 01:05 AM Re: File Download Page v1.0 [Re: Duck]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
getting errors myself<br /><br />SQL ERROR: Mon, Mar 01 2004 01:59:41 -0500 Unable to do_query: SELECT DL_CatOrder FROM w3t_Dlcat ORDER BY DL_CatOrder ASC <br />Unknown column 'DL_CatOrder' in 'field list'<br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /....../ubbthreads/mysql.inc.php on line 160<br />SQL ERROR: Mon, Mar 01 2004 01:59:41 -0500 Unable to do_query: SELECT DL_CategoryName,DL_CatOrder FROM w3t_Dlcat ORDER BY DL_CatOrder ASC <br />Unknown column 'DL_CatOrder' in 'field list'<br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /............/ubbthreads/mysql.inc.php on line 160

Top
#224855 - 03/01/04 04:20 PM help with mysql error? [Re: Kelly]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
sql idiot here but it looks like <br /> <br />DL_CatOrder isn't in the w3t_Dlcat <br /> <br />I browsed the database and don't see that hiding in there. Is that right?


Edited by Smilesforu (03/01/04 04:21 PM)

Top
#224856 - 03/01/04 04:55 PM Re: help with mysql error? [Re: Kelly]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
That's what it looks like to me. If you add that field it should get rid of that error.<br /><br />Then you can troubleshoot the next error that pops up. <img src="http://www.ubbdev.com/forum/images/graemlins/evil.gif" alt="" />

Top
#224857 - 03/01/04 05:01 PM Re: help with mysql error? [Re: BrokenToy]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
How do I add it? I am sql stupid

Top
#224858 - 03/01/04 05:03 PM Re: help with mysql error? [Re: Kelly]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
well the first question is what the field is? is it an INT or a VARCHAR or a.. and what length and if an INT is it autoincrement.. there is alot of questions.. before you just add a field...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224859 - 03/01/04 05:19 PM Re: help with mysql error? [Re: 234234]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
its for this mod beyond that I am clueless

Top
#224860 - 03/01/04 05:21 PM Re: help with mysql error? [Re: Kelly]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
According to this command<br /><br />CREATE TABLE w3t_Dlcat ( DL_CategoryName varchar(30) NOT NULL, DL_CatOrder tinyint(3) Default '0' NOT NULL, KEY DL_CategoryName (DL_CategoryName));<br /><br />I used that command but it didn't work properly?

Top
#224861 - 03/01/04 05:37 PM Re: help with mysql error? [Re: Kelly]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay this mod is having you create two tables did the first one w3t_Downloads get created? Is it both that are giving you problems or just the second one w3t_Dlcat? BTW the notes say that creating the second table w3t_Dlcat with balk an error.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224862 - 03/02/04 03:05 AM Re: help with mysql error? [Re: 234234]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
I ran both.. page comes up but it generates errors on the page. So far the only error I get is the one I posted above

Top
#224863 - 03/02/04 07:43 AM Re: help with mysql error? [Re: Kelly]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hrmmm really need to see what the $user is throwing out.. Generic Threw an error? Hmmm ok well thats why I have IIP... do you have phpMyAdmin loaded on your box or another front-end like CPANEL or PLESK? I would have you go in and verify that it created the table..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224864 - 03/02/04 02:53 PM Re: help with mysql error? [Re: 234234]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
yup I have cpanel phpMyAdmin and IIp (but the newer version)

Top
#224865 - 03/02/04 03:10 PM Re: help with mysql error? [Re: Kelly]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ok then use phpMyAdmin and see if the w3t_Dlcat was created <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224866 - 03/02/04 04:47 PM Re: help with mysql error? [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
ok I just added this to my test board and I will have to say the instructions are wropng.. you need to sql this table not the opne in the instructions<br /><br />CREATE TABLE w3t_Dlcat (<br /> DL_CategoryName varchar(30) NOT NULL,<br /> DL_CatOrder tinyint(3) Default '0' NOT NULL,<br /> KEY DL_CategoryName (DL_CategoryName)<br />);<br /><br />secondly I would use Allen's code check<br /><br />change <br /><br /> if (!strpos($user['U_Groups'],$dlgroup)) {<br /><br />to this, in all pages:<br /><br />if (strpos($user['U_Groups'],$dlgroup) === false) {<br /><br /><br />lastly it's Beta and thus needs some work...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224867 - 03/02/04 06:11 PM Re: help with mysql error? [Re: 234234]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
okay smiles here use this zip I fixed a few things that Allen had suggested on the first page in all the files. Also included the correct tables and um oh yeah when you delete the file it does delete it from the database but not off the server but I figure thats a good thing cause you don't want willy-nilly to be able to delete things off your server with this script..I would suggest using the File Atachments download on the IIP menupal and the file attachments of threads itself but this script does do a few things they don't like allow for categories...


Attachments
109169-downloaddirectory.zip (43 downloads)

_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#224868 - 03/03/04 02:39 AM Re: help with mysql error? [Re: 234234]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Appreciate the help.. I gave it a whirl tonight and got the same errors hmm. <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#224869 - 03/03/04 04:05 AM Re: help with mysql error? [Re: Kelly]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
I deleted and am going to just use the iip and private forums.

Top
Page 2 of 2 < 1 2


Top Posters Last 30 Days
AllenAyres 20
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
0 Registered (), 35 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
Yesterday at 08:00 PM
What do you use to edit the files
by AllenAyres
Yesterday at 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
Yesterday at 07:20 PM
BeyondCompare v3.00
by AllenAyres
Yesterday at 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
Yesterday at 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Yesterday at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks