Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

  • karmatiger
    Participant

    @karmatiger

    dan that was extremely helpful 🙂 I’m so close now…

    I’m using

    function text_pre_timestamp() {
      $link = '';
      if ( bp_activity_user_can_delete() ) {
    	  $url   = bp_get_activity_delete_url();
    	  $link = '<a href="' . $url . '" class="activity-list delete">' . __( 'Delete', 'buddypress' ) . '</a>';
    	  $test = 'sample text ';
      }
      
      $var = ' %s ago ';// %s = timestamp
      if (!$link == '') $var = $var . '| ' . $test . $link; 
      return $var;
    
    }
    add_filter( 'bp_core_time_since_ago_text', 'text_pre_timestamp' );

    and it works! Well… for some reason it’s putting the Delete link on a separate line, and I can’t figure out why. As you can see I’ve included test text, which it includes on the same line as the timestamp. If I put $link before the timestamp it displays inline; but if I put it after the timestamp it puts the href one line down. Is this a Buddypress thing?

    The CSS used:

    .activity-list .delete {
      display: inline; 
      font-size:10px; 
      padding: 0; 
      margin: 0;
    }

    You can see by the display: inline I’m attempting to get the href to be on the same line as the rest of the text. have you any thoughts as to why it’s inserting a line break?


    karmatiger
    Participant

    @karmatiger

    thanks 🙂 That narrows it down. However, I’m trying to add text to the header, inline with the timestamp. The filter solution above places text after the header, two line breaks down.

    I’ve added

    if ( ! function_exists( 'bp_get_activity_action' ) ) {
        function bp_get_activity_action( $args = array() ) {... 

    …the rest is a copy of the original bp_get_activity_action function so I can override it with this new one via the child theme. However, I’ve tried adding the new info at various points throughout the function and still nothing is displaying other than the default info.


    karmatiger
    Participant

    @karmatiger

    Also, jbboro3, this comes down to personal opinion but I hate having the server crunch everything that could be done, then hiding output.

    In this case it’s six of one, half a dozen of the other as the css code to hide it isn’t that big, but in some cases the code to create the thing is huge and learning how to safely delete said code, rather than process it then hide the result, can increase site page load times.


    karmatiger
    Participant

    @karmatiger

    silly question – where does one find the forums?


    karmatiger
    Participant

    @karmatiger

    I usually modify the latest WP theme, as they tend to be pretty stable, but this is my first time working with buddypress and I wanted to start with something built-in buddypress compatible to have a starting point.

    Sort of like how when I went to the Ford grounds in Dearborn, there was a Toyota Prius just inside their shop being reverse engineered “studied”.

    Anyhow, for now I’ve just switched off animation for the lot. Now I’ve moved on to trying to figure out how to add field data bbeside the title (Name) in the profile, but the tutorials for that on this site all seem to be 404ing.

    It’s gonna be one of those months.


    karmatiger
    Participant

    @karmatiger

    I have a site where the members have to be logged in to see anything, and locked down so anyone not a member just gets redirected to the signup page.

    I want to remove the ‘everyone’ option from this list so members don’t get confused and think that their info or photos might be seen by non logged in members.

    This seemingly simple thing has me stumped; does anyone know how to remove one of the visibility options?


    karmatiger
    Participant

    @karmatiger

    Yeah, I’ve ben talking to SeventhQueen, makers of the Kleo theme I’m using, but their response to almost every question asked is “have you tried looking for a plugin that will do what you want?”


    karmatiger
    Participant

    @karmatiger

    I realised this affected the stream on a person’s profile as well, and removing the button removed a member’s ability to delete an update they posted.

    It bothers me having a large DELETE below the activity entry, making the activity feed longer and uglier than it needs be.

    I’d like to move it to the entry header; instead of:

    KarmaTiger posted an update
    3 hours, 5 minutes ago

    it would say

    KarmaTiger posted an update
    3 hours, 5 minutes ago (delete)

    but the entry header is a function ( bp_activity_action() )and not easy to add on to (or find). Do any of you far more experienced buddypress users know how I may do this?


    karmatiger
    Participant

    @karmatiger

    where did you place the function? When I put it in bp-custom.php the cover image still crashes when I upload copies of the css files to buddypress/css to my Kleo child theme


    karmatiger
    Participant

    @karmatiger

    Thanks Shane 🙂 I was thinking hook solution when I should have just overridden the file creating the output. That’s what I get when fixing on one solution.


    karmatiger
    Participant

    @karmatiger

    isn’t fixing a snippet of code easier? all I need is to check whether or not there’s already a cover photo already attached to that profile.

    Every time there’s a problem with the theme as it is, seventhqueen says “add this 3rd party plugin”. I now have 33 plugins already running, which isn’t doing any wonders for performance, or a tidy backend, and throwing more plugins at things will only exacerbate the problem.


    karmatiger
    Participant

    @karmatiger

    forgot to check notify me of replies

Viewing 12 replies - 1 through 12 (of 12 total)
Skip to toolbar