Forum Replies Created
-
In reply to: [Resolved] Xprofile question….
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..
In reply to: [Resolved] Xprofile question….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
In reply to: [Resolved] Xprofile question….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 implementIn reply to: [Resolved] Xprofile question….wow… I honestly only pushed the “send post” button once… lol
In reply to: [Resolved] Xprofile question….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
In reply to: [Resolved] Xprofile question….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
‘In reply to: Purely Genius Way to Add Custom Profile Fieldsthank you
In reply to: Purely Genius Way to Add Custom Profile Fields@keston, I like your ebay plugin. Can you share it?
In reply to: Adding links to admin barfigured it out
wow… I’ve never seen a list item like this… had me very confused
In reply to: Widget Ajax Members Group Problemhow 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)
In reply to: Adding links to admin barecho "<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?
In reply to: BP and a classified ads script with the same login?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
In reply to: Securing components from non logged in usersi 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
In reply to: Securing components from non logged in usersyes 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)
In reply to: Securing components from non logged in usershow 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….
In reply to: Adding links to admin barquestion
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:
In reply to: new buddypress site looks greatlooks very nice… Kudos
In reply to: Securing components from non logged in usersAwesome 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 );
‘
In reply to: Widget Ajax Members Group ProblemI 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?
In reply to: Widget Ajax Members Group Problem“I’m running WPMU 2.7 – BP trunk1248, not in subfolder/subdomain. Godaddy shared hosting. Any permalinks set, and widgets won’t work.”
+1
In reply to: Plugin: Force Login for Member Pagesawesome 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' );
?>
In reply to: Widget Ajax Members Group Problem+1
WPMU 2.7
latest BP
shared hosting
with permalinks set to custom, ajax widgets wont refresh
In reply to: Purely Genius Way to Add Custom Profile Fieldsquick 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?
In reply to: Allow HTML in Wire?@ 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 eithercan HTML be used on the wire posts?
In reply to: “Report This” feature‘
….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…