At the bottom of the /activity/index.php, replace
`
`
with your theme’s structure
`
Hi @all,
finally our theme “Custom Community” is back in the WP Theme Repository.
BIG Thanks to all helping us on our review journey, especially Mercime.
We will keep improving the theme further and there’s still much more to come! 
Main new features now are:
– change website width, fluid in % or static in px
– change / customize each sidebar’s width, background, …
– more typography options for link, titles and subtitles look / behaviour
– many more things I forgot now, read the complete changelog here:
http://themekraft.com/2011/07/back-in-the-wp-theme-repository/
If you cross any bugs or have new ideas, please drop us a line in our support forums at http://themekraft.com/forums
Hope you enjoy it!
Konrad
When using the UberMenu I found a strange bug on the avatar crop page. It breaks image paths that are in the upload directory.
It’s is changing the img url from:
http://example.com/wp-content/uploads/2011/06/menu1.png
To:
http://example.com/wp-content/uploads/avatars/9/2011/06/menu1.png
From the plugin developer:
http://codecanyon.net/item/ubermenu-wordpress-mega-menu-plugin/discussion/154703?page=18&filter=All%20Discussion#comment_1227533
It’s unfortunate that that solution didn’t pan out, but we were pursuing it based on your suggestion, as I was unable to observe the issue myself at the outset. Now that I am back home with a computer I can investigate and diagnose the problem on my own machine. And I have discovered, in fact, this is not an UberMenu bug at all.
I installed WordPress 3.2, UberMenu 1.1.2, and BuddyPress 1.2.9, with the default BuddyPress theme. I set up an UberMenu with a thumbnail image.
Then I uploaded and cropped an avatar – everything worked perfectly with the upload and crop process.
The only issue was that, on that single screen, the thumbnail image in the menu did not show up, because the source URL was incorrect (as you originally reported). And as I said at the beginning, I had no idea why that would happen – it doesn’t make any sense that UberMenu would be changing this.
I have spent a lot of time tonight digging through the BuddyPress and WordPress core, looking for how the two plugins could be interacting. I’ve determined there is nothing wrong on UberMenu’s end. Rather, BuddyPress changes the WordPress uploads directory for its own purposes on the avatar crop page. As a result, when UberMenu calls the WordPress standard wp_get_attachment_image_src function, which calls image_downsize, which calls wp_get_attachment_url, which calls wp_upload_dir, the wrong upload directory (in this case, BuddyPress’s avatar directory) is returned. So UberMenu has been provided the incorrect path for the thumbnail from the core WordPress functions, because BuddyPress has changed them. The code is in this line:
/*buddypress/bp-core/bp-core-avatars.php line 356 */
add_filter( 'upload_dir', $upload_dir_filter, 10, 0 );
The BuddyPress function that handles this filter is xprofile_avatar_upload_dir in bp-xprofile.php.
As I see it, you have three options:
1. Live with the menu thumbnails going blank on that single page
2. Ask BuddyPress to change how their upload directory filtering works, as it is clearly affecting other plugins that rely on the built in WordPress functionality.
3. Write a “hack” that tests for these BuddyPress-generated avatar upload paths and strip them out before the images are printed via the UberMenu custom walker.
It seems that this is either an oversight on BuddyPress’ part, or this was the only way to accomplish their desired functionality without editing the core. Either way, the proper solution involves changes to BuddyPress, not UberMenu.:
Hi,
I’ve got some data in mysql that’s associated with a person’s name, and I’d like to be able to display a table with that data somewhere on their profile page, or on another page that can be accessed through their profile. Is this kind of thing possible?
I know how to code a few things with php, and mysql, but I’m just starting with wordpress & buddypress (they seem like they’ll be great) but for now…what sort of stuff should I be reading to learn how to do this?
I am using the WordPress theme Tropical Dream and have installed BuddyPress, together with the Template Pack. As per the Stage 3 instructions I then checked out the “My Account” links, but found that they weren’t appearing correctly (although the pre-existing WordPress pages were): the (left-hand) sidebar was missing, with the BuddyPress content filling the page and pasted directly on to the background instead of in a containing box as happens with the non-BuddyPress pages. (Also, the BuddyPress admin bar was right at the very top of the page background, rather than merely above the header area.) I checked the structure of the page.php file (see http://pastebin.com/kvWPdga9), as per the instructions, and tried to make appropriate adaptations to the 11 BuddyPress files, but regardless of ANY changes I made to these files’ HTML structure the corresponding pages still appeared exactly the same. I thought this might be a cache problem, but clearing it made no difference whatsoever. I’m not a complete newbie, but neither am I proficient in php, so I’m rather stuck, now. Can you help, please? Exactly what changes do I need to make, and to which files? I know that you’ve been able to assist others with similar problems, so I’m hoping that you might be able to clear up this mystery for me, too.
after i updated buddypress add wordpress when i comment it just refreshes the page any ideas why this might be happening?
I just installed Buddypress on a version of wordpress 3.0.4.
It worked fine.
I then tried to install the album plugin and it crashed my admin section. I can’t click anythin in the admin section without getting this error message:
Fatal error: Cannot redeclare bp_album_admin() (previously declared in /home/jaxsadul/public_html/cilcks.com/wp-content/plugins/bp-album/includes/bp-album-admin-network.php:14) in /home/jaxsadul/public_html/cilcks.com/wp-content/plugins/bp-album/includes/bp-album-admin-local.php on line 331
since It already altered the code, I cant see what the old code looked like.
here is what it is now (line 331 is the second to last line):
<?php
/***
* This file is used to add site administration menus to the single user admin backend.
*
* If you need to provide configuration options for your component that can only
* be modified by a site administrator, this is the best place to do it.
*
* However, if your component has settings that need to be configured on a user
* by user basis – it’s best to hook into the front end “Settings” menu.
*/
/**
* bp_album_admin()
*
* Checks for form submission, saves component settings and outputs admin screen HTML.
*/
function bp_album_admin() {
global $bp;
/* If the form has been submitted and the admin referrer checks out, save the settings */
if ( isset( $_POST ) ) {
check_admin_referer(‘bpa-settings’);
if( current_user_can(‘install_plugins’) ) {
update_site_option( ‘bp_album_slug’, $_POST );
update_site_option( ‘bp_album_max_pictures’, $_POST==” ? false : intval($_POST) );
foreach(array(0,2,4,6) as $i){
$option_name = “bp_album_max_priv{$i}_pictures”;
$option_value = $_POST[$option_name]==” ? false : intval($_POST[$option_name]);
update_site_option($option_name , $option_value);
}
update_site_option( ‘bp_album_keep_original’, $_POST );
update_site_option( ‘bp_album_require_description’, $_POST );
update_site_option( ‘bp_album_enable_comments’, $_POST );
update_site_option( ‘bp_album_enable_wire’, $_POST );
update_site_option( ‘bp_album_middle_size’, $_POST );
update_site_option( ‘bp_album_thumb_size’, $_POST );
update_site_option( ‘bp_album_per_page’, $_POST );
update_site_option( ‘bp_album_url_remap’, $_POST );
update_site_option( ‘bp_album_base_url’, $_POST );
$updated = true;
if($_POST && !$_POST){
bp_album_rebuild_activity();
}
if( !$_POST && $_POST){
bp_album_undo_rebuild_activity();
}
}
else {
die(“You do not have the required permissions to view this page”);
}
}
$bp_album_slug = get_site_option( ‘bp_album_slug’ );
$bp_album_max_pictures = get_site_option( ‘bp_album_max_pictures’ );
$bp_album_max_priv0_pictures = get_site_option( ‘bp_album_max_priv0_pictures’ );
$bp_album_max_priv2_pictures = get_site_option( ‘bp_album_max_priv2_pictures’ );
$bp_album_max_priv4_pictures = get_site_option( ‘bp_album_max_priv4_pictures’ );
$bp_album_max_priv6_pictures = get_site_option( ‘bp_album_max_priv6_pictures’ );
$bp_album_keep_original = get_site_option( ‘bp_album_keep_original’ );
$bp_album_require_description = get_site_option( ‘bp_album_require_description’ );
$bp_album_enable_comments = get_site_option( ‘bp_album_enable_comments’ );
$bp_album_enable_wire = get_site_option( ‘bp_album_enable_wire’ );
$bp_album_middle_size = get_site_option( ‘bp_album_middle_size’ );
$bp_album_thumb_size = get_site_option( ‘bp_album_thumb_size’ );
$bp_album_per_page = get_site_option( ‘bp_album_per_page’ );
$bp_album_url_remap = get_site_option( ‘bp_album_url_remap’ );
$bp_album_base_url = get_site_option( ‘bp_album_base_url’ );
$bp_album_rebuild_activity = false;
$bp_album_undo_rebuild_activity = false;
?>
<?php echo "
” . __(‘Settings Updated.’, ‘bp-album’ ) . “
” ?>
<?php
echo ““;
_e(“Project Calendar”, ‘bp-album’ );
echo “ – “;
_e(“View our development schedule in real-time using Pivotal Tracker.”, ‘bp-album’ )
?>
<?php
echo ““;
_e(“Support Forum”, ‘bp-album’ );
echo “ – “;
_e(“Need help with the plugin? There are hundreds of other users that can answer your questions on our BuddyPress support forum.”, ‘bp-album’ )
?>
<?php
echo ““;
_e(“Official Website”, ‘bp-album’ );
echo “ – “;
_e(“Our base of operations on the internet and the only source of info that’s been checked by our dev team.”, ‘bp-album’ )
?>
<?php
echo ““;
_e(“Features List”, ‘bp-album’ );
echo “ – “;
_e(“See what features we’re adding to upcoming versions of the plugin.”, ‘bp-album’ )
?>
<?php
echo ““;
_e(“Activity Feed”, ‘bp-album’ );
echo “ – “;
_e(“Up-to-the-second bug reports and code updates via Google Code.”, ‘bp-album’ )
?>
<form action="” name=”example-settings-form” id=”example-settings-form” method=”post”>
<?php
_e(“Bad slug names will disable the plugin. No Spaces. No punctuation. No special characters. No accents.”, ‘bp-album’ );
echo ”
“;
_e(“{ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890_- } ONLY.”, ‘bp-album’ )
?>
| <input name="bp_album_slug" type="text" id="bp_album_slug" value="” size=”10″ /> |
|
<input type="radio" name="bp_album_require_description" type="text" id="bp_album_require_description" checked=”checked” value=”1″ /> <input type="radio" name="bp_album_require_description" type="text" id="bp_album_require_description" checked=”checked” value=”0″ /> |
|
|
<input type="radio" name="bp_album_enable_comments" type="text" id="bp_album_enable_comments" checked=”checked” value=”1″ /> <input type="radio" name="bp_album_enable_comments" type="text" id="bp_album_enable_comments" checked=”checked” value=”0″ /> |
|
|
<input type="radio" name="bp_album_enable_wire" type="text" id="bp_album_enable_wire" checked=”checked” value=”1″ /> <input type="radio" name="bp_album_enable_wire" type="text" id="bp_album_enable_wire" checked=”checked” value=”0″ /> |
<?php _e( "Accepted values: EMPTY (no limit), NUMBER (value you set), 0 (disabled). The first option does not accept 0. The last option only accepts a number.”, ‘bp-album’ ) ?>
| <input name="bp_album_max_pictures" type="text" id="example-setting-one" value="” size=”10″ /> | |
| <input name="bp_album_max_priv0_pictures" type="text" id="bp_album_max_priv0_pictures" value="” size=”10″ /> | |
| <input name="bp_album_max_priv2_pictures" type="text" id="bp_album_max_priv2_pictures" value="” size=”10″ /> | |
| <input name="bp_album_max_priv4_pictures" type="text" id="bp_album_max_priv4_pictures" value="” size=”10″ /> | |
| <input name="bp_album_max_priv6_pictures" type="text" id="bp_album_max_priv6_pictures" value="” size=”10″ /> | |
| <input name="bp_album_per_page" type="text" id="bp_album_per_page" value="” size=”10″ /> |
<?php _e( "Uploaded images will be re-sized to the values you set here. Values are for both X and Y size in pixels. We strongly suggest you keep the original image files so BP-Media 0.1.9 can re-render your images during the upgrade process.”, ‘bp-album’ ) ?>
| <input name="bp_album_middle_size" type="text" id="bp_album_middle_size" value="” size=”10″ /> | |
| <input name="bp_album_thumb_size" type="text" id="bp_album_thumb_size" value="” size=”10″ /> | |
|
<input type="radio" name="bp_album_keep_original" type="text" id="bp_album_keep_original" checked=”checked” id=”bp-disable-account-deletion” value=”1″ /> <input type="radio" name="bp_album_keep_original" type="text" id="bp_album_keep_original" checked=”checked” id=”bp-disable-account-deletion” value=”0″ /> |
<?php
_e( “If you get broken links when viewing images in BP-Album+, it means your server is sending the wrong base URL to the plugin. You can use the image URL re-mapping function to fix this.”,’bp-album’ );
echo “ “;
_e(“DOCUMENTATION”,’bp-album’ );
echo ““;
?>
|
<input type="radio" name="bp_album_url_remap" type="text" id="bp_album_url_remap" checked=”checked” value=”1″ /> <input type="radio" name="bp_album_url_remap" type="text" id="bp_album_url_remap" checked=”checked” value=”0″ /> |
|
|
<input name="bp_album_base_url" type="text" id="bp_album_base_url" value="” size=”70″ /> /userID/filename.xxx |
<?php _e("A defect in plugin versions before 0.1.8.5 caused all bp-album activity posts to be deleted from the site when the administrator deleted a user. Set 'Rebuild Posts' to 'yes' to add EVERY PHOTO ON YOUR SITE that users have marked as PUBLIC to the site activity stream. This will also ALLOW COMMENTS on the photos. The created posts will have random dates to avoid flooding the activity stream. Set ‘UNDO Rebuild Posts’ to ‘yes’ to remove the posts this function creates it will not harm posts that users created.”, ‘bp-album’ ) ?>
|
<input type="radio" name="bp_album_rebuild_activity" type="text" id="bp_album_rebuild_activity" checked=”checked” value=”1″ /> <input type="radio" name="bp_album_rebuild_activity" type="text" id="bp_album_rebuild_activity" checked=”checked” value=”0″ /> |
|
<input type="radio" name="bp_album_undo_rebuild_activity" type="text" id="bp_album_undo_rebuild_activity" checked=”checked” value=”1″ /> <input type="radio" name="bp_album_undo_rebuild_activity" type="text" id="bp_album_undo_rebuild_activity" checked=”checked” value=”0″ /> |
<input type="submit" name="submit" value="”/>
<?php
/* This is very important, don’t leave it out. */
wp_nonce_field( ‘bpa-settings’ );
?>
<?php
}
?>
Any help?
Hi, I’m trying to make a static homepage for a website I’m building.
I’m not really a programming wiz (not at all, tbh) so I’m using a template I found online for now.
It’s made of html and css, but in all the articles I read, it tells you to customize the .php file.
Is it not possible to make a static homepage with html and css?
Here’s the code…
<!–
body {
background-color: #e1ddd9;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, SunSans-Regular, Sans-Serif;
color:#564b47;
margin: 20px 140px 20px 140px;
text-align: center;
}
#content {
width: 100%;
padding: 0px;
text-align: left;
background-color: #fff;
overflow: auto;
}
p, h1, pre {
margin: 0px;
padding: 10px;
}
h1 {
font-size: 11px;
text-transform:uppercase;
text-align: right;
color: #564b47;
background-color: #90897a;
}
a {
color: #ff66cc;
font-size: 11px;
background-color:transparent;
text-decoration: none;
}
–>
I have a wordpress network site where I have:
mainsite.com <– main site (instance of buddypress)
site2.mainsite.com <– main site (another instance of buddypress)
site3.mainsite.com <– main site (another instance of buddypress)
Currently I have the themes looking different but only the mainsite.com is working were I can register users and post status updates.
I my assumption wrong that I could have many instances of buddypress with wordpress network?