Cannot change logo on header

A place for users and developers of the Xataface to discuss and receive support.

Cannot change logo on header

Postby kerry.finlayson@bskyb.com » Tue Sep 08, 2009 7:51 am

Hi guys,

I am hoping someone can help. I have ran into a few issues when I am trying to change the look of the xataface app. I tried to change the lable tags and also tried to change the logo in the header to be something else but nothing I do works.

When trying to change the lables I followed the tutorial instructions exactly and there was no change. I then downloaded the tar file from that tutorial and tried that to see if I had done something wrong but I couldn't get that to work either.

I then moved on and tried to change the header template, followed the instructions exactly and the new template is being used but whenever I try to use an image of my own it doesn't work. However if I use an image from the xataface folder that works.

What am I missing guys???? I am completely confused as the xataface images work but my ones don't?

I thought that I hadn't set up xataface correctly since I am having a few issues, which may be the case but I can add rows to the db and can view the db so I assumed I have set it up correctly?

Sorry for the long post, I am just frustrated that I can't get the simple things to work :cry:

Thanks guys,
K.
kerry.finlayson@bskyb.com
 
Posts: 2
Joined: Tue Sep 08, 2009 7:33 am

Postby shannah » Tue Sep 08, 2009 12:46 pm

When you say that you can't change labels, does that mean that you attempted to set widget:label directives in the fields.ini file?

Can you give me an example table info:
e.g. table name
the path to your fields.ini for that table
the contents of your fields.ini for that table.

It may be as simple as case sensitivity in table names.

_Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby kerry.finlayson@bskyb.com » Wed Sep 09, 2009 1:59 am

Yes, sorry I probably wasn't very clear. Yes I created a fields.ini file and copied across the code from the tutorial and changed it accordingly for my fields. But it wouldn't pick up which makes me think I have done something wrong in the installation?

The table I was using was called area_owners and the field name I was trying to change was ownerName. I created the tables directory within the project folder.

This is the contents of my config.ini which I wasn't sure if this was the problem but I doubt it:

[_database]
host = "localhost"
user = "root"
password = "BSkyB"
name = "business support plan"

[_tables]
Area_Owners = "area_owners"
Improvements= "improvements"
Improvement_Status= "improvement_status"

The path to my fields.ini is:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\myApp\tables\area_owners

And the contents of the fields.ini is:
[ownerName]
widget:label = "Team Leader Name"
widget:description = "Enter the name of the team leader"

I couldn't see anything wrong with what I had done but it just didn't pick up. Also as hard as I tried I could not get my logo to show up in the header even though it was in the correct location as I was able to get the alt text instead. All the images that came with Xataface worked but mine didn't??

Thanks,
K.
kerry.finlayson@bskyb.com
 
Posts: 2
Joined: Tue Sep 08, 2009 7:33 am

Postby shannah » Wed Sep 09, 2009 9:39 am

Are you sure that the table is named area_owners, and not, for example, Area_Owners?

The most likely cause of the problems you described is that the path to the table's config directory doesn't match the name of the table exactly.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

problem with fields.ini being used

Postby rscales » Mon Sep 14, 2009 8:55 am

I am having a similar problem to the one described by kerry.finlayson, but I have double checked my paths and upper/lower case issues.

I have installed xataface and am able to modify records and view the modifications in phpMyAdmin's interface.

My path is:
C:\xampp\htdocs\mb_test\tables\ip

In my IP table, I have a field "ipname" (no underscore) and another "ip_category" (with underscore), both of which I see in xataface. Inside the ip directory I have the following fields.ini file:

[ipname]
widget:label = "IP Name"
widget:description = "Enter the name of your IP"

When I edit an IP record, all I see are the fields:

Ipname

IP category

Do I not have something installed correctly?
rscales
 
Posts: 18
Joined: Mon Sep 14, 2009 1:10 am
Location: FR

Postby rscales » Mon Sep 14, 2009 9:19 am

problem now seems to be due to PHP 5.3, when I run a simple example, I get:

Warning: syntax error, unexpected ':' in conf.ini on line 1 in C:\xampp\htdocs\test\index.php on line 5

Should I download 5.31 release candidate from phpMyAdmin, or something else?
rscales
 
Posts: 18
Joined: Mon Sep 14, 2009 1:10 am
Location: FR

Postby rscales » Mon Sep 14, 2009 11:43 pm

I reinstalled xampp with 1.71 and 5.29 php and now the example conf.ini with: a:b=c and index.php with:

<php>

correctly produces the expected result of "c". However, I still see no effect of fields.ini. Any ideas out there?

Thanks.
rscales
 
Posts: 18
Joined: Mon Sep 14, 2009 1:10 am
Location: FR

Postby rscales » Tue Sep 15, 2009 2:27 am

Well, now everything seems to be working fine with the fields after a reboot.

-Rich
rscales
 
Posts: 18
Joined: Mon Sep 14, 2009 1:10 am
Location: FR

Postby shannah » Thu Sep 17, 2009 9:29 am

Yes. THere is a bug in PHP 5.3 with the parse_ini_file function. It has apparently been fixed in CVS, but I don't know for sure yet if this fix is included as part of 5.3.1 RC.

Either way 5.2.9 should work just fine.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 20 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved