From: <txm...@us...> - 2012-02-15 13:20:02
|
Revision: 8994 http://xoops.svn.sourceforge.net/xoops/?rev=8994&view=rev Author: txmodxoops Date: 2012-02-15 13:19:51 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Module videobyuser v1.02 Added Paths: ----------- XoopsModules/videobyuser/ XoopsModules/videobyuser/branches/ XoopsModules/videobyuser/releases/ XoopsModules/videobyuser/releases/1.02/ XoopsModules/videobyuser/releases/1.02/videosbyuser/ XoopsModules/videobyuser/releases/1.02/videosbyuser/class/ XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php XoopsModules/videobyuser/releases/1.02/videosbyuser/images/ XoopsModules/videobyuser/releases/1.02/videosbyuser/images/videosbyuser_slogo.png XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php XoopsModules/videobyuser/releases/1.02/videosbyuser/language/ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt XoopsModules/videobyuser/releases/1.02/videosbyuser/style/ XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php XoopsModules/videobyuser/trunk/ Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/class/videosbyuser.class.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,343 @@ +<?php + +/** + * videosbyuser Class. + * + * videosbyuser is a class written by txmod in PHP5 + * to act as a wrapper for Youtube's API. + * + * Methods process the response XML and return a friendly array of data + * to make development simple and intuitive. + */ + +class videosbyuser +{ +//CLASS VARIABLES + + /** + * @var string + */ + var $video_object = null; + + /** + * @var string + */ + var $user_object = null; + + /** + * @var string + */ + var $comment_object = null; + + /** + * @var int + */ + var $next_index = -1; +//CLASS CONSTRUCTOR + + /** + * Class constructor. + * @param string $video The video object name in the returned array. + * @param string $user The user object name in the returned array + * @param string $comment The comment object name in the returned array + */ + function videosbyuser($video, $user, $comment) { + $this->video_object = $video; + $this->user_object = $user; + $this->comment_object = $comment; + } +//CLASS FUNCTIONS + /** + * Returns all youtube videos that belong to the corresponding user. + */ + function getUserVideos($user,$category=null,$start_index =1,$max = 25){ + //set up the url to the feed + $feedURL = 'http://gdata.youtube.com/feeds/api/videos?author='.$user.'&start-index='.$start_index.'&max-results='.$max; + + //add category variable to feed url, if it exists + if($category != null){ $feedURL = $feedURL . '&category=' . $category; } + + //read the feed and place it in an simple_xml object + $xml = simplexml_load_file($feedURL); + + //get the next start index. + if(!empty($xml->link[4])){ + $this->next_index = (int)preg_replace('/&max-results='.$max.'/', '', preg_replace('/http:\/\/gdata.youtube.com\/feeds\/api\/videos\?author='.$user.'&start-index=/','', (string)$xml->link[4]->attributes()->href)); + } //if empty, then set $this->nex_index to -1 to let the user know they have reached the end of the list + else { + $this->next_index = -1; + } + + $video_array = array (); //holds the video objects + $i = 0; + foreach ($xml->entry as $entry) { + //id is the full url to get the video feed. the characters after the last slash is the actual video id + //so id here could be 'http://gdata.youtube.com/feeds/api/videos/2jkExrrm_sQ' with the actual video id being 2jkExrrm_sQ + $c = array(); //reset memory for temp video object + //extract youtube id from url + $c[$this->video_object]['youtube_id'] = preg_replace('/http:\/\/gdata.youtube.com\/feeds\/api\/videos\//','',(string) $entry->id); + $c[$this->video_object]['author'] = $entry->author->name; + + $video = array(); //reset variable + //magically gets new variables for each video + $video = $entry->children('http://search.yahoo.com/mrss/'); + $player = $video->group->player->attributes(); //get value for player variable + $thumbnail1 = $video->group->thumbnail[0]->attributes(); //get value for first thumbnail variable + $thumbnail2 = $video->group->thumbnail[1]->attributes(); //get value for first thumbnail variable + $thumbnail3 = $video->group->thumbnail[2]->attributes(); //get value for first thumbnail variable + $thumbnail4 = $video->group->thumbnail[3]->attributes(); //get value for first thumbnail variable + + $c[$this->video_object]['title'] = (string) $video->group->title; + $c[$this->video_object]['description'] = (string) $video->group->description; + //keywords are a number of keywords in one string separated by commas + $c[$this->video_object]['keywords'] = (string) $video->group->keywords; + //category is a single keyword + $c[$this->video_object]['category'] = (string) $video->group->category; + //url is the actual url to the videos page + $c[$this->video_object]['url'] = (string) $player['url']; + //urls to thethumbnail images + $c[$this->video_object]['thumbnail_url1'] = (string) $thumbnail1['url']; + $c[$this->video_object]['thumbnail_url2'] = (string) $thumbnail2['url']; + $c[$this->video_object]['thumbnail_url3'] = (string) $thumbnail3['url']; + $c[$this->video_object]['thumbnail_url4'] = (string) $thumbnail4['url']; + + //magically get the duration for video in seconds + $yt = $video->children('http://gdata.youtube.com/schemas/2007'); + $duration = $yt->duration->attributes(); //extract from xml + $c[$this->video_object]['duration'] = (string) $duration['seconds']; + + + $video = array(); //reset variable + //magically get the duration for video in seconds + $video = $entry->children('http://gdata.youtube.com/schemas/2007'); + $views = $video->statistics->attributes(); + + //if results were returned - removes php warning + if(!empty($video)){ + //number of times the video has been viewed + if($views['viewCount']==''){ $c[$this->video_object]['view_count'] = '0'; } + else{ $c[$this->video_object]['view_count'] = (string) $views['viewCount']; } + //number of times the video has been set as favorite + if($views['favoriteCount']==''){ $c[$this->video_object]['favorite_count'] = '0'; } + else{ $c[$this->video_object]['favorite_count'] = (string) $views['favoriteCount']; } + } else { //results were not returned + $c[$this->video_object]['view_count'] = '0'; + $c[$this->video_object]['favorite_count'] = '0'; + } + $video_array[] = $c; + $i++; + } + + //set the array to instance variable $user_videos + return $video_array; + } + + function getUserInfo($user) { + + $authorURL = 'http://gdata.youtube.com/feeds/api/users/' . $user; + + $xml = simplexml_load_file($authorURL); + $author_array = array (); + if (!empty ($xml)) { + $author = $xml->children('http://gdata.youtube.com/schemas/2007'); + //user's user name' + $author_array[$this->user_object]['username'] = (string) $author->username; + //users first name (if supplied) + $author_array[$this->user_object]['first_name'] = (string) $author->firstName; + //users last name (if supplied) + $author_array[$this->user_object]['last_name'] = (string) $author->lastName; + //users age (if supplied) + $author_array[$this->user_object]['age'] = (string) $author->age; + //users hobbies (if supplied) + $author_array[$this->user_object]['hobbies'] = (string) $author->hobbies; + //users relationship (if supplied) ie single, married, etc... + $author_array[$this->user_object]['relationship'] = (string) $author->relationship; + //users occupation + $author_array[$this->user_object]['occupation'] = (string) $author->occupation; + //favorite music + $author_array[$this->user_object]['music'] = (string) $author->music; + //favorite movies (not youtube videos) ... the rest are pretty obvious + $author_array[$this->user_object]['movies'] = (string) $author->movies; + $author_array[$this->user_object]['location'] = (string) $author->location; + $author_array[$this->user_object]['hometown'] = (string) $author->hometown; + $author_array[$this->user_object]['gender'] = (string) $author->gender; + $author_array[$this->user_object]['description'] = (string) $author->description; + } + return $author_array; + } + + function getMostViewed($start_index = 1, $max = 25) { + $feedURL = 'http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed?start-index=' . $start_index . '&max-results=' . $max; + $xml = simplexml_load_file($feedURL); + $video_array = array (); //holds the video objects + $i = 0; + foreach ($xml->entry as $entry) { + //id is the full url to get the video feed. the characters after the last slash is the actual video id + //so id here could be 'http://gdata.youtube.com/feeds/api/videos/2jkExrrm_sQ' with the actual video id being 2jkExrrm_sQ + $c = array(); //reset memory for temp video object + //extract youtube id from url + $c[$this->video_object]['youtube_id'] = preg_replace('/http:\/\/gdata.youtube.com\/feeds\/api\/videos\//','',(string) $entry->id); + $c[$this->video_object]['author'] = $entry->author->name; + + $video = array(); //reset variable + //magically gets new variables for each video + $video = $entry->children('http://search.yahoo.com/mrss/'); + $player = $video->group->player->attributes(); //get value for player variable + $thumbnail1 = $video->group->thumbnail[0]->attributes(); //get value for first thumbnail variable + $thumbnail2 = $video->group->thumbnail[1]->attributes(); //get value for first thumbnail variable + $thumbnail3 = $video->group->thumbnail[2]->attributes(); //get value for first thumbnail variable + $thumbnail4 = $video->group->thumbnail[3]->attributes(); //get value for first thumbnail variable + + $c[$this->video_object]['title'] = (string) $video->group->title; + $c[$this->video_object]['description'] = (string) $video->group->description; + //keywords are a number of keywords in one string separated by commas + $c[$this->video_object]['keywords'] = (string) $video->group->keywords; + //category is a single keyword + $c[$this->video_object]['category'] = (string) $video->group->category; + //url is the actual url to the videos page + $c[$this->video_object]['url'] = (string) $player['url']; + //urls to thethumbnail images + $c[$this->video_object]['thumbnail_url1'] = (string) $thumbnail1['url']; + $c[$this->video_object]['thumbnail_url2'] = (string) $thumbnail2['url']; + $c[$this->video_object]['thumbnail_url3'] = (string) $thumbnail3['url']; + $c[$this->video_object]['thumbnail_url4'] = (string) $thumbnail4['url']; + + //magically get the duration for video in seconds + $yt = $video->children('http://gdata.youtube.com/schemas/2007'); + $duration = $yt->duration->attributes(); //extract from xml + $c[$this->video_object]['duration'] = (string) $duration['seconds']; + + + $video = array(); //reset variable + //magically get the duration for video in seconds + $video = $entry->children('http://gdata.youtube.com/schemas/2007'); + $views = $video->statistics->attributes(); + + //if results were returned - removes php warning + if(!empty($video)){ + //number of times the video has been viewed + if($views['viewCount']==''){ $c[$this->video_object]['view_count'] = '0'; } + else{ $c[$this->video_object]['view_count'] = (string) $views['viewCount']; } + //number of times the video has been set as favorite + if($views['favoriteCount']==''){ $c[$this->video_object]['favorite_count'] = '0'; } + else{ $c[$this->video_object]['favorite_count'] = (string) $views['favoriteCount']; } + } else { //results were not returned + $c[$this->video_object]['view_count'] = '0'; + $c[$this->video_object]['favorite_count'] = '0'; + } + $video_array[] = $c; + $i++; + } + + //set the array to instance variable $user_videos + return $video_array; + } + /** + * Returns the video comments of a youtube video.<br /> + */ + + function getVideoComments($id,$start_index=1,$max=25) { + $commentURL = 'http://gdata.youtube.com/feeds/api/videos/' . $id. '/comments?start-index='.$start_index.'&max-results='.$max; + $xml = simplexml_load_file($commentURL); + + $comment_array = array(); + $i=0; + foreach($xml->entry as $entry) + { + $comment_array[$i][$this->comment_object]['youtube_id'] = $id; + //get the author's name + $comment_array[$i][$this->comment_object]['author'] = (string)$entry->author->name; + //get title of the comment + $comment_array[$i][$this->comment_object]['title'] = (string)$entry->title; + //get comment content + $comment_array[$i][$this->comment_object]['content'] = (string)$entry->content; + //get the last time the comment was updated + $comment_array[$i][$this->comment_object]['updated'] = $entry->updated; + //get the time the comment was published + $comment_array[$i][$this->comment_object]['published'] = $entry->published; + $i++; + } + + return $comment_array; + } + /** + * Returns the information of a youtube video. + */ + + function getVideoInfo($id) { + //set up the feed url + $feedURL = 'http://gdata.youtube.com/feeds/api/videos/' . $id; + //read the feed and place it in an simple_xml object + $xml = simplexml_load_file($feedURL); + //create an empty array to deal with foreach loops incase nothing is returned from the feed query + $video_array = array (); + + //if the query returned a value and the xml object is not empty + if (!empty ($xml)) { + + //store the youtube_id in the object. + $video_array[$this->video_object]['youtube_id'] = $id; + //get the authors name + $video_array[$this->video_object]['author'] = $xml->author->name; + $video = $xml->children('http://search.yahoo.com/mrss/'); + + $player = $video->group->player->attributes(); + $thumbnail1 = $video->group->thumbnail[0]->attributes(); //get value for first thumbnail variable + $thumbnail2 = $video->group->thumbnail[1]->attributes(); //get value for first thumbnail variable + $thumbnail3 = $video->group->thumbnail[2]->attributes(); //get value for first thumbnail variable + $thumbnail4 = $video->group->thumbnail[3]->attributes(); //get value for first thumbnail variable + //get the url to the thumbnails for the video + $video_array[$this->video_object]['thumbnail_url1'] = (string) $thumbnail1['url']; + $video_array[$this->video_object]['thumbnail_url2'] = (string) $thumbnail2['url']; + $video_array[$this->video_object]['thumbnail_url3'] = (string) $thumbnail3['url']; + $video_array[$this->video_object]['thumbnail_url4'] = (string) $thumbnail4['url']; + + //get the video's title + $video_array[$this->video_object]['title'] = (string) $video->group->title; + //get the video's description + $video_array[$this->video_object]['description'] = (string) $video->group->description; + //get the video's category + $video_array[$this->video_object]['category'] = (string)$video->group->category; + //get the video's tags/keywords + $video_array[$this->video_object]['keywords'] = (string) $video->group->keywords; + //get the url to the video + $video_array[$this->video_object]['url'] = (string) $player['url']; + + + $yt = $video->children('http://gdata.youtube.com/schemas/2007'); + $length = $yt->duration->attributes(); + //get the video length in seconds + $video_array[$this->video_object]['length'] = (string) $length['seconds']; + $video = $xml->children('http://gdata.youtube.com/schemas/2007'); + //get the number of times the video has been viewed and marked as favorite + $views = $video->statistics->attributes(); + + + //if results were returned - removes php warning + if(!empty($video)){ + //number of times the video has been viewed + if($views['viewCount']==''){ $video_array[$this->video_object]['view_count'] = '0'; } + else{ $video_array[$this->video_object]['view_count'] = (string) $views['viewCount']; } + //number of times the video has been set as favorite + if($views['favoriteCount']==''){ $video_array[$this->video_object]['favorite_count'] = '0'; } + else{ $video_array[$this->video_object]['favorite_count'] = (string) $views['favoriteCount']; } + } else { //results were not returned + $video_array[$this->video_object]['view_count'] = '0'; + $video_array[$this->video_object]['favorite_count'] = '0'; + } + + $video = $xml->children('http://schemas.google.com/g/2005'); + + //check to see if there are any comments/any information about the comments + //if there is get the feedlink and number of comments + if ($video->comments->feedLink) { + $comments = $video->comments->feedLink->attributes(); + //get the number of comments for the video + $video_array[$this->video_object]['comments_count'] = (string) $comments['countHint']; + } + } + //return the current video array + return $video_array; + } +} +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/header.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,8 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +include '../../mainfile.php'; +$myts =& MyTextSanitizer::getInstance(); +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/images/videosbyuser_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/videobyuser/releases/1.02/videosbyuser/images/videosbyuser_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/index.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,76 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +// inclusione intestazione +include('header.php'); +global $xoTheme; + +// inclusione dell'intestazione della pagina (header file) +include(XOOPS_ROOT_PATH.'/header.php'); + +$xoTheme->addStylesheet("modules/videosbyuser/style/videosbyuser.css"); + +echo '<span style="text-align: center;"><b>'._MI_VBU_NAME.'</b></span><br /><br />'; + +$user = $myts->htmlspecialchars(trim($xoopsModuleConfig['custom_keyword'])); +//get or create youtube username +if( isset($_GET['user']) && trim($_GET['user'])!="") +{ + $youtube_user = $_GET['user']; + $youtube_user = urlencode($youtube_user); +} +else {$youtube_user = $user;} + +//create php5tube object and get videos +include_once("class/videosbyuser.class.php"); +$videosbyuser = new videosbyuser('Video','User','Comment'); +$videos = $videosbyuser->getUserVideos($youtube_user); + +?> + +<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"><div><?php echo _MI_VBU_SEARCHUSER; ?>:<input type="text" name="user" value="<?php echo $youtube_user; ?>" /> + <input type="submit" name="submit" value="<?php echo _MI_VBU_SEARCH; ?>" /></div><div> </div></form> + +<table cellpadding="2" cellspacing="2" border="1"> + +<?php foreach($videos as $video) { ?> +<tr> + <td><table cellpadding="2" cellspacing="2" border="0"> + <tr> + <td><div style="padding:2px;"><img src="<?php echo $video['Video']['thumbnail_url1']; ?>"></div></td> + <td><div style="padding:2px;"><img src="<?php echo $video['Video']['thumbnail_url2']; ?>"></div></td> + <td><div style="padding:2px;"><img src="<?php echo $video['Video']['thumbnail_url3']; ?>"></div></td> + </tr> + </table> + </td></tr> +<tr> +<td><table cellpadding="2" cellspacing="2" border="1"> + <tr> + <td> + <div style="padding:10px;"> + <a href="http://www.youtube.com/watch?v=<?php echo $video['Video']['youtube_id']; ?>" target="_blank"> + <img src="<?php echo $video['Video']['thumbnail_url4']; ?>" border="0" alt="<?php echo $video['Video']['title']; ?>" /> + </a> + </div> +</td> +<td> + <div style="font-size:10pt;"><b>Title</b> = <?php echo $video['Video']['title']; ?></div> + <div><b>Category</b> = <?php echo $video['Video']['category']; ?> times</div> + <div><b>Tags</b> = <?php echo $video['Video']['keywords']; ?> times</div> + <div><b>Description</b> = <?php echo $video['Video']['description']; ?></div> + <div><b>Views</b> = <?php echo $video['Video']['view_count']; ?> times</div> + <div><b>Marked as favorite</b> = <?php echo $video['Video']['favorite_count']; ?> times</div> + </td></tr> + </table> + </td></tr> +<?php } ?> +<tr><td style="text-align: right;" width="100%">Powered by: <a href="http://mcdirectory.netsons.org/txmod/" target="_blank">TXMod</a></td> +</table> + +<?php +// inclusione del footer +include(XOOPS_ROOT_PATH.'/footer.php'); + +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/english/modinfo.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,10 @@ +<?php + +define("_MI_VBU_NAME", "Videos by User"); +define("_MI_VBU_DESC", "Searching for videos based on the user's name"); +define("_MI_VBU_CUSTOMKEYWORD", "Keyword"); +define("_MI_VBU_CUSTOMKEYWORDDSC", "Keyword default"); + +define("_MI_VBU_SEARCHUSER", "Search User"); +define("_MI_VBU_SEARCH", "Search"); +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/language/italian/modinfo.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,11 @@ +<?php + +define("_MI_VBU_NAME", "Videos by User"); +define("_MI_VBU_DESC", "Ricerca dei video in base al nome dell'utente"); +define("_MI_VBU_CUSTOMKEYWORD", "Parola chiave"); +define("_MI_VBU_CUSTOMKEYWORDDSC", "Parola chiave di default"); + +define("_MI_VBU_SEARCHUSER", "Cerca Utente"); +define("_MI_VBU_SEARCH", "Cerca"); + +?> \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/readme.txt 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,3 @@ +Se vuoi sapere quanti o quali video ha inserito un utente su YouTube, questo modulo lo pu\xF2 fare. Dai dati che si ricevono, si visualizza il titolo, la categoria, la descrizione, le parole chiavi, quante volte \xE8 stato visualizzato e quanti l'hanno inserito tra i loro preferiti + +If you want to know how many or which included a video on YouTube user, this form can do. The data that we receive, you see the title, category, description, keywords, how many times has been viewed and how many have included among their favorites \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/style/videosbyuser.css 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,14 @@ +/* base modules by timgno + http://mcdirectory.netsons.org/txmod/ + */ +html {} +body{} + +div.base{ + color: #F90000; + height: 100px; + text-align: center; + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 14px; + font-weight: bold; +} \ No newline at end of file Added: XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php =================================================================== --- XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php (rev 0) +++ XoopsModules/videobyuser/releases/1.02/videosbyuser/xoops_version.php 2012-02-15 13:19:51 UTC (rev 8994) @@ -0,0 +1,31 @@ +<?php +// +// Author: timgno +// WebSite: http://mcdirectory.netsons.org/txmod/ +// +$modversion['name'] = _MI_VBU_NAME; +$modversion['version'] = 1.02; +$modversion['description'] = _MI_VBU_DESC; +$modversion['author'] = 'timgno - http://mcdirectory.netsons.org/txmod'; +$modversion['credits'] = 'http://mcdirectory.netsons.org/txmod/'; +$modversion['help'] = 'help.php'; +$modversion['license'] = 'GPL see LICENSE'; +$modversion['official'] = 0; +$modversion['image'] = 'images/videosbyuser_slogo.png'; +$modversion['dirname'] = 'videosbyuser'; +// Admin +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = ""; +$modversion['adminmenu'] = ""; +// Main +$modversion['hasMain'] = 1; + +// Config +$i = 1; +$modversion['config'][$i]['name'] = 'custom_keyword'; +$modversion['config'][$i]['title'] = '_MI_VBU_CUSTOMKEYWORD'; +$modversion['config'][$i]['description'] = '_MI_VBU_CUSTOMKEYWORDDSC'; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'text'; +$modversion['config'][$i]['default'] = 'Rai'; +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |