This topic is locked

BG with color

1/3/2007 10:08:46 AM
PHPRunner General questions
A
amplus author

Hello,
I want to give a color with this:
{if $allow_ritadres}

<TD align=middle bgColor="{$row.1sturing_color_value}"><A

href="ritadres_list.php?{$row.1ritadres_masterkeys}">orders</A></TD>{/if}
after a build or if i go back from my editor it is changed in:
{if $allow_ritadres}

<TD align=middle bgColor=#0000a0><A

href="ritadres_list.php?{$row.1ritadres_masterkeys}">orders</A></TD>{/if}
It works after a build, but if i will build the project again it go's wrong.
who can tell me what i do wrong .

G
GeddyLee 1/3/2007

Just a guess, but are you saving the project with the build too? After you type it in do you just press build, or do you save the project and build? Because that could do it.
-Brent

A
amplus author 1/3/2007

Just a guess, but are you saving the project with the build too? After you type it in do you just press build, or do you save the project and build? Because that could do it.

-Brent



i didn't save the project first. i have just build it.

Sergey Kornilov admin 1/3/2007

Try to use bgColor attribute without double quotes.
Visual Editor uses editing functionality that Internet Explorer provides which in turn tends to remove double quotes if value inside don't have spaces.
Try the following and let me know if it works:

{if $allow_ritadres}

<TD align=middle bgColor={$row.1sturing_color_value}><A

href="ritadres_list.php?{$row.1ritadres_masterkeys}">orders</A></TD>{/if}

G
GeddyLee 1/3/2007



i didn't save the project first. i have just build it.


If you just build it, then the files are being created but you aren't saving it in the project file, so the next time you open it up, it will revert to the old state of the project. However if you ONLY save it, then the new pages are never created so that won't work either. You have to both build it and save it so that the version of the project file is current with the Built phprunner pages.
As far as I understand (which may not be incredibly far, so anyone else please correct me if I'm wrong), the project file is just an XML file that tells PHPRunner how to create the pages, it doesn't actually know anything about existing pages. So you cannot do things like addpages to a project that were created in another project, and thus, if you delete the project file, you can never reopen the existing pages in PHPRunner again.
Hope this all makes sense, and I hope that's all you need to do.
-Brent

Sergey Kornilov admin 1/3/2007

Brent,
you might be interested to check that part of PHPRunner manual that exlains what is the project in PHPRunner and what is included into the project: http://www.xlinesoft.com/phprunner/docs/wo...th_projects.htm
I'd be glad to elaborate it further if required.

A
amplus author 1/4/2007

Brent,
Thank you for the help you give.
I have try what you said.

In the browser it works perfecr now.

Phpr changed the text in: {if $allow_ritadres}

<TD align=middle bgColor=#0000a0><A

href="ritadres_list.php?{$row.1ritadres_masterkeys}">orders</A></TD>{/if}

I don't understand why Phpr changed the text

Sergey Kornilov admin 1/4/2007

Amplus,
what exactly you trying to say?

A
amplus author 1/5/2007

Amplus,

what exactly you trying to say?


I wanted to say:

if I edit it in the editor en just build it, then i see it just right in the browser.
after the build the text is changed. so i want the project build again it go's wrong.

Alexey admin 1/8/2007

Amplus,
thank you for pointing me to this issue.

Internet Explorer used in Visual Editor converts a bgColor attribute value to the appropriate color value.
With the next update of PHPRunner we'll fix this and make Visual editor preserve the original Color and bgColor values if needed.
To get your project working now modify generated templates\..._list.htm file the same way after each project build.