This topic is locked

Custom styles and layouts

12/7/2009 12:42:56 AM
PHPRunner General questions
S
scotthallett author

Greetings all!
I have been messing around with PHP-Runner 5.1 (build="2503" on Vista 64 bit), and for the life of me I cannot get any customizations in the styles.css or layouts to stick!
I can edit them in the output directory, but when I re-build they are overwritten (obviously).
So, I go to my C:\Program Files\PHPRunner5.1\Templates\Styles\Paris\style.css (or any other, including my own additional custom named directory) and make changes, but they do not take when re-building?
I have no style.css file anywhere in my project folder?
The same goes for layouts as well - I can edit the original template files, but they do not get pushed?
Anything I do in these directories doesn't get pushed when re-building??!?!?
Am I missing something?
Any ideas?
Thanks!
(Also, as far as the VE, I know I can make mods to my pages in there, but I need also to figure out how to get them to work from a pre-built templates/layout dir so that for new projects I don't have to rely on cleaning them up after the fact with the VE.)

L
lewisekrantz 12/7/2009

It is in /output/include of the genned program.
I dont think that will help you long term because it is created from the BUILD

J
Jane 12/7/2009

Scott,
could you send a couple of screenshots explained where you've applied changes to support@xlinesoft.com?

S
scotthallett author 12/7/2009

Thanks for the replies all!

It is in /output/include of the genned program.

I dont think that will help you long term because it is created from the BUILD



I assume you mean that the "/output" is the doc root of the gen'd program? I do have an include in there, but it has no updated style.css
If you are referring to where PHPRunner saves my program file (project.phpr), the output directory is empty.

Scott,

could you send a couple of screenshots explained where you've applied changes to support@xlinesoft.com?



Since I cant really capture what I am trying (and seeing) in a screenshot (basically, I am just editing the style.css in the "C:\Program Files\PHPRunner5.1\templates\styles\Paris" directory and then re-genning, but it not showing up updated in the output/doc root directory), what I will do is make a screencast, so you can see - I will do this tonight, and send the URL of the cap to support.
Thanks again all!

S
scotthallett author 12/8/2009

I think I may have found the problem - which is more of a Windows issue.
I use Vista 64bit. Also, I do not log in as Administrator, and I have UAC (User Access Control) turned on.
This particular setup/scenario has a behind the scenes means of protectecting all files inside %programfiles%, %systemroot%, %systemdrive%, or %programdata% folders when logged in as a non-admin user
If a regular user modifies files within one of these dir's, it is placed in another directory behind the scenes:
\Program Files (x86)\PHPRunner5.1\templates\styles
This is supposed to happen without the user being aware.
Documented nicely in this forum thread:
http://forums.techar...help/730258.htm
The issue was that my modified files were in that directory, but the original(s) remained in tact at:
C:\Program Files (x86)\PHPRunner5.1\templates\styles
(This is why no matter what updates I made, they were not being picked up by PHPR when genning the files - because technically the updated ones were not even there)
The solution to this is (either):

  • Always log in as Administrator (or a user that is part of the Local Admins group)
  • Log in and run your app and editing tools (DreamWeaver, UltraEdit, etc...) as Admin so that the files in %programfiles% can be updated properly without the use of virtualization -this can be done by right clicking on your editing tool icon and clicking "Run As Administrator" in the menu
  • Reinstall PHPRunner in a directory outside of any of these system dir's (if you plan on using a normal user to edit files in the templates directory)
  • If insisting to install into C:\Program Files - also make sure to run the installation program as "Administrator"



Ideally, this should have all worked, but for some reason when using Ultraedit it saved to the virtualization dir, and notepad worked as you would have thought it would.
This is documented in detail here: (specifically Scenario 2)
http://support.microsoft.com/kb/927387
Please keep this open for a few more days as I would like to try to do more troubleshooting and get more info, in case anyone else has similar issues.
Thanks!

A
Astrid 12/18/2009

Or go to specicific style.css and change properties for user. Easiest way.