BuddyDev

Search

Activity Plus Reloaded – Field

  • Participant
    Level: Enlightened
    Posts: 53
    Jennifer on #34514

    Hi! I created custom fields for the activity. But I need the functionality of the Activity Plus Reloaded plugin (add a url) which seems not to be supported with my theme.
    For this, I copied the code of template to add a field of link with the preview button.
    how i can relate the code with your plugin to work? i tried of this way:

    `
    //php in mu-plugin

    include_once ABSPATH . ‘/wp-content/plugins/bp-activity-plus-reloaded/bp-activity-plus-reloaded.php’;
    function form_fields() {
    $target = in_array(BPFB_LINKS_TARGET, array(‘all’, ‘external’)) ? ‘target=”_blank”‘ : ”;
    ?>

    <div data-post-type=”<?php echo $this->post_type; ?>”>

    <div class=”bpfb_final_link”>
    <?php if ($image) { ?>
    <div class=”bpfb_link_preview_container”>
    <a href=”<?php echo esc_url($url);?>” <?php echo $target; ?> ><img src=”<?php echo esc_url($image); ?>” /></a>
    </div>
    <?php } ?>
    <div class=”bpfb_link_contents”>
    <div class=”bpfb_link_preview_title”><?php echo $title;?></div>
    <div class=”bpfb_link_preview_url”>
    <a href=”<?php echo esc_url($url);?>” <?php echo $target; ?> ><?php echo $url;?></a>
    </div>
    <div class=”bpfb_link_preview_body”><?php echo $body;?></div>
    </div>
    </div>..`

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #34536

    Hi Jennifer,
    I am sorry but we are unable to assist you with this custom modifications.

    If you can let me know which theme and template pack you are using, we might be able to assist in getting Activity reloaded working.

    Regard
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 53
    Jennifer on #34542

    Hi Brajesh!
    The theme is Kleo with plugin Youzer.
    thanks!!

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #34547

    Hi Jennifer,
    Thank you for the reply.

    I am sorry, we can not support it with Youzer. With Kleo the plugin should work fine.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved