![]() |
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 |
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?
|
Quote:
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. |
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. :)
|
Site about regular expressions?
You mean something like this? http://analyser.oli.tudelft.nl/regex/index.html.en |
Thanks Black Tiger. :up:
|
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 Code:
<script src="http://www.jigzone.com/zes?i=72150F6C117&m=D9250BFF3C.954C2C6&z=6" type="text/javascript"></script> 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]+) Code:
<script src="http://www.jigzone.com/zes?i=$p1&m=AE250BFF3C.930EFB0&z=$p2" type="text/javascript"></script> 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... |
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).
|
1 Attachment(s)
Eureka... I had to realize that after vBulletin mangled the URL it changed the "&" to "&"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) |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|