WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Connections] Removing Updated x days ago from Connection Plug in list display (4 posts)

  1. rmmech
    Member
    Posted 4 years ago #

    First, thanks for the plug in. The answer to this is probably staring me in the face, but I have been trying to figure this out for a couple days. I am trying to make what should be a very simple change in the way my connections plug contacts list displays. I don't want the updated x days ago to display on my site. I have gone through the php files in the plug in directory. I thought I found the code in card-tableformat.php. I tried deleting the code <span style="<?php echo $entry->getLastUpdatedStyle() ?>; font-size:x-small; font-variant: small-caps;">Updated <?php echo $entry->getHumanTimeDiff() ?> ago</span> and saving the file back to my server, but the pesky updated info stays visible on my site.
    Any clues on where I need to make the change (and what the correct code to remove or change is)? The page I seeing updated message at is sunny1039.com/?page_id=675.
    Thanks in advance for help with this.

    http://wordpress.org/extend/plugins/connections/

  2. superoreh
    Member
    Posted 4 years ago #

    Do yo know what template are you using?
    If yu are using template profile you should get in wp-content/plugins/connections/templates and delete in profile.php lines:

    <span style="<?php echo $entry->getLastUpdatedStyle() ?>; font-size:x-small; font-variant: small-caps; position: absolute; right: 26px; bottom: 8px;">Updated <?php echo $entry->getHumanTimeDiff() ?> ago</span><span style="position: absolute; right: 3px; bottom: 5px;"><?php echo $entry->returnToTopAnchor() ?></span><br />

    Myselfe I delete also "Add to Address Book"

    <div class="cn-meta" align="left" style="margin-top: 6px">
    		<span><?php echo $vCard->download() ?></span>
    		<span style="<?php echo $entry->getLastUpdatedStyle() ?>; font-size:x-small; font-variant: small-caps; position: absolute; right: 26px; bottom: 8px;">Updated <?php echo $entry->getHumanTimeDiff() ?> ago</span><span style="position: absolute; right: 3px; bottom: 5px;"><?php echo $entry->returnToTopAnchor() ?></span><br />
  3. shazahm1
    Member
    Posted 4 years ago #

    @rmmech

    Depending on the template you are using, the default is card.php, which can be found in:

    wp-content/plugins/connections/templates

    Remove the this code:

    <span style="<?php echo $entry->getLastUpdatedStyle() ?>; font-size:x-small; font-variant: small-caps; position: absolute; right: 26px; bottom: 8px;">Updated <?php echo $entry->getHumanTimeDiff() ?> ago</span>

  4. rmmech
    Member
    Posted 4 years ago #

    Awesome. That was the trick. Thank you very much for the help. I was looking in all the wrong places. It was in the card.php file.

Topic Closed

This topic has been closed to new replies.

About this Topic