Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 101 through 125 (of 136 total)
  • @enlightenmental1

    Participant

    I thought $current_user might work as well…. but it isn’t…

    bp_loggedin_user_id seems to Error no matter how/where i use it…

    which file has the bp_loggedin_user_id function? I would like to manually add that from the trunk

    $curauth->the_user //pulls from regular WP profile

    $current_user // not sure if this is even a wp function

    bp_loggedin_user_id // returns a fatal error

    if bp_loggedin_user_id is a function, it must not be in my install…. and I can’t find where that one is in the trunk..

    @enlightenmental1

    Participant

    Fatal Error: bp_loggedin_user_id unidentified function……

    this is after replacing bp-xprofile.php and bp-xprofile/bp-xprofile-filters.php with the trunk version

    now replaced bp-xprofile-templatetags.php and getting a fatal error…. still working on it

    @enlightenmental1

    Participant

    sorry to bother you further….

    that corrects the fatal error… however the field_1 value is not called back……(thought field_1 was full name…)

    echo 'Welcome' . xprofile_get_field_data(field_1, $curauth->the_user). ', access your account below.' ;
    I named it wrong? or there’s more function to add? I think I will move onto the latest trunk if this doesnt work…. is there a “version hsitory” where i can see the new code used in the latest trunk? otherwise I’ll be comparing lots of code when i try to implement

    @enlightenmental1

    Participant

    wow… I honestly only pushed the “send post” button once… lol

    @enlightenmental1

    Participant

    Could a person even attempt to add the necessary functions without replacing RC1 ?

    my boss is all over me to get this site done… so we’ve done much customizing to the core to get the desired results…

    can I simply add this function? or am i in over my head (proly already am)

    thanks agian

    @enlightenmental1

    Participant

    Fatal error: Call to undefined function xprofile_get_field_data() in…

    eh?

    my code:

    if( xprofile_get_field_data(field_1, $curauth->the_user) ):
    
    echo 'Welcome' . xprofile_get_field_data(field_1, $curauth->the_user). ', enter here' ;
    
    endif;

    Thanks Andy, your skills humble me

    @enlightenmental1

    Participant

    thank you

    @enlightenmental1

    Participant

    @keston, I like your ebay plugin. Can you share it?

    @enlightenmental1

    Participant

    figured it out

    wow… I’ve never seen a list item like this… had me very confused

    @enlightenmental1

    Participant

    how are the /groups /members “pretty permalinked” ?

    I simply dont have time to do this the “right way”… my boss wants this done now… despite my efforts to explain how much time these things can take… : (

    could a person manually add rewrite rules to the htaccess file for the pages created?

    i.e. if i have a page named “Chat”

    i just add a line to the htaccess file….if page_id=THIS rewrite to THIS ?

    any help would be stellar….thanks

    (my htaccess file updates instantly as well if I make changes to it)

    @enlightenmental1

    Participant
    echo "<ul class="main-nav">";
    
    echo "<li >Main Link</li >";
    
    echo "<ul >";
    
    echo "<li >sub link</li >";
    
    echo "<li >sub link</li >";
    
    echo "<li >sub link</li >";
    
    echo "<li >sub link</li >";
    
    echo "<ul >";
    
    echo "</ul >";
    

    why doesnt the above create a dropdown in the admin bar?

    @enlightenmental1

    Participant

    I’m doing the same thing… sort of

    planning to use Noah’s Classifieds (opensource php)

    and integrate with WPMU + buddypress

    logged in user can then view/post ads

    @enlightenmental1

    Participant

    i did exactly that….. and it doesn’t work

    echo “you must be logged in sucka!”;

    sleep(4);

    bp_core_redirect( $bp->root_domain );

    exit();

    the above echos the text…. but doesn’t seem to complete the redirect

    @enlightenmental1

    Participant

    yes sir,

    that worked great!

    I’ve edited the original code to:

    echo “You must be Logged-In to view this page”; //displays message

    exit(); //stops page from loading

    but I want it to redirect after echoing the above line

    anyone?

    (Thanks again Burt)

    @enlightenmental1

    Participant

    how would I add additional “Areas” like the /events page that contains the member created events stuff (the bp-events plugins)

    I want that hidden as well….

    @enlightenmental1

    Participant

    question

    I’ve hand coded the bp-core-admin-bar.php to add additional links

    and add a If(user_is_logged_in) so I can switch links when the user logs in..

    but my li / ul aren’t creating droppdowns

    example

    
    <li> main link </li>
    <ul>
    <li>sub link</li>
    <li>sub link</li>
    </ul>

    instead of getting the sub-links to show as a dropdown, they show up as new “main links”

    I am aware of the no-arrow class but are there more css classes to add to these items to make them become a drop down?

    here’s my complete code:

    @enlightenmental1

    Participant

    looks very nice… Kudos

    @enlightenmental1

    Participant

    Awesome Burt!

    thanks for making this

    here’s a quick question

    is there a way to echo ” you must be logged in to view this ” ;

    before redirecting to the home-page/login page

    ?

    something like this?

    echo “You must be Logged-In to view this page”;

    sleep[5];

    bp_core_redirect( $bp->root_domain );

    @enlightenmental1

    Participant

    I believe it probably is a host thing (godaddy)

    how it that when permalinks are set to default, the buddypress pages still have “pretty permalinks”?

    I would like to fix my problem by using that same “technique”

    anyone?

    @enlightenmental1

    Participant

    “I’m running WPMU 2.7 – BP trunk1248, not in subfolder/subdomain. Godaddy shared hosting. Any permalinks set, and widgets won’t work.”

    +1

    @enlightenmental1

    Participant

    awesome mod…. thanks for making this

    quick question(s) for anyone who knows:

    I have added an else $is_single_group to the php in order to limit viewing groups to members only, but I’m not sure what to use for the “$is_single_group”

    it’s almost there… next I would add two more else’s to limit viewing the /members and /groups pages to members only… but I dunno what the variables are..

    <?php

    /*

    Plugin Name: Force Member Login

    Description: No one can see your member pages unless they are logged in.

    Plugin URI: http://trentadams.ca

    Author: Trent Adams

    Author URI: http://trentadams.ca

    Version: 0.1

    */

    function force_member_login_init() {

    global $bp, $is_member_page, $is_single_group;

    if ( $is_member_page) {

    if ( !is_user_logged_in() ) {

    echo "<center>";

    echo "<div align='center' style='background:#f1f1f1; border:2px dashed #990000; width:450px;'>

    ";

    echo "<h1>You must be logged in to view member profiles</h1>";

    echo "click here to login or register

    ";

    echo "</div>";

    sleep(5);

    //nocache_headers();

    //header("HTTP/1.1 302 Moved Temporarily");

    //header('Location: ' . get_settings('siteurl') . '/register');

    //header("Status: 302 Moved Temporarily");

    echo "</center>";

    exit();

    }

    }

    else {

    if ( $is_single_group) {

    if ( !is_user_logged_in() ) {

    echo "<center>";

    echo "<div align='center' style='background:#f1f1f1; border:2px dashed #990000; width:450px;'>

    ";

    echo "<h1>You must be logged in to view group profiles</h1>";

    echo "click here to login or register

    ";

    echo "</div>";

    sleep(5);

    //nocache_headers();

    //header("HTTP/1.1 302 Moved Temporarily");

    //header('Location: ' . get_settings('siteurl') . '/register');

    //header("Status: 302 Moved Temporarily");

    echo "</center>";

    exit();

    }

    }

    }

    }

    add_action( 'init', 'force_member_login_init' );

    ?>

    @enlightenmental1

    Participant

    +1

    WPMU 2.7

    latest BP

    shared hosting

    with permalinks set to custom, ajax widgets wont refresh

    @enlightenmental1

    Participant

    quick question:

    I uploaded the BP-music.php file to the mu-plugins folder

    and the styles/css for the entire site went crazy

    …almost like the “remove filter” removed everything from everything…

    I had not yet created a group called “Audio Details” when i uploaded the file…

    is that why it didn’t work?

    @enlightenmental1

    Participant

    @ Nicola

    I am already using the TinyMC editor for BP you created… (thanks…works great)

    but that does not appear to allow HTML in the post itself

    I even attempted to add the code inside tags… that didnt work either

    can HTML be used on the wire posts?

    @enlightenmental1

    Participant

    ….that means having to go over the user’s entire output…. and make a serious of highly-subjective decisions about what is and is not acceptable.

    you’re right Donnacha… good thinking

    @ Nicola

    your workflow looks good to me…

    would the [Report This] link dynamically insert the reported user’s info?

    like:

    – Username being reported

    – username of the person reporting(in case questions need to be asked)

    (if user reporting isn’t signed in, show something else…?)

    – a place for the reporter to describe what’s offensive

    – perhaps checkboxes of where the offensive content is (blog, wire, events, etc)

    That could then be written to a DB table and called back for the admins on the dashboard

    (almost the same as the blog comments feature…. delete user, mark report as spam, warm reporting user, warn reported user)

    that would be pretty cool…

Viewing 25 replies - 101 through 125 (of 136 total)
Skip to toolbar