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)

BirdOPrey5 12-05-2010 10:30 PM

From what little I could find in this thread about your Internal Linking codes I gathered you had a set- maybe different one for threads, forums, profiles, etc... I found this a little confusing. I made a custom internal links regex that works on all internal links no matter what type of page is linked and it's worked for me on all the links I've tried- threads, forums, profiles, etc...

The regex I'm using is:
Code:

http://www\.juot\.[a-z]+/([\w/.?=$#&;]*)
and the replacement is:
Code:

<img src="/forums/images/icons/juoticon.GIF" border="0" align="absmiddle" />&nbsp;<a href="/$p1&$p2">$ameinfo[title]</a>
which puts a small icon before the link and the title of the page as the link. It's been working for a few days and I've tried every URL combo I could think of including with styles and search highlights.

Is there any danger in using this if it seems to work?

(note I didn't include "net" in my URL because some people visit me on juot.co instead of juot.net.)

Digital Jedi 12-06-2010 12:16 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2129806)
From what little I could find in this thread about your Internal Linking codes I gathered you had a set- maybe different one for threads, forums, profiles, etc... I found this a little confusing. I made a custom internal links regex that works on all internal links no matter what type of page is linked and it's worked for me on all the links I've tried- threads, forums, profiles, etc...

The regex I'm using is:
Code:

http://www\.juot\.[a-z]+/([\w/.?=$#&;]*)
and the replacement is:
Code:

<img src="/forums/images/icons/juoticon.GIF" border="0" align="absmiddle" />&nbsp;<a href="/$p1&$p2">$ameinfo[title]</a>
which puts a small icon before the link and the title of the page as the link. It's been working for a few days and I've tried every URL combo I could think of including with styles and search highlights.

Is there any danger in using this if it seems to work?

(note I didn't include "net" in my URL because some people visit me on juot.co instead of juot.net.)

If you had Local Hosted media definitions installed, it would cause a conflict. Then when media was posted, both definitions would try to convert in the post.

The reason you try not to be too broad with definitions your distributing to the public is you never know when you don't want a page converting or you want a particular URL string to do something else. Case in point, I like having user profile links auto convert. I did not like that it put "Username- City of Gamers Online Community". I just wanted the username and I didn't want to change title of my pages just to accommodate that. The same with thread titles. I would get the full name of the thread and the full name of my site, and again, I didn't want to pull my site name out of the pages, and I doubted that users of the def would, too. Also, people might not want every page on their forum to convert, just certain aspects. Granular control seemed to make sense in this case.

BirdOPrey5 12-06-2010 12:53 AM

Thank you, that explains a lot.

Digital Jedi 12-06-2010 04:49 AM

1 Attachment(s)
**UPDATES**
Sleepy as all heck, but I've got a few defs to release tonight. There here individually, or you can get them from the Master XMlL.


Updated Definitions

Amazon (Thumbnails)
This is a totally new definition, folks. So if you use it, keep in mind some of your older posts might not change over to it. It's cleaner and easier on the eyes than the original. You also need to add the following image to your images/misc folder.

https://vborg.vbsupport.ru/external/2013/02/55.png

Dailymotion and Dailymotion (Short URL)
Updated Dailymotion, as well as created a def to embed videos based on the Short URL they give you for posting videos to Twitter.

EA Sports
You no longer need the EA Sports (Highlight Reel) definition. This one covers them all.

Flickr (Photostreams) and Flickr (Sets)
Should no longer conflict with video URLs. (Photostreams) embeds the default photostream in a user profile, while (Sets) embeds the photostreams from user Sets.

Flowrestling
Updated def seems to work 100% of the time, but occasionally can't pull a video thumbnail. Will ignore a YouTube video and post an auto formated link instead.

Fox News
Your Fox News (Old) definition is useless now, so you can delete it, if you want. I'm actually quite proud of this one, but it's for totally technical, geeky reasons.

JustinTV (Live)
Delete your JustinTV (Live 2) definition, as this one covers it now.

Photobucket (Videos)
Should no longer conflict with image URLs and should keep your old FLV videos embedded if you haven't changed anything since last update.

Digital Jedi 12-06-2010 05:02 AM

1 Attachment(s)
Updated Definitions Continued...

Scribd (Full Screen URL)
Your old Scribd definition will not work anymore. Sad to say, Scribd has multiple parameters that need to be accounted for and doesn't put them anywhere where AME can find them. My compromise was to create this definition which will embed the link Scribd gives you for the Full Screen version of a document.

The Daily Show (Clips) and The Daily Show (Old)
You'll need both of these, one for embedding new clips and the other to make sure your old clips remain embedded.

The Escapist
Vimeo


New Definitions

eBay (Thumbnails)
Three definitions required for this one. I'm still not sure if this is fully International yet. Did quite a bit of testing, but eBay is vast and easy to miss variations in the URL strings. You would also need to do what you need to do to make the Replacement HTML code affiliate-able. (New word.) You also need to add this image to your images/misc directory.

https://vborg.vbsupport.ru/external/2011/02/5.gif

ProstoPleer
New music player website submitted by Vitaly. Added it to the Master XML

Trailer Addict
What does it sound like?

Digital Jedi 12-06-2010 11:22 AM

<u>Definitions Dropped</u>
Had to drop or combine these definitions into the main ones. If your doing a full wipe of your defs and installing the Master, then you need not worry looking for these. But if your doing individual definition imports, take note that you'll need to get rid of most of these.

Fox News (Old)
EA Sports (Highlight Reels)
JustinTV (Live 2)
Scribd

carsafety 12-06-2010 04:15 PM

Quote:

Originally Posted by Digital Jedi (Post 2129796)
I haven't logged into Amazon in a while, since they closed all North Carolina accounts, but I'm wondering if the Link Checker is giving a false positive here. It seems to be looking at everything after the first question mark and checking it against your ID. For thumbnails, I tried a few things, but everything nerfs the ability to pull the correct image. I think I may be able to fix it for basic linking, but there's a possibility that you'll occasionally get the wrong URL.

This works on the basis of adding cookies to the user's computer, right? Is there a way to check for these and rather then validate against the Link Checker, validate against whether the cookie was added to a computer or not? Say, from a computer that hasn't visited an Amazon link with your ID.

I don't really know about cookies, I've been using the checker and confirming with orders when I make one. There are a lot of combinations so I can't test them all, but so far I have since confirmed that my dual tag both validates and gives affiliate order credit to a previously unused tag, this was true from a desktop and via iPhone with a mobile redirect that further alters the URL.

I've also tested by ordering with other tag combinations and so far the only one that does not appear to have worked was the longer URL format that had a ? earlier in the URL and again for the tag. I only tested this via mobile. I will try it on desktop at some point too.

Digital Jedi 12-07-2010 01:17 PM

Whoops! I may have accidentally released my beta definition for IMDB in the Master XML. It is not funtional right now, so if you grabbed it with my last release, please feel free to delete it. That should haven't been in there.

M.C. 12-07-2010 03:43 PM

thanks, Jedi, for your explanation.... also about internal links... I tried .mp3 definition, but it didn't work for me.
My forum is in http://www.site.com/forum but my mp3s are in http://www.site.com/music/mp3s/ and I coudn't get links to work (yes I changed address in definition to my site)... should my mp3s to be in http://www.site.com/forum/mp3s or something like this?

Digital Jedi 12-07-2010 07:00 PM

Quote:

Originally Posted by M.C. (Post 2130484)
thanks, Jedi, for your explanation.... also about internal links... I tried .mp3 definition, but it didn't work for me.
My forum is in http://www.site.com/forum but my mp3s are in http://www.site.com/music/mp3s/ and I coudn't get links to work (yes I changed address in definition to my site)... should my mp3s to be in http://www.site.com/forum/mp3s or something like this?

It shouldn't matter what folder they're in, as long as you only changed the name, and didn't add the domain extension or anything like that. In other words, all you should have added was "site", not "site.com" or anything else. And, of course, the file URLs should end in .mp3.


All times are GMT. The time now is 08:51 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.03143 seconds
  • Memory Usage 1,760KB
  • 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
  • (3)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