T O P I C R E V I E W |
mon1y |
Posted - 22 Jun 2013 : 06:18:10 In the actor movie card under Movie in Database you should see the actor age but so far I have only seen one actor whose Movie in Database show the age. Even after deleting the actor and re-enter it doesn't help. I'm using movie_bigcover.htm. Anybody else has this problem. Thanks ahead. |
18 L A T E S T R E P L I E S (Newest First) |
Alessio Viti |
Posted - 23 Aug 2013 : 06:56:58 Hello guys and sorry for late reply!
The age is calculated directly by MovieCard, I don't know if I can do it inside XMM instead. I will take a look.
Thank you!
Ale |
yan00s |
Posted - 19 Aug 2013 : 20:03:24 quote: Originally posted by Miyuri
Well ...
Both ages are correct.
2013 -> age 42 2004 -> age 33
The skript show you the age from the actor and in the overview from the movies how old he was if the move was make.
Its not a bug Its a feature ;)
It works as long as Filmography2 is filled. What mon1y is looking for's a solution not relying on that field. |
Miyuri |
Posted - 19 Aug 2013 : 10:25:21 Well ...
Both ages are correct.
2013 -> age 42 2004 -> age 33
The skript show you the age from the actor and in the overview from the movies how old he was if the move was make.
Its not a bug Its a feature ;) |
yan00s |
Posted - 15 Aug 2013 : 19:53:36 quote: Originally posted by mon1y
Can you get Alisio to implement it?
I really don't know.
If Ale reads this and thinks it's a good idea he may implement it. But I've no means to make him do so. |
mon1y |
Posted - 13 Aug 2013 : 22:43:59 Can you get Alisio to implement it? because If I did as you suggested it will only work in mine. |
yan00s |
Posted - 12 Aug 2013 : 20:36:42 Well, I'd say it's a missing feature. As I've showed there's (another) way to do it but it's not really up to me to implement it. ;)
BTW my workaround will not touch your db, only the html card and it's script. To be on the safe(r) side you could copy the originals and then alter & save the copies uunder a different name. Note: you'd need to change the actor-copy.js script link too. |
mon1y |
Posted - 12 Aug 2013 : 07:43:07 yes, they all do not have the Filmography2 filled. But the one that I found working properly do have the Filmography2. As I mention from the beginning most of my entry are manual so I never filled the Filmography2 (if there is one) - don't like script because I don't need bloated informations. The one that do work somehow get automatically filled by the script.
I'm not going to attempts your procedure because I don't like to take the risk of messing the db. But don't you think this is a bug? because as I quote JDommi above " ...Data is data - no matter if added by script or manual!". Thanks ahead... |
yan00s |
Posted - 11 Aug 2013 : 14:54:29 quote: Originally posted by mon1y
Hi Yan00, thank you for still following my problem because I thought it was hopeless. The problem is point 2. There is no age on most all of the actors card as shown in your description. Point 1 is alright - no problem.
We may be getting somewhere. For the actors you don't see the "movie age", is there anything written into the Filmography2 field? If not than the js function used here will not work. For some reason it relates to values written to that particular field. That's what I could reproduce.
There's a way to get the actor age even if you do not want to fill the "filmography2" field - which would bloat your db massively. Warning: that's in no way official and it may break everything and more so use it at your own risk.
Step 1: Changing the actor.htm card (.../PeopleCards folder)
(a) add the following to the head section:
<script type="text/vbScript">
bHelp = "_ACTOR_BIRTHDATE_"
if Len(bHelp) = 10 then
bHelp = CDate(bHelp)
bYear = year(bHelp)
end if
</script>
(b) Find this in the body section:
<span class="filmon"><a href="" onClick="window.external.COLLECTION_FINDMOVIE('_MOVIE_ID_');return false;"><b class="midt gtype_MOVIE_ACTOR_IS_TVSHOW_"> <span class="midto">_MOVIE_ACTOR_TITLE_</span> (<span class="midy">_MOVIE_ACTOR_YEAR_</span>)</b></a>
(c) Insert the following directly after the link end tag(*):
<script type="text/vbscript">
mYear = CInt("_MOVIE_ACTOR_YEAR_")
if bYear > 0 then
approxPlayAge = mYear - bYear
if approxPlayAge > 0 then
document.write("<span style='color:green'> [Age: " & approxPlayAge & "]</span>")
end if
end if
</script>
Step 2: changing actor.js (.../PeopleCards folder) - so if Filmography2 is filled you will not get double entries
Note: Since the script is minified it may be a bit tricky to change it. If you happen to have Notepad++ with the JSMin addon things will be easier after applying JSFormat
Find the following:
if (b.length != 0) {
$("span.midy", $("#moviesindatabase")).each(function () {
var n = $(this).text();
if (n != "") {
$(this).parent().parent().after('#8194;<span style="color:blue;">[' + j + ': <span style="font-weight:bolder;">' + (Number(agehelper) + Number(n)) + "</span>]</span>")
}
})
}
.. and comment it out with:
//
in front of each line / instruction
--
(*) Just in case, that's the link end tag:
</a>
-- Update Please note:
You may see biblical ages for artists (could be writers and maybe composers) who were dead when the film was made. I haven't added anything to check for this case.
-- Update: changed the initial script part so there are (hopefully) no more data type mismatches if the birth date is empty. |
mon1y |
Posted - 11 Aug 2013 : 03:22:22 Hi Yan00, thank you for still following my problem because I thought it was hopeless. The problem is point 2. There is no age on most all of the actors card as shown in your description. Point 1 is alright - no problem. |
yan00s |
Posted - 08 Aug 2013 : 22:21:23 quote: Originally posted by mon1y
quote: Originally posted by yan00s
Sorry, can't reproduce it. If I add a date manually I see the value (after reloading the card by navigating in the grid).
There's a date picker coming with the field, does it work when you use it for selecting a birthdate?
Even if I use the date picker it doesn't work. There are may be 3 actors card so far that I've seen by chance that has the age. Sure is a strange problem. I don't understand why I have a problem even though I installed it on a new fresh laptop and from full version EMM8.
Just to make sure - that's what you're missing (1) and (2), right?
|
mon1y |
Posted - 06 Aug 2013 : 09:46:51 quote: Originally posted by yan00s
Sorry, can't reproduce it. If I add a date manually I see the value (after reloading the card by navigating in the grid).
There's a date picker coming with the field, does it work when you use it for selecting a birthdate?
Even if I use the date picker it doesn't work. There are may be 3 actors card so far that I've seen by chance that has the age. Sure is a strange problem. I don't understand why I have a problem even though I installed it on a new fresh laptop and from full version EMM8. |
yan00s |
Posted - 01 Aug 2013 : 22:44:41 Sorry, can't reproduce it. If I add a date manually I see the value (after reloading the card by navigating in the grid).
There's a date picker coming with the field, does it work when you use it for selecting a birthdate? |
mon1y |
Posted - 30 Jul 2013 : 08:34:22 This problem continued to be a pet peeve of mine. Even though I installed the full version of EMM8 in a freshly formated laptop the problem still persist. The example of actors/movies that come with full version EMM8 has the actor age listed in the Actor html card next to the movie (in Movie Database). But when I tried to manually added just one to see if it will work - it doesn't work. So can someone tell me what is going on. If the community read this can you guys please tell me if you have the same problem or not. Appreciate |
JDommi |
Posted - 26 Jun 2013 : 22:16:29 There must be a difference. Data is data - no matter if added by script or manual! Try to add these lines before the last </div> of the biography section (2 lines above <!--END_MOVIES-->) to test if the variable format is equal on the different movies: <script type="text/javascript"> alert('_MOVIE_ACTOR_YEAR_'); alert(bdate); </script> |
mon1y |
Posted - 26 Jun 2013 : 21:20:52 quote: Originally posted by JDommi
Wrong date format for the js-function used in the card for this age calculation?
The age format is the same as the one that work. The only different is the one that work is script filled. While all my entry is manual and none work. I figured that it should work both ways - manual and script - but it doesn't. |
JDommi |
Posted - 24 Jun 2013 : 07:18:43 Wrong date format for the js-function used in the card for this age calculation? |
mon1y |
Posted - 24 Jun 2013 : 02:31:51 quote: Originally posted by yan00s
Well, this info will be shown only if XMM actually knows the birth date. Have you checked if the field is filled? Maybe wasn't imported ...
Yes all the date are filled. As I say above, that I even DELETED the actor card and Re-enter a new one and that doesn't help. Out of an entry of 2000+ actors only one so far that show the age in its Movie in Database and I found this by accident. For the record I enter most of my data manually.
|
yan00s |
Posted - 22 Jun 2013 : 11:37:35 Well, this info will be shown only if XMM actually knows the birth date. Have you checked if the field is filled? Maybe wasn't imported ... |