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)
-   -   Add-On Releases - DJ's AMEs :: Media Definitions for AME 2.5 :: More Video, Twitter, Pinterest... (https://vborg.vbsupport.ru/showthread.php?t=195884)

kmoh 11-29-2010 02:25 AM

I was waiting for your reply about adding the moveshare (moveshare.net) & novamov (novamov.net) definitions and still didn't get a reply. Can you add it so i can use that to my forum?
Thanks in advance. :D

BirdOPrey5 11-29-2010 02:51 AM

Is there a good site that explains regular expressions so we can make some definitions ourselves? Is there anything special about the way AME handles regular expressions?

MjrNuT 11-29-2010 10:36 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2126999)
Is there a good site that explains regular expressions so we can make some definitions ourselves? Is there anything special about the way AME handles regular expressions?


Good question and I believe the answer is Post #5 of this thread. I started thinking about this given my request above. So I'll be giving this a shot, which is to follow what super DJ does to create these.

BirdOPrey5 11-29-2010 11:50 PM

Thanks.., I read through this thread years ago when I first installed this but long since forgot there might be useful info way back on page 1. :)

Black Tiger 11-30-2010 12:17 AM

Site about regular expressions?
You mean something like this?
http://analyser.oli.tudelft.nl/regex/index.html.en

BirdOPrey5 11-30-2010 12:39 AM

Thanks Black Tiger. :up:

BirdOPrey5 11-30-2010 02:47 AM

OK cool... so I decided to start my test with an Embed Code for www.jigzone.com - Embedded Jigsaw Puzzle...

The URL to a puzzle is like this:

Code:

http://www.jigzone.com/puzzles/72150F6C117?m=D9250BFF3C.954C2C6&z=6
The Embed Code is:
Code:

<script src="http://www.jigzone.com/zes?i=72150F6C117&amp;m=D9250BFF3C.954C2C6&amp;z=6" type="text/javascript"></script>
The only numbers that matter are 72150F6C117 and 6 the numbers in-between (D9250BFF3C.954C2C6) don't mean anything of value.

So I made the Regex which matches perfect in Regex Buddy so I know it's right:
Code:

http://www\.jigzone\.com/puzzles/([\w]+)\?m=[\w]+.[\w]+\&[a-z]=([\d]+)
And use this replacement:
Code:

<script src="http://www.jigzone.com/zes?i=$p1&amp;m=AE250BFF3C.930EFB0&amp;z=$p2" type="text/javascript"></script>
And everything should work, right?

NOPE...

Instead of getting an embedded puzzle I get simply an all text URL not even a link, just the URL as plain text.

Exactly this:

http://www.jigzone.com/puzzles/72150F6C117?m=D9250BFF3C.954C2C6&z=6


When I look in the source code the AME template is never invoked...

I've narrowed it down to a problem with the "z" near the end (z=6). If I remove the z from the regular expression AND the URL it works! But I need the z because I need to specify the second parameter (6) in this case.

Anyone got any ideas? I really thought I had these regex's down pat until this roadblock.

Oh, one more thing, I changed 'z' in the regex to [\w] and it partially works... The puzzle embeds but not correctly, the z parameter isn't parsed in the embed code and ;z=6 in plain text displays immediately after every puzzle... It's outside the AME template in the source code and I have no clue where it's coming from... it almost looks like a bug in AME maybe...

BirdOPrey5 11-30-2010 03:18 AM

1 Attachment(s)
Just to make sure I wasn't missing something totally I was able to get a working definition for Twitvid.com (twitter video).

BirdOPrey5 11-30-2010 06:26 AM

1 Attachment(s)
Eureka... I had to realize that after vBulletin mangled the URL it changed the "&" to "&amp;"so I had to adjust the regular expression to work with either/or... Working great now.

Well since I mentioned it I'll put the file here I'll also stop polluting Digital Jedi's thread with this stuff.

Jigzone Embed - when you make a puzzle go to "Open Puzzle" copy the URL of the open puzzle in the browser and paste it into your post... Change the last number (usually 6) to whatever number corresponds to to the puzzle type you want. (0 = 48 piece jigsaw)

Digital Jedi 11-30-2010 11:28 AM

Guys, be careful about seconding requests on my website. I'm doing all requests, if I can, and in the order they were requested. So if you bump a request, you're effectively moving it to the bottom of the list.

I'm sorry I haven't been able to be on top of this like I used to. This year was a bad year for doing anything outside of caring for my daughter. That seems to have consumed my time for 2010. I haven't given up on doing definitions. I'm simply running into a lot of hurdles getting the updates to you. It's just a matter of time, really. I'll try to get to your support questions if I can as well.


All times are GMT. The time now is 04:04 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.03201 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
  • (4)bbcode_code_printable
  • (1)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