Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - didoman

Pages: [1]
1
I would like to embed Dailymotion videos using the media template method.

I have created a new media templete and called it /templates/default/media/dmt.html
I have put in the embed code that will play the dailymotion video

<!-- Template file for DailyMotion -->
<object width="425" height="355" />
<param name="movie" value="{media_src}"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" src="{media_src}" width="425" height="355" allowfullscreen="true" allowscriptaccess="always">
</embed>
</object>

My problem is when I add the "media_src" when adding a new image eg. http://www.dailymotion.com/swf/video/xhwuvu.dmt
It does not work, because Dailymotion does not need the file extension. Example .dmt
It only works if the file is like http://www.dailymotion.com/swf/video/xhwuvu --- without the .dmt file extension at the end.

is there a way to add new media that doesn't need a file extension?

2
I have version 1.7.6

Is it possible to have a mod where users who are NOT from the USA are directed to a different download link URL

Example.
If you are from the USA and you click on the download button, then you are directed to the URL in the download field (normal process)
BUT.... if you are from another country then you will be sent to a different URL

To put it another way....
If you are from USA and click on the download button then you are directed to the URL in the download field (normal process)
If you are from Australia and click the download button then your directed to australiaurl.com (whatever)
If you are from England and click on the download button then your directed to englandurl.com (whatever)
Etc Etc Etc.....

Basically I want an intelligent download button that knows your not from the USA so directs you to an appropriate URL based on your country.

I have searched the forum and I cant find anything similar to this.
Any help or a push in the right direction will be muchly appreciated...

4IMAGES ROCKS!  :mrgreen:




Pages: [1]