This topic is locked

Headers & Footers

2/25/2009 1:09:36 PM
PHPRunner General questions
A
Avon-Willows author

Hi,
I have mastered how to use Headers & Footers, but can only get basic text to display.
How do I format the text to be GREEN, CENTRED and a particular FONT TYPE & SIZE?
Is there an editor that I can use to edit PHP files outside of PHPRunner that would allow me to do this?
Regards,
AW

D
djsmithuk 2/25/2009

hi mate
i think you need to edit the files in .../templates
for example (this is near the top of the page)
login.htm
<style>

center_block {width:30%;margin:0 auto;}

contents_block {text-align:center;}


main_block {padding:10px 0 5px 0;text-align:center;}

inmain_block {margin:0 10px}

fields_block {width:100%;margin:0;padding:10px}

[color=#FF0000]#header_block > span {margin:0 5px}[/b]

buttons_block {padding:10px 10px 5px}

buttons_block div {padding:3px}

delimiter {margin:2px}

</style>
you will need to play about with these settings in red(i recommend making a backup of the file before u start)

if you dont know what to put in here, do a google search for css style sheets

the css style sheet is located in the /include folder

you can change lots of things here so u dont have to use the built in layouts that is supplied with PHPrunner
hope this helps, i am new to this also.

A
Avon-Willows author 2/26/2009

Many thanks,
I will try this later on today and let you know.
Regards,
AW

hi mate

i think you need to edit the files in .../templates
for example (this is near the top of the page)
login.htm
<style>

center_block {width:30%;margin:0 auto;}

contents_block {text-align:center;}


main_block {padding:10px 0 5px 0;text-align:center;}

inmain_block {margin:0 10px}

fields_block {width:100%;margin:0;padding:10px}

[color=#FF0000]#header_block > span {margin:0 5px}[/b]

buttons_block {padding:10px 10px 5px}

buttons_block div {padding:3px}

delimiter {margin:2px}

</style>
you will need to play about with these settings in red(i recommend making a backup of the file before u start)

if you dont know what to put in here, do a google search for css style sheets

the css style sheet is located in the /include folder

you can change lots of things here so u dont have to use the built in layouts that is supplied with PHPrunner
hope this helps, i am new to this also.

R
rgfischerjr 2/26/2009

Hi,

I have mastered how to use Headers & Footers, but can only get basic text to display.
How do I format the text to be GREEN, CENTRED and a particular FONT TYPE & SIZE?
Is there an editor that I can use to edit PHP files outside of PHPRunner that would allow me to do this?
Regards,
AW


You can use formatting already set up style.css also - or add your own formatting to the style.css file. If you add it to the /templates/.../style.css it will be available in all your projects.
Create the header / footer as you would any html and save it as header.php or footer.php.

500455 3/9/2009



You can use formatting already set up style.css also - or add your own formatting to the style.css file. If you add it to the /templates/.../style.css it will be available in all your projects.
Create the header / footer as you would any html and save it as header.php or footer.php.


I just want to confirm this statement about creating a header.php file. Do you include the same tags [such as <html>, <head>, <meta>, etc] even though they may already exist in the pages created by phprunner? Thanks!!

J
Jane 3/11/2009

No, you don't need to add these tags (<html>, <head>, <meta>) to the header and fotter files.