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)

Mike Bucy 11-30-2010 05:26 AM

Uninstalled completely and reinstalled. Tried the first video and got the following error:

Could not parse media URL..

It's just a local flv located in customVID

diabolicds 11-30-2010 02:34 PM

Quote:

Originally Posted by Mike Bucy (Post 2127453)
Uninstalled completely and reinstalled. Tried the first video and got the following error:

Could not parse media URL..

It's just a local flv located in customVID

Permission 777 on this folder customVID?

Mike Bucy 11-30-2010 06:15 PM

Yes.

customVID
customVID/sitemap
customVID/thumbs

I did get it to run now. I was using localvideo: instead of the new local:

Thanks for your response.

Xtrigit 11-30-2010 07:39 PM

Quote:

Originally Posted by diabolicds (Post 2126532)
in admin cp usergroups set permission I believe ;)

There is no option to hide the link, I had to wrap the link with a conditional.

Helmut71 12-02-2010 05:54 AM

I need some help with the widget posted in this thread: https://vborg.vbsupport.ru/showthrea...et#post2083190

The thumbs in the widget always have a width of 214px, no matter which width I set or wich width they really have...how can I set the width of the thumbs in the widget to 160?

btw: congratulations of becoming MOTM :)

derandechser 12-02-2010 09:42 AM

Hi,
first of all, thanks for this great mod!!
Now to my problem: Everything works fine, but i have a problem, when a thread is created after submitting a new video. The thread looks like this:

$ Vbphrase [media_library] - $ Medien [title]

[CENTER]
[URL = $ href [details]] [SIZE = 5] [B] $ Medien [title] [/ B] [/ SIZE] [/ URL]
([URL = $ href [details]] Klicken Sie hier beobachten und zu kommentieren [/ URL])

[URL = $ href [details]] [IMG] $ Medien [thumbnail] [/ IMG] [/ URL]

[B] $ Medien [title] [/ B] ($ media [Länge])
Hochgeladen am $ Medien [Datum] bei $ Medien [Zeit] von [URL = $ href [user]] $ Medien [Benutzername] [/ URL]
[URL = $ href [Kategorie]] $ media [catName] [/ URL] - $ media [svcName]

$ Medien [description]

[B] $ vbphrase [media_tags]: [/ B] $ Medien [tags]

[URL = $ href [details]] [SIZE = 5] [B] $ Medien [title] [/ B] [/ SIZE] [/ URL]
([URL = $ href [details]] Klicken Sie hier beobachten und zu kommentieren [/ URL])
[/ Center]

Can anybody help me to fix it?

Greetings,
Peter

diabolicds 12-02-2010 05:02 PM

Quote:

Originally Posted by derandechser (Post 2128275)
Hi,
first of all, thanks for this great mod!!
Now to my problem: Everything works fine, but i have a problem, when a thread is created after submitting a new video. The thread looks like this:

$ Vbphrase [media_library] - $ Medien [title]

[CENTER]
[URL = $ href [details]] [SIZE = 5] [B] $ Medien [title] [/ B] [/ SIZE] [/ URL]
([URL = $ href [details]] Klicken Sie hier beobachten und zu kommentieren [/ URL])

[URL = $ href [details]] [IMG] $ Medien [thumbnail] [/ IMG] [/ URL]

[B] $ Medien [title] [/ B] ($ media [L?nge])
Hochgeladen am $ Medien [Datum] bei $ Medien [Zeit] von [URL = $ href [user]] $ Medien [Benutzername] [/ URL]
[URL = $ href [Kategorie]] $ media [catName] [/ URL] - $ media [svcName]

$ Medien [description]

[B] $ vbphrase [media_tags]: [/ B] $ Medien [tags]

[URL = $ href [details]] [SIZE = 5] [B] $ Medien [title] [/ B] [/ SIZE] [/ URL]
([URL = $ href [details]] Klicken Sie hier beobachten und zu kommentieren [/ URL])
[/ Center]

Can anybody help me to fix it?

Greetings,
Peter

Looks like your forum for media threads does not having BB code enabled,check if its enabled m8 maybe thats the problem .

When you go to your thread in the footer do you have this?
# BB code is On - should be enabled if not than go to admin panel and enable BB code

Cheers

stationar 12-02-2010 11:00 PM

My users have found it very useful, if those from ignore list couldn't see your videos.
in media/media_details.php find:
PHP Code:

    {
        eval(
standard_error(fetch_error('media_details_invalid')));
    } 

Add after it:
PHP Code:

$ignore $db->query_first("SELECT * FROM `userlist` WHERE relationid = '".$vbulletin->userinfo['userid']."' AND userid = '".$media['userID']."' AND type = 'ignore'");
if (
$ignore['relationid'] == $vbulletin->userinfo['userid'])
{
    
print_no_permission();



bada_bing 12-03-2010 01:06 AM

Quote:

Originally Posted by stationar (Post 2128602)
My users have found it very useful, if those from ignore list couldn't see your videos.
in media/media_details.php find:
PHP Code:

    {
        eval(
standard_error(fetch_error('media_details_invalid')));
    } 

Add after it:
PHP Code:

$ignore $db->query_first("SELECT * FROM `userlist` WHERE relationid = '".$vbulletin->userinfo['userid']."' AND userid = '".$media['userID']."' AND type = 'ignore'");
if (
$ignore['relationid'] == $vbulletin->userinfo['userid'])
{
    
print_no_permission();



Cool Thanks

Helmut71 12-03-2010 04:13 AM

about the widget:

Quote:

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;
I noticed that the widget ignores the size of the thumbnail and if the size is set to "tiny", it ist still quit big (and doesn't look so good).
Has someone a solution for this?


All times are GMT. The time now is 02:52 AM.

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.03540 seconds
  • Memory Usage 1,767KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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