Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Name:
Email:
Subject:
Message icon:

Attach:
(Clear Attachment)
(more attachments)
Allowed file types: gif, jpg, png, txt, tpl, lng, ini, pvd, psf, ini, cfg, csv, zip, xml, pas, 7z
Restrictions: 4 per post, maximum total size 1024KB, maximum individual size 1024KB
Note that any files attached will not be displayed until approved by a moderator.
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the fifth word in this sentence?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: afrocuban
« on: November 09, 2020, 06:15:19 pm »

We are imensely grateful you are always, but always there for us, and I just don't want to turn out that it looks like I misuse your good will. We have to spare you and your time for more important things regarding PVD, and that is why I wrote that I won't bother you anymore.

Can't emphesize enough how we depend on you!
Posted by: Ivek23
« on: November 09, 2020, 07:46:51 am »

Thanks Ivek. I sincerely appreciate your help and your time. I'm getting "\warning.php" while trying to donload skin. Never mind. Don't bother yourself anymore. I'll adjust my ideas to my competeneces and PVD design possibilities.
Best regards

If I can help you make the poza easier to your liking, why not. What I mentioned around the blank fields of vision was just my suggestion of how I would do it. On the other hand, you are also right to do something to your taste and desires. I hope you manage to make the skin the way you want to have it, but you can also share it with others if you naturally want to and maybe give them inspiration to create their own skin.

I'm sorry, I didn't mean anything wrong with the suggestions.
Posted by: Ivek23
« on: November 08, 2020, 10:12:22 pm »

Thanks Ivek. I sincerely appreciate your help and your time. I'm getting "\warning.php" while trying to donload skin. Never mind. Don't bother yourself anymore. I'll adjust my ideas to my competeneces and PVD design possibilities.
Best regards

No problem. I have now attached each individual skin.
Posted by: afrocuban
« on: November 08, 2020, 08:26:10 pm »

Thanks Ivek. I sincerely appreciate your help and your time. I'm getting "\warning.php" while trying to donload skin. Never mind. Don't bother yourself anymore. I'll adjust my ideas to my competeneces and PVD design possibilities.
Best regards
Posted by: Ivek23
« on: November 08, 2020, 04:53:39 pm »

It looks like fields containing URLs cannot be centered.

Thanks a llot Ivek! "Wordwrap" seems to work only for labels, not for other fields, so we are pretty limited with that... So if I have a movie with the long title, for example, "Jim & Andy: The Great Beyond - Featuring a Very Special, Contractually Obligated Mention of Tony Clifton"
theres no way it's title to be seen in the skin in whole with the font size bigger than 14 or so because of the single line field... Who would say about such a strange limitation...

Some things cannot be done to our liking.



I am attaching a PVD IMDb Conservative AllPhoto Full HD v2 - Dark_MOD zip file with two mod fixes to your Dark Theme skin and two skin test with colors and certain blank skin codes for any skin editing help.

By the way, another piece of advice that you might add somewhere from the tests of the skin so that certain fields will not be visible if they are empty.
Posted by: Ivek23
« on: November 08, 2020, 04:26:30 pm »

The following custom fields can be added to the IMDB_ [EN] [HTTPS] script.

Origtitle, Title and Localized title custom box.

Quote
Function ParsePage_IMDBMovieBASE(HTML:String):Cardinal; //BlockOpen
.
.
.
    LogMessage('Function ParsePage_IMDBMovieBASE BEGIN======================|');
    Result:=prFinished;  //It will change to prError if any big problem with exit;
    //Because the script don't retreives the data in the page order a token search for the first curPos position or block select is mandatory
    //Get ~title~, ~year~, ~origtitle~, ~poster~
    //Get all "raw" title summary (in raw because we need the hidden links, we avoid "complete" token in strings which opens/closes)
    ItemList:=TextBetWeenFirst(HTML,'<div class="title_block"','div class="plot_summary_wrapper">'); //WEB_SPECIFIC.
    If (Length(ItemList)>0) Then Begin
        //Get ~title~
        titleValue:=TextBetWeenFirst(ItemList,'<h1 class="">','<');       //Strings which opens/closes the data. WEB_SPECIFIC
        If titleValue = '0' then titleValue:='';
        If titleValue = '' then titleValue:=TextBetWeenFirst(ItemList,'<h1 class="long">','<');       //Strings which opens/closes the data. WEB_SPECIFIC
        AddFieldValueXML('title',titleValue);
      AddCustomFieldValueByName('Title',titleValue);
      AddCustomFieldValueByName('Localized title',titleValue);

        LogMessage('      Get result title:'+titleValue+'||');   
         //First normal kind get of ~year~
        ItemValue:=TextBetWeenFirst(ItemList,'<span id="titleYear">(',')</span>            </h1>');                                 //Strings which opens/closes the data. WEB_SPECIFIC     
        AddFieldValueXML('year',ItemValue);
.
.
.
        //Get ~origtitle~
        ItemValue:=TextBetWeenFirst(ItemList,'<div class="originalTitle">','<');          //Strings which opens/closes the data. WEB_SPECIFIC
        If (Length(ItemValue)=0) Then ItemValue:=titleValue;                           //Provider hides the original title if same that title. WEB_SPECIFIC
        AddFieldValueXML('origtitle',ItemValue);
      AddCustomFieldValueByName('Origtitle',ItemValue);
        LogMessage('      Get result origtitle:'+ItemValue+'||');
        ItemValue:=TextBetWeenFirst(ItemList,BASE_URL_IMAGE_PRE_TRUE,'.');

Quote
Function ParsePage_IMDBMovieAKA(HTML:String):Cardinal; //BlockOpen
    //Returns:
    //     Result:=prFinished; Script has finished gathering data
    //     Result:=prError; If żany big problem? with exit;
    //Retrieve: ~aka~ "Also Known As"
  Var
    curPos,endPos,index:Integer;
    ItemValue,ItemList:String;
    ItemArray: TWideArray;
  Begin
    LogMessage('Function ParsePage_IMDBMovieAKA BEGIN=====================||');
    Result:=prFinished;  //It will change to prError if any big problem with exit;
    //Get ~aka~ (several values in a line break separated list) Be careful don't repeat
    if (Pos('It looks like we don'+Chr(39)+'t have any AKAs for this title yet.',HTML)>0) then Exit;
    //Go to "Also Known As"
    curPos:=Pos('class="ipl-list-title">Also Known As (AKA)',HTML);                      //Strings start which opens the block content data. WEB_SPECIFIC
    curPos:=PosFrom('</h4>',HTML,curPos);                                              //Strings end which opens the block content data.  WEB_SPECIFIC
    curPos:=curPos+Length('</h4>');                                                    //Strings end which opens the block content data.  WEB_SPECIFIC
    //Get all "raw" list aka for create good values separators
    endPos:=PosFrom('</table>',HTML,curPos);                                            //Strings which opens/closes the data. WEB_SPECIFIC
    ItemList:=Copy(HTML,curPos,endPos-curPos);
    ItemList:=StringReplace(ItemList,'<td class="aka-item__name--empty"></td>','(Empty)|',True,True,False);   //Fill the empty values (in countries) con in order to asure that ExplodeString get a value. WEB_SPECIFIC
    ItemList:=StringReplace(ItemList,'<td></td>','(Empty)|',True,True,False);             //Fill the empty values (in countries) con in order to asure that ExplodeString get a value. WEB_SPECIFIC
    ItemList:=StringReplace(ItemList,'</td>','|',True,True,False);                      //WEB_SPECIFIC
    //Get all aka list (NOT necesary in raw because: Several couple of valors (Country/title) but the first is the original title
    ItemList:=RemoveTags(ItemList, False);
    LogMessage('           Parse results ('+IntToStr(curPos)+','+IntToStr(endPos)+') complex ItemList:'+ItemList+'||');
    ExplodeString(ItemList,ItemArray,'|');
    ItemValue:='';
    For index:=Low(ItemArray) To High(ItemArray) Do Begin        //Remember index begin in 0
        If (Pos('original title',ItemArray[index])>0) then begin
            AddFieldValueXML('origtitle',ItemArray[index+1]);       //WEB_SPECIFIC
         AddCustomFieldValueByName('Origtitle',ItemArray[index+1]);       //WEB_SPECIFIC
            LogMessage('      Get result origtitle:'+ItemArray[index+1]+'||');
        end else begin
            //Verify if we get before the same title
            If (Pos(ItemArray[index+1],ItemValue)=0) Then ItemValue:=ItemValue+'<br>'+ItemArray[index+1];
        end;
        index:=index+1;  //In order to make a for loop with +2 increment (one here and one by the for).
    End;
    AddFieldValueXML('aka',ItemValue);
    LogMessage('      Get results aka:'+ItemValue+'||');
    LogMessage('Function ParsePage_IMDBMovieAKA END=====================||');
  End; //BlockClose

These custom fields will be added in the next script update.

IMDB_ [EN] [HTTPS] _ (afrocuban) script is attached.
Posted by: afrocuban
« on: November 08, 2020, 02:15:09 am »

It looks different field types react different against same attribute. For example, 'Title' (simple edit) and 'human' (link memo) fields don't respond same on halign="center", or autosize="true", etc...

Here, Title (It's custom Title from AMG script) is "short text" field with additional Year field:
Quote
<row>
     <column space="0" halign="left" autosize="true" wordwrap="true">List number<spacer width="8"/><num width="92">Ordinal number
         <font>
              <size>24</size>
              <color>$FDD017</color>
            </font></num></column>
        <column space="0" halign="center" wordwrap="true" width="100%">Custom (English) Movie Title with year
         <custom field="Title" autosize="true">Custom Title
            <font>
               <size>24</size>
               <color>$FDD017</color>
            </font>
         </custom>
         <label autosize="true">Left Bracket label
            <font>
               <size>24</size>
               <color>$FDD017</color>
            </font>
            <caption> (</caption>
         </label>
            <year autosize="true">Year
            <font>
               <size>24</size>
               <color>$FDD017</color>
            </font>
            </year>
         <label autosize="true">Right Bracket label
            <font>
               <size>24</size>
               <color>$FDD017</color>
            </font>
            <caption>)</caption></label>
         </column>
      </row>

and the result is:



Now, exactly the same formatting, but Title is "memo" field (It's custom Title1 from AMG script which contains year by design) again with additional Year field:

Quote
<row>
            <column space="0" halign="left" autosize="true" wordwrap="true">List number
               <spacer width="8"/>
               <num width="92">Ordinal number
                  <font>
                     <size>24</size>
                     <color>$FDD017</color>
                  </font>
               </num>
            </column>
            <column space="0" halign="center" wordwrap="true" width="100%">Custom (English) Movie Title with year
               <custom field="Title1" autosize="true" collapsedlines="3">Custom Title
                  <font>
                     <size>24</size>
                     <color>$FDD017</color>
                  </font>
               </custom>
               <label autosize="true">Left Bracket label
                  <font>
                     <size>24</size>
                     <color>$FDD017</color>
                  </font>
                     <caption> (</caption>
               </label>
               <year autosize="true">Year
                  <font>
                     <size>24</size>
                     <color>$FDD017</color>
                  </font>
               </year>
               <label autosize="true">Right Bracket label
                  <font>
                     <size>24</size>
                     <color>$FDD017</color>
                  </font>
                     <caption>)</caption>
               </label>
         <spacer width="10"/>
            </column>
         </row>

but the result is surprisingly (and frustrating) different:


Posted by: afrocuban
« on: November 07, 2020, 06:24:53 pm »

Thanks a llot Ivek! "Wordwrap" seems to work only for labels, not for other fields, so we are pretty limited with that... So if I have a movie with the long title, for example, "Jim & Andy: The Great Beyond - Featuring a Very Special, Contractually Obligated Mention of Tony Clifton"
theres no way it's title to be seen in the skin in whole with the font size bigger than 14 or so because of the single line field... Who would say about such a strange limitation...
Posted by: Ivek23
« on: November 07, 2020, 05:00:25 pm »

Thanks for the skin. I will look at it and test it, then help and answers will be easier. Maybe I'll know more tomorrow and maybe there will be some solution in sight, we'll see.
Posted by: afrocuban
« on: November 07, 2020, 01:07:39 pm »

Thanks Ivek. Of course I consult that link but no troubleshooting there. Here's the skin, lines 68-112. Skin is not finished, I just started to make it, basically, nothing after line 112 is finished
Posted by: Ivek23
« on: November 07, 2020, 10:58:50 am »

Thanks for clarification!

Still, I need help. When <title> is equal to <origtitle>, origtitle becomes invisible in the skin. Is there a way to force origtitle to be visible in the skin anyway?

If <title> and <origtitle> have the same movie title, then the origtitle normal field is by no means visible. It is only possible in a custom box where it is always visible.

In the following example, I applied exactly the same formatting as in the code above, but in this case one field is linkified - "Director" field. Both codes, the code above and the following code, are presented in the screenshots of the skin (Original title and Title in one row, and Director in the row below it)

Attach the skin you are editing now for easier help so I can see and then respond more easily.

By the way, at this link you have more information for skins.

http://www.videodb.info/help/hlp_skins.html
Posted by: afrocuban
« on: November 06, 2020, 11:03:58 pm »

It looks like fields containing URLs cannot be centered.

In the following example, I applied exactly the same formatting as in the code above, but in this case one field is linkified - "Director" field. Both codes, the code above and the following code, are presented in the screenshots of the skin (Original title and Title in one row, and Director in the row below it)

Quote
<column space="10" halign="center" wordwrap="true">Director(s) label and Director(s)
                  <spacer width="80"/>
                  <label autosize="true">Director(s) label
                    <font>
                            <italic/>
                            <bold/>
                          </font>
                    <caption>Director(s):</caption>
                  </label>
                  <human category="1" autosize="true">Director
                  </human>
                  </column>

And the result is absolutely different.



and here how edited skin looks like:



Am I doing something wrong, or this is the fact, by design? Can someone confirm please?
Posted by: afrocuban
« on: November 06, 2020, 02:15:53 am »

Thanks for clarification!

Still, I need help. When <title> is equal to <origtitle>, origtitle becomes invisible in the skin. Is there a way to force origtitle to be visible in the skin anyway?

I have created custom field 'Origtitle' and put
Code: [Select]
AddCustomFieldValueByName('Origtitle',ItemValue); in the IMDB_[EN][HTTPS].psf, but if forcing visibilty of origtitle is not possible, may I kindly ask yo to include 'Origtitle' as official custom field in the skin?

It's not a problem for me to manully paste the code line above on every script update, but the problem will be that, when the script update happens, I will for sure forget "why now Original Title is not imported?" and that I have to paste that line, hahahaha.

Thanks in advance.

P.S. I have resolved centering. I put everything in one column, and put spacer with appropriate width in front of the first item in the column:
Quote
<column space="10" halign="center" wordwrap="true">Custom Original Title label and Custom Original Title
               <spacer width="80"/>
                  <label autosize="true">Original Title<font>
                            <italic/>
                            <bold/>
                          </font><caption>Original Title:</caption></label>
               <custom field="Origtitle" autosize="true">Custom Original Title
                 <font>
                     <size>11</size>
                     <color>$FF9900</color>
                  </font>
                  </custom>
                  <label autosize="true">Localized title label<font>
                            <italic/>
                            <bold/>
                          </font><caption>Localized Title:</caption></label>
                  <title autosize="true">Localized title
                  <font>
                     <size>11</size>
                     <color>$FF9900</color>
                  </font>
                  </title>
                  </column>

Thanks for inspiring!
Posted by: Ivek23
« on: November 05, 2020, 08:36:36 am »

Thanks Ivek! It work flawlessly!

I am pleased.

Regarding movie list in the tree on the left, you think the font can only be black when not selected, or white when selected?

Exactly as already said.
Posted by: afrocuban
« on: November 04, 2020, 09:01:14 pm »

Thanks Ivek! It work flawlessly!

Regarding movie list in the tree on the left, you think the font can only be black when not selected, or white when selected?



Posted by: Ivek23
« on: November 04, 2020, 06:42:54 pm »

Hello! Is it possible to change the color of the list font found in Preferences->Appereance as well as awards tree in the skin?

Yes, you can change the colors there. Here is one option for a change in the skin.
Quote
                    <row>
                      <column space="2" halign="center">
                        <splitter/>
                      </column>
                    </row>
                    <row>
                      <column space="0" halign="left" valign="top">
                        <awards>
                          <font>
                      <bold></bold>
                            <italic/>
                     <size>11</size>
                            <color>$1210AE</color>
                          </font>
                    <catfont>
                     <bold></bold>
                     <size>11</size>
                     <color>$AE0EAE</color>
                     </catfont>
                        </awards>

                      </column>
                      <column halign="center" valign="top">>Connections<custom field="Connections">
                          <font>
                            <color>$003399</color>
                          </font>
                        </custom></column>
                      <column space="0" halign="right" width="48" valign="top">
                        <fieldlabel field="mpaa" width="46">
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                        </fieldlabel>
                      </column>
                      <column space="10" halign="left" width="268" valign="top">
                        <mpaa autosize="true"/>
                      </column>
                    </row>
                    <row>

If it is possible, I guess it has to be done via pvconfig.ini, but I don't know how.

Quote
TreeFont=Verdana|10|100

Unfortunately I don't have the right answer to this, but I don't think a change is possible in pvconfig.ini .
Posted by: afrocuban
« on: November 04, 2020, 09:34:24 am »

Hello! Is it possible to change the color of the list font found in Preferences->Appereance as well as awards tree in the skin? If it is possible, I guess it has to be done via pvconfig.ini, but I don't know how.

Quote
TreeFont=Verdana|10|100
Posted by: afrocuban
« on: November 02, 2020, 09:36:35 pm »

Thank you Ivek. This was very useful and I'll keep experimenting.
Posted by: Ivek23
« on: November 02, 2020, 08:32:03 am »

Quote
                   <row height="30">
                      <column space="110">Splitter<splitter/></column>
                    </row>
               <row>
                      <column space="0" halign="center" autosize="true" valign="top">IMDB Series Year &amp; Number of Episodes/Seasons:
                 <label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                          <caption>                        *** </caption>
                        </label>
                  <spacer width="2"/><label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                            <color>$003399</color>
                          </label><custom halign="left" width="202" field="IMDB_Series-year" />
                  <spacer width="2"/><label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                            <color>$003399</color>
                          </label>
                  </column>
                    </row>
               <row>
                      <column space="0" halign="center" autosize="true" valign="top">IMDB Series Year &amp; Number of Episodes/Seasons:
                 <label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                          <caption>                        *** </caption>
                        </label>
                  <spacer width="2"/><label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                            <color>$003399</color>
                          </label>
                 <label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                          <caption>Number of Episodes/Seasons:</caption>
                        </label>
                  <spacer width="0"/><label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                            <color>$003399</color>
                          </label><label>
                          <font>
                            <italic/>
                            <bold/>
                          </font>
                            <color>$003399</color>
                          </label><custom halign="left" field="Seasons-Episodes" /></column>
                    </row>

In my opinion, this is the best solution for you.

At "IMDB_Series-year", I corrected so that the full record of when an episode was scheduled is now visible.
Posted by: afrocuban
« on: November 02, 2020, 01:33:08 am »

Thanks, but my thinking wasn't right so I mislead you with getting ideas. That trick would do the thing, but only for one combination of content of both fields. Spacing "        *****" is still left aligned and will not center different number of seasons and episodes... Obviously, genuine "center" column position is the only solution, if viable at all, the one that will "push" content of both fields to the left and to the right in order to preserve centering...