Advertisement:

Author Topic: How to ad a new field without using custom fields option.  (Read 3261 times)

rashidjaved

  • Newbie
  • *
  • Posts: 12
How to ad a new field without using custom fields option.
« on: July 07, 2014, 01:38:18 pm »
Hi all,

I am using repurpose theme for my classified project. I want to add a new field (for phone number etc.) without using custom field options. The field should look like e-mail or name fields. Please help. Thanks.
« Last Edit: July 07, 2014, 01:40:10 pm by rashidjaved »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to ad a new field without using custom fields option.
« Reply #1 on: July 07, 2014, 02:31:28 pm »
Hi,

You may add all the new input fields you want to an HTML form, but the thing is: how would you process those values later? ??? You have to store the values somewhere in the database to later show them inside some page, haven't you?

That is the function of custom fields, why don't you want to use them? ???

Regards

Media DMJ

  • Jr. Member
  • **
  • Posts: 95
Re: How to ad a new field without using custom fields option.
« Reply #2 on: July 07, 2014, 03:48:05 pm »
Hi all,

I am using repurpose theme for my classified project. I want to add a new field (for phone number etc.) without using custom field options. The field should look like e-mail or name fields. Please help. Thanks.

Check it out: http://forums.osclass.org/themes/add-phone-number-field-for-bender-theme/

rashidjaved

  • Newbie
  • *
  • Posts: 12
Re: How to ad a new field without using custom fields option.
« Reply #3 on: July 08, 2014, 12:57:35 pm »
Hi,

You may add all the new input fields you want to an HTML form, but the thing is: how would you process those values later? ??? You have to store the values somewhere in the database to later show them inside some page, haven't you?

That is the function of custom fields, why don't you want to use them? ???

Regards

Thank you for your reply. Custom fields are OK. The only problem I am facing is that I am unable to control them using css. For example I have added a new custom field (phone number) that I cannot left align using css. All other fields are left aligned.
Please see here.

http://www.postad.com.pk/item/new

 Custom field (phone number) will be visible after selecting a category and subcategory. Thanks.
« Last Edit: July 08, 2014, 01:21:52 pm by rashidjaved »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: How to ad a new field without using custom fields option.
« Reply #4 on: July 08, 2014, 01:44:47 pm »
Just add a rule clear: both; to #meta_phone_number declaration on custom.css line 720.

Regards

rashidjaved

  • Newbie
  • *
  • Posts: 12
Re: How to ad a new field without using custom fields option.
« Reply #5 on: July 08, 2014, 02:04:23 pm »
@ teseo
It worked as I wished. Thank you very much for the help. :)
« Last Edit: July 08, 2014, 02:06:03 pm by rashidjaved »