Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 11 replies - 126 through 136 (of 136 total)
  • @enlightenmental1

    Participant

    one more hint plz…. can you give an example of what would be entered into the profile field…. does it have to be a music file?

    so, http://mywebsite.com/mysong.mp3 ?

    I’m confused as to where the audio file is located/uploaded/pulled from….

    does the user upload a file? or simpley enter a link to an audio file? or enter artist names/song name and it’s pulled from amazon?

    (thanks)

    @enlightenmental1

    Participant

    I would need a “report this USER” plugin that allows other members to report an individual user to the admin…

    that way if there is “bad content” in their:

    – wire

    – events

    – public chat

    – profile info

    – Anywhere really…

    the other user can “report this user”(allow them to give a reason why they reported)

    then the admin can look at the reported user and decide what action to take.

    @enlightenmental1

    Participant

    WPMU Premium DEV

    http://premium.wpmudev.org/

    has a plugin/component for WPMU that will scan content and send an email to the admin if any “keywords” are found

    obviously not as useful as a “report this” plugin, but may act as a “bandaid” until one exists…

    has anyone used this? will it work with BP?

    @enlightenmental1

    Participant

    +1

    @enlightenmental1

    Participant

    it appears the profile fields are being named rather generically…

    i.e.

    field_1

    (first name)

    field_2

    (xprofile field #1)

    field_3

    (xprofile field #2)

    I need a way to manually call/insert these values… and Im assuming they aren’t named “field_3” in the database

    I was hoping if i add an extra field and call it “Referred by” that the DB table name would be “referred_by”

    this this a correct presumption?

    I have little knowledge of functions and this code has ALOT of them….

    @enlightenmental1

    Participant

    thanks. I appreciate it

    @enlightenmental1

    Participant

    I think i understand what you mean…. well… not really

    function bp_the_profile_field_value() {

    global $field;

    $field->data->value = bp_unserialize_profile_field( $field->data->value );

    echo apply_filters( ‘bp_the_profile_field_value’, $field->data->value, $field->type, $field->id );

    }

    you’re saying add a “if” statement, so if the “x_profile fields = this” do “this”…..

    I dont know enough about php….

    @enlightenmental1

    Participant

    “you’ve change the global $bp values :)

    Nicola:

    I don’t understand what you mean…

    are you saying I should NOT have done it in this way?

    is there any reasons why I would not want to do it like this?

    I know very little about PHP…

    @enlightenmental1

    Participant

    I see, I see… thanks

    by “make plugin” you mean just handcode what i want….

    can you tell me which files to edit:

    wp-signup.php

    (edit this to add extra fields to registration once I remove x_profile functionality)

    how about the “edit profile” page?

    which PHP file is that?

    I still need to display those fields as “readonly”

    thanks again

    @enlightenmental1

    Participant

    Hey Nicola,

    I don’t mean to disagree with you, and Im sure you know more than me, but I think this IS possible….I’ve done it on other WP installs

    once the extra profile fields are created, I just need a way to call them back.

    (I realize I would be removing the “get additional fields” function and just code it by hand)

    For example if I wanted to display the users first name, I would use this:

    Register Page:

    <input type="text" name="first_name" id="first_name" class="input" value="" size="25" tabindex="20" /></label>

    Profile Page:

    <input type="text" name="first_name" id="first_name" class="input" value="<?php echo $_GET['first_name']; ?>" size="25" tabindex="20" READONLY=READONLY /></label>

    so rather than displaying the form fields dynamically(x_profile), I would just hand code them in based on what “extra fields” I’ve created

    that will work won’t it?

    I just need to know which files to modify….

    thanks for brainstorming with me

    @enlightenmental1

    Participant

    here is what I used to limit the group creation to admins only

    (can also be changed to allow other user levels if needed)

    hope this helps

    edit: bp-groups.php around line 205

    global $user_ID; if( $user_ID ) :
    if( current_user_can('level_10') ) {

    bp_core_add_subnav_item( $bp->groups->slug, 'create', __('Create a Group', 'buddypress'), $groups_link, 'groups_screen_create_group', false, bp_is_home() );

    }

    endif;

Viewing 11 replies - 126 through 136 (of 136 total)
Skip to toolbar