PDA

View Full Version : YouTube Gallery -Non Donator Edition-


Bloodrun
05-29-2009, 06:43 PM
This is the non donation release of the YouTube Gallery.

Of course those whom are donators will have much more Options for this modification.

Thankfully though, this modification is very simple to upload, just upload the files to the directory where you adopts script is held, and import the sql into your adopts database.

YouTube Gallery Includes:

YouTube Gallery Main page that lists all the videos.
An upload feature, a member can only upload one video a day.
The watching page, lists shows the video, the name your user inputed for it, the number of views, and a description.


Will include(For donators):

Members receive points depending on the number of views.
You can restrict certain usergroups from uploading, and viewing videos.
A 'Favorites' feature, that will show up in your profile.


Preview:
http://i39.tinypic.com/f58vtk.jpg
http://i44.tinypic.com/op4ton.jpg
http://i42.tinypic.com/24d0ako.jpg

SJC
05-29-2009, 06:53 PM
Another wonderful script!

Bloodrun
05-29-2009, 06:58 PM
Another wonderful script!


Lol thanks =D

SJC
05-29-2009, 07:01 PM
Getting an error...
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/a7685593/public_html/vupload.php on line 88
When I upload a video. And it also says thst I already uploaded a video when I didn't.

Bloodrun
05-29-2009, 07:15 PM
Getting an error...
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/a7685593/public_html/vupload.php on line 88
When I upload a video. And it also says thst I already uploaded a video when I didn't.


The second thing I figured would happen, the first...

The first, I hate this type of warning, because the error is so general it could mean anything.
Ill fix the second thing, in the mean time, find the line, and place this right under the '$result'

die('Invalid query: ' . mysql_error());

and tell me what it spits out.

SJC
05-29-2009, 07:21 PM
Okay, it says:
Invalid query: Unknown column 'username' in 'where clause'

Bloodrun
05-29-2009, 07:39 PM
Okay, it says:
Invalid query: Unknown column 'username' in 'where clause'


Wow, that explains everything, lol. Hold on fixing things right now.

Okay, wow, I thought for sure that would fix the problem but it won't.

Okay, well your error will be gone now, but the limitation where members can only upload one video a day wont work.

Please download the new folder to upload, as it contains the new files.

SJC
05-29-2009, 07:52 PM
Okay, it uploaded the video, but there was this error on the top of the page:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/a7685593/public_html/vupload.php on line 90

Bloodrun
05-29-2009, 07:53 PM
Okay, it uploaded the video, but there was this error on the top of the page:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/a7685593/public_html/vupload.php on line 90


Please add this:
die('Invalid query: ' . mysql_error());

after the $result and tell me what it says.

SJC
05-29-2009, 07:57 PM
Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from='Steve' AND date='2009-05-29'' at line 1

Bloodrun
05-29-2009, 08:00 PM
Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from='Steve' AND date='2009-05-29'' at line 1


Fixed >.<

You can redownload now =/

SJC
05-29-2009, 08:06 PM
Okay, thanks :)

Bloodrun
05-29-2009, 08:08 PM
Okay, thanks :)


Lol your welcome, sorry I couldn't get the other feature to work =/

SJC
05-29-2009, 08:13 PM
Thats alright :) May I ask? What new mod are you going to make next?

Bloodrun
05-29-2009, 08:16 PM
Thats alright :) May I ask? What new mod are you going to make next?


Well the Donator YouTube Gallery.

Then Ill be working on my Shop, but that one probably wont come out for another month probably since I start my next college semester on the 5th.

SJC
05-29-2009, 08:17 PM
College, wow! I'm still in Middle School. And good luck with those mods :)

Bloodrun
05-29-2009, 08:20 PM
College, wow! I'm still in Middle School. And good luck with those mods :)


Lol hahaa.. yeah thanks.