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
Using custom graphics for layout design?
Author Message
DVD Profiler Unlimited RegistrantKurgos
Registered: November 30, 2007
Denmark Posts: 9
Posted:
PM this userEmail this userDirect link to this postReply with quote
I have been reading the Help-file over and over again, and I still do'nt understand it.

I have made a custom layout and I want to use some of my own graphics for decoration. I understand how to add a new image at the mages-tab and it shows up in the list of available images allright. But how do I implement it in my HTML-window?

I recognize that the images (DVD-logos and such stuff) are placed here (on my XP-machine):
  • C:\Documents and Settings\Kurt\Application Data\DVD Profiler\Temp\Design.

  • I can get t to word by using IMG and use the absolute path to the mage file in this folder, but i'm pretty sure that this is'nt the smartest way to make a design ;-)

    BTW: Why are these standard images placed in a subfolder to a TEMP-folder?
     Last edited: by Kurgos
    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
    Depends on how you want to use them.
    a) As static images (it's always used) - Use $DPIMAGES.filename.ext
    b) In JavaScript it's a little bit trickier, because we cannot use $DPIMAGES there:

    Quote:
    var path = DP_ProgramPathTemp + "Design\\"

    function SuchenUndErsetzen(QuellText, SuchText, ErsatzText){
           var LaengeSuchText = SuchText.length;
            var LaengeErsatzText = ErsatzText.length;
            var Pos = QuellText.indexOf(SuchText, 0);

            while (Pos >= 0){
                    QuellText = QuellText.substring(0, Pos) + ErsatzText + QuellText.substring(Pos + LaengeSuchText);
                    Pos = QuellText.indexOf(SuchText, Pos + LaengeErsatzText);
            }
            return QuellText;
    }

    path =  SuchenUndErsetzen(path, '\\','/');


    The absolute path is now saved in path.

    For the imdb-link: do a search, it was done before...

    Deutsches DVD Profiler Forum: www.dvdprofiler-forum.de
     Last edited: by SH84
    DVD Profiler Unlimited RegistrantKurgos
    Registered: November 30, 2007
    Denmark Posts: 9
    Posted:
    PM this userEmail this userDirect link to this postReply with quote
    I'm still making experments. This works:

    <a href="http://www.imdb.com" target="_blank"><img src="$DPIMAGES.imdb.JPG"></a>

    As You can tell, I want to place the IMDB-logo on each page and when clicking om it, the link opens in a new window and leads to the propiate page on IMDB.

    I can magine that there is a smarter way to do this? With my method I can only link to the main page - not to the specific film - since the layout-code is general for all profiles.

    Is it possible to make a custom field where I can enter the deep link to the film i.e. http://www.imdb.com/title/tt0057681/ when I generate a new profile in the database?

    This case is specific and only one example - I still would like to know about the general method and syntax for placing userdefined graphics as a layout element in a profile.
        Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next