Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Addons/Mods Graveyard (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=41)
-   -   YouTube Gallery -Non Donator Edition- (http://www.mysidiaadoptables.com/forum/showthread.php?t=889)

Bloodrun 05-29-2009 06:43 PM

YouTube Gallery -Non Donator Edition-
 
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

RE: YouTube Gallery -Non Donator Edition-
 
Another wonderful script!

Bloodrun 05-29-2009 06:58 PM

RE: YouTube Gallery -Non Donator Edition-
 
Quote:

Originally Posted by SJC
Another wonderful script!

Lol thanks =D

SJC 05-29-2009 07:01 PM

RE: YouTube Gallery -Non Donator Edition-
 
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

RE: YouTube Gallery -Non Donator Edition-
 
Quote:

Originally Posted by SJC
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

RE: YouTube Gallery -Non Donator Edition-
 
Okay, it says:
Invalid query: Unknown column 'username' in 'where clause'

Bloodrun 05-29-2009 07:39 PM

RE: YouTube Gallery -Non Donator Edition-
 
Quote:

Originally Posted by SJC
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

RE: YouTube Gallery -Non Donator Edition-
 
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

RE: YouTube Gallery -Non Donator Edition-
 
Quote:

Originally Posted by SJC
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

RE: YouTube Gallery -Non Donator Edition-
 
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


All times are GMT -5. The time now is 07:15 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.