FancyIndex: Seeking template feedback

Talk to other Pedia users about the programs, share tricks and tips or ask questions about existing features.

Re: FancyIndex: Seeking template feedback

Postby marumari » Sun May 30, 2010 4:40 pm

Hubie / Conor - go ahead and give it another shot with this new code. I've found it to be 200-300% faster in my testing. :D

Make sure to do a hard refresh to make sure you get the newest fi.shared.js file.
marumari
Addicted to Bruji
Addicted to Bruji
 
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am

Re: FancyIndex: Seeking template feedback

Postby Conor » Mon May 31, 2010 4:10 am

Wow! That truly is an amazing speed boost. It's a bit scary as you are now almost achieve Pedia like speeds. I have included the new file in the shipping template and it's available in the beta 31 for anybody who doesn't know how to customize your template. I also updated to ignore the "An" article as I didn't see that there.

Code: Select all
         // Remove any instances of "The", "A " and "An" at the beginning of a string
         s = s.toLowerCase();
         if (s.substr(0,4) === "the ") { return s.substr(4); }
         else if (s.substr(0,3) === "an ") { return s.substr(3); }
         else if (s.substr(0,2) === "a ") { return s.substr(2); }
         else { return s; }


Thank you so much for improving that, I am sure a lot of users will be thrilled including Hubie.
User avatar
Conor
Top Dog
 
Posts: 5238
Joined: Sat Jul 03, 2004 12:58 pm

Re: FancyIndex: Seeking template feedback

Postby marumari » Fri Jun 11, 2010 8:56 am

Conor - I think I've made some changes since you list pulled the file in, namely updates to how Chrome resizes the table.

You may want to grab the latest version from here:

http://www.twoevils.org/html/mygames/Im ... .shared.js

For 4.6.2. :)
marumari
Addicted to Bruji
Addicted to Bruji
 
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am

Re: FancyIndex: Seeking template feedback

Postby sitenoise » Mon Jun 21, 2010 10:20 pm

Beautiful. Simply beautiful. I'm in love with whomever gifted this template to the peoples.

Here's a couple tweaks to consider:

In the FancyIndexDetails Header ... I changed
Code: Select all
<!--IFyear <span class="cbsubtitle">([key:year])</span> ENDyear-->

to
Code: Select all
<!--IFtheatrical <span class="cbsubtitle">[key:theatrical]</span> ENDtheatrical-->

but I'm confused by "year", "theatrical", and "releaseDate" keys, and all I care about is the theatrical date and nothing was showing up in the header when "year" was the key.


For consistency, you might consider adding <target="_blank"> to the links in the credits.


A few things that might interest other folks:

I added links to 'Ratings' and 'Awards' since these things update after I've added a title to DVDPedia
Code: Select all
<!--IFrating <tr><td class="cbtrans"><A href="http://www.imdb.com/title/tt[key:imdb]/ratings" target="_blank">[translate:Ratings]</a>:</td><td class="cbkeys">[key:rating]</td></tr> ENDrating-->

<!--IFawards <tr><td class="cbtrans"><A href="http://www.imdb.com/title/tt[key:imdb]/awards" target="_blank">[translate:awards]</a>:</td><td class="cbkeys">[key:awards]</td></tr> ENDawards-->


I also bumped up the (US) Amazon asin search (controversial) and but more cool I've added Netflix and YouTube Trailer searches to <div class="cbdata cbdatacol2"> ... so:
Code: Select all
<table>
      <!--IFgenre <tr><td class="cbtrans">[translate:genre]:</td><td class="cbkeys">[key:genre]</td></tr> ENDgenre-->
      <!--IFimdb <tr><td class="cbtrans">[translate:imdb]:</td><td class="cbkeys"><a href="http://www.imdb.com/title/tt[key:imdb]/" target="_blank">[key:imdb]</a></td></tr> ENDimdb-->
                       
                 <!--IFasin<tr><td class="cbtrans">[translate:Amazon]:</td><td class="cbkeys"><a href="http://amazon.com/dp/[key:asin]" target="_blank">[key:asin]</a></td></tr> ENDasin-->
                       
                <tr><td class="cbtrans">[translate:Search]:</td><td class="cbkeys"><A href="http://www.netflix.com/Search?ff2_submit.x=16&ff2_submit.y=13&v1=[key:title]" target="_blank">Netflix</A> &bull; <a href="http://www.youtube.com/results?search_query=[key:title]+trailer" target="_blank">YouTube</a></td></tr>
</table>
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
 
Posts: 199
Joined: Fri Mar 21, 2008 12:42 pm

Re: FancyIndex: Seeking template feedback

Postby Conor » Wed Jun 30, 2010 4:35 am

Thank you for all the improvements, enhancements and updates.

@Marumari. A small tweak I've done to your template is optimize the article ignored sorting. Since no matter what happens you will be lowercasing the string it's better to do it once at the beginning that several times. You might want to include it for you own use as well:

Code: Select all
         s = s.toLowerCase();
         if (s.substr(0,4) === "the ") { return s.substr(4); }
         else if (s.substr(0,3) === "an ") { return s.substr(3); }
         else if (s.substr(0,2) === "a ") { return s.substr(2); }
         else { return s; }
User avatar
Conor
Top Dog
 
Posts: 5238
Joined: Sat Jul 03, 2004 12:58 pm

Re: FancyIndex: Seeking template feedback

Postby marumari » Wed Jun 30, 2010 8:46 am

Conor -

Go ahead and put that into the fi.shared.js file that gets distributed with all the *pedias. The nice thing is that fi.shared.js is the same between all four versions of the template, so you can just copy it to each of them. You shouldn't need to make the tweak to each file.

Can you also add target="_blank" to the credit links, as so? There should be four links in the FancyIndexDetails.html file for DVDPedia.

Code: Select all
            <!--IFcredits
                  <span class="cbcredits">
                     <table>
                        <tr><td><a href="http://www.imdb.com/find?s=nm&q=[key:director]" target="_blank">[key:director]</td><td>&nbsp;&nbsp;...&nbsp;&nbsp;</td><td>([translate:director])</td></tr>
                        <tr><td><a href="http://www.imdb.com/find?s=nm&q=[key:writer]" target="_blank">[key:writer]</td><td>&nbsp;&nbsp;...&nbsp;&nbsp;</td><td>([translate:writer])</td></tr>
                        <tr><td colspan="3">&nbsp;</td>
                        [creditsBegin]<tr><td><a href="http://www.imdb.com/find?s=nm&q=[credit:name]" target="_blank">[credit:name]</td><td>&nbsp;&nbsp;...&nbsp;&nbsp;</td><td><a href="http://www.imdb.com/find?s=ch&q=[credit:role]" target="_blank">[credit:role]</a></td></tr>[creditsEnd]
                     </table>
                  </span>
               ENDcredits-->


I agree with ual that the year at the top of the details page on the DVD listing should be the theatrical release date, not the DVD or Blu-Rays release date. Unfortunately, since all the other dates follow the YYYY-MM-DD format, it would have the theatrical release date in the long format on top of each entry. I'm inclined to think that, really, [key:year] should be the theatrical release date year for DVDpedia, originalReleaseDate year for CDpedia, and the release date year for the other two. Thoughts?
marumari
Addicted to Bruji
Addicted to Bruji
 
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am

Re: FancyIndex: Seeking template feedback

Postby sitenoise » Thu Jul 01, 2010 7:41 pm

I changed the date format to just YYYY.
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
 
Posts: 199
Joined: Fri Mar 21, 2008 12:42 pm

Re: FancyIndex: Seeking template feedback

Postby sitenoise » Sun Jul 04, 2010 11:02 pm

Say, is there a way ... if I understand this properly ... to EXPORT (I'm using ftp) without the RSS sharing files? I don't need an RSS feed on the site and the xml files just add bulk and take time.
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
 
Posts: 199
Joined: Fri Mar 21, 2008 12:42 pm

Re: FancyIndex: Seeking template feedback

Postby Nora » Mon Jul 05, 2010 4:45 am

Edit the template and get rid of this line:

Code: Select all
<link rel="alternate" type="application/rss+xml" title="RSS" href="sharing/list.rss" />
User avatar
Nora
Site Admin
 
Posts: 2149
Joined: Sun Jul 04, 2004 5:03 am

Re: FancyIndex: Seeking template feedback

Postby sitenoise » Mon Jul 05, 2010 10:17 am

Nora wrote:Edit the template and get rid of this line:

Code: Select all
<link rel="alternate" type="application/rss+xml" title="RSS" href="sharing/list.rss" />


OK, so I removed that line and it still exported all the kagillion xml files. But yes, now there is no feed available.

As feedback, and I don't know that this is really peculiar to the FancyIndex template, but the RSS feed that results is pretty weird, imo, having nothing to do with, or showing any of, my information. What it has is:

a big image that appeared to come from Amazon (if image not in Amazon, no image), then
Director
Studio
Rated
Genre
Duration
Price
" Read more…" (which is just a link to whatever is in my URL field.

Four of those six "Field" bits of info are not present in anything about my html export, and weirdest of all, the "Source" link, which displays the title of my exported collection, is actually a link <http://www.bruji.com/sharing> that goes to the Bruji Homepage. I would have thought it would go to the URL of my export.

I didn't know what to expect, as I'm not interested in the RSS feed, but all this seems kind of weird and useless. It's kind of just a wannabe list of advertisements for Amazon, except the URL link doesn't often go there because I usually never have it in my URL field.

Again, I don't personally care about what the RSS feed does because I don't use it. It just seems weird to me. But I would really like to not have to export, and wait for, all the xml files to upload during ftp.

I don't know if you remember me, but I use DVDPedia as a movie reference, not a DVD collection, so I've got collections with over a thousand titles.
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
 
Posts: 199
Joined: Fri Mar 21, 2008 12:42 pm

Re: FancyIndex: Seeking template feedback

Postby marumari » Mon Jul 05, 2010 11:08 am

To be honest, I tried to figure out a way to remove all the RSS and xml bits (because they're useless with FancyIndex), but I couldn't figure out a way to completely turn it off. So, I left the RSS bits in so at least they'd have some use.
marumari
Addicted to Bruji
Addicted to Bruji
 
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am

Re: FancyIndex: Seeking template feedback

Postby sjk » Mon Jul 05, 2010 3:38 pm

ual wrote:…, but I use DVDPedia as a movie reference, not a DVD collection, …

DVDpedia is a bit too ownership-centric for my more general Moviepedia-style usage. I hope it'll eventually add a few features that more directly/conveniently supported rental/theatre/TV viewing, for instance.
User avatar
sjk
Addicted to Bruji
Addicted to Bruji
 
Posts: 529
Joined: Sat Feb 21, 2009 9:01 pm
Location: Eugene

Re: FancyIndex: Seeking template feedback

Postby kbarnes70 » Tue Jul 06, 2010 4:37 am

sjk wrote:DVDpedia is a bit too ownership-centric for my more general Moviepedia-style usage. I hope it'll eventually add a few features that more directly/conveniently supported rental/theatre/TV viewing, for instance.


Interesting. What features would you need for, say, a rental-based "collection"? I currently have a "Seen on TV" collection - I just get the movie info from IMDb and have made a couple of custom fields that show when I watched it and so on. What else do you have in mind?

Kind regards,

Keith
kbarnes70
Addicted to Bruji
Addicted to Bruji
 
Posts: 333
Joined: Tue Nov 11, 2008 3:15 pm
Location: United Kingdom

Re: FancyIndex: Seeking template feedback

Postby sitenoise » Tue Jul 06, 2010 8:32 am

Yeah, I'm doing pretty well with DVDPedia as a reference, research, and information tool. It's wonderfully customizable and extensible. I think Conor missed the memo that went out to Mac developers in the 90s saying "The Killer App is dead."
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
 
Posts: 199
Joined: Fri Mar 21, 2008 12:42 pm

Re: FancyIndex: Seeking template feedback

Postby kbarnes70 » Tue Jul 06, 2010 8:46 am

ual wrote:Conor missed the memo that went out to Mac developers in the 90s saying "The Killer App is dead."


:lol: Keith :lol:
kbarnes70
Addicted to Bruji
Addicted to Bruji
 
Posts: 333
Joined: Tue Nov 11, 2008 3:15 pm
Location: United Kingdom

PreviousNext

Return to PediaTalk