Skip to:
Content
Pages
Categories
Search
Top
Bottom

Converting a LINK function to display Image instead.

  • @cybervang

    Participant

    I’ve been trying to find a way for the default linking function to display a link as image.

    For example:
    http://site.us/home/wp-content/uploads/bpfb/1_0-23953400-1417163016_img_0669-bpfbt.jpg

    Instead of becoming a LINKED line after post, it becomes the IMAGE displayed.

    I was thinking something like <?php echo ‘html code’. $link .’html’; ?>

    Trying to get the activities to automatically take a link and post as IMAGE so the users can share images via link instead of having a plain LINK to the image displayed.

    Something much similiar to Activities Plus except this will take the image link a user types in instead and processes it via comment and replies.

    Can someone point me in the right direction? Is this maybe impossible for bp since it’s a WP function?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @henrywright

    Moderator

    Hi @cybervang

    What’s the function you’re using? I tried visiting the link you supplied but it seems broken.

    @cybervang

    Participant

    Notice how < img src=”Link” > works in buddy press activities?

    I want to harness this ability but maybe put it in a BUTTON or automatically happen via a function. I don’t know where to start.

    Here’s an example on my developing TEST website.

    hmongonline.us

    login: demo
    pass: demo

    Trying to get activity comments to post photos.
    ATM this is the only way I can see on COMMENTS. < img src=”Link” >

    @henrywright

    Moderator

    I’m not entirely sure what you’re trying to do, but, I did manage to post an image as an activity comment. See here

    I used <img src="http://placehold.it/350x150" />

    @cybervang

    Participant

    I was hoping someone could point me to the code that handles the conversion of an address you type in to LINK. I want to modify it so it displays the link instead of just the click-able address link.

    I am hoping the solution will not be editing WP core. Perhaps just a function.

    Basically I am trying to make a PHOTO button that will handle the imbed for activity comments.
    Using an html code to imbed seems primitive but it’s all that I can think of atm.

    @henrywright

    Moderator

    I was hoping someone could point me to the code that handles the conversion of an address you type in to LINK

    Sorry for me seeming dumb, but I really am not sure what you mean by this? Your web browser interprets the <img> tag and renders the image on screen if that’s what you mean?

    The BuddyPress code is on GitHub if that’s any help. See here

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Converting a LINK function to display Image instead.’ is closed to new replies.
Skip to toolbar