Skip to:
Content
Pages
Categories
Search
Top
Bottom

Posting Code in a Page (Doesn\'t show)

  • Avatar of dwpers
    dwpers
    Participant

    @dwpers

    Hey guys I know this might be more of a WPMU question, but since the community is so friendly and knowledgeable here at BP, I thought I would post this here instead.

    I’ve created a flickr API script that reads my flickr photosets fine on a stand alone html page, however, if I try to use the same code inserted into a new buddypress page (trying to keep the header/footer and log in data) it gives me a blank page with just the header and footer.

    I remember reading on here that WP strips out all code, but why does it do it when surrounded by tags within WPMU? Is there a special way to make this work, or even a work around for it? I’m trying to keep my site pages uniformed and themed the same way.

    EDIT: I’ve tried using the EmbedIt plug-in which embeds the HTML, but it’s still not functional. You can see the page here: http://fanspeak.com/fanspeak-event-galleries/ and view the source to see that it does indeed embed, but does not display.

    [code] tags within WPMU? Is there a special way to make this work, or even a work around for it? I'm trying to keep my site pages uniformed and themed the same way.

    EDIT: I've tried using the EmbedIt plug-in which embeds the HTML, but it's still not functional. You can see the page here: http://fanspeak.com/fanspeak-event-galleries/ and view the source to see that it does indeed embed, but does not display.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Bowe
    Bowe
    Participant

    @bowromir

    I’m not sure if this is the best way but what you could do is put your html/script in a seperate file called “flickrscript.php” and put it in your active theme folder.

    then include it in your template by calling it directly:

    <?php include( TEMPLATEPATH . ‘/flickrscript.php’ ); ?>

    That should work I think! If you want to entirely new BuddyPress page you can follow this guide:

    http://buddypress.org/forums/topic/make-your-own-custom-buddypress-page

    Good luck!

    Avatar of dwpers
    dwpers
    Participant

    @dwpers

    Thanks Bowe :)

    I tried creating my own custom page, but for some reason it was always blank (I must not be doing it right somewhere).

    I’ll give your php include suggestion a try :).

    Avatar of Bowe
    Bowe
    Participant

    @bowromir

    You can try to include the page in a existing BP page first to see if it works there, if it does you know the problem lies in your custom page :-)

    Avatar of dwpers
    dwpers
    Participant

    @dwpers

    Hmm that didn’t work either. I’ll have to see what’s going on…

    Thanks again for the help!

    Merry Christmas & Happy Holidays :)

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

You must be logged in to reply to this topic.