Skip to:
Content
Pages
Categories
Search
Top
Bottom

call for URL (to display file)


  • caspergrimaldi
    Participant

    @caspergrimaldi

    Hi,

    So, i have set up a “file” upload as part of buddypress profile. This is for users to upload their CVs.
    Everything is working fine. I’d like to make an addition though.
    At the moment the file is only downloadable but I’d like the file to be displayed also.
    There is this grate google viewer iframe option, which I managed to call and make work in the “edit” section of the profile.
    However, in the profile loop so it is displayed on the profile section, I am struggling. The same code doesn’t work. It keeps telling me it can’t find the URL. So could anyone tell me how I could call for the dynamic URL please?

    This is the code I used on edit section and works:
    <iframe src=”http://docs.google.com/gview?url=&lt;?php echo $uploads[‘baseurl’] . bp_get_the_profile_field_edit_value(); ?>&embedded=true” style=”width:600px; height:250px;” frameborder=”0″></iframe><br />

    the part in italic is where I think the problem is.

    Here is a profile link: http://adauk.org/members/caspergrimaldi/

  • The topic ‘call for URL (to display file)’ is closed to new replies.
Skip to toolbar