Skip to:
Content
Pages
Categories
Search
Top
Bottom

need some ajax guidance

  • @seanx820

    Participant

    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!

Viewing 10 replies - 1 through 10 (of 10 total)
  • @seanx820

    Participant

    grr, i do not know how to post code snippets here, on wordpress.org there is a code tag i can use…

    @lph2005

    Participant

    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
    */

    @seanx820

    Participant

    &lt ;?<?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' ); }

    ?>

    @seanx820

    Participant

    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.txt

    @cnorris23

    Participant

    Wrap them in tags. You have to strip out the beginning () PHP tags, otherwise that code will be stripped.

    @cnorris23

    Participant

    Or do what @LPH2005 did ;)

    @seanx820

    Participant

    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?

    @seanx820

    Participant

    i did not even test this, but this not look like logical code, where is the end of your link element ?

    @seanx820

    Participant

    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

    @seanx820

    Participant
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘need some ajax guidance’ is closed to new replies.
Skip to toolbar