Post Reply 
Add a new field
03-Jan-2011, 08:54 PM
Post: #1
Add a new field
Hello
How can I add a new field called School
Because my site is targeted toward teachers and students, and I would like to know shools my visitors come from
Actualy I am using Website field as a School field (by Translating "web site" into "School" Blush )
The problem is that script expectes a URL pattren and return an error upon submit Huh

So
1- Is there any quick fix for that?
2- In fiture relaeses, is it possible to include Custom fields so Admins can define extra field depending on peticular needs ?

Thanks
Chafik
Find all posts by this user
Quote this message in a reply
03-Jan-2011, 09:10 PM
Post: #2
RE: Add a new field
Quick fix would be to comment out line 149 in comments/includes/app/processor.php
PHP Code:
validate_website($website); //validate website 

A custom field is a good idea for a future version. I will add it to the roadmap.

Have you completed the interview?
Find all posts by this user
Quote this message in a reply
03-Jan-2011, 09:14 PM
Post: #3
RE: Add a new field
1: While there is no "quick fix", you can try the "town" field instead of the url field. It works quite well actually.
2: Possibly. I'll give it a shot myself after I get through a bunch of other things I have to do. (not too soon in other words)

EDIT: While Steven beat me to it, the town field is still better than the url field unless you want a link to the school's website, and you won't have to edit any files Tongue

I'm giving you three guesses...
Find all posts by this user
Quote this message in a reply
03-Jan-2011, 09:22 PM
Post: #4
RE: Add a new field
Yeah the town field would be better. I assumed you were already using that.

Have you completed the interview?
Find all posts by this user
Quote this message in a reply
03-Jan-2011, 09:45 PM
Post: #5
RE: Add a new field
Yes, I also need Town field
So waiting for a better solution, I will comment out the URL validation line, althought I do apreciate keeping the Web Site field
Find all posts by this user
Quote this message in a reply
03-Jan-2011, 09:56 PM
Post: #6
RE: Add a new field
Well, you can't really add fields without editing the database to accommodate them. The next best thing I can think of is having the school be entered along with the town. It works when you separate them with a dash.

I'm giving you three guesses...
Find all posts by this user
Quote this message in a reply
10-May-2011, 06:25 PM
Post: #7
RE: Add a new field
(03-Jan-2011 09:56 PM)Static Wrote:  Well, you can't really add fields without editing the database to accommodate them. The next best thing I can think of is having the school be entered along with the town. It works when you separate them with a dash.
Hm, not sure this is a good idea. Having mixed data in a DB field can cause DB problems during any SQL run ( I may be wrong? ) Personally, I'd rather wait for the custom fields to be included.
Visit this user's website Find all posts by this user
Quote this message in a reply
14-May-2011, 07:54 PM
Post: #8
RE: Add a new field
1. What do you need the field(s) for?
2. Should its data be validated?
3. Do you want its data to be displayed? If so, where?

Have you completed the interview?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)