[Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

Results 1 to 14 of 14
  1. #1
    Proficient Member Leon Retros is offline
    MemberRank
    Nov 2012 Join Date
    174Posts

    [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Hey again ragezone x) I think you have seen a lot of me theese past few days / weeks but i wasn't sure about releasing this plugin att first beacuse i wanted my retro to be unique but i was thinking either i release it or someone is gonna steal it and rip it off taking all the cred so i am releasing it for all of you guys. In this plugin you will get acess to:

    Housekeeping page/Script for this

    A php code that displays the movie(s) at random with order by rand() so they become random

    And finally you will get the sqls for it

    Note: The Sqls are for all databases but the plugin is ajusted to revcms.

    Screen:

    Sqls:
    PHP Code:
    CREATE TABLE IF NOT EXISTS `movie` (
      `
    idint(11unsigned NOT NULL AUTO_INCREMENT,
      `
    linkvarchar(1000NOT NULL,
      
    PRIMARY KEY (`id`)

    Php code (put the code where you want it to display):
    PHP Code:
    <?php
                                $query 
    mysql_query("SELECT * from movie ORDER BY RAND() DESC LIMIT 1");
                                while(
    $movie mysql_fetch_array($query)) {
                                    
    $id $movie['id'];
                                    
    $link $movie['link'];
                                
                                    
                                    
                                    
                            
    ?>
                                
                                
                
            <iframe src="<?php echo $movie['link']; ?>" width="550px" height="200px;" frameborder="0"></iframe>
                            <?php ?>
    And finally the plugin for the housekeeping(create a new page and add this into it , adjust it to your housekeeping) :
    PHP Code:
            <?php                        
                
    if (isset($_POST['movie_submit'])) {
                    if (!empty(
    $_POST['movie_code'])) {
                        if (
    strlen($_POST['movie_code']) > 3) {
                            if (
    mysql_num_rows(mysql_query("SELECT * FROM `movie` WHERE `link` = '".filter($_POST['movie_code'])."'")) == 0) {
                                
    mysql_query("INSERT INTO `movie` (`link`) VALUES ('".filter($_POST['movie_code'])."')") or die(mysql_error());
                        
                                echo 
    '<div class="alert alert-success">You have added this movie without any problems!</div>';
                            }
                            else
                                echo 
    '<div class="alert alert-danger">This movie already exits!</div>';
                        } else {
                            echo 
    '<div class="alert alert-danger">The link must be more than 3 letters / numbers!</div>';
                        }
                    } else {
                        echo 
    '<div class="alert alert-danger">Please add a movie!</div>';
                    }
                }                    
                
    ?>
                <center>
                The link of the movie :
                <br />
                        <form method="POST" action="#" class="form-horizontal" role="form">
                            <div class="form-group">
                                    <textarea name="movie_code" class="form-control" placeholder="Länk">
                                </textarea></div>
                                <br />
                            <div class="form-group">
                                    <input type="submit" name="movie_submit" value="Add Movie" class="btn btn-default">
                            </div>
                        </form></center>
                        <?php            
                        $getMovie 
    mysql_query("SELECT * FROM `movie` ORDER BY `id` DESC");
                        if (
    mysql_num_rows($getMovie) > 0) { ?>
                            <table class="table table-striped">
                            <thead>
                            <tr>
                                <th nowrap="nowrap">Id</th>
                                <th nowrap="nowrap">Movie Link</th>
                                
                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            
    while ($movieData mysql_fetch_array($getMovie)) {
                                echo 
    '
                                <tr>
                                    <td>'
    .$movieData['id'].'</td>
                                    <td>'
    .$movieData['link'].'</td>                                    
                                    
                                </tr>'
    ;
                            }
                            
    ?>
                            </tbody>
                            </table>
                        <?php } else {
                            echo 
    '<br/><br/><div class="alert alert-warning">They\'re currently isn\'t any movies.</div>';
                        }
                        
    ?>
    And since some people maybe don't understand how this works its easy , you need to have a movie url
    ex the movie link to divergent(http://vidor.me/video_ext.php?oid=21...69206&amp;hd=1)
    You can easily find the links by inspecting elements through google chrome . Movies can be found at streaming websites as swefilmer.com and movie4k.to

    Hope you enjoy it & thanks for me


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Wouldn't recommend putting this on your website if the video has auto buffer. It might slow down your website for people with a slow internet connection.

  3. #3
    ignition sequence start Unphased is offline
    MemberRank
    Jul 2012 Join Date
    DeniedLocation
    1,860Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Why release this in the HH section when it doesn't even have anything to do with Habbo?

  4. #4
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Quote Originally Posted by Unphased View Post
    Why release this in the HH section when it doesn't even have anything to do with Habbo?
    It's made for RevCMS, and that is a Habbo related CMS.

  5. #5
    ignition sequence start Unphased is offline
    MemberRank
    Jul 2012 Join Date
    DeniedLocation
    1,860Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Quote Originally Posted by Mozilla2 View Post
    It's made for RevCMS, and that is a Habbo related CMS.
    Yeah, because apparently people go on retros to watch movies now a days...

    No.

  6. #6
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Quote Originally Posted by Unphased View Post
    Yeah, because apparently people go on retros to watch movies now a days...

    No.
    What about a weekly news report, or something? Or a weekly interview? Or other event things that are filmed..

  7. #7
    G'nome sayin' Exonize is offline
    MemberRank
    May 2011 Join Date
    Czech RepublicLocation
    517Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    I don't see the point with using sql for this, use HTML and update it weekly. Anyone could have made this.

    And why steer users away with movies, don't you want them to play on your retro? just post the trailer from YouTube.

  8. #8
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Pointless release, who the fuck goes on retros to watch films. Just because it's made for a Habbo CMS doesn't mean it's related to Habbo.

  9. #9
    Proficient Member Leon Retros is offline
    MemberRank
    Nov 2012 Join Date
    174Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Guys i an sorry if you didn't like the release but i tried My best with something new , the plugin is for thoose WHO wants too look st a Movie the same time as Platini retros , and honestly i sid My best and if you dont like please dont say it. in à Lena say just say it. simpel

  10. #10
    Proficient Member uhHab is offline
    MemberRank
    Nov 2013 Join Date
    164Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Although, none of you are looking outside the box, this is Habbo related, and can be used for your retros. It can be used for competitions or events, to help boost population of your hotel. It can be updated weekly to maybe introduce a new feature, or furni range into the hotel, or maybe users of your retro community come together to build a hotel video to entise new users to play and show new users what's available on your hotels.

    Some people, i for one enjoy listening to music while playing retros, so this is a great feature.

  11. #11
    Eye Eye Capt'n Spheral is offline
    MemberRank
    May 2010 Join Date
    TumptonshireLocation
    2,488Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Its unique, i can tell you that.
    Dont autoplay or autobuffer because it will slow your website down.
    And dont stream rips of movies, because well, you can get in more trouble than just using Sulakes IP.
    Having a section that allows you to showcase a weekly video or something could be good, such as an ad for your hotel or a user made video.

  12. #12
    Member Abidas is offline
    MemberRank
    Mar 2014 Join Date
    DenmarkLocation
    51Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    It's great to see that people take time, and share their work with the community. Thank you! :)

  13. #13
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,078Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    Now instead of we having a C&D by running a Retro, we will also get procecuted for piracy... By Hollywood.
    Anyways, it seems nice for some editing and using for Youtube thang, and showing some trailers, or best room of the week, or idk...
    Each week the mods do a new video, and shitz like that, which would be a better idea than movies...

    Thanks, I guess...

  14. #14
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: [Plug-in/Snippet] Random movies (Movie of the week) [RevCms]

    That PHP is sooooo ugly even my grandma looks better in the morning.



Advertisement