s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
I could create a custom BBCode for each media site in the pack, but that would not be a trivial change (it would take work) and it would have a cost in terms of performance. I'm afraid the costs really outweigh the benefits on this one.
 
Currently, "MEDIA=ebay" tags are not replaced with anything. The tags are still in the post but XenForo does not display them at all.

I don't know how many people are actually affected by it. Due to the time-sensitive nature of eBay auctions, it's possible that there's been no active thread with an eBay embed since eBay To Go disappeared. I'm waiting for feedback to decide what to do. Are you personally affected or was it an hypothetical?
Well, we had a few eBay links, but its certainly not something that's going to ruin the forum experience for us. It would be nice to be able to show them someday if you ever come up with a solution. The way it linked, ebay item #xxxxx, seemed a fine solution to me.
 
@Rambro You could use the Post Content Find / Replace tool to replace the now defunt MEDIA=ebay tags with URL tags. Would that work for you? The following settings can be used to replace tags from various local versions of eBay into links.

Code:
        Quick Find: [MEDIA=ebay
Regular expression: (\[MEDIA=ebay\](?:(?:item)?id=)?(\d+)\[/MEDIA\])i
Replacement String: [url=http://www.ebay.com/itm/$1]eBay item #$1[/url]
Code:
        Quick Find: [MEDIA=ebay
Regular expression: (\[MEDIA=ebay\]id=(\d+);lang=de_AT\[/MEDIA\])i
Replacement String: [url=http://www.ebay.at/itm/$1]eBay item #$1[/url]
Code:
        Quick Find: [MEDIA=ebay
Regular expression: (\[MEDIA=ebay\]id=(\d+);lang=en_GB\[/MEDIA\])i
Replacement String: [url=http://www.ebay.co.uk/itm/$1]eBay item #$1[/url]
Code:
        Quick Find: [MEDIA=ebay
Regular expression: (\[MEDIA=ebay\]id=(\d+);lang=de_DE\[/MEDIA\])i
Replacement String: [url=http://www.ebay.de/itm/$1]eBay item #$1[/url]
Code:
        Quick Find: [MEDIA=ebay
Regular expression: (\[MEDIA=ebay\]id=(\d+);lang=fr_FR\[/MEDIA\])i
Replacement String: [url=http://www.ebay.fr/itm/$1]eBay item #$1[/url]
Code:
        Quick Find: [MEDIA=ebay
Regular expression: (\[MEDIA=ebay\]id=(\d+);lang=it_IT\[/MEDIA\])i
Replacement String: [url=http://www.ebay.it/itm/$1]eBay item #$1[/url]
 
This would be a suggestion for XenForo then, as they are the ones who implemented this convention.

you got your point (y)


I could create a custom BBCode for each media site in the pack, but that would not be a trivial change (it would take work) and it would have a cost in terms of performance. I'm afraid the costs really outweigh the benefits on this one.

@bold: then don't do it, vote for performance :D
 
The current version of this add-on requires XenForo 1.4, that's why it doesn't work. Older versions would work with your older XenForo, although I'm not sure how far back you'd need to go.
 
@JoshyPHP

That makes sense. I reverted to a previous version and it works just fine.

This is another reason I need to block out some time to update to the latest version of xenforo.

Thank you for taking a look.
 
small enhancement request...

add style="border: none;" to the iframe code for pdf files that are rendered using google drive viewer? :) iframes usually have ugly borders. thanks!
 
In what browser do you see borders? Iframes used in the add-on have frameborder="0" which is usually interpreted as style="border:0" in most browsers.
 
oh. i am running a few version old build. i am using Chrome.

this is the code i see:
Code:
<iframe width="100%" height="500" src="https://docs.google.com/viewer?url=http%3A%2F%2Fwww.svnit.ac.in%2Fnotices%2FBtechfee2014.pdf&amp;embedded=true"></iframe>

Source

Should I update to the latest build?
 
Should I update to the latest build?
Oh you should always run the latest version, that's generally a good idea. However, that doesn't look like one of my embeds. The only Google Docs I support are Google Sheets. I think this embed comes from another add-on.
 
argh. right. i think this is being powered by some manual code you gave me in this thread few pages ago. so it is not part of the plugin. me bad... sorry :p fixed it myself.
 
Feature request... Amazon.in embeds. I believe Amazon.com links are already embedded. Sample embed code:

HTML:
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-in.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=IN&source=ss&ref=ss_til&ad_type=product_link&tracking_id=indibroaforu-21&marketplace=amazon&region=IN&placement=B00MITF3O4&asins=B00MITF3O4&linkId=WITY56SVRQMDXGXQ&show_border=true&link_opens_in_new_window=true">
</iframe>

Support for tracking id would be great as well!
 
@OperaManiac Where did you get that HTML? I have virtually no documentation about Amazon widgets despite spending quite a bit of time on it and so far Amazon has brought me nothing but pain. :(
 
Top Bottom