vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - AME 2.5 - Media Embedding for posts, sigs, vm's, groups and blogs (https://vborg.vbsupport.ru/showthread.php?t=202476)

Digital Jedi 01-21-2010 09:31 PM

Quote:

Originally Posted by chick (Post 1962778)
yes both globally and per definition or edit/resave

well I resynced everything and ran the tools and insured the settings were right YET anew post still says YouTube Broadcast yourself.

Where is this GLOBALLY located?

It's the second setting on the Settings page.

chick 01-22-2010 10:46 AM

Yes it is set properly.

It is only YT that does this... here is my regular expression

Code:

http://[\w]+\.youtube\.[\w]+/watch\?v=([\w-]+)[\w&;=]*[\#t=]*([\d]*)s?
and the replacement

Code:

<object width="$ameinfo[width]" height="$ameinfo[height]">
<param name="movie" value="http://www.youtube.com/v/$p1&start=$p2"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/$p1&start=$p2" type="application/x-shockwave-flash" allowfullscreen="true" width="$ameinfo[width]" height="$ameinfo[height]" wmode="transparent"></embed></object>

Is this correct?

Digital Jedi 01-22-2010 02:56 PM

Quote:

Originally Posted by chick (Post 1963265)
Yes it is set properly.

It is only YT that does this... here is my regular expression

Code:

http://[\w]+\.youtube\.[\w]+/watch\?v=([\w-]+)[\w&;=]*[\#t=]*([\d]*)s?
and the replacement

Code:

<object width="$ameinfo[width]" height="$ameinfo[height]">
<param name="movie" value="http://www.youtube.com/v/$p1&start=$p2"></param>
<param name="allowFullScreen" value="true"></param>
<embed src="http://www.youtube.com/v/$p1&start=$p2" type="application/x-shockwave-flash" allowfullscreen="true" width="$ameinfo[width]" height="$ameinfo[height]" wmode="transparent"></embed></object>

Is this correct?

The definition only affects whether the video parses, not whether the title will convert. I can't remember what method The Geek used for extracting titles, but I believe your host needs to allow cURL queries from your server.

Since you're using my definition instead of the default one, post a couple of the links your using in my definitions thread so I can see if there's something different about the URLs in question.

MartinH66 01-22-2010 05:44 PM

Quote:

Originally Posted by chick (Post 1962581)
Same here all mine still say this even after a fresh install, and I have extraction enabled.

From my earlier post, it's likely you have the same problem I did. The fact that you're getting "YouTube- Broadcast Yourself." means extraction is on and working it's just that you're hitting YouTube's spam protection page, which has that as its title.
Quote:

EDIT: Ok, it's YouTube - because a lot of requests have come from my domain they show a verification page where you have to enter a code before the actual content is shown. This verification page has the title "YouTube - Broadcast Yourself." Not sure if I can get round it but thought I'd report it in case other people hit the same thing.
I have fixed it on mine by editing the plugin code so that it uses YouTube's API to retrieve the video title. The code is clunky and I'm not really a coder but if the author or someone else wants to check it out they'd be very welcome.

Failing that it's a case of contacting YouTube to see if they'll remove your site from their spam list.

Nook_Neformat 01-22-2010 09:49 PM

Quote:

Originally Posted by Nook_Neformat (Post 1955894)
to make it shure:
i need in includes/ame_bbcode.php
find
PHP Code:

$title unhtmlspecialchars($title); 

and replace it with
PHP Code:

$title unhtmlspecialchars(mb_convert_encoding ($title'ISO-8859-2''UTF-8' )); 

right?

guys, help me, please with it

Digital Jedi 01-23-2010 03:20 AM

Quote:

Originally Posted by Nook_Neformat (Post 1963830)
guys, help me, please with it

And you have to make sure your text editor didn't make any involuntary changes to your document without you knowing it. The code should work, so the only other reason you'd be getting a error is because something else has been changed.

Nook_Neformat 01-23-2010 10:55 AM

i checked it but still got same error:
Fatal error: Call to undefined function mb_convert_encoding() in ***/public_html/forum/includes/ame_bbcode.php on line 591

maybe someone else can help me. the problem is: i have forum in cp1251 and if title of media is in russian - it doesnt show properly. i will be glad if someone can solve this

chick 01-23-2010 12:08 PM

DJ, I allow cURL queries, it is my server... and all other titles work, it just youtube.

I even have a custon YouTube bbcode used as follows (which works properly and pulls the title)

Code:

[YOUTUBE]Yi-2ifWjVro&hl[/YOUTUBE]
and the html is

Code:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Yi-2ifWjVro&amp;hl"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Yi-2ifWjVro&amp;hl" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Martin what is the plugin code??? and where do I put it?

Digital Jedi 01-24-2010 07:55 AM

Quote:

Originally Posted by Nook_Neformat (Post 1964235)
i checked it but still got same error:
Fatal error: Call to undefined function mb_convert_encoding() in ***/public_html/forum/includes/ame_bbcode.php on line 591

maybe someone else can help me. the problem is: i have forum in cp1251 and if title of media is in russian - it doesnt show properly. i will be glad if someone can solve this

Start with a fresh copy of ame_bbcode, because I think this one has been nerfed. If you decide to make the edits again, do so in a different text editor. Something simple like Notepad. Even something as simple as a whitespace can screw PHP coding from functioning properly.

Nook_Neformat 01-24-2010 11:40 AM

took fresh ame_bbcode and used notepad - all the same
error says:
Quote:

Fatal error: Call to undefined function mb_convert_encoding() in ***/public_html/forum/includes/ame_bbcode.php on line 591
that there are no such function "mb_convert_encoding()" so maybe problem is in some other place?


All times are GMT. The time now is 03:33 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.03868 seconds
  • Memory Usage 1,757KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)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