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)

EuroBeat2 12-28-2011 05:49 AM

Quote:

Originally Posted by Zarxrax (Post 2281479)
I am having trouble upgrading from video directory remixed.
I had exported my vbulletin database, wiped my server clean, then restored my database and upgraded to the latest vbulletin. Then I have installed media library. However, I can't find any "video" table in my database with my old videos!
Any ideas what could have happened to it? Could it have a different name?

Did you actually converted video directory remixed database to Media format. I did upgrade as well and did not have much problem with it.

EB

Zarxrax 12-28-2011 03:13 PM

Quote:

Originally Posted by EuroBeat2 (Post 2281560)
Did you actually converted video directory remixed database to Media format. I did upgrade as well and did not have much problem with it.

EB

I think I figured out what must have happened. I had saved the backup of my database from within vbulletin rather than in phpmyadmin. I'm guessing that vbulletin didn't save the tables from vdr.

weexto 12-28-2011 03:21 PM

Hello,
I have a little problem .... vBSEO does not take the polish letter of the Library Media
Can you help me please?
Best regards

Zarxrax 12-28-2011 07:29 PM

Is it possible to restrict so that only administrator can post videos to certain categories?
I really need the ability to sort out the "official" videos of my website.

Mariner1 12-28-2011 08:27 PM

Having probs importing the xml,using 4.18

Altering Table usergroup ...Done!
Altering Table user ...Done!

Creating Table media ... Done!
Creating Table media_category ... Done!
-- Adding Category Row General ...

Gets to this point then it seems to hang,doesnt go any further.Tried numerous times.Any ideas pls

Speedy1505 12-30-2011 02:13 PM

I have found a Bug in your Hack

I have a great many SQL-Errors
Code:

Invalid SQL:
SELECT
                COUNT(*) as 8wrmediacomments
                FROM ' . TABLE_PREFIX . 'media_comment
                WHERE userID=5
                AND media_comment.dateline > 315532800;

MySQL-Fehler  : Unknown column 'media_comment.dateline' in 'where clause'

But it should read
Code:

SELECT
                COUNT(*) as 8wrmediacomments
                FROM ' . TABLE_PREFIX . 'media_comment
                WHERE userID=5
                AND ' . TABLE_PREFIX . 'media_comment.dateline > 315532800;

Unfortunately I can not find this query but

PLEASE HELP

Thanks

Megaboost 12-30-2011 03:23 PM

Quote:

Originally Posted by ElfenLied1337 (Post 2278938)
Anyone know if this is working on 4.1.9?

Working fine on my 4.1.9

macrocamaleon 12-31-2011 07:17 AM

Working great in 4.1.9

Really thank's for sharing....

Regards

bada_bing 01-02-2012 03:15 AM

Quote:

Originally Posted by bada_bing (Post 2281282)
Does anyone know how to fix this issue with the new youtube media share type i.e http://youtu.be/EAClh86JV4w when I try and add a video I get this error "Could not parse media URL."



Any Help Please

michal72 01-02-2012 09:11 AM

Quote:

Originally Posted by bada_bing (Post 2282969)
Any Help Please

https://vborg.vbsupport.ru/showpost....postcount=2385

Mariner1 01-02-2012 12:40 PM

Having probs importing the xml,using 4.18

Altering Table usergroup ...Done!
Altering Table user ...Done!

Creating Table media ... Done!
Creating Table media_category ... Done!
-- Adding Category Row General ...

Gets to this point then it seems to hang,doesnt go any further.Tried numerous times.Any ideas pls

weexto 01-02-2012 07:40 PM

Hello,
I have a little problem .... vBSEO does not take the polish letter of the Library Media
Can you help me please?
Best regards

bada_bing 01-05-2012 05:29 AM

Quote:

Originally Posted by michal72 (Post 2282996)


Awesome thanks man

bada_bing 01-05-2012 06:06 AM

OK so I installed this on another one of my vb forums and when I try and submit a youtube video I get this message even though I have over 20 characters, "The description you have entered is too short (0 characters). Please lengthen your description to at least 10 characters."

Any idea

silberfuchs 01-05-2012 06:13 AM

Quote:

Originally Posted by bada_bing (Post 2284037)
OK so I installed this on another one of my vb forums and when I try and submit a youtube video I get this message even though I have over 20 characters, "The description you have entered is too short (0 characters). Please lengthen your description to at least 10 characters."

Any idea

Please have a look at one of my posts few pages ago - I had the same issue, it is an issue with the access rights......do all the 3 modifications and it will work perfectly.

Mariner1 01-05-2012 11:17 AM

Been asking for help for 2 weeks,no reply.can anyone pls

Having probs importing the xml,using 4.18

Altering Table usergroup ...Done!
Altering Table user ...Done!

Creating Table media ... Done!
Creating Table media_category ... Done!
-- Adding Category Row General ...

Gets to this point then it seems to hang,doesnt go any further.Tried numerous times.Any ideas pls

taylor_smith 01-05-2012 11:47 AM

I'm having a CSS issue with my categories popup menu. See:

https://vborg.vbsupport.ru/external/2012/01/57.jpg

For some reason, I can't make "padding: 0px 10px;" apply to vb:raw categorybits. Any help would be greatly appreciated!

michal72 01-05-2012 07:12 PM

Quote:

Originally Posted by Mariner1 (Post 2284073)
Been asking for help for 2 weeks,no reply.can anyone pls

Having probs importing the xml,using 4.18

Altering Table usergroup ...Done!
Altering Table user ...Done!

Creating Table media ... Done!
Creating Table media_category ... Done!
-- Adding Category Row General ...

Gets to this point then it seems to hang,doesnt go any further.Tried numerous times.Any ideas pls


Strange.
Remove from product-medialibrary.xml
Code:

echo('<li> -- Adding Category Row <strong>General</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Category', $vbulletin, ERRTYPE_CP);
        $dm->set('catName', "General Media");
        $dm->set('catDesc', "General media goes here...");
        $dm->set('catOrder', "1");
        $dm->set('catDepth', "0");
        $dm->save();
echo('Done!</li>'); vbflush();

and try again.

Mariner1 01-05-2012 08:36 PM

Quote:

Originally Posted by michal72 (Post 2284233)
Strange.
Remove from product-medialibrary.xml
Code:

echo('<li> -- Adding Category Row <strong>General</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Category', $vbulletin, ERRTYPE_CP);
        $dm->set('catName', "General Media");
        $dm->set('catDesc', "General media goes here...");
        $dm->set('catOrder', "1");
        $dm->set('catDepth', "0");
        $dm->save();
echo('Done!</li>'); vbflush();

and try again.

Thanks for the info.Did what you send but now it hangs here

Altering Table usergroup ...Done!
Altering Table user ...Done!

Creating Table media ... Done!
Creating Table media_category ... Done!
Creating Table media_comment ... Done!
Creating Table media_rating ... Done!
Creating Table media_service ... Done!
-- Adding Service Row YouTube ...

michal72 01-05-2012 08:46 PM

Quote:

Originally Posted by Mariner1 (Post 2284256)
Thanks for the info.Did what you send but now it hangs here

Altering Table usergroup ...Done!
Altering Table user ...Done!

Creating Table media ... Done!
Creating Table media_category ... Done!
Creating Table media_comment ... Done!
Creating Table media_rating ... Done!
Creating Table media_service ... Done!
-- Adding Service Row YouTube ...

So, now is clear that install is not able add records to the tables. Why? I don't know

Please remove also below code to finalize installation
Then you will try to add these records manually.

Code:

echo('<li> -- Adding Service Row <strong>YouTube</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Service', $vbulletin, ERRTYPE_CP);
        $dm->set('svcName', "YouTube");
        $dm->set('svcRegex', "http:\/\/[a-z]*?[\.]?youtube\.[a-z]*?\/watch\?v=([\w_-]*)");
        $dm->set('svcURL', "http://www.youtube.com/watch?v={serviceVAL}");
        $dm->set('svcFeed', "http://gdata.youtube.com/feeds/api/videos/{serviceVAL}");
        $dm->set('svcValue2', "null");
        $dm->set('svcThumb', "\$arr['media:group']['media:thumbnail'][3]['url']");
        $dm->set('svcTitle', "\$arr['media:group']['media:title']['value']");
        $dm->set('svcDesc', "\$arr['media:group']['media:description']['value']");
        $dm->set('svcLength', "\$arr['media:group']['yt:duration']['seconds']");
        $dm->set('svcTags', "\$arr['media:group']['media:keywords']");
        $dm->set('svcMovie', "http://www.youtube.com/v/{serviceVAL}?autoplay={ap10}&hd=1&fs=1");
        $dm->set('svcWidth', "640");
        $dm->set('svcHeight', "385");
        $dm->set('svcStream', "null");
        $dm->set('svcError', "\$arr['app:control']['yt:state']['value']");
        $dm->set('svcParams', "");
        $dm->save();
echo('Done!</li>'); vbflush();

echo('<li> -- Adding Service Row <strong>Vimeo</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Service', $vbulletin, ERRTYPE_CP);
        $dm->set('svcName', "Vimeo");
        $dm->set('svcRegex', "http:\/\/[a-z]*?[\.]?vimeo\.[a-z]*?\/([\d]*)");
        $dm->set('svcURL', "http://www.vimeo.com/{serviceVAL}");
        $dm->set('svcFeed', "http://www.vimeo.com/api/clip/{serviceVAL}.xml");
        $dm->set('svcValue2', "null");
        $dm->set('svcThumb', "\$arr['clip']['thumbnail_large']");
        $dm->set('svcTitle', "\$arr['clip']['title']");
        $dm->set('svcDesc', "strip_tags(\$arr['clip']['caption'])");
        $dm->set('svcLength', "\$arr['clip']['duration']");
        $dm->set('svcTags', "\$arr['clip']['tags']");
        $dm->set('svcMovie', "http://vimeo.com/moogaloop.swf?clip_id={serviceVAL}&autoplay={ap10}");
        $dm->set('svcWidth', "640");
        $dm->set('svcHeight', "360");
        $dm->set('svcStream', "null");
        $dm->set('svcError', "null");
        $dm->set('svcParams', "");
        $dm->save();
echo('Done!</li>'); vbflush();

echo('<li> -- Adding Service Row <strong>MetaCafe</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Service', $vbulletin, ERRTYPE_CP);
        $dm->set('svcName', "MetaCafe");
        $dm->set('svcRegex', "http:\/\/[a-z]*?[\.]?metacafe\.[a-z]*?\/watch\/([\w-]*)");
        $dm->set('svcURL', "http://www.metacafe.com/watch/{serviceVAL}");
        $dm->set('svcFeed', "http://www.metacafe.com/api/item/{serviceVAL}/");
        $dm->set('svcValue2', "null");
        $dm->set('svcThumb', "\$arr['channel']['item']['media:thumbnail']['url']");
        $dm->set('svcTitle', "\$arr['channel']['item']['media:title']");
        $dm->set('svcDesc', "\$arr['channel']['item']['media:description']");
        $dm->set('svcLength', "\$arr['channel']['item']['media:content']['duration']");
        $dm->set('svcTags', "\$arr['channel']['item']['media:keywords']");
        $dm->set('svcMovie', "http://www.metacafe.com/fplayer/{serviceVAL}/0.swf?autoPlay={ap10}");
        $dm->set('svcWidth', "640");
        $dm->set('svcHeight', "392");
        $dm->set('svcStream', "null");
        $dm->set('svcError', "null");
        $dm->set('svcParams', "");
        $dm->save();
echo('Done!</li>'); vbflush();

echo('<li> -- Adding Service Row <strong>DailyMotion</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Service', $vbulletin, ERRTYPE_CP);
        $dm->set('svcName', "DailyMotion");
        $dm->set('svcRegex', "http:\/\/[a-z]*?[\.]?dailymotion\.[a-z]*?\/video\/([A-Za-z0-9]*)");
        $dm->set('svcURL', "http://www.dailymotion.com/video/{serviceVAL}");
        $dm->set('svcFeed', "http://www.dailymotion.com/rss/video/{serviceVAL}");
        $dm->set('svcValue2', "null");
        $dm->set('svcThumb', "\$arr['channel']['item']['media:thumbnail']['url']");
        $dm->set('svcTitle', "\$arr['channel']['item']['media:title']");
        $dm->set('svcDesc', "\$arr['channel']['item']['itunes:summary']");
        $dm->set('svcLength', "\$arr['channel']['item']['media:group']['media:content'][0]['duration']");
        $dm->set('svcTags', "\$arr['channel']['item']['itunes:keywords']");
        $dm->set('svcMovie', "http://www.dailymotion.com/swf/video/{serviceVAL}?autoplay={ap10}");
        $dm->set('svcWidth', "640");
        $dm->set('svcHeight', "360");
        $dm->set('svcStream', "null");
        $dm->set('svcError', "null");
        $dm->set('svcParams', "");
        $dm->save();
echo('Done!</li>'); vbflush();

echo('<li> -- Adding Service Row <strong>Veoh</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Service', $vbulletin, ERRTYPE_CP);
        $dm->set('svcName', "Veoh");
        $dm->set('svcRegex', "http:\/\/[a-z]*?[\.]?veoh\.[a-z]*?\/.*?watch\/([\w]*)");
        $dm->set('svcURL', "http://www.veoh.com/browse/videos/watch/{serviceVAL}");
        $dm->set('svcFeed', "http://www.veoh.com/rest/videos/{serviceVAL}/details");
        $dm->set('svcValue2', "null");
        $dm->set('svcThumb', "\$arr['video']['fullHighResImagePath']");
        $dm->set('svcTitle', "\$arr['video']['title']");
        $dm->set('svcDesc', "\$arr['video']['description']");
        $dm->set('svcLength', "\$arr['video']['length'];preg_match('/([\d]*)([a-z\s]*)([\d]*)([a-z\s]*)([\d]*)/i',\$len,\$T);if(strpos(\$T[2],'h')){\$A=\$T[1]*60*60;}elseif(strpos(\$T[2],'m')){\$A=\$T[1]*60;}else{\$A=\$T[1];}if(strpos(\$T[4],'m')){\$B=\$T[3]*60+\$T[5];}else{\$B=\$T[3];}\$len=\$A+\$B");
        $dm->set('svcTags', "\$arr['video']['tagsCommaSeparated']");
        $dm->set('svcMovie', "http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?permalinkId={serviceVAL}&amp;videoAutoPlay={ap10}");
        $dm->set('svcWidth', "640");
        $dm->set('svcHeight', "385");
        $dm->set('svcStream', "null");
        $dm->set('svcError', "null");
        $dm->set('svcParams', "");
        $dm->save();
echo('Done!</li>'); vbflush();

echo('<li> -- Adding Service Row <strong>MegaVideo</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Service', $vbulletin, ERRTYPE_CP);
        $dm->set('svcName', "MegaVideo");
        $dm->set('svcRegex', "http:\/\/[a-z]*?[\.]?megavideo\.[a-z]*?\/\?v=([\w]*)");
        $dm->set('svcURL', "http://www.megavideo.com/?v={serviceVAL}");
        $dm->set('svcFeed', "http://www.megavideo.com/xml/videolink.php?v={serviceVAL}");
        $dm->set('svcValue2', "null");
        $dm->set('svcThumb', "preg_match('/[\w+%.-]*'.\$service['serviceVAL'].'([\w]*)[\w+%.-]*/i',\$arr['ROW']['embed'],\$match);\$thu='http://img1.megavideo.com/'.\$match[1].'.jpg'");
        $dm->set('svcTitle', "urldecode(\$arr['ROW']['title'])");
        $dm->set('svcDesc', "urldecode(\$arr['ROW']['description'])");
        $dm->set('svcLength', "urldecode(\$arr['ROW']['runtime'])");
        $dm->set('svcTags', "urldecode(preg_replace('/\+/',', ',\$arr['ROW']['tags']))");
        $dm->set('svcMovie', "http://www.megavideo.com/v/{serviceVAL}?autoplay={apTF}");
        $dm->set('svcWidth', "640");
        $dm->set('svcHeight', "360");
        $dm->set('svcStream', "null");
        $dm->set('svcError', "null");
        $dm->set('svcParams', "");
        $dm->save();
echo('Done!</li>'); vbflush();

echo('<li> -- Adding Service Row <strong>uStream</strong> ... '); vbflush();
        $dm =& datamanager_init('Media_Service', $vbulletin, ERRTYPE_CP);
        $dm->set('svcName', "uStream");
        $dm->set('svcRegex', "http:\/\/[a-z]*?[\.]?ustream\.tv\/recorded\/([\d]*)");
        $dm->set('svcURL', "http://www.ustream.tv/recorded/{serviceVAL}");
        $dm->set('svcFeed', "http://api.ustream.tv/xml/video/{serviceVAL}/getinfo");
        $dm->set('svcValue2', "null");
        $dm->set('svcThumb', "\$arr['results']['imageUrl']['medium']");
        $dm->set('svcTitle', "\$arr['results']['title']");
        $dm->set('svcDesc', "\$arr['results']['description']");
        $dm->set('svcLength', "\$arr['results']['lengthInSecond']");
        $dm->set('svcTags', "preg_match_all('/<array key=\"\d*\"><!\[CDATA\[(.*)\]\]><\/array>/i',\$result,\$matches);\$tag=implode(',', \$matches[1])");
        $dm->set('svcMovie', "http://www.ustream.tv/flash/video/{serviceVAL}?autoplay={apTF}");
        $dm->set('svcWidth', "640");
        $dm->set('svcHeight', "386");
        $dm->set('svcStream', "null");
        $dm->set('svcError', "null");
        $dm->set('svcParams', "");
        $dm->save();
echo('Done!</li>'); vbflush();


Mariner1 01-05-2012 08:59 PM

Ok removed that and its installed.How do i add those entries manually pls

michal72 01-05-2012 09:08 PM

Quote:

Originally Posted by Mariner1 (Post 2284265)
Ok removed that and its installed.How do i add those entries manually pls

I will send pm

Mariner1 01-05-2012 09:14 PM

ok thank you

Mariner1 01-05-2012 10:29 PM

Ive managed to sort prev probs.
Now i cant make a new category,When i try the drop down box doesnt drop down far enough so i cant click to make a new category.Any ideas how to make it drop further.Im using 4.18 and a custom style.Tried default style but same prob

Mariner1 01-05-2012 10:32 PM

No worries,sorted it

michal72 01-05-2012 10:48 PM

Try if you can add cat. Using
http://yoursitename/media.php?do=admin_cats

Ps. I did not notice the previous post

Mariner1 01-05-2012 11:19 PM

Anyone have a fix for making comments pls,using 4.18

Megaboost 01-06-2012 02:34 AM

Does anyone have any updated XML Service Files that work for Gametrailers.com?

Mariner1 01-06-2012 02:12 PM

Would just like to publicly thank michal72 for fixing my problems.Hes been helping me a lot and would like to thank him.

michal72 01-06-2012 05:17 PM

1 Attachment(s)
Quote:

Originally Posted by Megaboost (Post 2284327)
Does anyone have any updated XML Service Files that work for Gametrailers.com?

Try attached file:

Gamelobby 01-06-2012 10:45 PM

Quote:

Originally Posted by michal72 (Post 2284499)
Try attached file:

How would we use this.?
Upload thru AdminCP or thru MediaCP.?

Thanks

EuroBeat2 01-07-2012 05:40 AM

Seems like I no longer can add Vimeo vids to the database (I am in Vb 4.1.8). Did anyone else noticed it in their working library? Is there a possibility that Vimeo changed something? Last time I was able to add Vimeo video was on January 3rd 2012?

Tx

EB

AndrewSimm 01-07-2012 06:52 AM

I get this sql error now when I try and submit new media. I can still edit other media and add comments.

Invalid SQL:

SELECT text, languageid, special
FROM phrase AS phrase
LEFT JOIN phrasetype USING (fieldname)
WHERE phrase.fieldname = 'error'
AND varname = 'media_submit_invalid' AND languageid IN (-1, 0, 1);

edit:
I recently installed vbdynamics and I think the issue might be from that. Even when I disable vbdyn it still has the same issue. Also When I go to rebuild thumbnails it doesnt complete on the first one.

edit 2: for some reason my thumbnails folder changed chmod. I fixed it.

michal72 01-07-2012 07:18 AM

Quote:

Originally Posted by Gamelobby (Post 2284619)
How would we use this.?
Upload thru AdminCP or thru MediaCP.?

Thanks

MediaCP
Media->Administrate->Services

EasyEazy 01-07-2012 10:26 AM

Checked the post but there seems to be no answer.

When i remove the media link from the nav bar it also disables the subnavbar options which i dont want it to do.

is there a solution for this?

Many thanks

MotMann 01-07-2012 11:54 AM

I can't wrote Comments or Can't change the Text from the Videos.

What can i do?

AndrewSimm 01-08-2012 03:21 AM

Quote:

Originally Posted by MotMann (Post 2284748)
I can't wrote Comments or Can't change the Text from the Videos.

What can i do?

search through this thread, there are fixes for both.

MotMann 01-08-2012 05:07 AM

I don't found the Problem, to change the Text in the Videothread.

Gamelobby 01-08-2012 07:09 AM

Any idea why i get these errors once in a while.?
Quote:

MySQL Error : Unknown column 'phrasegroup_video' in 'field list'
or
Quote:

MySQL Error : Unknown column 'language.phrasegroup_video' in 'field list'
Is it something i do (or someone else) to cause it or just random.?

EuroBeat2 01-08-2012 07:45 AM

Quote:

Originally Posted by Gamelobby (Post 2285091)
Any idea why i get these errors once in a while.?


Is it something i do (or someone else) to cause it or just random.?

I wouldn't worry about it. It is usually cause by bots using certain algorithm that generate the error.

EB


All times are GMT. The time now is 09:34 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.05502 seconds
  • Memory Usage 1,874KB
  • 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
  • (5)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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