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)

RadioErewan 01-06-2010 09:04 PM

Hey, Geek, where descriptions are inserted into DB? I have ISO-8859-2 forum, and titles from YT containing characters outside of ASCII7 are destroyed (guess it is not iconved).

The Geek 01-06-2010 09:12 PM

Quote:

Originally Posted by drjdh (Post 1949081)
This application doesn't seem to work unless HTML is turned on for the forum. Is there a way to get around this? If not, is this a big security concern?

Wha? Where on earth did you hear that HTML needed to be on?

Quote:

Originally Posted by RadioErewan (Post 1949088)
Hey, Geek, where descriptions are inserted into DB? I have ISO-8859-2 forum, and titles from YT containing characters outside of ASCII7 are destroyed (guess it is not iconved).

Er... do you mean the titles for the link? When you post a link to youtube and you have extraction on, it will go fetch the page title and lin it up as [ame="url"]title of page[/ame]

I did some encoding for multiple languages, but as I only speak English (and not very well) I am at a disadvantage.

drjdh 01-06-2010 09:29 PM

It only works if I have HTML enabled for the forum. Otherwise, I get only the link showing up instead of the video.

RadioErewan 01-06-2010 09:37 PM

See here - it is publicly available on my forum
http://forum.olympusclub.pl/showpost...postcount=1128
And second video should contain "Paweł" not "PaweĹ�" on title bar as it is on original youtube page
http://www.youtube.com/watch?v=zlFbqtNjB0A
Hope will be able to find where you are writing it, but you know your code and can hint me, where to search for it. iconv is needed.
Would love to run my forum on UTF, but you know, it is not supported ;-)

Regards

drjdh 01-06-2010 09:39 PM

This is the error message that I am getting:

The path to your file cache is set to /amecache/ which appears to be invalid and as such, the file cache is not correctly working. The suggested default value is /hermes/bosweb/web183/b1838/ipg.drjdh/amecache/.

The Geek 01-06-2010 09:50 PM

Quote:

Originally Posted by drjdh (Post 1949108)
It only works if I have HTML enabled for the forum. Otherwise, I get only the link showing up instead of the video.

Can you post a link as an example.

Quote:

Originally Posted by RadioErewan (Post 1949114)
See here - it is publicly available on my forum
http://forum.olympusclub.pl/showpost...postcount=1128
And second video should contain "Paweł" not "PaweĹ�" on title bar as it is on original youtube page
http://www.youtube.com/watch?v=zlFbqtNjB0A
Hope will be able to find where you are writing it, but you know your code and can hint me, where to search for it. iconv is needed.
Would love to run my forum on UTF, but you know, it is not supported ;-)

Regards

Not sure where the encoding will need to be done. Most likely here:

in includes/ame_bbcode.php specifically function ame_fetch_www_title

PHP Code:

$title unhtmlspecialchars($title); 

or possibly here (though this is at runtime):

includes/ame_bbcode.php
PHP Code:

$ameinfo['title'] = htmlspecialchars_uni($param1); 


Quote:

Originally Posted by drjdh (Post 1949116)
This is the error message that I am getting:

The path to your file cache is set to /amecache/ which appears to be invalid and as such, the file cache is not correctly working. The suggested default value is /hermes/bosweb/web183/b1838/ipg.drjdh/amecache/.

That is a warning that your path to the file cache is incorrect. It needs the full server path to the folder. Listen to AME, she is giving you the answer :)

drjdh 01-06-2010 10:39 PM

1 Attachment(s)
First is the image of the website.
Second image is of the settings panel (still getting error message).

drjdh 01-06-2010 11:05 PM

Ok, I got it working.

Problem: Needed to install the Product-ame.xml AFTER the files are uploaded.

Silly me :o

RadioErewan 01-06-2010 11:47 PM

Quote:

Originally Posted by The Geek (Post 1949121)
in includes/ame_bbcode.php specifically function ame_fetch_www_title

PHP Code:

$title unhtmlspecialchars($title); 


First shot:
PHP Code:

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

and everything works like a charm.

Thank you master!

Musika 01-07-2010 12:58 PM

I think the definition for clipfish has changed, cause it doesn't work.

This is an example expression What is the Media Definition Code, Regular expression and Replacement so that I can fix it?


All times are GMT. The time now is 02:16 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.02651 seconds
  • Memory Usage 1,755KB
  • 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
  • (7)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