Customize Profile Fields

Need A Custom Modification To Your Webdate Script. Ask For Help Here.

Customize Profile Fields

Postby shopgirl on Mon Jun 30, 2008 7:58 pm

I want to remove a bunch of the profile fields (religion, occupation, etc). Is there a way to do this in Webscribble?

(I'm using webDate 3.0)
shopgirl
 
Posts: 6
Joined: Mon Jun 02, 2008 11:38 am

Re: Customize Profile Fields

Postby paul on Mon Jun 30, 2008 8:16 pm

ok this is just a crash course

open

engine/forms/profile_s1.php

engine/forms/profile_s2.php

engine/forms/profile_s3.php

engine/profile_all_step.php

in the begining of these files you will see this

Code: Select all
      $required_fields = array(
            country => "Country",
            state => "State / Province",
            city => "City / Town",
            name => "Profile Name",
            zipcode => "Zip / Postal code",
            gender => "Your Gender",


so say you want to remove city you would simply take this out

Code: Select all
city => "City / Town",


that makes it so the field is not required when submitting the form...

you will also need to remove it from the html form itself by opening the corresponding page in the html files

open

templates/forms/profile_s1.html

then you would remove this section from <tr> to </tr>

Code: Select all
<tr>
    <td valign="top">City / Town</td>
    <td>
      <input maxlength=50 name=city value="{CITY}">
      <br>
      <span class=small_gray><font color="#666666">Make sure the spelling is correct so your profile is listed properly<br>
      Do not enter abbreviations or suburbs of cities</font></span></td>
  </tr>


ok now you will not need to submit a city/town when creating a profile... (this is just an example you can do the same with any part of the signup forms)

remember once you remove them you will need to modify the file

templates/preview_profile_wp.html

and remove

Code: Select all
{PROFILE[CITY]},


this would take the city out of the members profile page also...

hope you got an idea from this if you need more help let me know...

Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA


Return to Need A Modification To Your Webdate Script?

Who is online

Users browsing this forum: No registered users and 6 guests

cron