Page 1 of 1

"Moderator" Info View Template - UPDATE

Posted: Tue Jan 17, 2012 12:32 am
by FineWine
Recently I had accepted an Info View Template called "Moderator" http://www.bruji.com/extras/moderator.html. This template was especially designed for Doghouse Moderators to enable easier search checking of DVD's.

Conor has kindly added a piece of Java Script to the Bruji servers which enables multiple Amazon site searches depending upon your country of origin Region Code.

Now, if you do not mind getting your hands dirty within the HTML code of the template, then you can easily modify it to utilise this little piece of server based Java script to reflect your Regions Amazon searches or any such combination of Amazon based countries.

The Info View Templates can be found here: ~/Library/Application Support/DVDpedia/InfoTemplates
If you are running OS 10.7.* and the Home directory is not present in Finder then in the Finder Menu bar click on Finder-Preferences and Tick your Home directory under Favorites (the one with the little house icon). You will now see the Library directory.

The line of code you are looking to modify is the third line after the <div class="mainInfo"> line:

Code: Select all

<!--IFasin<div class="field"><div class="title">[translate:asin]:</div><div class="text"><a href="http://www.amazon.com/dp/[key:asin]">[key:asin]</a></div></div>ENDasin-->
So to open the English speaking sites (USA - UK - Canada) you would modify the href= section to read:

Code: Select all

http://www.bruji.com/temp/asin.html?asin=[key:asin]&uk=1&ca=1
Here is a full list of the Amazon based countries code:

Code: Select all

http://www.bruji.com/temp/asin.html?asin=[key:asin]&uk=1&ca=1&fr=1&it=1&es=1&de=1&cn=1&jp=1
The USA is the default Amazon site and will always open first.

If you do not want to get your hands dirty then PM me with your email address stating what Amazon sites you would like to include in your Moderator template and I will send you a modified Template. If you have other non Amazon search sites you would like to include in the bottom bar of the Template, include those as well in your email. This might be particularly relevant to our Asian DVDpedia users.

Here are two handy tutorial sites written by our good friends at Bruji concerning writing and modifying Info View Templates:

http://www.bruji.com/howto/templates.html
http://www.bruji.com/howto/creating_tem ... index.html

Plus I have always found this site to be of great help:

http://www.w3schools.com/html/default.asp

Cheers

Re: "Moderator" Info View Template - UPDATE

Posted: Wed Jan 18, 2012 11:26 am
by Nora
Excellent, thanks for sharing FineWine!

Note for other moderators using this template: if you add this to your template make sure you also set your Pedia Preferences to "Open link in external browser" and stop your browser from blocking pop-up windows since otherwise only the default US Amazon site will be opened.

Re: "Moderator" Info View Template - UPDATE

Posted: Wed Jan 18, 2012 4:08 pm
by FineWine
Oh Yes - Thanks Nora - I forgot about the browser settings.

And to those who are interested in editing ANY of the pedia html files, I strongly recommend TextWrangler as your editor. It adheres to all the international standards and is so easy to use. I learnt html and css using this great App.
It is available in the App store or the company site.

http://itunes.apple.com/au/app/textwran ... 0395?mt=12

http://www.barebones.com/products/textwrangler/

Re: "Moderator" Info View Template - UPDATE

Posted: Tue Apr 24, 2012 1:31 am
by FineWine
Nora wrote:Note for other moderators using this template: if you add this to your template make sure you also set your Pedia Preferences to "Open link in external browser" and stop your browser from blocking pop-up windows since otherwise only the default US Amazon site will be opened.

Code: Select all

<a href="http://www.bruji.com/temp/asin.html?asin=[key:asin]&uk=1">[key:asin]</a>
Unfortunately this does not seem to be working now - your site is coming up with "Page does not exist." Not even the default US site is opening.

Cheers

Re: "Moderator" Info View Template - UPDATE

Posted: Mon Dec 03, 2012 11:00 pm
by FineWine
Conor after a long break from doing Moderator duties, I have come back to it but find the above is no longer working.

Re: "Moderator" Info View Template - UPDATE

Posted: Tue Dec 04, 2012 11:22 am
by Conor
Sorry about that, got moved in a spring cleaning. I have put the file back and it should be working again.

Re: "Moderator" Info View Template - UPDATE

Posted: Tue Dec 04, 2012 1:03 pm
by FineWine
thanks alls working again

Merry Christmas to all