Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/allshadow.com/subdomains/wiki/httpdocs/images/thumb/a owned by uid 48 in /var/www/vhosts/allshadow.com/subdomains/wiki/httpdocs/includes/GlobalFunctions.php on line 1837

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/allshadow.com/subdomains/wiki/httpdocs/images/thumb/2 owned by uid 48 in /var/www/vhosts/allshadow.com/subdomains/wiki/httpdocs/includes/GlobalFunctions.php on line 1837
Editing the cpr file for 6.1 - AllShadow.com Wiki

Editing the cpr file for 6.1

From AllShadow.com Wiki

Contents

What do they these files do?

They organize the layout of the sliding panels in general and the panels themselves.

Getting Started

  • The CPR files are located in the /windows folder.
  • You will find different cpr files:
    • e.g. HTCSlidingPanel_240x320.cpr which edits all the panels on the layout
    • and SlidingPanel_240x320.cpr which edits the actual panel
      • Note: these are examples from the erofich ROM, but the same rules apply to all 6.1 ROMS
  • Find the cpr file, copy it to your computer and open in a text editing program.
  • As always, save a back-up copy in case you need the original file!

How to edit

  • The following is taken from kron2's explanation the following outlines how to edit a part of a cpr file.
  • The idea is to take this explanation and expand it to all of the cpr files that you need to edit.
  • When you are done making your changes, save your new file back in the /windows folder and reboot (turn off/on) your phone.
  • A possibly useful program is CHome Refresh which allows you to refresh your home screen after editing the cpr.

Examples of CPR editing

Say you want to change the settings panel to look like:



Here is what your cpr would look like-- notice the font name, sizes, and location of the text and image (note: this just edits the layout and font. To change the icons or background read this icon help or this background help.

<!-- Settings layout templates -->


<!-- Large picture in Center -->
<Image ID="Image 1" Left="42" Top="55" Width="44" Height="44" />


<!-- Line 1 -->
<Text ID="Text 1" Left="95" Top="55" Width="166" Height="23" FontFamily="Segoe UI" FontSize="8" FontStyle="Bold" Wrap="False" Trimming="EllipsisCharacter"></Text>
<!-- Icon for Line 1 not currently used -->
<!-- Line 2 -->
<Text ID="Text 2" Left="95" Top="81" Width="166" Height="40" FontFamily="Segoe UI" FontSize="7" FontStyle="Regular" Wrap="True" Trimming="EllipsisCharacter"></Text>

For an example of how to edit the clock, see kron's explanation.