English > Development

How to do that in the title was automatically the change of size of font

(1/4) > >>

ferofrantisek:
Hello.
I was finishing the script and skin for AniDB – anime database. I would like to ask if someone could help me with some nuance of skin or script. Sorry for my bad English.

1.   How to do that in the title was automatically the change of size of font when not fit in row, so the text will not going to next line, or  part of the title will not be overlap?

2.   How to do that the content of column <genre> will be automatically changed such that the first letter of the words, will be displayed with large first letter. for example : action, science fiction, mecha,  --  Action, Science fiction, Mecha?

3.   How to do that the content of whole column will be always displayed or 2 line will be displayed? for example in my case: List of episodes:  :D I founded solution:
            <row>
            <column width="200" halign="center" valign="top" wordwrap="true">
               <customfieldlabel field="List of episodes:"/>
            </column>
            <column>                        
               <custom field="List of episodes:" collapsedlines="10000"/> 
               
            </column>
         </row>   

but for another  example: </genre> it is not working and i cannot find solution: ???
<row>
                    <column space="35">
                     <section space="10">
                        <color>$C6D6F4</color>
                        <border shape="none" />
                       <row>
                          <column>
                           <genre linkcolor1="$9F0000" linkcolor2="$FF5809" collapsedlines="2" >                         
                           <font>
                              <size>14</size>
                             <name>Georgia</name>
                            </font>                           
                          </genre>
                        </column>
                       </row>                      
                     </section>
                    </column>
                  </row>
4.   How to do that  <customfieldlabel field="AniDB:"/>  will be displayed with rating?; 
code:          <row>
                  <!-- <column halign="center" > -->
               <column halign="left" space="5">
                  <customfieldlabel field="AniDB:"/>
                  <rating autosize="true">
                  </rating>
               </column>
               </row>
  AniDB: is in the row presented but it is hide, it shows only when editing.
In the attachments is full working script and Skin for Anime Database. Please look for it.

Thank you for any advice and help.

Ivek23:

--- Quote from: ferofrantisek on March 05, 2015, 04:58:38 pm ---2.   How to do that the content of column <genre> ...
--- End quote ---

This is not a genre, but tags, which are transferred to the normal Tags field. Yes for the Tags field, but can no be used ' collapsedlines = "2" ' for normal genre field is not the case, but more can be found in Personal Video Database Skin Engine Manual : Attributes (properties)

Code for script: Tags
--- Code: --- //Genre Žánry
 
curPos := Pos('<th class="field"><a href="animedb.pl?show=taglist">Tags</a></th>', HTML);
LogMessage('9 zistujem Žánry do mfGenre');
 if curPos > 0 then begin 
LogMessage('9.1 zbiera z intervalu všetky Žánry do mfGenre');
TmpG := HTMLValues2(HTML,'<a href="animedb.pl?show=taglist">Tags</a></th>', '<th class="field">Resources</th>', 'animetb">', '<span class=', ', ', curPos)
LogMessage('9.1.1 vsetky  mfGenre'+TmpG);
AddFieldValue(mfTags, TmpG);
//AddFieldValue(mfGenre, UpperCase(TmpG));
//EndPos := curPos;
  end;
--- End code ---

Code for skin:
--- Code: --- <row>
  <column width="130" halign="right" valign="top">
<fieldlabel field="tags" />
  </column>
  <column>
<tags linkcolor1="$222222" linkcolor2="$777777" collapsedlines="2" />
  </column>
</row>
--- End code ---


--- Quote from: ferofrantisek on March 05, 2015, 04:58:38 pm ---2.   ... will be automatically changed such that the first letter of the words, will be displayed with large first letter. for example : action, science fiction, mecha,  --  Action, Science fiction, Mecha?
--- End quote ---

As far as I know, this is not possible, data transfer j ontracting only as good as on the web page but the possibility of functions that only large or only small letters.


--- Quote from: ferofrantisek on March 05, 2015, 04:58:38 pm ---4.   How to do that  <customfieldlabel field="AniDB:"/>  will be displayed with rating?; 
code:          <row>
                  <!-- <column halign="center" > -->
               <column halign="left" space="5">
                  <customfieldlabel field="AniDB:"/>
                  <rating autosize="true">
                  </rating>
               </column>
               </row>
--- End quote ---

The above is incorrect, please try a similar code:
--- Code: ---   <row>
   <column width="120" halign="right">
    <orname width="118" wordwrap="true" halign="right">
         <font>
          <bold></bold>
          <size>8</size>
</font>
</orname>
   </column>
   <column>
<orating/>
   </column>
  </row>
--- End code ---


Entry should be approximately as follows:
--- Code: --- <row>
<!-- <column halign="center" > -->
<column halign="left" space="5">
<custom field="AniDB:"/>
--- End code ---

ferofrantisek:

--- Quote from: Ivek23 on March 07, 2015, 11:20:48 am ---
--- Quote from: ferofrantisek on March 05, 2015, 04:58:38 pm ---2.   How to do that the content of column <genre> ...
--- End quote ---

This is not a genre, but tags, which are transferred to the normal Tags field. Yes for the Tags field, but can no be used ' collapsedlines = "2" ' for normal genre field is not the case, but more can be found in Personal Video Database Skin Engine Manual : Attributes (properties)

Code for script: Tags
--- Code: --- //Genre Žánry
 
curPos := Pos('<th class="field"><a href="animedb.pl?show=taglist">Tags</a></th>', HTML);
LogMessage('9 zistujem Žánry do mfGenre');
 if curPos > 0 then begin 
LogMessage('9.1 zbiera z intervalu všetky Žánry do mfGenre');
TmpG := HTMLValues2(HTML,'<a href="animedb.pl?show=taglist">Tags</a></th>', '<th class="field">Resources</th>', 'animetb">', '<span class=', ', ', curPos)
LogMessage('9.1.1 vsetky  mfGenre'+TmpG);
AddFieldValue(mfTags, TmpG);
//AddFieldValue(mfGenre, UpperCase(TmpG));
//EndPos := curPos;
  end;
--- End code ---

Code for skin:
--- Code: --- <row>
  <column width="130" halign="right" valign="top">
<fieldlabel field="tags" />
  </column>
  <column>
<tags linkcolor1="$222222" linkcolor2="$777777" collapsedlines="2" />
  </column>
</row>
--- End code ---


--- End quote ---

Thank you very much for your response.
  1.is it possible set up in Code for script: Tags  - size of font?, because it is not working and i cannot find solution ???   
2. is it possible set up only in this section - in this row?   <underline_memo>false</underline_memo>, because it is not working and i cannot find solution ???  Am I missing something, or is there a another way to do this?


--- Code: ---                         <row>
<column width="130" halign="right" valign="top">
<!-- <fieldlabel field="tags"/> --> <!-- Tags no visible -->
</column>
<column>

                                      <linkdefs>
<underline_memo>false</underline_memo>
<underline_record>false</underline_record>
     </linkdefs>

<font>
<size>20</size>
</font>

  <tags linkcolor1="$9F0000" linkcolor2="$FF5809" collapsedlines="2"/>
</column>
</row>

--- End code ---

         
Thanks.

Ivek23:

--- Quote from: ferofrantisek on March 07, 2015, 08:37:57 pm ---1.is it possible set up in Code for script: Tags  - size of font?, because it is not working and i cannot find solution ???   
--- End quote ---

As far as I know, the answer is no for the script and yes to the skin.


--- Quote from: ferofrantisek on March 07, 2015, 08:37:57 pm ---  1.is it possible set up in Code for script: Tags  - size of font?, because it is not working and i cannot find solution ???   
2. is it possible set up only in this section?   <underline_memo>false</underline_memo>, because it is not working and i cannot find solution ???  Am I missing something, or is there a another way to do this?


--- Code: ---                         <row>
<column width="130" halign="right" valign="top">
<!-- <fieldlabel field="tags"/> --> <!-- Tags no visible -->
</column>
<column>

                                      <linkdefs>
<underline_memo>false</underline_memo>
<underline_record>false</underline_record>
     </linkdefs>

<font>
<size>20</size>
</font>

  <tags linkcolor1="$9F0000" linkcolor2="$FF5809" collapsedlines="2"/>
</column>
</row>

--- End code ---

         
Thanks.
--- End quote ---

Code for the skin, of course, does not work because it has a lot of errors:

1.) This falls under the head at the beginning of the skin:
--- Code: ---                                      <linkdefs>
<underline_memo>false</underline_memo>
<underline_record>false</underline_record>
     </linkdefs>
--- End code ---
Correctly should be like
--- Code: ---<?xml version="1.0" encoding="utf-8"?>
<xml>
  <pvd_skin_movie>
    <skinname>AniDB Alternative</skinname>
    <version>1.0.0.0</version>
    <author>ferofrantisek</author>
    <description>Classic theme from 0.9.8.x</description>
    <preview>skinimg_AniDB_Alternative.png</preview>


<!-- $FFFFFF -biela --> 

    <linkdefs>
      <linkcolor1>$0000FF</linkcolor1> <!-- nastavi color dopl. textu Director, Producer, Actors 0000FF - ako ostatne-->
      <linkcolor2>$0000FF</linkcolor2> <!-- nastavi color dopl. textu Director, Producer, Actors  - ak su viacej polozky-->
      <underline_memo>false</underline_memo>
      <underline_record>false</underline_record>
    </linkdefs>
--- End code ---
or similar to the example below :
--- Code: ---    <skinname>PVD Tabs-ex  AllMovies</skinname>
    <version>1.0.1.0</version>
    <author>Ivek23, tabbed PVD Tabs style and Information</author>
    <description>8 Tabs: Main information,rating,description,file information,images,custom,custom section and manager.
Standard fonts,colors,positioning (changed but not all),added is more tabs and AllMovie Information.Awards section embedded within a Rating tab.Based is on PVD Tabs,appearance is designed on my ideas.
</description>
    <preview>skinimg_movie_classictabs.png</preview>
    <labelfont>
      <bold></bold>
    </labelfont>
    <fieldfont>
      <size>10</size>
    </fieldfont>
    <color>$E0ECFE</color>
    <linkdefs>
      <linkcolor_combo>$004400</linkcolor_combo>
      <underline_record>true</underline_record>
      <underline_memo>true</underline_memo>
      <underline_combo>true</underline_combo>
    </linkdefs>
--- End code ---

2.) Here does not work,
--- Code: ---                         <row>
<column width="130" halign="right" valign="top">
<!-- <fieldlabel field="tags"/> --> <!-- Tags no visible -->
</column>
<column>

<font>
<size>20</size>
</font>

  <tags linkcolor1="$9F0000" linkcolor2="$FF5809" collapsedlines="2"/>
</column>
</row>

--- End code ---
and this is how it should work:
--- Code: ---                         <row>
<column width="130" halign="right" valign="top">
<!-- <fieldlabel field="tags"/> --> <!-- Tags no visible -->
</column>
<column>

  <tags linkcolor1="$9F0000" linkcolor2="$FF5809" collapsedlines="2">

<font>
<size>20</size>
</font>

</tags>

</column>
</row>

--- End code ---

ferofrantisek:

--- Quote ---Entry should be approximately as follows:
Code:

                  <row>
                  <!-- <column halign="center" > -->
                  <column halign="left" space="5">
                  <custom field="AniDB:"/>

--- End quote ---

Thank you very much. I tried may times, but it didn't work. There is not showing AniDB:. I would like if it possible that data from rating will show as AniDB:.  Here is picture, because i don't know how to better explain. Thank you very much for your patience with me.

--- Code: ---                                       <row>
<column halign="center" >

<!-- <customfieldlabel field="AniDB:"/> -->
<custom field="AniDB:"/>
                                                 </column>
                                        <column>
<rating autosize="true">
</rating>
</column>
</row>
--- End code ---

Similar scenario for Additional Rating as AniDB:


--- Code: ---<row>
   <column width="120" halign="right">
 <!-- <customfieldlabel field="AniDB:"/> -->
   <custom field="AniDB:"/>
<!-- <orname width="118" wordwrap="true" halign="right">
         <font>
          <bold></bold>
          <size>8</size>
</font>
</orname> -->
   </column>
   <column>
<orating/>
   </column>
  </row>
--- End code ---

Similar scenario.


--- Code: ---<!-- Story Composition: as writer -->
<row>


<column width="130" halign="right" valign="top">
                                                                    <!-- <fieldlabel field="human" category="2"/> -->
    <!-- <customfieldlabel field="Story Composition:"/> -->

<custom field="Story Composition:"/>
</column>
<column>
<!-- <custom field="Story Composition:" /> -->
<human category="2"/>
</column>
</row>
--- End code ---

Am I missing something, or is there a another way to do this?
I know that 'full Custom Field' is correctly for example this code but there is a different case.

--- Code: ---                                               <row height="35">
<column halign="left" space="6" valign="center"> <!-- prázdne miesto medzi dvoma polami/nazvami -->
<spacer width="15"/> <!-- posúva od zaciatku riadku -->
<customfieldlabel field="AniDB:"/>

<custom field="AniDB:"/>
</column>
</row>
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version