Skip to:
Content
Pages
Categories
Search
Top
Bottom

Ajax not working in BP 1.5 with custom theme

  • Avatar of enderandrew
    enderandrew
    Member

    @enderandrew

    I’m testing out BP 1.5 trunk. In the past I used the bp-template-pack which isn’t updated for BP 1.5. So I pasted the current bp-default theme files into the bp-template-pack template folder to use those. But the JS/Ajax integration isn’t working 100%.

    I can’t click on the Add Friends link, nor can I update status. Other Ajax/JS functions are working for the most part.

    Can I fix the bp-template-pack to work, or how would you normally insert the BP javascript into a custom theme?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Try copying the folder _inc from bp-default over to your theme folder.

    Avatar of valuser
    valuser
    Participant

    @valuser

    or try the bp template pack download at https://github.com/boonebgorges/bp-template-pack

    Avatar of archonic
    archonic
    Participant

    @archonic

    I did exactly the same and found that a plugin which enques jquery incorrectly totally broke all BP interactivity – can’t update, post, reply, delete, anything. After deactivating that plugin, the site behaved as if it was working via css ajax updates but the database wasn’t actually changing. It appeared the form action wasn’t submitting properly. I’ll try the recent bp-template pack and report back.

    Avatar of archonic
    archonic
    Participant

    @archonic

    Works! But I still used the old method of editing 13 files instead of using header-buddypress.php, sidebar-buddypress.php and footer-buddypress.php. It seemed the files weren’t used by buddypress at all and the page source for any buddypress page was empty. Anyone else experience that?

    Avatar of valuser
    valuser
    Participant

    @valuser

    I also successfully used the old method (13 or so files) with the new bp template pack. Couldn’t figure out whether or not I was using the new method correctly so can’t really comment on it. But the old method with the new bp template pack does the job.

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

The topic ‘Ajax not working in BP 1.5 with custom theme’ is closed to new replies.