Search Results for 'questions'
-
Search Results
-
Greetings everyone,
I am a member of Marin Professionals Association, which is a non profit community of unemployed professionals sponsored by EDD .Since April I have been searching and testing different formats of WordPress templates but recently in their website showcase, I found an incredible website: “”www.umwblogs.org” that our community would really benefit from .So now I am trying to recreate our “marinprofessionals.com” website with the same capabilities that http://www.umwblogs.org” has.
1) I have registered the domain (marinprofessionals.com) and am hosting it with Godaddy,
2) I uploaded the MUWP 2.4.8a version zip file to my godaddy account and unziped it.
3) From godaddy I uploaded the BuddyPress zip 1.1.2 version and unziped it as well
Please bear with me…as I have some questions that may seem silly to you…
1. my plan was to create each page starting with the home page from a WPMU template and then add the sliding panels and user login capability similar to “”www.umwblogs.org”
but the problem is I don”t see any templates available in WPMU. can you please help me to get started in the right direction?
HI
I am using the latest version of Buddypress and am wondering if there is any way of making subgroups/forums (or a plugin to do so – I don’t know PHP). What I want to do for example is (amonst other groups) create a group an based on different towns or city for example – London, then within the London forum I would like forum headings such as 1. places to eat 2. culture 3. sports facilities. At the moment I can’t see a way of doing this all I seem to be able to do is make a group and forum called London and underneath that people can post all sorts of questions (ie no structure). Any help much appreciated.
Thanks
Basically, I am needing to find a way to include one header/footer combination for all buddypress pages across my site, while dispalying another header/footer combination on other WPMU pages not related to the social networking functionality of BP.
After getting some help from these forums, I thought I could just stick some if…elseif….else code in header.php that would do the following:
if (PAGE IS BUDDYPRESS RELATED) include header-buddypress.php;
elseif (PAGE IS ABOUT PAGE) include header-about.php;
else include header-home.phpI figured I could do the same with the footers. It seemed on the face of it that this should be fairly simple using conditional tags, but they aren’t functioning as I expected.
For example, this code in my header.php file
<?php if ( bp_is_user_profile() ) {
get_header(bpProfile); //include bpProfile header if page is a bp profile page
} elseif ( is_page('Why We're Here') ) {
get_header(about); //include about header if page is not a profile page
} else {
get_header(home); //include normal home header in all other cases
} ?>always produces the bpProfile header. If I echo bp_is_user_profile, it always comes back as “1,” no matter what page I’m on with WPMU, whether I’m logged in or not.
I am kind of befuddled at this point. Perhaps I’m going about this the wrong way, but I just figured this would be the best way to modify a child theme to my specifications by just having a few custom header/footer files that are included as needed each time a page calls get_header(); and get_footer();
Does anyone have any thoughts on this?
Topic: spam free wordpress
hello all
I understand that there is no way to stop spam our wpmu installations. capatcha or asking questions maybe stop bots but normal living spammers will go on. here is my suggestion to solve this issue.
can we disable wordpress mu and buddypress signup and open openID/facebook connect/google friend connect stuff ?
So, I’ve been digging around in the bp parent theme, and I realize that all I really need to do to fully customize buddypress for my project is replace the standard header.php and footer.php with customized templates, then style what’s in between to my liking.
What I’m needing to know is what you all suggest as the best way to accomplish this. I figure pulling all the files that call get_header and get_footer from the parent bp theme into my child theme and changing them individually is extremely inefficient, yes?
With this in mind, I am thinking I ought to be able to write some code in my child theme’s functions.php file that hooks into the standard get_header and get_footer hooks (which are inside all the buddypress parent files I need to amend), check if the file is of a certain type, then replace the header.php and footer.php files with the properly-customized header/footer file for that page.
My questions:
1) Is this a good strategy to move forward with, or is there a better one for replacing the header.php file atop every buddypress template file without actually changing my theme’s header.php file itself? For example, say I have a communityHeader.php file that is specific to all the pages involving the BP social networking functionality, including login and registration, plus there’s a communityFooter.php that goes with those pages as well, both of which are different from my main header.php/footer.php files.
2) What would be the best method of querying each get_header hook to see if the template file asking for header.php is in fact a buddypress file or not? Is there something that easily identifies them as being different from other customized template files in my child theme? Is there perhaps a way of asking what directory the file calling get_header is in, or some other way of differentiating the various index.php files from each other?
Again, I could obviously identify each file from the parent theme that needs changing, move it and its directory into my child theme, then add the whole <?php include (TEMPLATEPATH . ‘../INSERT_APPROPRIATE_DIRECTORY_STRUCTURE/communityHeader.php’); ?> line in place of every get_header call, but this seems terribly inefficient to me.
Thanks so much in advance for any advice!
Topic: sprucing up activity items
( BP 1.1.1 )
so basically i want different types of content to appear differently in the sitewide feed. i have types that are albums, or events… etc. implemented through more-fields.
when a user posts “an album,” it makes sense to show a couple of image thumbs, right?
i’m getting there, but i have a couple of questions.
currently, i’m hooking into bp_activity_add, and simply modifying the content of the row right after it’s been updated. accessing the right row in the database cannot be done directly because the ID of the activity row that was added/modified is not passed as one of the 7 arguments.
so what i’m doing is querying for it based on matching all the arguments that i do have, but unfortunately there’s always the possibility that i could match the wrong row. (it’d be nice if the ID were simply there:)
$query = "SELECT id FROM wp_bp_activity_user_activity_cached WHERE ";
$query .= "user_id=".$args['user_id'];
$query .= " AND component_name='". $args['component_name']."'";
$query .= " AND component_action='". $args['component_action']."'";
//$query .= " AND content='". $args['content']."'";
$query .= " AND primary_link='". $args['primary_link']."'";
$query .= " AND item_id='". $args['item_id']."'";
$query .= " AND secondary_item_id='".$args['secondary_item_id']."'";
//$query .= " AND date_recorded='". $args['date_recorded']."'";
$query .= "ORDER BY id DESC";
$activity = $wpdb->get_row( $query );it will return only one row, and because i’m sorting by ID and DESC, i should have the newest. it should be fine.
the actual questions:
but if you notice i’ve commented out content and date recorded. the first is content which simply does not match, and i’m assuming it’s because i’m not encoding. the second is the date recorded, and i’m not sure why, but that argument is being passed to the my hooked function as an empty string. it’s certainly not empty in the database – any ideas why?
in case anyone’s curious, after the code above, if it’s referencing a blog post, it looks for its image attachments (via the “item_id”)… then we can insert HTML for those little thumbs into the content field of the activity row… which i’m just overwriting entirely.
Hopefully some kind soul will tape it (hint hint)
Sunday looks like it’s shaping up to be an “Unconference” day with lots of opportunity for open discussion, networking and workshops. Fun stuff!