Save file.
How can I change the buddypress’ width? – Metrolo Theme
-
How can I change the buddypress’ width?
I would like have buddypress and sidebar at same time.But the sidebar is lowered.
Normal–> http://www.sinaloagay.mx/BP01.jpg
With Buddypress–> http://www.sinaloagay.mx/BP02.jpg
-
@edgarestradac We have “template-packed” a number of WP themes with instructions/fixes on Step 3 of the BP compatibility process. Check if your WP theme is listed already at the bottom half of this page https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
If my theme is not in that list,
I won´t can to do anything?@edgarestradac What theme are you using? Let’s see if we can help. Open up your theme’s header.php, copy all, paste in pastebin.com, click submit, post the generated pastebin.com url here. Do the same for your theme’s page.php, index.php, sidebar.php, footer.php files.
My theme is:
Metrolo 1.5.2 by JasinHead: http://pastebin.com/dAmXRDz3
Page: http://pastebin.com/AvM2feza
Index: http://pastebin.com/FipnLvVU
Sidebar: http://pastebin.com/852jU6JE
Footer: http://pastebin.com/gz2R1sUuThanks
This could be tricky, but let’s give it a try. You will need to create two new files, header-buddypress.php and sidebar-buddypress.php
If you’ve revised any of the BP template files transferred to your metrolo theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your metrolo theme folder in server – /activity, /blogs, /forums, /members, /groups, /register – then re-run Appearance > BP Compatibility again to make sure that you have clean template files.
UPDATED: 07-13-2012
A. COPY your theme’s header.php and Save As > header-buddypress.php
Open up header-buddypress.php and at the BOTTOM of the file, below other code contained within, add this:
`[ DELETE FROM HERE ]<?php extract(get_option('mt_set'), EXTR_OVERWRITE);
$msarray = unserialize(get_post_meta($post->ID, ‘meta_settings’, true));
if($msarray==”true”) {
$mt_sortlay02 = $msarray;
$mt_bp_scbox1 = $msarray;
$mt_bp_scbox2 = $msarray;
$mt_bp_scbox3 = $msarray;
}?>
<?php $modules = explode(",", $mt_sortlay02);
foreach ($modules as $module) {
switch ( $module ) {
case ‘pos_0’: // Message
include (TEMPLATEPATH . ‘/modules/mod_msg.php’);
break;
case ‘pos_1’: // Posted
include (TEMPLATEPATH . ‘/modules/mod_pstd.php’);
break;
case ‘pos_2’: // Accordian
include (TEMPLATEPATH . ‘/modules/mod_acc.php’);
break;
case ‘pos_3’: // Page ?>[ DELETE UP TO THIS LINE ONLY ]
`B. COPY your theme’s sidebar.php and Save As > sidebar-buddypress.php
Open up sidebar-buddypress.php
Add the following code at the TOP, above original sidebar code:
``Add the following code at the BOTTOM, below all other code:
`jQuery(document).ready( function() {
if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
jQuery(‘div#blog-details’).toggle();
jQuery( ‘input#signup_with_blog’ ).click( function() {
jQuery(‘div#blog-details’).fadeOut().toggle();
});
});[ DELETE FROM HERE ]
<?php break;
case ‘pos_4’: // Shortcode Box 1
echo ““.do_shortcode(stripslashes($mt_bp_scbox1)).”
“;
break;
case ‘pos_5’: // Shortcode Box 2
echo ““.do_shortcode(stripslashes($mt_bp_scbox2)).”
“;
break;
case ‘pos_6’: // Shortcode Box 3
echo ““.do_shortcode(stripslashes($mt_bp_scbox3)).”
“;
break;
} // end switch-case} // end foreach
[ DELETE UP TO THIS LINE ONLY ]
`Save file.
C. Upload header-buddypress.php and sidebar-buddypress.php to your theme folder in server wp-content/themes/metrolo/ in the same directory where your regular header.php and sidebar.php files are
D. Final note: Copy the style modifications for some BP elements https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste those at the bottom of your theme’s stylesheet, then adjust to taste.
Hello, sorry for the time it takes to answer. I was moving my wordpress server.
I made the adjustments you suggested, but it shows these errors:
In the header:
http://www.sinaloagay.mx/members/admin/Parse error: syntax error, unexpected $ end in / home/content/99/9335499/html/SINALOAG-MX/wp-content/themes/metrolo/header-buddypress.php on line 201
In the post:
http://www.sinaloagay.mx/llama-pena-nieto-a-la-unidad-y-reitera-respeto-a-la-diversidad/Warning: Missing argument 2 for bp_modify_page_title () in / home/content/99/9335499/html/SINALOAG-MX/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 277
Warning: Missing argument 3 for bp_modify_page_title () in / home/content/99/9335499/html/SINALOAG-MX/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 277
These are not theme issues, they are php errors in the page you need to look at your syntax and ensure it’s correct.
sorry if I’m bothering,
I’m asking about mistakes, because I inserted the code that gave me in this forum, and may have the solution. I know they are PHP errors, but I wanted to tell you how is running my problem that I have been helping to solve.
Thank you very much.
And sorry for my english@edgarestradac what’s on line 201 of your header-buddypress.php file? As I mentioned above :
This could be tricky, but let’s give it a try.
because I suspected there would be a conflict when I saw the code of your theme files
I deleted the most possible conflicts in both the header-buddypress.php and the sidebar-buddypress.php files in the instructions above. Just delete the codes in both files where I added above:
`[ DELETE FROM HERE ]
// some code
[ DELETE UP TO THIS LINE ONLY ]`
First… Thank you.
The error changed
Please see it in this post:
http://www.sinaloagay.mx/llama-pena-nieto-a-la-unidad-y-reitera-respeto-a-la-diversidad/Error:
/home/content/99/9335499/html/SINALOAG-MX/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 277And Budypress content look like a:
http://www.sinaloagay.mx/members/admin/profile
- The topic ‘How can I change the buddypress’ width? – Metrolo Theme’ is closed to new replies.