Save file.
Search Results for 'theme'
-
AuthorSearch Results
-
May 31, 2012 at 6:50 am #135303
@mercime
ParticipantThis 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 ]
`May 31, 2012 at 5:14 am #135302In reply to: Stand Alone Themes?
@mercime
ParticipantNot likely at this time. Perhaps sometime BP 1.7+ per JJJ’s post https://buddypress.org/community/groups/requests-feedback/forum/topic/theme-compatibility-4/
May 31, 2012 at 4:53 am #135300@ChrisClayton
Participant@thirstcard
The do_action() creates a hook. Basically it prints out the contents of the function that is added to that tag (bp_after_message_content) with add_action.Usage? Let’s say Developer A makes a plugin that will place some text at the bottom of message contents, Instead of the end user having to edit the theme templates to add a call to the function, the developer can use `add_action(‘bp_after_message_content’, ‘plugins_function_that_does_stuff’);` WordPress will remember that function and will print it out where it finds `do_action( ‘bp_after_message_content’ )`
Does that help?
May 30, 2012 at 11:22 pm #135292edgarestradac
MemberMy 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
May 30, 2012 at 7:52 pm #135286@mercime
Participant@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.
May 30, 2012 at 7:34 pm #135283edgarestradac
MemberIf my theme is not in that list,
I won´t can to do anything?May 30, 2012 at 7:24 pm #135282@mercime
Participant@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/
May 30, 2012 at 2:42 pm #135268In reply to: 1.5 Child Theme Not Working
mandrill
MemberI found the issue. I was missing a ‘}’ *facepalm* Thanks for the help anyway.
/me now retreats to a cave to spend his life in solitary repentance
May 30, 2012 at 1:37 pm #135262In reply to: Avatar sizing
crhennes
Memberok if i am using the default buddypress theme can you tell me which file that code would go into?
May 30, 2012 at 1:16 pm #135260In reply to: Avatar sizing
thirstcard
MemberYou can do something like this in your theme:
bp_displayed_user_avatar( ‘type=full&width=100&height=100’ );
May 30, 2012 at 8:32 am #135253bg
MemberThank you very much Hugo for your help. When you mentioned, “You have two unclosed elements in the div id=”header” block”, in which file you were talking about? I tried to look in bp-default/header.php, bp-default/index.php, and in my child theme’s header.php that I have created, but I couldn’t find the two unclosed elements as you said? Could you please specify: in which file you have found the two unclosed elements, so I could fix it? Beforehand Thanks!
May 30, 2012 at 7:56 am #135252Hugo Ashmore
ParticipantYou still have an outstanding reply to respond to – help was given and solution provided for your previous issue with your theme please check that thread and mark it as resolved if issue corrected now before moving on to a new question about your theme header.
May 30, 2012 at 7:02 am #135251bg
MemberThanks for your reply! I just wanted to know how to modify the bp-default theme with a child theme, so it will look like the buddypress.org theme.
May 30, 2012 at 2:41 am #135244In reply to: How to enable blogs in buddypress theme?
creaturis
Participantyou need wordpress multisite for that. Some host offer the possibility to automatically install multisite with softaculous. If you hosts doesn’t do this you need to do it manually here you can find the information. https://codex.wordpress.org/Create_A_Network
May 29, 2012 at 11:58 pm #135240modemlooper
ModeratorThis theme is not available. Did you try and search for a free or paid theme that accomplishes this?
May 29, 2012 at 8:00 pm #135236In reply to: [Resolved] Compatibility Issue with Karma Theme
jen915
MemberOkay thanks for responding. I will give it a try
May 29, 2012 at 7:30 pm #135235In reply to: 1.5 Child Theme Not Working
mandrill
MemberI’m using the exact same selectors from default.css I simply copied them all over and removed the styling. I only add styles to those elements I want to change. The Home page works fine I can change any style I like on there but none of the sub-pages (activity, forums, users) are taking my styling at all.
Edit: I’ve tried what you suggested, making the selectors as specific as possible (or as is sensible), without success. Surely any styles which I set will take precedence over those in default.css as my stylesheet is the one that is loaded last?
I also forgot to point you at my site: http://platoon13.org/news/ Have a poke around, you may see something that I’ve missed.
May 29, 2012 at 7:18 pm #135234In reply to: [Resolved] Compatibility Issue with Karma Theme
@mercime
Participant@jen915 WP themes can be made compatible with BuddyPress by installing and activating the BP Template Pack plugin then going through Appearance > BP Compatibility process. The last step would basically involve copying and pasting from the code I posted above to a file created above per instruction and uploading it to server.
Since I have never used Karma theme, I cannot offer any guarantee that even after you’ve fixed the layout of the BP template files to adopt your theme’s layout, that there won’t be any javascript or AJAX conflicts – as I’ve seen in 2 of the more advanced themes.
May 29, 2012 at 6:53 pm #135232In reply to: [Resolved] Compatibility Issue with Karma Theme
jen915
Member@mercime Yes, they are all blank because I haven’t attempted integrating them yet. I don’t know code (just basic wordpress user here) so I was afraid I would mess things up if I started messing around, especially since the karma theme wasn’t made for buddypress. I contacted an outside expert to help me but just wanted to reach out to someone who possibly used buddypress with karma to see how it worked out, if it worked well, before I pay this person and take all this time to try to make it work. (BP Version 1.5.5, Karma 2.6.9, WP Version 3.3.2)
May 29, 2012 at 6:44 pm #135231In reply to: [Resolved] Compatibility Issue with Karma Theme
@mercime
Participant@jen915 WP/BP versions? Did you go through the Installation Wizard after activating BuddyPress? What are the URI’s of your BuddyPress Pages? I get blank pages when I go to your site and append /groups or /members to your domain uri.
May 29, 2012 at 5:30 pm #135228In reply to: [Resolved] Compatibility Issue with Karma Theme
jen915
MemberHi! I also chose the karma theme and then found out I couldn’t easily integrate buddypress. Were you able to do it successfully? My site is for a school and I want parents to be able to log in to see teacher pages. Do you think this is possible? testingfms.com
thanks for any input.
May 29, 2012 at 12:34 pm #135222Hugo Ashmore
ParticipantThe best approach is to create a child theme, this is actually extremely simple, however it does require a number of steps.
1. You need to create a new folder under/in /wp-content/themes/2. In that folder you need to create a blank file called style.css
3. in that file you add :
`
/*
Theme Name: my theme name
Theme URI: http://buddypress.org
Description: a description – non essential.
Version: 1.0
License: GNU General Public License
License URI: license.txt
Author: yourself
Author URI: ?your site
Template: bp-default
Tags: buddypress, two-columns, fixed-width, whatever other keywords are applicable
*/
`
To do this you will need some form of access to your site server either FTP or via your Cpanel/plesk file manager to create folders /files.Once you have that done then it’s simply a matter of going to ‘themes’ in the dashboard where you’ll be able to select your new theme.
At this stage as you only have a style.css file BP uses all of the default BP theme files including it’s own styles so activating your new theme will cause no apparent change – good! However you now have the ability to use style.css to add CSS properties/ rulesets that will be read after the BP ones and thus overwrite what may already have been set.
Using the WP editor under ‘appearence’ you should be able to select your child themes style.css and simply add the line:
body {font-size: 100%;}
or:
body {font: 100%/1.4 arial, ‘another font’, sans-serif’}
If the above is too awkward to accomplish then you will probably have to settle for editing the bp-default stylesheet directly and changing the ’12px’ on the body rule for ‘100%’ but those changes would be lost in any upgrades and have to be re-done.
May 29, 2012 at 3:15 am #135210@mercime
Participant== Does the same thing in the bp-default theme? ==
Are you asking me if the issue will still be there using bp-default theme or are you telling me that it’s doing the same thing using the bp-default theme and mistakenly added the question mark?
The thing is, there’s something wrong with your BP theme – Bodybuilder Yukon ‘child theme – or your customization of the theme. I can’t even open up the site activity page. There are BP pages like my test account > activity > friends which is not rendering at all and the source code shows that it ends at “ Aside from which, each page takes too long to load, So different from what I see for example at http://demos.ithemes.com/buddypress/yukon/members/justin/
Is this a test site or did you install WP/BP in a physical subdirectory?
May 29, 2012 at 1:44 am #135208In reply to: image beside username by user role
Wasim alhajebi
Participantthanks alot, but it doesn’t work with my theme , i just wanna to make it with whole website even comments , not only xprofile , i’ve done that befor , but what i meant and what i need is do it for whole website
May 28, 2012 at 10:18 pm #135194Hugo Ashmore
Participant> +1 to making global.js less dependent on theme markup. It would be nice to be able to run riot on a > new theme and not have to worry about removing any of the default markup.
Download global.js from the repo trunk it should run on 1.5 and 1.6 will drop pretty soon, then you can experiment with what you can change, classes and ID’s are sacrosanct but element selectors have been removed and jQuery elements removed which traverse the dom based on structure rather than tokens.
-
AuthorSearch Results