Uridium Posted March 1, 2010 Posted March 1, 2010 As Promised ive been busy updating the Media script this one is now more User friendly Staff and Users can add their favourite Videos or music or radio stations from a Vast Majority of media Sites. the newly improved script Lets users Vote on a users choice of media wether its good or bad. Users and staff can edit, delete and add new media. But Staff have the abililty to Delete media they feel is unappropriate..... SCREENIES EDITING ADDING [ UPDATE ] Ive decided to remove staff ability to add Videos as it seemed pointless. Now also includes Ability to add flash Games..... Quote
Djkanna Posted March 1, 2010 Posted March 1, 2010 Looks good bud, well done. On a side note: I dreamed a dream in time gone by Hehe Quote
Uridium Posted March 1, 2010 Author Posted March 1, 2010 ...UPDATE... Users when adding Videos have to be approved by staff before being aired. Added Videos are set as Pending until Staff are happy that it causes no discomfort to other users... Whilst a Video is in Pending Mode.. Ability to ADD, EDIT and DELETE are frozen...... Quote
CJ - Twitch Posted March 1, 2010 Posted March 1, 2010 Looks great! But I don't see the point in it. Anyway! :thumbup: Quote
Uridium Posted March 2, 2010 Author Posted March 2, 2010 Looks great! But I don't see the point in it. Anyway! :thumbup: I Agree i dont see the point in it either.. But another coder may see something completely different and it may help to make an entirely new mod :) So its not about what i post its about what potential others can see from it :) Quote
Uridium Posted March 3, 2010 Author Posted March 3, 2010 Get the silly bits out of the way First..... Put this in header.php inside your CSS You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up preferences.php Add these Cases and links.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and the Links You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Same File add the functions.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now for the SQLS [mysql]CREATE TABLE IF NOT EXISTS `user_videos` ( `videoID` int(11) NOT NULL auto_increment, `userid` int(11) NOT NULL, `artist` varchar(255) NOT NULL default '', `tracktitle` varchar(255) NOT NULL default '', `videoalphabet` varchar(255) NOT NULL default 'A', `playerswflink` varchar(255) NOT NULL default '', `allowaccess` varchar(255) NOT NULL default 'always', `autostart` varchar(255) NOT NULL default 'true', `width` int(11) NOT NULL default '350', `height` int(11) NOT NULL default '400', `source` varchar(255) NOT NULL, `views` int(11) NOT NULL default '0', `pending` tinyint(2) NOT NULL default '0', PRIMARY KEY (`videoID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/mysql] Also add these 2 SQLS to Users [mysql]ALTER users ADD preview int(2) NOT NULL default '0'; ALTER users ADD pending tinyint(2) NOT NULL default '0';[/mysql] Open up global_func.php and add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SECOND PART TO FOLLOW. Quote
Uridium Posted March 3, 2010 Author Posted March 3, 2010 PART 2 call this file usercreatedvideos.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now call this file videos.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. PART 3 BELOW Quote
Uridium Posted March 3, 2010 Author Posted March 3, 2010 PART 3 call this file searchvideo.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And finally Call this file playvideo.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Im still working on the staff PENDING Section but that shouldnt take too long to do. Quote
Zero-Affect Posted March 3, 2010 Posted March 3, 2010 Good job Illusions but i noticed you didn't filter your submit of a video? Drop downs would be a good solution ie (youtube video, google video) so then they specify the normal link say if the drop down is youtube then the beginning (not editable) link would be something like http://www.youtube.com/watch?v= and give them a input box which only allows alpha+numeric chars... quite simple if you do it right (maybe a length restriction of 20 on the input) google and others will be different obviously. Quote
Uridium Posted May 28, 2010 Author Posted May 28, 2010 Update to this mod.. 1 = Recoded so users Cant type in full URL they only add the Video ID... 2 = All Videos that users add are set to PENDING mode for Staff to view before releasing as Public... 3 = Visual Update looks better... 4 = Now supports Media from most well used Sites ( And can be edited to aquire more ) FOOTNOTE I havent updated the script on the topic as yet will probably create a new one so as to not confuse people Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.