need some ajax guidance
-
i am updating the ajax plugin right now for buddypress but i am finding it hard to read through the API for buddypress. What I am trying to do is sort of recreate adminbar within a menu, i.e. i want the user to login and see Activity as an option where it filters by My Activity, but I can’t even get that far, why won’t this statement work?
‘<a id="wp-logout" href="”>
‘btw you can see this theme in development with http://www.capsoffplease.com/2.0
getting frustrated!
-
grr, i do not know how to post code snippets here, on wordpress.org there is a code tag i can use…
I can’t help with the ajax part but wanted to let you know that your theme looks exciting.
Oh – and yes – posting code here is a pain in the butt. I’ve seem some people use posting with
code tag followed by & l t ; ?php (remove spaces) .. so you end up with
<?php
/*
Plugin Name: My Wonderful Plugin
Description: Something I threw together for this post
Version: 0.1 beta
Author: LPH
*/
< ;?<?php
function your_custom_loader() {
?>
<a id="wp-logout" href="">BLAH<?php }
if ( defined( 'BP_VERSION' ) || did_action( 'bp_init' ) ) {
your_custom_loader(); }
else {
add_action( 'bp_init', 'your_custom_loader' ); }?>
this is utterly ridiculous, my code won’t post so here->
http://www.capsoffplease.com/2.0/wp-content/plugins/login-with-ajax/widget/function.txtWrap them in
tags. You have to strip out the beginning () PHP tags, otherwise that code will be stripped.
Or do what @LPH2005 did
or just link you to a .txt file so you can click on it, does anyone know how to do what i am talking about?
i did not even test this, but this not look like logical code, where is the end of your link element ?
i think i figured some stuff out, this is kind of ridic, i will post it when i am done, or if someone else responds
this is probably what i wanted all along, starting to read this->
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-re-produce-notifications-in-a-custom-admin-bar/
- The topic ‘need some ajax guidance’ is closed to new replies.