Skip to:
Content
Pages
Categories
Search
Top
Bottom

image.php file for Buddypress theme

  • Avatar of Famous
    Famous
    Participant

    @famous

    Does anyone have an image.php file for buddypress? One that shows cool thumbnails of next and previous images? Or can you get me started somehow? Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    == thumbnails of next and previous images ==

    @famous next and previous thumbnail images are shown by template tags -
    “ and “

    One quick solution for an image.php file:
    – copy bp-default theme’s index.php and save to your child theme folder
    – open up index.php and replace the following lines:

    Replace
    `

    `
    With
    `

    ID, ‘large’ ); ?>

    `

    Replace
    `

    `
    With
    `

    `

    Replace
    `

    <a href="” rel=”bookmark” title=” “>

    `
    With
    `

    <a href="post_parent); ?>” rel=”attachment”>post_parent); ?>

    `

    You can also check out twentyten’s loop-attachment.php to see how image attachments are rendered along with other forms of attachment http://core.trac.wordpress.org/browser/tags/3.1.1/wp-content/themes/twentyten/loop-attachment.php

    Avatar of Famous
    Famous
    Participant

    @famous

    hello @mercime I didn’t get your reply till much later. I ended up finding what you said above:
    ` `
    And it worked great, however I have one more situation I was hoping you could help me out with. I want to click:
    `<p class="”>`
    the above and have it go to the next picture, instead of just showing the same image on the page only, any idea?

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

You must be logged in to reply to this topic.