Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'country state city'

Viewing 21 results - 26 through 46 (of 46 total)
  • Author
    Search Results
  • Walid
    Participant

    hello, I added the states of my country manually in a “drop down select box” profile field, they were 27, now I want to add the cities, I could of course leave that for members to write, but I wanted it to be written in the same way and language for every user to have better search, so is there any way to copy the list of cities each in a line and it can added as profile field somehow? is there a plugin or some way to do that? this can come in handy at adding many others lists like colleges or universities in the whole country with just the list of their names.

    Nanaimomen
    Participant

    Hi All

    I would like to modify the Buddypress Registration Page to a certain look.

    Ideally, I would like to have it set up as a single column with certain fields in a certain order, rather than having two columns as it is setup. So I would like to have it setup as:

    1. Name
    2. City
    3. Province/State
    4. Country
    5. Email Address
    6. Username
    7. Password
    8. Repeat Password

    Right now I am only able to modify the right column of fields as under Dashboard – Users – Profile Fields.

    Can I modify without mucking around with PHP Code or is there another registration plugin I can use that will be compatible with Buddypress?

    Thanks!

    #32068
    maddogmcewan
    Participant

    I have installed a plugin called WP-Geolocation (http://www.wp-geolocation.com/) which allows me display the following shortcode (see list at end) on any post and page. I was trying to add these shortcodes or javascript variables (handles both) INTO a 3 form fields called County, City and region.
    using the php echo do shortcode commands… well i can echo anywhere in the code, but do you think I can “echo” INSIDE a form text field??

    In normal HTML or ASP this is a breeze, why is it so difficult in WP to do this? I mean the variable is there and available on every page and post (runs in header), why can i not have form value php echo do_shortcode (had to tweak that to display here) and have the field filled in on the registration form.

    For us it is essential to have the users’ location at sign up, preferably I would like to use buddypress Xprofile fields to display the field at signup and the allowing the variables or shortcode to auto poulate the field… I have tried so many things, bought gravity forms, tried Formidable… no luck, something so simple…

    The best plugin that anyone could develop for BuddyPress would be a better X Profile Fields Editor, allowing you to specify a SHORTCODE or variable right there and then…

    Anybody want to make a quick buck and sort this for me, as i have spent 2 days JUST trying to get this done, crazy… my skype is greg.mcewan.marriott and my email greg@imediate.co.za

    The variables are there, just “put them” INSIDE the form field…

    VARIABLES
    ===========

    Within any blog post or page, you can use the following shortcodes:

    [mmjs-countrycode] – the ISO 3166-2 country code
    [mmjs-countryname] – the country name
    [mmjs-city] – the city name
    [mmjs-region] – the ISO 3166-2 country code (state or province abreviation)
    [mmjs-regionname] – the region name
    [mmjs-lat] – latitude
    [mmjs-long] – longitude
    [mmjs-postalcode] – post/zip code
    [mmjs-ip] – ip address

    The plugin also generates corresponding JavaScript variables in your theme for use with JQuery, dynamic forms, etc:

    mmjsCountryCode
    mmjsCountryName
    mmjsCity
    mmjsRegion
    mmjsRegionName
    mmjsLat
    mmjsLong
    mmjsPostalCode
    mmjsIPAddress

    #140538
    nitestop
    Participant

    has anyone found a plugin for registration, country, state/providence, city
    also
    anyone else having a problem with the new buddypress update, public profile links are showing up as html code

    #31559
    AllHeart Web
    Participant

    Hi i have 2 questions…

    1. if i want to put countries , stat and city list in register form… and want to use maxmind database… how can i integrate?

    2. After i make that if i want to put a search box the someone come and find person by country ,state ,city, age , blood group…

    how can make like that…

    all my focus is to make website for blood donors… and a register and search form…

    And i am using http://huddle.themedemo.net/ theme…

    Please help…

    #27636
    recruitbk
    Member

    Hi,

    I’ve done some minor customization to the profile edit.php page. I created a child theme and have made all my modifications to the edit.php that I replicated there (members > single > profile > edit.php).

    I’ve created CSS to align custom fields in two different profile groups how I want them. The profile groups are basic information and contact information. In the edit.php, the while loop looks for all profile edit fields, which I hardcoded to only find the fields which I created for each profile group. The problem is, the loop is somehow finding hidden fields and causing a lot of white space after all of my hard coded fields before getting to the submit button. How can I change the loop so it doesn’t find all of the additional hidden fields that its trying to display in the white space. I looked at the page in firefox using firebug and I can see that bp is finding all editable fields & displaying them again after my hardcoding. This is causing the white space. Visit http://www.recruitbk.com & log in with jahmakan5@gmail.com password: test. Select Edit profile > click basic information tab. Scroll down and you’ll see all of the white space. Here is my code on edit.php:

    `

    <form action="” method=”post” id=”profile-edit-form” class=”standard-form “>

      <!–removed code and replaced w/whats below—>


    <?php

    //$location= xprofile_get_field_data( “signup_email”);//fetch the location field for the displayed user
    ?>

    <?php
    global $bp;
    $signup_type = get_user_meta($bp->displayed_user->id, ‘signup_email’, true);
    echo $signup_type;
    ?>

    <div>

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <textarea rows="1" cols="50" name="” id=””>

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <select name="” id=””>

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    <label for="”>
    <input type="text" name="” id=”” value=”” />

    Athletic Information

    <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value=" ” />

    `

    Here is an example of the div ids I use to reposition the fields:

    `form.standard-form #edit-profile-right-column-middlename {
    position: relative;
    width:50%!important;
    left:25%;
    top:-73px;
    }

    form.standard-form #edit-profile-right-column-lastname {
    position: relative;
    width:50%!important;
    left:50%;
    top:-150px;
    }`

    4ella
    Participant

    If somebody interested I have modified @modemlooper buddypress-group-fields.php for my website
    I have deleted $links , so it doesn’t show WARNING , I have found an error in phone field so it works now and also other fields are memorized well , I have also added some new location and contact fields , I have created all 247 countries list (dropdown menu) – everything looks working well ,
    I don’t know how to display it in templates yet , Opening days(Monday , Tuesday , Wednesday ….) field I wanted to use checkboxes , but I wasn’t not sure if I was able to do that , so I have used dropdown menu now too.

    <?php
    add_filter( 'groups_custom_group_fields_editable', 'group_details_markup' );
    add_action( 'groups_group_details_edited', 'group_details_save' );
    add_action( 'groups_created_group', 'group_details_save' );

    function group_details_markup() {
    global $bp, $wpdb;

    $group_text = groups_get_groupmeta( $bp->groups->current_group->id, 'e2e_text' );

    ?>


    Job Description


    (Type of job you offer, detailed description of the work you offer.. etc)





    Location



    groups->current_group->id, 'e2e_country' ); ?>

    <option value="Afghanistan" selected="selected">Afghanistan
    <option value="Albania" selected="selected">Albania
    <option value="Algeria" selected="selected">Algeria
    <option value="American Samoa" selected="selected">American Samoa
    <option value="Andorra" selected="selected">Andorra
    <option value="Angola" selected="selected">Angola
    <option value="Anguilla" selected="selected">Anguilla
    <option value="Antigua & Barbuda" selected="selected">Antigua & Barbuda
    <option value="Argentina" selected="selected">Argentina
    <option value="Armenia" selected="selected">Armenia
    <option value="Aruba" selected="selected">Aruba
    <option value="Australia" selected="selected">Australia
    <option value="Austria" selected="selected">Austria
    <option value="Azerbaijan" selected="selected">Azerbaijan
    <option value="Bahamas" selected="selected">Bahamas
    <option value="Bahrain" selected="selected">Bahrain
    <option value="Bangladesh" selected="selected">Bangladesh
    <option value="Barbados" selected="selected">Barbados
    <option value="Belarus" selected="selected">Belarus
    <option value="Belgium" selected="selected">Belgium
    <option value="Belize" selected="selected">Belize
    <option value="Benin" selected="selected">Benin
    <option value="Bermuda" selected="selected">Bermuda
    <option value="Bhutan" selected="selected">Bhutan
    <option value="Bolivia" selected="selected">Bolivia
    <option value="Bonaire" selected="selected">Bonaire
    <option value="Bosnia & Herzegovina" selected="selected">Bosnia & Herzegovina
    <option value="Botswana" selected="selected">Botswana
    <option value="Brazil" selected="selected">Brazil
    <option value="British Indian Ocean Ter" selected="selected">British Indian Ocean Ter
    <option value="Brunei" selected="selected">Brunei
    <option value="Bulgaria" selected="selected">Bulgaria
    <option value="Burkina Faso" selected="selected">Burkina Faso
    <option value="Burundi" selected="selected">Burundi
    <option value="Cambodia" selected="selected">Cambodia
    <option value="Cameroon" selected="selected">Cameroon
    <option value="Canada" selected="selected">Canada
    <option value="Canary Islands" selected="selected">Canary Islands
    <option value="Cape Verde" selected="selected">Cape Verde
    <option value="Cayman Islands" selected="selected">Cayman Islands
    <option value="Central African Republic" selected="selected">Central African Republic
    <option value="Chad" selected="selected">Chad
    <option value="Channel Islands" selected="selected">Channel Islands
    <option value="Chile" selected="selected">Chile
    <option value="China" selected="selected">China
    <option value="Christmas Island" selected="selected">Christmas Island
    <option value="Cocos Island" selected="selected">Cocos Island
    <option value="Colombia" selected="selected">Colombia
    <option value="Comoros" selected="selected">Comoros
    <option value="Congo" selected="selected">Congo
    <option value="Cook Islands" selected="selected">Cook Islands
    <option value="Costa Rica" selected="selected">Costa Rica
    <option value="Cote de Ivoire" selected="selected">Cote D'Ivoire
    <option value="Croatia" selected="selected">Croatia
    <option value="Cuba" selected="selected">Cuba
    <option value="Curaco" selected="selected">Curacao
    <option value="Cyprus" selected="selected">Cyprus
    <option value="Czech Republic" selected="selected">Czech Republic
    <option value="Denmark" selected="selected">Denmark
    <option value="Djibouti" selected="selected">Djibouti
    <option value="Dominica" selected="selected">Dominica
    <option value="Dominican Republic" selected="selected">Dominican Republic
    <option value="East Timor" selected="selected">East Timor
    <option value="Ecuador" selected="selected">Ecuador
    <option value="Egypt" selected="selected">Egypt
    <option value="El Salvador" selected="selected">El Salvador
    <option value="Equatorial Guinea" selected="selected">Equatorial Guinea
    <option value="Eritrea" selected="selected">Eritrea
    <option value="Estonia" selected="selected">Estonia
    <option value="Ethiopia" selected="selected">Ethiopia
    <option value="Falkland Islands" selected="selected">Falkland Islands
    <option value="Faroe Islands" selected="selected">Faroe Islands
    <option value="Fiji" selected="selected">Fiji
    <option value="Finland" selected="selected">Finland
    <option value="France" selected="selected">France
    <option value="French Guiana" selected="selected">French Guiana
    <option value="French Polynesia" selected="selected">French Polynesia
    <option value="French Southern Ter" selected="selected">French Southern Ter
    <option value="Gabon" selected="selected">Gabon
    <option value="Gambia" selected="selected">Gambia
    <option value="Georgia" selected="selected">Georgia
    <option value="Germany" selected="selected">Germany
    <option value="Ghana" selected="selected">Ghana
    <option value="Gibraltar" selected="selected">Gibraltar
    <option value="Great Britain" selected="selected">Great Britain
    <option value="Greece" selected="selected">Greece
    <option value="Greenland" selected="selected">Greenland
    <option value="Grenada" selected="selected">Grenada
    <option value="Guadeloupe" selected="selected">Guadeloupe
    <option value="Guam" selected="selected">Guam
    <option value="Guatemala" selected="selected">Guatemala
    <option value="Guinea" selected="selected">Guinea
    <option value="Guyana" selected="selected">Guyana
    <option value="Haiti" selected="selected">Haiti
    <option value="Hawaii" selected="selected">Hawaii
    <option value="Honduras" selected="selected">Honduras
    <option value="Hong Kong" selected="selected">Hong Kong
    <option value="Hungary" selected="selected">Hungary
    <option value="Iceland" selected="selected">Iceland
    <option value="India" selected="selected">India
    <option value="Indonesia" selected="selected">Indonesia
    <option value="Iran" selected="selected">Iran
    <option value="Iraq" selected="selected">Iraq
    <option value="Ireland" selected="selected">Ireland
    <option value="Isle of Man" selected="selected">Isle of Man
    <option value="Israel" selected="selected">Israel
    <option value="Italy" selected="selected">Italy
    <option value="Jamaica" selected="selected">Jamaica
    <option value="Japan" selected="selected">Japan
    <option value="Jordan" selected="selected">Jordan
    <option value="Kazakhstan" selected="selected">Kazakhstan
    <option value="Kenya" selected="selected">Kenya
    <option value="Kiribati" selected="selected">Kiribati
    <option value="Korea North" selected="selected">Korea North
    <option value="Korea Sout" selected="selected">Korea South
    <option value="Kuwait" selected="selected">Kuwait
    <option value="Kyrgyzstan" selected="selected">Kyrgyzstan
    <option value="Laos" selected="selected">Laos
    <option value="Latvia" selected="selected">Latvia
    <option value="Lebanon" selected="selected">Lebanon
    <option value="Lesotho" selected="selected">Lesotho
    <option value="Liberia" selected="selected">Liberia
    <option value="Libya" selected="selected">Libya
    <option value="Liechtenstein" selected="selected">Liechtenstein
    <option value="Lithuania" selected="selected">Lithuania
    <option value="Luxembourg" selected="selected">Luxembourg
    <option value="Macau" selected="selected">Macau
    <option value="Macedonia" selected="selected">Macedonia
    <option value="Madagascar" selected="selected">Madagascar
    <option value="Malaysia" selected="selected">Malaysia
    <option value="Malawi" selected="selected">Malawi
    <option value="Maldives" selected="selected">Maldives
    <option value="Mali" selected="selected">Mali
    <option value="Malta" selected="selected">Malta
    <option value="Marshall Islands" selected="selected">Marshall Islands
    <option value="Martinique" selected="selected">Martinique
    <option value="Mauritania" selected="selected">Mauritania
    <option value="Mauritius" selected="selected">Mauritius
    <option value="Mayotte" selected="selected">Mayotte
    <option value="Mexico" selected="selected">Mexico
    <option value="Midway Islands" selected="selected">Midway Islands
    <option value="Moldova" selected="selected">Moldova
    <option value="Monaco" selected="selected">Monaco
    <option value="Mongolia" selected="selected">Mongolia
    <option value="Montserrat" selected="selected">Montserrat
    <option value="Morocco" selected="selected">Morocco
    <option value="Mozambique" selected="selected">Mozambique
    <option value="Myanmar" selected="selected">Myanmar
    <option value="Nambia" selected="selected">Nambia
    <option value="Nauru" selected="selected">Nauru
    <option value="Nepal" selected="selected">Nepal
    <option value="Netherland Antilles" selected="selected">Netherland Antilles
    <option value="Netherlands" selected="selected">Netherlands (Holland, Europe)
    <option value="Nevis" selected="selected">Nevis
    <option value="New Caledonia" selected="selected">New Caledonia
    <option value="New Zealand" selected="selected">New Zealand
    <option value="Nicaragua" selected="selected">Nicaragua
    <option value="Niger" selected="selected">Niger
    <option value="Nigeria" selected="selected">Nigeria
    <option value="Niue" selected="selected">Niue
    <option value="Norfolk Island" selected="selected">Norfolk Island
    <option value="Norway" selected="selected">Norway
    <option value="Oman" selected="selected">Oman
    <option value="Pakistan" selected="selected">Pakistan
    <option value="Palau Island" selected="selected">Palau Island
    <option value="Palestine" selected="selected">Palestine
    <option value="Panama" selected="selected">Panama
    <option value="Papua New Guinea" selected="selected">Papua New Guinea
    <option value="Paraguay" selected="selected">Paraguay
    <option value="Peru" selected="selected">Peru
    <option value="Phillipines" selected="selected">Philippines
    <option value="Pitcairn Island" selected="selected">Pitcairn Island
    <option value="Poland" selected="selected">Poland
    <option value="Portugal" selected="selected">Portugal
    <option value="Puerto Rico" selected="selected">Puerto Rico
    <option value="Qatar" selected="selected">Qatar
    <option value="Republic of Montenegro" selected="selected">Republic of Montenegro
    <option value="Republic of Serbia" selected="selected">Republic of Serbia
    <option value="Reunion" selected="selected">Reunion
    <option value="Romania" selected="selected">Romania
    <option value="Russia" selected="selected">Russia
    <option value="Rwanda" selected="selected">Rwanda
    <option value="St Barthelemy" selected="selected">St. Barthelemy
    <option value="St Eustatius" selected="selected">St. Eustatius
    <option value="St Helena" selected="selected">St. Helena
    <option value="St Kitts-Nevis" selected="selected">St. Kitts-Nevis
    <option value="St Lucia" selected="selected">St. Lucia
    <option value="St Maarten" selected="selected">St. Maarten
    <option value="St Pierre & Miquelon" selected="selected">St. Pierre & Miquelon
    <option value="St Vincent & Grenadines" selected="selected">St. Vincent & Grenadines
    <option value="Saipan" selected="selected">Saipan
    <option value="Samoa" selected="selected">Samoa
    <option value="Samoa American" selected="selected">Samoa American
    <option value="San Marino" selected="selected">San Marino
    <option value="Sao Tome & Principe" selected="selected">Sao Tome & Principe
    <option value="Saudi Arabia" selected="selected">Saudi Arabia
    <option value="Senegal" selected="selected">Senegal
    <option value="Seychelles" selected="selected">Seychelles
    <option value="Sierra Leone" selected="selected">Sierra Leone
    <option value="Singapore" selected="selected">Singapore
    <option value="Slovakia" selected="selected">Slovakia
    <option value="Slovenia" selected="selected">Slovenia
    <option value="Solomon Islands" selected="selected">Solomon Islands
    <option value="Somalia" selected="selected">Somalia
    <option value="South Africa" selected="selected">South Africa
    <option value="Spain" selected="selected">Spain
    <option value="Sri Lanka" selected="selected">Sri Lanka
    <option value="Sudan" selected="selected">Sudan
    <option value="Suriname" selected="selected">Suriname
    <option value="Swaziland" selected="selected">Swaziland
    <option value="Sweden" selected="selected">Sweden
    <option value="Switzerland" selected="selected">Switzerland
    <option value="Syria" selected="selected">Syria
    <option value="Tahiti" selected="selected">Tahiti
    <option value="Taiwan" selected="selected">Taiwan
    <option value="Tajikistan" selected="selected">Tajikistan
    <option value="Tanzania" selected="selected">Tanzania
    <option value="Thailand" selected="selected">Thailand
    <option value="Togo" selected="selected">Togo
    <option value="Tokelau" selected="selected">Tokelau
    <option value="Tonga" selected="selected">Tonga
    <option value="Trinidad & Tobago" selected="selected">Trinidad & Tobago
    <option value="Tunisia" selected="selected">Tunisia
    <option value="Turkey" selected="selected">Turkey
    <option value="Turkmenistan" selected="selected">Turkmenistan
    <option value="Turks & Caicos Is" selected="selected">Turks & Caicos Is
    <option value="Tuvalu" selected="selected">Tuvalu
    <option value="Uganda" selected="selected">Uganda
    <option value="Ukraine" selected="selected">Ukraine
    <option value="United Arab Erimates" selected="selected">United Arab Emirates
    <option value="United Kingdom" selected="selected">United Kingdom
    <option value="United States of America" selected="selected">United States of America
    <option value="Uraguay" selected="selected">Uruguay
    <option value="Uzbekistan" selected="selected">Uzbekistan
    <option value="Vanuatu" selected="selected">Vanuatu
    <option value="Vatican City State" selected="selected">Vatican City State
    <option value="Venezuela" selected="selected">Venezuela
    <option value="Vietnam" selected="selected">Vietnam
    <option value="Virgin Islands (Brit)" selected="selected">Virgin Islands (Brit)
    <option value="Virgin Islands (USA)" selected="selected">Virgin Islands (USA)
    <option value="Wake Island" selected="selected">Wake Island
    <option value="Wallis & Futana Is" selected="selected">Wallis & Futana Is
    <option value="Yemen" selected="selected">Yemen
    <option value="Zaire" selected="selected">Zaire
    <option value="Zambia" selected="selected">Zambia
    <option value="Zimbabwe" selected="selected">Zimbabwe


    groups->current_group->id, 'e2e_province' ); ?>

    <input type="text" name="group-province" id="group-province" value="" />

    groups->current_group->id, 'e2e_city' ); ?>

    <input type="text" name="group-city" id="group-city" value="" />

    groups->current_group->id, 'e2e_street' ); ?>

    <input type="text" name="group-street" id="group-street" value="" />



    Club



    groups->current_group->id, 'e2e_type' ); ?>

    <option value="agency" selected="selected">Agency
    <option value="nightclub" selected="selected">Nightclub
    <option value="stripclub" selected="selected">Stripclub
    <option value="lapdance" selected="selected">Lap dance club
    <option value="tabledance" selected="selected">Table dance club
    <option value="cabaret" selected="selected">Cabaret
    <option value="disco" selected="selected">Disco
    <option value="restaurant" selected="selected">Restaurant



    groups->current_group->id, 'e2e_capacity' ); ?>

    <option value="10" selected="selected">5-10
    <option value="20" selected="selected">10-20
    <option value="30" selected="selected">20-30
    <option value="40" selected="selected">30-40
    <option value="50" selected="selected">40-50
    <option value="60" selected="selected">50+



    groups->current_group->id, 'e2e_opened' ); ?>

    <option value="0:00" selected="selected">0:00
    <option value="0:30" selected="selected">0:30
    <option value="1:00" selected="selected">1:00
    <option value="1:30" selected="selected">1:30
    <option value="2:00" selected="selected">2:00
    <option value="2:30" selected="selected">2:30
    <option value="3:00" selected="selected">3:00
    <option value="3:30" selected="selected">3:30
    <option value="4:00" selected="selected">4:00
    <option value="4:30" selected="selected">4:30
    <option value="5:00" selected="selected">5:00
    <option value="5:30" selected="selected">5:30
    <option value="6:00" selected="selected">6:00
    <option value="6:30" selected="selected">6:30
    <option value="7:00" selected="selected">7:00
    <option value="7:30" selected="selected">7:30
    <option value="8:00" selected="selected">8:00
    <option value="8:30" selected="selected">8:30
    <option value="9:00" selected="selected">9:00
    <option value="9:30" selected="selected">9:30
    <option value="10:00" selected="selected">10:00
    <option value="10:30" selected="selected">10:30
    <option value="11:00" selected="selected">11:00
    <option value="11:30" selected="selected">11:30
    <option value="12:00" selected="selected">12:00
    <option value="12:30" selected="selected">12:30
    <option value="13:00" selected="selected">13:00
    <option value="13:30" selected="selected">13:30
    <option value="14:00" selected="selected">14:00
    <option value="14:30" selected="selected">14:30
    <option value="15:00" selected="selected">15:00
    <option value="15:30" selected="selected">15:30
    <option value="16:00" selected="selected">16:00
    <option value="16:30" selected="selected">16:30
    <option value="17:00" selected="selected">17:00
    <option value="17:30" selected="selected">17:30
    <option value="18:00" selected="selected">18:00
    <option value="18:30" selected="selected">18:30
    <option value="19:00" selected="selected">19:00
    <option value="19:30" selected="selected">19:30
    <option value="20:00" selected="selected">20:00
    <option value="20:30" selected="selected">20:30
    <option value="21:00" selected="selected">21:00
    <option value="21:30" selected="selected">21:30
    <option value="22:00" selected="selected">22:00
    <option value="22:30" selected="selected">22:30
    <option value="23:00" selected="selected">23:00
    <option value="23:30" selected="selected">23:30



    groups->current_group->id, 'e2e_closed' ); ?>

    <option value="0:00" selected="selected">0:00
    <option value="0:30" selected="selected">0:30
    <option value="1:00" selected="selected">1:00
    <option value="1:30" selected="selected">1:30
    <option value="2:00" selected="selected">2:00
    <option value="2:30" selected="selected">2:30
    <option value="3:00" selected="selected">3:00
    <option value="3:30" selected="selected">3:30
    <option value="4:00" selected="selected">4:00
    <option value="4:30" selected="selected">4:30
    <option value="5:00" selected="selected">5:00
    <option value="5:30" selected="selected">5:30
    <option value="6:00" selected="selected">6:00
    <option value="6:30" selected="selected">6:30
    <option value="7:00" selected="selected">7:00
    <option value="7:30" selected="selected">7:30
    <option value="8:00" selected="selected">8:00
    <option value="8:30" selected="selected">8:30
    <option value="9:00" selected="selected">9:00
    <option value="9:30" selected="selected">9:30
    <option value="10:00" selected="selected">10:00
    <option value="10:30" selected="selected">10:30
    <option value="11:00" selected="selected">11:00
    <option value="11:30" selected="selected">11:30
    <option value="12:00" selected="selected">12:00
    <option value="12:30" selected="selected">12:30
    <option value="13:00" selected="selected">13:00
    <option value="13:30" selected="selected">13:30
    <option value="14:00" selected="selected">14:00
    <option value="14:30" selected="selected">14:30
    <option value="15:00" selected="selected">15:00
    <option value="15:30" selected="selected">15:30
    <option value="16:00" selected="selected">16:00
    <option value="16:30" selected="selected">16:30
    <option value="17:00" selected="selected">17:00
    <option value="17:30" selected="selected">17:30
    <option value="18:00" selected="selected">18:00
    <option value="18:30" selected="selected">18:30
    <option value="19:00" selected="selected">19:00
    <option value="19:30" selected="selected">19:30
    <option value="20:00" selected="selected">20:00
    <option value="20:30" selected="selected">20:30
    <option value="21:00" selected="selected">21:00
    <option value="21:30" selected="selected">21:30
    <option value="22:00" selected="selected">22:00
    <option value="22:30" selected="selected">22:30
    <option value="23:00" selected="selected">23:00
    <option value="23:30" selected="selected">23:30



    groups->current_group->id, 'e2e_days' ); ?>

    <option value="3x THU-FRI-SAT" selected="selected">3x THU-FRI-SAT
    <option value="4x WED-THU-FRI-SAT" selected="selected">4x WED-THU-FRI-SAT
    <option value="4x THU-FRI-SAT-SUN" selected="selected">4x THU-FRI-SAT-SUN
    <option value="5x WED-THU-FRI-SAT-SUN" selected="selected">5x WED-THU-FRI-SAT-SUN
    <option value="5x THU-FRI-SAT-SUN-MON" selected="selected">5x THU-FRI-SAT-SUN-MON
    <option value="6x WED-THU-FRI-SAT-SUN-MON" selected="selected">6x WED-THU-FRI-SAT-SUN-MON
    <option value="6x THU-FRI-SAT-SUN-MON-TUE" selected="selected">6x THU-FRI-SAT-SUN-MON-TUE
    <option value="7x WED-THU-FRI-SAT-SUN-MON-TUE" selected="selected">7x WED-THU-FRI-SAT-SUN-MON-TUE



    Contact details


    groups->current_group->id, 'e2e_url' ); ?>

    <input type="text" name="group-url" id="group-url" value="" />

    groups->current_group->id, 'e2e_phone' ); ?>

    <input type="text" name="group-phone" id="group-phone" value="" />

    groups->current_group->id, 'e2e_email' ); ?>

    <input type="text" name="group-email" id="group-email" value="" />

    groups->current_group->id, 'e2e_facebook' ); ?>

    <input type="text" name="group-facebook" id="group-facebook" value="" />

    groups->current_group->id, 'e2e_myspace' ); ?>

    <input type="text" name="group-myspace" id="group-myspace" value="" />

    groups->current_group->id, 'e2e_twitter' ); ?>

    <input type="text" name="group-twitter" id="group-twitter" value="" />

    groups->current_group->id, 'e2e_skype' ); ?>

    <input type="text" name="group-skype" id="group-skype" value="" />

    <?php

    return;
    }

    function group_details_save( $group_id ) {
    global $bp, $wpdb;

    $plain_fields = array(
    'text',
    'country',
    'province',
    'city',
    'street',
    'type',
    'capacity',
    'opened',
    'closed',
    'days',
    'url',
    'phone',
    'email',
    'facebook',
    'myspace',
    'twitter',
    'skype'
    );


    foreach( $plain_fields as $field ) {
    $key = 'group-' . $field;
    if ( isset( $_POST[$key] ) ) {
    $value = $_POST[$key];
    groups_update_groupmeta( $group_id, 'e2e_' . $field, $value );
    }
    }


    }
    ?>
    alfredojp
    Participant

    @modemlooper did you see the other code i posted above? which one would be more appropriate to follow to create new fields in the group creation process?

    Thank for the confirmation that it creates a new screen. which is cool too but i also need extra fields for city, state, country, phone number and mestre(teacher)

    alfredojp
    Participant

    I’m pretty good with MySql but not so hot with PHP. I’ve spent two weeks trying to figure out how to add
    another field(s) to the group creation so that a few more fields would be standard for the groups (i already know about that plugin that lets group admin put in fields aftewards), hours and hours and hours on these same forums with little help. I ran across group extension API code ( http://codex.buddypress.org/developer-docs/group-extension-api/ ) but i have no idea how to use it. What do i add, and in what file do i put it in (functions.php, bp-custom.php) so that i can have group fields (at creation) for city, state, country and phone number.

    Any help in this is greatly appreciated.

    #118550
    alfredojp
    Participant

    @Stigmartyr
    @DJPaul
    Thank yo both for your input
    I’m pretty good with MySql but not so hot with PHP. I’ve spent two weeks trying to figure out how to add
    another field(s) to the group creation so that a few more fields would be standard for the groups (i already know about that plugin that lets group admin put in fields aftewards), hours and hours and hours on these same forums with little help. I ran across group extension API code ( https://codex.buddypress.org/developer-docs/group-extension-api/ ) but i have no idea how to use it. What do i add or edit so that i can have group fields (at creation) for city, state, country and phone number.

    #23545
    gen385
    Member

    Hi,

    I would like to know how finally i can do that ? The topic have been discussed but not really resolved…. And i really need it. I can’t put a HUUUUUUGE list of city for all around Canada, i need to separate it with provinces, and i really don’t know how i can do that.

    Quote:
    ….
    Is there any way I can create/download a profile field that lists all the Countries, States/Provinces, Cities???

    And if you select.. Canada it will only list the Provinces in Canada.

    If I need to I will manually type out every single country and every single province, but I just need to know how to go about doing this.

    Thanks a lot for your help.
    Have a good day !

    Anthony

    #18820
    perywinkle
    Participant

    I have this code and the fields are NOT required:

    `<?php bp_member_profile_data( 'field=City' );
    bp_member_profile_data( ‘field=State or Province’ );
    bp_member_profile_data( ‘field=Country’ ); ?>`

    I’m wondering how to create the code for adding a comma(,) before the field IF the field has data

    So my out put would be: City, State, Country or City, Country

    Any help would be greatly appreciated.

    #85938
    Dave Douglas
    Participant

    This is something I have been struggling with for a couple of years now. I am just getting on the W/BP platform having ditched our old solution…

    Your concept is perfect for what we are trying to do.

    We are a philanthropic social network and we have four basic “types” of groups.
    1.) Groups centered around Causes – Global Issues such as Clean Drinking Water, Child Trafficking, Climate Change, etc.
    2.) Groups centered around Occupations – Firefighters, Medical Personnel, Airline Personnel, etc. They all come together to help a project or region by volunteering their services.
    3.) Groups centered around a Project – Rebuilding a School in Nepal, Providing Shoes for Kids in Nicaragua, Creating a Sewing School in Indonesia, etc.
    4.) Groups centered around a Geographic Location – San Francisco, Nepal, Buenos Aires, etc.

    Each “group type”, although similar in nature has different nuances on how they work and what needs they have. For example, the Project group type usually has some project management needs along with specific deadlines. We usually have trips that go to these projects and those trips typically cater to one of our Occupation Groups and falls under a global Cause that we support. Different Geographic Location groups might be interested in the trip too if it is coming to their area or if we have special airline discounts from a specific city like New York.

    What I like about your approach is that you are thinking of letting users create their own groups under specific categories or “group types”.

    We could benefit from drop-down lists that require the user to choose a “group type” when they create a group and then follow up with further selections (that we create, or fill-in-the-blank) based on their selection.

    For example, if they choose:
    Cause – What is the focus? Clean Water (from list), What country? Indonesia (from list)
    Occupation – What is the Occupation? Firefighters* (from list), What country? United States (from list), What City/Town? Dallas(fill-in-blank if international) *this group could be a sub-group of our global Firefighter group
    Project – What is the project? Drill Clean Water Well, What country? Indonesia (from list), What City/Town? Kalimantan (fill-in-blank), How many people does it impact? 250, What occupations can participate? Construction, Medical, General Volunteers

    Maybe you’re not going in this direction, but I wanted to share a real-world example of what we are doing. Maybe it will give you some ideas.

    Thanks for your work!!!

    #11101
    gregfielding
    Participant

    Everyone says they want this, but the BP Member Filter plugin doesn’t appear to be going anywhere. Maybe it’s getting worked into the core of some future release, but who knows what it will actually do.

    Right now, it is nearly impossible to find specific members in buddypress…For example, my site is real-estate-focused. It should be EASY to find a local agent or mortgage broker, but it’s virtually impossible. And, because they can’t be easily found, some are questioning the value in signing up for my site in the first place.

    Here’s the concept….

    Buddypress has profile fields. We should be able to search and sort by those fields.

    I need them by location (pre-loaded), but the same concept could apply to profession, hobby, shoe size, or astrological sign or whatever.

    For example, when someone clicks on my “Members” tab, there should be a drop-down box at the top of the page that filters by country…then, state, county, and city. Maybe there could be an option for additional filters beyond that, like my “profession” field.

    Since my site is news-ish, visitors could search blog posts the same way, finding posts specific to their location.

    Once this basic platform is set up, there are a ton of cool ways it could be used…

    Filter results RSS feeds would could created customized newsletters

    Sidebar widgets and activity streams could show community activity that match a member’s location (or shoe size or whatever).

    Profile Page Sidebars could display local activity.

    Using a visitor’s IP address, local member’s activity could automatically be shown…

    This could be the groundwork for an entire targeted advertising program, showing ads to specific groupings of people in specific locations.

    #75896
    shaisimchi
    Participant

    i now have this which is your code:

    function my_login_redirect($redirect_to,$redirect_to2,$user) {

    global $bp;

    $city = xprofile_get_field_data(26, $user->ID );
    $state = xprofile_get_field_data(27, $user->ID );
    $country = xprofile_get_field_data(103, $user->ID );
    $zip = xprofile_get_field_data(23, $user->ID );

    if( !empty($city) && !empty($state) && !empty($country) && !empty($zip) )

    return ‘http://athleticrash.com&#8217;;

    else

    return bp_core_get_user_domain($user->ID) . ‘profile/edit/’;

    }

    add_filter(‘login_redirect’,’my_login_redirect’,100,3);

    goes to the home page…

    #75892
    shaisimchi
    Participant

    I mean what is passed as the $user parameter.
    it seems that the 2 redirect parameters are not in use and the $user – i am not sure how it is passed here.
    I have tried to do something similar (dont worry about the mess now – I just want the redirect to work):
    function my_login_redirect($redirect_to,$redirect_to2,$user_id) {

    global $wpdb,$bp;
    $user_id = $bp->loggedin_user->id;
    $city = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=26” , $user_id ));
    $state = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=27” , $user_id ));
    $country = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=103” , $user_id ));
    $zip = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=23” , $user_id ));
    if (!$city || $city==”)
    $has_city=0;
    else
    $has_city=1;
    if (!$state || $state==”)
    $has_state=0;
    else
    $has_state=1;
    if (!$country || $country==”)
    $has_country=0;
    else
    $has_country=1;
    if (!$zip || $zip==”)
    $has_zip=0;
    else
    $has_zip=1;
    if ($has_city==1 && $has_state==1 && $has_country==1 && $has_zip==1 )
    return ‘http://athleticrash.com&#8217;;
    else
    return bp_core_get_user_domain($user_id) . ‘profile/edit/’;
    }
    add_filter(‘login_redirect’,’my_login_redirect’,100,3);

    this gave the same results – just went to the home page.

    #75874
    shaisimchi
    Participant

    i tried with the new action – same result.

    here is the function:

    function bp_location_redirect_to_page()
    {
    global $bp,$wpdb;

    $redirect_url_has_location = ‘http://athleticrash.com&#8217;;
    $city = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=26” , $bp->loggedin_user->id ));
    $state = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=27” , $bp->loggedin_user->id ));
    $country = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=103” , $bp->loggedin_user->id ));
    $zip = $wpdb->get_var($wpdb->prepare(“SELECT value FROM wp_bp_xprofile_data WHERE user_id=%d AND field_id=23” , $bp->loggedin_user->id ));
    if (!$city || $city==”)
    $has_city=0;
    else
    $has_city=1;

    if (!$state || $state==”)
    $has_state=0;
    else
    $has_state=1;

    if (!$country || $country==”)
    $has_country=0;
    else
    $has_country=1;

    if (!$zip || $zip==”)
    $has_zip=0;
    else
    $has_zip=1;

    $user_link = $bp->loggedin_user->domain;
    $profile_path = ‘profile/edit’;
    $redirect_url_no_location = $user_link . $profile_path;

    if ($has_city==1 && $has_state==1 && $has_country==1 && $has_zip==1 )
    bp_core_redirect($redirect_url_has_location);
    else
    bp_core_redirect($redirect_url_no_location);
    }
    /*Add an action to redirect user after login*/
    add_action(‘login_redirect’,’bp_location_redirect_to_page’,100,0);

    #8392
    osasko
    Participant

    Hi,

    I would like to know how to add user location to my registration form please.

    A drop down list with example – Country

    State

    City

    This would also make it better to sort users according to location.

    I am on the latest version of Buddypress and WPMU.

    Thanks a lot!

    #59528
    Mike Pratt
    Participant

    @bravenewcode I have to agree with @katendarcy. We have a field for address, city, state, country and postal code so, to which field(s) are you referring when you aks for the field representing “location” Please clarify. Additionally, please explain why you need “description for each user” for what purpose? Thanks

    #36677
    realfam
    Member

    I followed the Codex and created the template, it looks correct, but when I click “submit” to execute the script…I just get the index page. Any ideas on that? Here is my page code.

    <?php

    /*

    Template Name: Browse ExBriefs

    */

    ?>

    <?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <h2>Search</h2>

    <form name=”search” method=”post” action=”<?=$PHP_SELF?>”>

    Seach for: <input type=”text” name=”find” /> in

    <Select NAME=”field”>

    <Option VALUE=”first”>First Name</option>

    <Option VALUE=”last”>Last Name</option>

    <Option VALUE=”city”>City</option>

    <Option VALUE=”state”>State</option>

    <Option VALUE=”country”>Country</option>

    <Option VALUE=”gender”>Gender</option>

    </Select>

    <input type=”hidden” name=”searching” value=”yes” />

    <input type=”submit” name=”search” value=”Search” />

    </form>

    <?PHP

    //This is only displayed if they have submitted the form

    if ($_POST[searching] ==”yes”)

    {

    echo “<h2>Results</h2><p>”;

    //If they did not enter a search term we give them an error

    if ($_POST[find] == “”)

    {

    echo “<p>You forgot to enter a search term”;

    exit;

    }

    // Otherwise we connect to our Database

    include(“http://www.ex-brief.com/profiles/dbinfo.inc.php&#8221;);

    mysql_connect(localhost,$username,$password);

    @mysql_select_db($database) or die( “Unable to select database”);

    // We preform a bit of filtering

    $find = strtoupper($_POST[find]);

    $find = strip_tags($find);

    $find = trim ($find);

    //Now we search for our search term, in the field the user specified

    $data=mysql_query(“select * from contacts where “.$_POST[field].” like ‘%”.addslashes($find).”%'”);

    //And we display the results

    while($result = mysql_fetch_array( $data ))

    {

    echo $result;

    echo ” “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo $result;

    echo “
    “;

    echo “
    “;

    }

    //This counts the number or results – and if there wasn’t any it gives them a little message explaining that

    $anymatches=mysql_num_rows($data);

    if ($anymatches == 0)

    {

    echo “Sorry, there is no Ex-Brief for <b>”$find”</b> yet

    Please try again.

    “;

    }

    }

    ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Viewing 21 results - 26 through 46 (of 46 total)
Skip to toolbar