View Single Post
  #653  
Old 11-07-2008, 02:10 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by realmr View Post
can u include x-videos.com into the list ? I heard members are using this feature and they wanted this one of my adult forum
I'm not sure, but there may already be one for X-Videos. Go back to the AME 2.0 thread and look for the Add-On section towards the bottom of the mod. The link to the Adult XMLs is listed right there with this one.


Quote:
Originally Posted by skcyber View Post
here is the jiwa.fr music player !
Is this different from the one I just posted? I havn't had a chance to look at it yet.


Quote:
Originally Posted by simunaqv View Post
Hi DJ,

I am trying to create a definition for scribd as in the following but it is not working:

HTML Code:
<?xmlversion="1.0"encoding="ISO-8859-1"?>
<AME>
<item>
<id>155</id>
<title>Scribd</title>
<description>Embed Scribd Documents</description>
<displayorder>1</displayorder>
<findcode><![CDATA[http://www\.scribd\.com/doc/[\w]+/[\w-]+]]></findcode>
<replacecode><![CDATA[<a title="$title" href="$url" style="display: block;">$title</a> <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_110081542045067" name="doc_110081542045067" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle" height="500" width="100%"> <param name="movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=$p1"> <param name="quality" value="high"> <param name="play" value="true"> <param name="loop" value="true"> <param name="scale" value="showall"> <param name="wmode" value="opaque"> <param name="devicefont" value="false"> <param name="bgcolor" value="#ffffff"> <param name="menu" value="true"> <param name="allowFullScreen" value="true"> <param name="allowScriptAccess" value="always"> <param name="salign" value=""> <embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=$p1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_110081542045067_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="100%"></embed> </object> <div style="none; display: block;"> <a href="http://www.scribd.com/upload" style="text-decoration: underline;">Get your own</a> at Scribd or <a href="http://www.scribd.com/browse" style="text-decoration: underline;">explore</a> others: </div>]]></replacecode>
<status>1</status>
<container>1</container>
<embedregexp><![CDATA[http://documents\.scribd\.com/ScribdViewer\.swf\?document_id=([\w-]+&access_key=[\w-]+&page=)]]></embedregexp>
<extraction>1</extraction>
<gdef>0</gdef>
</item>
</AME>
The embedded regular expression is not returning anything although it appears to be correct. Could you please have a look?
First, ensure extraction is also on in the Global Settings for AME. Then check to see that your Embed Regexp can actually pull the data from the source of the page. One of the mistakes I almost always make is to presume that because the embed code is located in the page, that it will also be in the Source Code HTML of the page, which is where the Emebed Regexp actually looks. But often that isn't the case, so the RegEx can't find a match. But most of the time you can get around that by checking to see if the numbers/letters/IDs you need are located in the Source HTML somewhere and match them instead of trying to match patterns in the embed code. It will still work, because the variables will still parse to their corresponding group.



Quote:
Originally Posted by toastyman View Post
I'm having a problem with the blip.tv code from the latest version. Using one of the examples given in the first reply, when I try to embed http://blip.tv/file/591048 I get:

Code:
2008-11-06 20:53:17: (mod_fastcgi.c.2592) FastCGI-stderr: PHP Parse error:  syntax error, unexpected '(' in includes/ame_bbcode.php(323) : regexp code on line 1
PHP Fatal error:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: 
ame_match(&quot;http://blip.tv/file/591048&quot;, &quot;&quot;, 1, &quot;~[\s]+player\.setPostsId\(([\d]+)\);[\s]+player\.setUsersId\([\d]+\);[\s]+player\.setUsersLogin\(&quot;([\w-_]+)&quot;\)~sim&quot;, &quot;&quot;,$ameinfo) in includes/ame_bbcode.php on line 323
Happy to help test anything!
Heh, that threw me for a minute. This exact Bridgetdale video is the one I use for my base test.

Are you using AME 2.5? I think Blip has some trouble with new BETA.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01126 seconds
  • Memory Usage 1,815KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete