vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - AME 2.0 -Auto Media Embedding for posts, blogs, visitor and group messsages (https://vborg.vbsupport.ru/showthread.php?t=189267)

MindStar 08-28-2008 09:04 AM

Excellent!

Would you consider using cURL instead of file_get_contents to get the title of the video file?

* we have disabled file_get_contents on our server due to the security risks with using file_get_contents.

Here's a link to an example of using cURL to replace a call to file_get_contents

http://uk3.php.net/manual/en/functio...ents.php#82255

The Geek 08-28-2008 09:38 AM

Quote:

Originally Posted by hornstar1337 (Post 1608861)
My youtube vid after I press play is just having the loading sign go around and round. It is not playing. It has always worked good until I updated.

Any ideas?

Does it work for anyone else here http://www.gamerzneeds.net/forums/bl...-profiles-339/

edit: it is working in IE but not in FF3 for me. it appears to only be youtube for now as well.

Works for me in FF3 :)

The Geek 08-28-2008 09:38 AM

Quote:

Originally Posted by MindStar (Post 1608892)
Excellent!

Would you consider using cURL instead of file_get_contents to get the title of the video file?

* we have disabled file_get_contents on our server due to the security risks with using file_get_contents.

Here's a link to an example of using cURL to replace a call to file_get_contents

http://uk3.php.net/manual/en/functio...ents.php#82255

Ill look into it :)

Subah 08-28-2008 09:54 AM

Thanks for the upgrade again :)

The Geek 08-28-2008 09:55 AM

Quote:

Originally Posted by NeverBored (Post 1608513)
Damn, I'm late to the party with a feature request... I would like to be able to use if conditionals in the container HTML and replacement HTML boxes... Would that add any strain on performance?

Anyhow, cool to see you've updated this mod. It's a great mod, and my site is more or less actually built around it. Your work is appreciated.

Just a quick update to say that, I just tested this out. Its pretty easy to implement and I will most likely do it, however the key problem with putting conditionals in is that postbit contents get cached once they are parsed. So say for instance you wanted to show a container for logged in users, but just the URL for non logged in users. If the first person to view it is a logged in user, then the conditional wont be run again until it expires from the cache and the next person views it. There are other ways to do this, just not really ideal with a conditional.

I could most likely force AME'ed posts to bypass the cache, but I don't think the performance trade off is worth it.

So...

I will most likely be switching to templates in the future as they give a lot better flexibility but you would have to be mindful of the cache for conditionals.

verino 08-28-2008 10:11 AM

thank's for the mod :up: installed

YopY 08-28-2008 11:05 AM

I has question. In an earlier version of AME, it caused an error when posting or editing a post containing PHP code (i.e. code examples), probably due to the regexes AME (I assume) uses getting triggered by PHP code. Is that issue known, and if so, has it been fixxxed in this version (or an earlier one)?

The Geek 08-28-2008 12:00 PM

Quote:

Originally Posted by YopY (Post 1608958)
I has question. In an earlier version of AME, it caused an error when posting or editing a post containing PHP code (i.e. code examples), probably due to the regexes AME (I assume) uses getting triggered by PHP code. Is that issue known, and if so, has it been fixxxed in this version (or an earlier one)?

If you mean php and other code blocks, the issue had been sorted :)

entertain 08-28-2008 12:03 PM

Hi Geek,

do you know why ä,ö,ü,ß and so on will not be displayed correctly in the video header?

Greetings.

The Geek 08-28-2008 12:06 PM

I really don't know enough about character sets, but try editing ame_bbcode.php and change:
PHP Code:

$title utf8_decode($title); 

to

PHP Code:

//$title = utf8_decode($title); 

Let me know if that helps

(and click install if you get a sec :D )


All times are GMT. The time now is 10:26 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.01969 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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