Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next
Conditional in html
Author Message
DVD Profiler Unlimited Registrantbdixon
Registered: March 16, 2007
United Kingdom Posts: 68
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
I want to have the last watched information displayed above the overview. I have managed to do this but when i haven't watched a dvd i get the text information still. Is there a way to only display this information if a dvd has been watched?

Currently:
Watched DVD - "Last watched by Ben on 27/07/07"
Unwatched DVD - "Last watched by on"

Wanted:
Watched DVD - "Last watched by Ben on 27/07/07"
Unwatched DVD - <nothing>
DVD Profiler Desktop and Mobile RegistrantStar ContributorSH84
Registered: March 13, 2007
Reputation: High Rating
Germany Posts: 922
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
You'll have to use JavaScript for that:

Quote:
<script language="JavaScript">

last_watch = "<DP NAME="LAST_WATCHED_BY">";
last_watch_on = "<DP NAME="LAST_WATCHED_ON">";

if (last_watch.length != 0 && last_watch_on.length != 0 ){
document.write("Last watched by " + last_watch + " on " + last_watch_on);
}
</script>

Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de
 Last edited: by SH84
DVD Profiler Unlimited Registrantbdixon
Registered: March 16, 2007
United Kingdom Posts: 68
Posted:
PM this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Thank you! 
DVD Profiler Desktop and Mobile RegistrantMarEll
Registered: June 9, 2007
United Kingdom Posts: 1,208
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
where do you type that?? notes?
DVD Profiler Unlimited RegistrantStar Contributornorthbloke
Registered: March 15, 2007
Reputation: High Rating
United Kingdom Posts: 5,459
Posted:
PM this userDirect link to this postReply with quote
No, I think they're talking about an HTML window that bdixon has made.
DVD Profiler Desktop and Mobile RegistrantMarEll
Registered: June 9, 2007
United Kingdom Posts: 1,208
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Oh yeah, cheers it works fine now.
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next