Welcome to Geeklog Saturday, September 21 2019 @ 11:33 am EDT

Geeklog Forums

Jinzora plugin


Theophile

Anonymous
Hey all. I've discovered a very neat media library streaming ap called Jinzora.
http://www.jinzora.com

I bring it up because it has plugins for phpNuke and a half-dozen CMS packages just like Geeklog. I bet someone who has the know-how could easily make a Jinzora block for Geeklog, maybe even just port it from the phpnuke module?

Anyway, just giving yall the heads up. Would love to see something come of it!

Theophile

Anonymous
The Jinzora CMS plugins are single php files. Here's the Jinzora plugin for phpnuke. I am a php virgin and would like to know how easy it would be to adapt this for geeklog. Please, anyone, help me understand what we're looking at here:
PHP Formatted Code
<?php if (!defined(JZ_SECURE_ACCESS)) die ('Security breach detected.');
        /**
        * - JINZORA | Web-based Media Streamer -  
        *
        * Jinzora is a Web-based media streamer, primarily desgined to stream MP3s
        * (but can be used for any media file that can stream from HTTP).
        * Jinzora can be integrated into a CMS site, run as a standalone application,
        * or integrated into any PHP website.  It is released under the GNU GPL.
        *
        * - Resources -
        * - Jinzora Author: Ross Carlson <ross@jasbone.com>
        * - Web: http://www.jinzora.org
        * - Documentation: http://www.jinzora.org/docs
        * - Support: http://www.jinzora.org/forum
        * - Downloads: http://www.jinzora.org/downloads
        * - License: GNU GPL <http://www.gnu.org/copyleft/gpl.html>
        *
        * - Contributors -
        * Please see http://www.jinzora.org/team.html
        *
        * - Code Purpose -
        * - This is the leo's lyrics service.
        *
        * @since 01.14.05
        * @author Ross Carlson <ross@jinzora.org>
        * @author Ben Dodson <ben@jinzora.org>
        */


        $jzSERVICE_INFO = array();
        $jzSERVICE_INFO['name'] = "PHP-Nuke";
        $jzSERVICE_INFO['url'] = "http://www.phpnuke.org";

        /*
        * Placeholder function
        *
        * @author Ben Dodson
        *
        **/

        function SERVICE_CMS_phpnuke() {
                return;
        }

        /*
        * Function to open the CMS
        *
        * @author Ross Carlson, Ben Dodson
        * @version 6/3/05
        * @since 6/3/05
        **/

        function SERVICE_CMSOPEN_phpnuke($authenticate_only) {
                global $this_site, $web_root, $path_to_zip,
                $root_dir, $media_dir, $audio_types, $video_types,
                $ext_graphic, $cms_user_access, $default_access,
                $cms_mode, $css, $include_path, $image_dir;


                // Now let's get the users name IF we need it
                $cookie = cookiedecode($_COOKIE['user']);
                $username = $cookie[1];
                if ($username == ""){
                        $username = "anonymous";
                }

                userAuthenticate($username);

                // Now let's see if we only wanted the user access
                if ($authenticate_only == true){ return; }

                include_once("header.php");
        }

        /*
        * Function to close the CMS
        *
        * @author Ross Carlson, Ben Dodson
        * @version 6/3/05
        * @since 6/3/05
        **/

        function SERVICE_CMSCLOSE_phpnuke() {
                CloseTable();
                include_once("footer.php");
        }

        /*
        * Function to get the CSS / set up the styling.
        *
        * @author Ross Carlson, Ben Dodson
        * @version 6/25/05
        * @since 6/25/05
        **/

        function SERVICE_CMSCSS_phpnuke() {
                global $include_path,$bgcolor1,$bgcolor2,$bgcolor3,$bgcolor4,$thename;

                echo "<style type="text/css">" .
                        ".jz_row1 { background-color:$bgcolor1; }".
                        ".jz_row2 { background-color:$bgcolor2; }".
                        ".and_head1 { background-color:$bgcolor2; }".
                        ".and_head2 { background-color:$bgcolor1; }".
                        "</style>";
                OpenTable();

                // Now let's set the style sheet for CMS stuff
                $thename = @get_theme();
                $_SESSION['cms-style'] = "themes/". $thename. "/style/style.css";
                $_SESSION['cms-theme-data'] = urlencode($bgcolor1. "|". $bgcolor2);


                // Now let's set the CSS
                $css = $include_path . "style/cms-theme/default.php";
                return $css;
        }


        /*
        * Returns the GET vars for the CMS.
        *
        * @author Ross Carlson, Ben Dodson
        * @version 6/3/05
        * @since 6/3/05
        **/

        function SERVICE_CMSGETVARS_phpnuke() {
                $a = array();
                $a['name'] = $_GET['name'];

                return $a;
        }
?>
 

Theophile

Anonymous
Big ol' bump.

This would be a very cool addition to Geeklog!

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/04
Posts: 555
Location:Champaign, Illinois
brainy
Well, I finally got off my butt and did the Jinzora2-Geeklog integration

You can get it here.

and support here.

I will make a formal announcement in a couple of days

Have fun!


Oh yeah! I have a demo setup on my testbed here.
username: jinzora
password: jinzora
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/04
Posts: 555
Location:Champaign, Illinois
excited
I fixed the final problem.

It seems you must use the same DB as your geeklog installation. But there are no issues with that.

Check it out using the link in the above post.

While you are there check out my new calendar. Also coming soon to geeklog
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

lokki

Forum User
Chatty
Registered: 19/03/05
Posts: 59
Hi
Can this software do podcasts?

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/04
Posts: 555
Location:Champaign, Illinois
The next version 3.7 has podcast capabilities, but I found it to be fairly unstable.
I have not tried a nightly build in some time, maybe I will this weekend

v3.6 certainly has RSS though.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

lokki

Forum User
Chatty
Registered: 19/03/05
Posts: 59
They say Jinzora 2.3.7 is released. So how do you find that?

Status: offline

suprsidr

Forum User
Full Member
Registered: 29/12/04
Posts: 555
Location:Champaign, Illinois
2.3.7 has been out for quite some time.
Jinzora 2.3.7 - 12.17.2005 (unstable)


And unstable it is. So I did not bother with the integration.

Hopefully when Ross gets it stable, he will include my code for geeklog.

But for now, 2.3.6 is fine, and I even fixed the podcast functionality if anyone is interested in the fix.

You can get the 2.3.6 integration on my site here.

Or try 2.3.7 as a standalone here (I would try the nightly build).

If it seems to work ok for you, I will make the necessary changes.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Ben

Anonymous
Hey all,

Just so you know, Ross and I got really busy and didn't have time to develop much for a while. But I've been back and really working to make Jinzora dead-stable. I added Geeklog support to CVS thanks (HUGE thanks) to suprsidr.

Hopefully this helps you all. I don't visit these forums, but you can find me/Ross at www.jinzora.org/forums


All times are EDT. The time is now 11:33 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content