Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 7 replies - 51 through 57 (of 57 total)
  • @warut

    Participant

    @deities1 thanks for comment

    first version i dont cleanup the code (coding from skeleton comp) because i want to see what others think about it so i can correct and add function it should be.

    do you have a example that gift was not show? name of user?

    I test on my site, It can send to admin normally.

    what do you mean “Gifts sent to him or myself simply don’t show”?

    for sender activity stream it show gift that him send, including in public activity stream (like other activity stream). for this, I see activity stream have hide from public but not test it yet.

    because i am coding badge plugin for budypress so maybe next sunday i will upload next version of bpgift (still confusing with subversion – -” ).

    thing to do:

    1. cleanup the code

    2. hide stream from public (if possible)

    3. deactivate plugin function

    4. correct the bug (?)

    others?

    @warut

    Participant

    “it’d be creating your HTML correctly but loading too late to intercept the page URL”

    how about load order ? can you explain in detail or where can i found the document?

    @warut

    Participant

    Thanks for reply DJPaul,

    just copy from skeleton loader.php and bp_example_core.php

    ######## loader.php ########

    function bp_badge_init() {

    require( dirname( __FILE__ ) . ‘/includes/bp-badge-core.php’ );

    }

    add_action( ‘bp_init’, ‘bp_badge_init’ );

    function bp_badge_activate() {

    global $wpdb;

    }

    register_activation_hook( __FILE__, ‘bp_badge_activate’ );

    ###### bp_example_core.php #######

    after activate plugin it call bp_example_core.php

    .

    .

    function bp_badge_setup_nav() {

    global $bp;

    $badge_link = $bp->loggedin_user->domain . $bp->profile->slug . ‘/’;

    bp_core_new_subnav_item( array(

    ‘name’ => __( ‘screenone’, ‘bp-badge’ ),

    ‘slug’ => ‘screen-one’,

    ‘parent_slug’ => $bp->profile->slug,

    ‘parent_url’ => $badge_link,

    ‘screen_function’ => ‘bp_badge_screen’,

    ‘position’ => 10

    ) );

    add_action( ‘wp’, ‘bp_badge_setup_nav’, 2 );

    add_action( ‘admin_menu’, ‘bp_badge_setup_nav’, 2 );

    ######

    if i create main nav and setup subnav in it everything ok

    In reply to: Badge Maker

    @warut

    Participant

    I see it on facebook. anyone coding this idea? if no i will try code it cloning from facebook . if it already available where can i download it ?

    what should this locate in tab or widget or any position?

    @hbndev do you make your code for buddypress yet?

    In reply to: Badge Maker

    @warut

    Participant

    badge it just image and link ? do you have real example that it using on site.

    @warut

    Participant

    it like others social network gifts

    when you see other member profile it will show gifts tab that you can chose gift and type your message then it create activity stream with gifts icon and your message to that member.

    when user click gift tab on own profile they will see activity stream with type new_gifts on gift tab.

    this is a screen shot

    http://yfrog.com/6gbuddypressgiftsj

    @warut

    Participant

    Thanks Bowe and r-a-y , that a good tutorial i will try it.

    dre1080 if you want to test this plugin you can download here

    http://jump.fm/YLUCP

    but for testing only because i dont cleanup the code (still have some debug message) and not delete table after deactivate plugin

    for delete plugin, deactivate and delete then delete wp_bp_gifts table and activity stream type new_gifts.

    for installation, extract in plugin folder and activate plugin.

    i use free gift image from iconpedia.com so if you have own image (64*64px) place image on includes/images folder before activate plugin (or add one by one in admin panel)

    this is my first plugin, please give suggestion if it have any bad code or function

Viewing 7 replies - 51 through 57 (of 57 total)
Skip to toolbar