vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - DJ's AME (Auto Media Embedding) XML Media Definitions (Third Time's the Charm) (https://vborg.vbsupport.ru/showthread.php?t=175378)

Digital Jedi 11-25-2008 04:39 AM

Yes, this one is known. This is because MySpace changed their Embed Code from an iframe to actual embed code. This will be addressed in the next update.

MotMann 11-27-2008 08:53 AM

Quote:

You have to delete/disable your old definitions
I Have install the new AME an have right now Problems with the DJ's Master XML.xml to import.

How i can delete the old definitions, if i have install the new AME?

boandmichele 12-02-2008 05:59 PM

DJ! i have searched and searched for a solution before asking you, and im sure its something simple... but....

i have imported the amazon (links) definition, updated my tag appropriately, and none of the links are working. instead of pointing to amazon, it points back to my site with the amazon tag added on the end (which ends with me getting a database error). im using 2.5RC but have duplicated this in both 2 and 2.5. any advice?

to clarify, instead of giving me a link to amazon.com/asin/tag=xxxxx,

its giving me a link to ww.mysitegoeshere.com/forums/showthread.php?tag=xxxx

arg!

h2ojunkie 12-03-2008 08:46 PM

Just moving the post over to the right thread

Quote:

Originally Posted by Digital Jedi (Post 1675822)
We probably should discuss this in my Add-On thread after this, that's a good point. I forget where I am sometimes.

I understand what you mean now, and I don't think I recall seeing the embed code for thumbnails videos before. Yeah, it's parsing the URL of the video so the HTML for the thumbnails gets shattered. RegEx for BBCode is tricky, but not impossible I don't think. I'd just have to give it a try.





Quote:

Originally Posted by h2ojunkie (Post 1673856)
Maybe we aren't on the same page as you said.

I'm talking about a conversion specifically for the PB offered IMG Code - Forums & Bulletin Boards for videos.

When I tested the photobucket (videos) definition with:

[url=http://s73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/?action=view&current=100_2877.flv][img]https://vborg.vbsupport.ru/external/2008/12/103.jpg[/img][/url]


Here's the HTML rendered by the Photobucket (Videos) definition:
HTML Code:

<A title="<img src="
href="http://s73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/?action=view&amp;current=100_3043.flv"
alt="" border="0" th_100_3043.jpg? motorcycle%20related%20stuff Whitey818 i237
albums i73.photobucket.com http:>
" target="_blank"&gt;<IMG alt=""
src="http://i73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/th_100_3043.jpg"
border=0>
</A> </TD></TR></THEAD>
<TBODY>
<TR>
<TD class=panelsurround align=middle><EMBED
src=http://photobucket.com/player.swf?file=http://s73.photobucket.com/albums/i237/Whitey818/motorcycle%20related%20stuff/100_3043.flv
width=430 height=389 type=application/x-shockwave-flash
wmode="transparent">
</EMBED>

As you can see, I ended up with a broken layout. The page was rendering the default photobucket image that is shown for videos, followed by the video player rendered by your product.

I was assuming your Photobucket (Videos) definition was written just to do replacements on the url portion only, and wasn't designed to account for the embed code PB provides as shown above. (at least that's what the regex looked like)

I got the idea of adding support for the PB embed code from use of this mod:
https://vborg.vbsupport.ru/showthrea...ht=photobucket

It adds a photobucket image/video search and upload when making posts using:
http://photobucket.com/landing/plugin_wizard.php

And, if you search photobucket using that mod for a video, the only URL photo bucket gives you for the video via the IFRAME used by that mod, is the IMG code I listed above.

Anyway, I personally love that PB image search/upload since it gives an easy way for users to post videos to the site without having to allow users to upload attachments.

I had to shut off your Photobucket (Videos) definition since it broke the page whenever someone would use the PB code provided by the IFRAME uploader.

Hopefully, I'm explaining myself better this time.

Thanks again for a killer product.


Digital Jedi 12-04-2008 08:58 AM

Thanks Junkie. I will try to take a look at this for the next udpate.


Quote:

Originally Posted by MotMann (Post 1673903)
I Have install the new AME an have right now Problems with the DJ's Master XML.xml to import.

How i can delete the old definitions, if i have install the new AME?

Tick the Delete checkbox at the top of the Display Definitions page, then save.


Quote:

Originally Posted by boandmichele (Post 1677193)
DJ! i have searched and searched for a solution before asking you, and im sure its something simple... but....

i have imported the amazon (links) definition, updated my tag appropriately, and none of the links are working. instead of pointing to amazon, it points back to my site with the amazon tag added on the end (which ends with me getting a database error). im using 2.5RC but have duplicated this in both 2 and 2.5. any advice?

to clarify, instead of giving me a link to amazon.com/asin/tag=xxxxx,

its giving me a link to ww.mysitegoeshere.com/forums/showthread.php?tag=xxxx


arg!

For those having the linking problem with Amazon (Thumbnails), I have a temporary fix for you until the variable problem in AME can be pinpointed. It will not convert titles properly and will just read Amazon (Thumbnails) or whatever you've named it in the AME CP, but it will properly convert your URLs.

NOTE: If you need to add your own affiliate ID tag you must go in and change each instance of ?tag=citofgamonlco-20 to your own affiliate ID. There are three. If not, you won't hurt my feelings leaving it in. ;)

Oh, remember to delete your old one.

dasdingansich 12-07-2008 01:26 PM

hi,

I´m trying to build replacement code for ebay.de affiliate links, and I got stuck finding the right regex

I need to extract the sellers name from an URL, which usually looks like this:
http://shop.ebay.de/merchant/user_name

works perfectly fine with:
http://shop\.ebay\.de/merchant/([\.\w_-]+)
then I can use the sellers name as $p1

however, sometimes ebay puts thos "W0QQ" variables behind it, then it would look something like this:
http://shop.ebay.de/merchant/user_name_W0QQ_nkwZQQ_armrsZ1QQ_fromZQQ_mdoZ
I need "_W0QQ" and everything after that to be excluded from $p1

first I tried to create a break at the first instance of an underscore, but then I realized usernames can contain underscores as well.

thanks in advance!

Digital Jedi 12-07-2008 01:52 PM

Quote:

Originally Posted by dasdingansich (Post 1680233)
hi,

I?m trying to build replacement code for ebay.de affiliate links, and I got stuck finding the right regex

I need to extract the sellers name from an URL, which usually looks like this:
Code:

http://shop.ebay.de/merchant/user_name
works perfectly fine with:
Code:

http://shop\.ebay\.de/merchant/([\.\w_-]+)
then I can use the sellers name as $p1

however, sometimes ebay puts thos "W0QQ" variables behind it, then it would look something like this:
Code:

http://shop.ebay.de/merchant/user_name_W0QQ_nkwZQQ_armrsZ1QQ_fromZQQ_mdoZ
I need "_W0QQ" and everything after that to be excluded from $p1

first I tried to create a break at the first instance of an underscore, but then I realized usernames can contain underscores as well.

thanks in advance!

It's tricky when you run into an area you need grouped that can easily match the rest of the string. One thing you can do is check to see if the underscore in your grouping is absolutely necessary. If not, then you can easily put an optional word character match after your grouping: [\w_]*

If it is necessary, then try looking for the user name someplace else besides the URL string. Likely, it will be somewhere in the HTML of the page and you can make a ReGex match to that. In this case your grouping, the $p1 reference, will be in the Extraction regex instead.

dasdingansich 12-07-2008 04:43 PM

Quote:

Originally Posted by Digital Jedi (Post 1680246)
It's tricky when you run into an area you need grouped that can easily match the rest of the string. One thing you can do is check to see if the underscore in your grouping is absolutely necessary. If not, then you can easily put an optional word character match after your grouping: [\w_]*

If it is necessary, then try looking for the user name someplace else besides the URL string. Likely, it will be somewhere in the HTML of the page and you can make a ReGex match to that. In this case your grouping, the $p1 reference, will be in the Extraction regex instead.

good idea, thanks!
the username occurrs once between h1-tags on the target page, so this should do the trick:
<h1>([\.\w_-]+)</h1>

only Problem is, AME stops fetching the page content at the first occurrence of german vowel "?", which unfortunately appears right in the title.
please compare
http://shop.ebay.com/merchant/25cent-giraffes
http://shop.ebay.de/merchant/25cent-giraffes
the word "seller" in the page title becomes "Verk?ufer", and AME stops at "Verk", which in vbulletin results in this:

Quote:

[ame="http://shop.ebay.de/merchant/25cent-giraffes"]eBay Verk
it?s definately the vowel because it works perfectly with ebay.com, but that?s no good to me because they?re running an entirely different affiliate program. :(

Digital Jedi 12-07-2008 11:46 PM

Is it truncating the HTML output or just the title? Shouldn't you still be getting a valid URL?

wmlvb 12-08-2008 08:40 AM

Hi, I only have the latest version of AME installed and have not installed this add on. I am not sure if I am suppose to install the 12/08 update file or am to install the files in the 1st post and then the update file?


All times are GMT. The time now is 03:20 PM.

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.23544 seconds
  • Memory Usage 1,785KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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