Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Ajax updating member header bp_activity_latest_update?


mrglasspoole
Member

@mrglasspoole

My jQuery and Ajax is ok, but my PHP is not so good (most time trial and error and wasting time). Thats the reason why the ajax.php is a nightmare to me.
If i would unterstand how and where the new update gets injected in the loop, i would fire up jQuery after that to grap the content of bp_activity_content_body() from entry.php and put it in.

STOOOOOOOP *lol

just in the momend i was writing the above i had the lightening. I was looking around in ajax.php and didn’t see how it works. You know why – cause the action is in global.js.
And here it is:
jq(“span#put-latest”).each(function() {
jq(this).text($(“ul#activity-stream .activity-inner”).eq(0).text());
});

Sometimes you can’t see the wood becaus of all the trees….

Sorry for spelling errors, i’m german.

Skip to toolbar