vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - 8WayRun.Com - Media Library (https://vborg.vbsupport.ru/showthread.php?t=240677)

Jaxel 05-06-2010 12:02 AM

================================================== =========
Version 4.0.6 FAVORITES AND WIDGETS
================================================== =========
  • NEW FEATURE: Users can now give hearts to media and mark them as favorites.
    Any usergroup with permissions to rate, will have permission to mark favorites.
  • NEW FEATURE: User Profile Tab for most recent media.
    This uses the new "tiny" bit; which is selectable as the main bit in admincp.
  • NEW FEATURE: Widget support for both the ForumHome Sidebar and the vbCMS.
    This has been updated since the previous versions, so please update your codes.
    Sidebar Block:
    Code:

    global $vbulletin;
    require_once(DIR.'/media/media_functions_hrefs.php');

    $medias = $vbulletin->db->query_read("
            SELECT media.*, media_service.*
            FROM " . TABLE_PREFIX . "media AS media
            LEFT JOIN " . TABLE_PREFIX . "media_service AS media_service ON(media_service.serviceID = media.serviceID)
            ORDER BY media.dateline DESC
            LIMIT 3
    ");

    while ($media = $vbulletin->db->fetch_array($medias))
    {
            if ($media['length'] == 0)
            {
                    $media['length'] = "???";
            }
            else
            {
                    $duration = $media['length'];
                    $minutes = floor($duration / 60);
                    $seconds = $duration % 60;
                    $seconds = str_pad($seconds, 2, "0", STR_PAD_LEFT);
                    $media['length'] = "$minutes:$seconds";
            }

            $media['intrate'] = intval($media['rating']);
            $media['thumbnail'] = $vbulletin->options['media_thumb_dir']."/thumbs/". $media['mediaID'] .".jpg";
            $media['href'] = construct_href_details($media);

            $templater = vB_Template::create('8WR_media_WIDGET');
                    $templater->register('media', $media);
            $mediabits .= $templater->render();
    }

    return $mediabits;

    CMS Widget:
    Code:

    require_once(DIR.'/media/media_functions_hrefs.php');

    $medias = vB::$vbulletin->db->query_read("
            SELECT media.*, media_service.*
            FROM " . TABLE_PREFIX . "media AS media
            LEFT JOIN " . TABLE_PREFIX . "media_service AS media_service ON(media_service.serviceID = media.serviceID)
            ORDER BY media.dateline DESC
            LIMIT 3
    ");

    while ($media = vB::$vbulletin->db->fetch_array($medias))
    {
            if ($media['length'] == 0)
            {
                    $media['length'] = "???";
            }
            else
            {
                    $duration = $media['length'];
                    $minutes = floor($duration / 60);
                    $seconds = $duration % 60;
                    $seconds = str_pad($seconds, 2, "0", STR_PAD_LEFT);
                    $media['length'] = "$minutes:$seconds";
            }

            $media['intrate'] = intval($media['rating']);
            $media['thumbnail'] = vB::$vbulletin->options['media_thumb_dir']."/thumbs/". $media['mediaID'] .".jpg";
            $media['href'] = construct_href_details($media);

            $templater = vB_Template::create('8WR_media_WIDGET');
                    $templater->register('media', $media);
            $mediabits .= $templater->render();
    }

    $output = $mediabits;

  • BUG FIX: Fixed formatting buttons on quick reply for comments.
  • BUG FIX: Fixed MySQLi errors for those who happen to be using it.
  • BUG FIX: Fixed service constructs for non-SEO slugged links.
  • BUG FIX: Fixed RSS feeds for tags in table prefix settings.

SwollenCranium 05-06-2010 12:37 AM

^ Outstanding!

jkcerda 05-06-2010 12:54 AM

silly question, can you embed a youtube vid here?:o

Veer 05-06-2010 12:55 AM

Jaxel, I'm running Version 4.0.4, Can I upgrade directly to Version 4.0.6?

puertoblack2003 05-06-2010 01:05 AM

Good job:up:

your24hourstore 05-06-2010 01:33 AM

1 Attachment(s)
sssssssweet

Jaxel 05-06-2010 01:38 AM

1 Attachment(s)
I've been working on new block designs...

https://vborg.vbsupport.ru/attachmen...1&d=1273113485
Most popular media is now sorted by the following order: Favorites, Comments, Views... So the highest favorites shows up, and then it uses the highest comments to break ties... and then highest views to break ties even further.

The heart means that I have "favorited" that specific item.

flightsim 05-06-2010 04:03 AM

Quote:

Originally Posted by flightsim (Post 2030950)
Hello
I have a problem....
All extern Hosters like youtube etc. works great....
when i upload a locavideo is that also no problem... i can see the video with the direct link. When i want to see the video in the system and click on the thumb is this loading... and loading... and loading... but ist never starting. what is wrong?

Here a example....

Here you can see... the video is loading but is not starting :
http://www.4104.ch/cgi-bin/4104_vers...=details&mid=4

When i click the direct link the video is working :
http://www.4104.ch/cgi-bin/4104_vers...mVID/rega4.wmv

Whta is wrong?

Jaxel 05-06-2010 05:26 AM

You can not play WMV videos through flash. That requires the Silverlight player...

I'll get working on that later.

ProFifaLeagues 05-06-2010 05:33 AM

This mod just gets better!
Jaxel the use of the sidebar mod,Does it update the videos it shows??Or do these stay the same!
Again thanks


All times are GMT. The time now is 08:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06074 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete