Search Results for 'theme'
-
AuthorSearch Results
-
February 21, 2012 at 9:38 pm #130233
Hugo Ashmore
ParticipantNo such thing sadly; you could ensure the fields are in a specific group of their own and then wrap that in a if is_admin check so only admins can read, if you are creating a theme for general use and wouldn’t know the field names then you may need to write a function of some description with dashboard option settings to manage things or check what BP plugins are available in the ‘privacy’ genre and see if they offer any greater control.
February 21, 2012 at 5:07 pm #130210@mercime
ParticipantYou’re welcome. And, you are right, my bad. I’ve corrected the code above. Do add the less than symbol “
February 21, 2012 at 3:48 pm #130205neodoxa
ParticipantThank you SO much for the reply! Here are the codes…
Header: http://pastebin.com/eHZER4us
Index: http://pastebin.com/9Z8xxqGe
Page: http://pastebin.com/niyjCMJF
Sidebar: http://pastebin.com/w29NwLh4
Footer: http://pastebin.com/hcEqrCpsFebruary 21, 2012 at 12:32 pm #130188In reply to: Override Buddypress AVATAR function in theme
Hugo Ashmore
Participant@DJPaul Interestingly?
in my browser output:
``
width/height attributes having been set in functions.php:
`
define ( ‘BP_AVATAR_FULL_WIDTH’, 450 );
define ( ‘BP_AVATAR_FULL_HEIGHT’, 450 );
`So it seems as the call for the avatar is a function with params in membere-header.php `bp_displayed_user_avatar( ‘type=full’ )` we are actually forcing conditions to be re parsed and thus picking up my constants in functions.php? however I expected to see somewhere in ‘bp-core-avatars.phh or ‘bp-members-template.php’ a point at which we check for the constants again after the initial setting of them but failed to work out how the function ‘bp_displayed_user_avatar( ‘type=full’ )’ is actually reading the constant. Either I am mis-understanding what’s happening here or I scanned code too quickly and missed what I was looking for.
February 21, 2012 at 12:32 pm #130187fashionbleeker
MemberOk solved 90%. Can I send an image to show the imperfection?
…..because I do also the modification of style.css …I have copy the block on the website and paste at the bottom of the duotive-three style.css ….but nothing happen!!
Another thing is …when I go for example to “My Account” > Setting > General ….I can’t see the page Member, but before my avatar image it is write:
``Maybe because I paste on the 16 files:
`div class=”page”> without < `
Let me know
(Thank you so much you can’t image how your replies are important for me)February 21, 2012 at 12:12 pm #130183In reply to: Override Buddypress AVATAR function in theme
nsbrown
ParticipantI see, thanks for the info guys!
February 21, 2012 at 11:53 am #130181In reply to: Override Buddypress AVATAR function in theme
Hugo Ashmore
ParticipantNo bp-custom.php has to run from plugins folder.
As much as one would expect functions.php to be too late in the proceedings to set a constant that is read it did/does actually work for me to change my user avatars ??
This issue of being able to effect default ‘stuff’ from themes does crop up from time to time, ideally a method that could ensure things could always be set from functions.php would be great but not sure how or if that is possible with something like Constants which by definition have to be set at earliest opportunity.
February 21, 2012 at 9:50 am #130172@mercime
ParticipantB. At the bottom of the same 16 files, replace:
`
`
with the following (except for registration/register.php):
`
`
with the following for registration/register.php:
`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();
});
});`
C. Save files. Upload 6 BP folders to your server wp-content/themes/duotiveThemeFolder
D. You might also want to check out the style modifications made in BP Twenty Ten for reference. https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/
February 21, 2012 at 9:50 am #130171@mercime
ParticipantLooking over your theme, you will need to change 16 template files within the 6 BP folders transferred to your duotive theme in server during the compatibility process.
If you’ve changed any of the BP template files in your theme folder, replace all of them by deleting the 6 BP folders in server – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility
Download the 6 clean BP folders to your computer hard drive. The changes we’ll be making are using the default layout (right sidebar) for the duotive theme.
A. At the top of each of those 16 template files I linked to above, replace
``with
``February 21, 2012 at 9:21 am #130169In reply to: Override Buddypress AVATAR function in theme
nsbrown
ParticipantIf I create a bp-custom.php in my theme directory will it work then??
February 21, 2012 at 9:21 am #130168In reply to: Override Buddypress AVATAR function in theme
nsbrown
ParticipantI need it in my theme though, so when I distribute it the file will reset the original function
February 21, 2012 at 8:21 am #130162fashionbleeker
Memberloop.php http://pastebin.com/erziETbY
February 21, 2012 at 8:12 am #130159In reply to: Override Buddypress AVATAR function in theme
Paul Wong-Gibbs
KeymasterFunctions.php is too late. Use bp-custom.php or wp-config.php.
February 21, 2012 at 8:01 am #130157In reply to: Override Buddypress AVATAR function in theme
nsbrown
ParticipantTried pasting the function int my themes functions.php but no joy, hm..
February 21, 2012 at 4:21 am #130152@mercime
ParticipantThank you for pointing out which duotive theme you are using.
>> I do not want to change the duotive theme.
I’m not saying to change your theme. I should have been more clear, the content in page.php shows that it’s a Page Template for a Full Width Page (no sidebar). The content in index.php shows it has a sidebar. Which layout do you want for all BuddyPress templates, the full-width page or the one with a sidebar? If you want the layout with the sidebar (per index.php), post the code of loop.php file from your theme.
February 21, 2012 at 1:19 am #130136fashionbleeker
Memberduotive three http://themeforest.net/item/duotive-three-complete-wordpress-template/232555
I do not want to change the duotive theme.
I want to add all features of buddypress inside my duotive theme.
Your help is very important for me.Thank you!
February 21, 2012 at 1:09 am #130135In reply to: Cannot add a forum topic
@mercime
ParticipantChange to bp-default theme and deactivating all plugins except BuddyPress plugin. Then enable forums for each group via that group’s > Admin panel https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/4/#forums-faqs
February 21, 2012 at 12:52 am #130141@mercime
ParticipantYou do not modify your theme’s page.php file at all. What theme are you using?
Also, page.php has a full-width layout, is this the layout you want for all the BP template files?
February 21, 2012 at 12:20 am #130145fashionbleeker
Memberheader.php http://pastebin.com/dHRyNidD
sidebar.php http://pastebin.com/19N9axg5
index.php http://pastebin.com/kafJphj5
page.php http://pastebin.com/4PKdH3iX
footer.php http://pastebin.com/2CHr6ufiFebruary 21, 2012 at 12:05 am #130143fashionbleeker
MemberFebruary 20, 2012 at 11:44 pm #130142@mercime
ParticipantYou’re talking about Step 3 then.
There are two methods to make your WP theme compatible with BuddyPress, what you choose will depend on the current HTML structure of your WP theme:
A. First method – changing 16 BP template files transferred to your WP theme folder during the BP compatibility process
— Example using Motion theme: https://codex.buddypress.org/theme-development/bp-template-pack-walkthrough-level-easy-2/B. Second method – creating header-buddypress.php, sidebar-buddypress.php and/or footer-buddypress.php and adding to your WP theme folder which already contains the BP template folders after compatibility process.
— Example using Twenty Ten: https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/
— Example using Twenty Eleven: https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-eleven-bp-1-5/All themes can use First Method but only some themes can use Second Method.
If you need assistance in analyzing if you can use the Second Method for your theme, please post codes of your theme’s header.php, sidebar.php, index.php, page.php, and footer.php in respective pastebin.com pages.
February 20, 2012 at 11:39 pm #130140@mercime
ParticipantThere are two methods to make your WP theme compatible with BuddyPress, what you choose will depend on the current HTML structure of your WP theme:
A. First method – changing 16 BP template files transferred to your WP theme folder during the BP compatibility process
— Example using Motion theme: https://codex.buddypress.org/theme-development/bp-template-pack-walkthrough-level-easy-2/B. Second method – creating header-buddypress.php, sidebar-buddypress.php and/or footer-buddypress.php and adding to your WP theme folder which already contains the BP template folders after compatibility process.
— Example using Twenty Ten: https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/
— Example using Twenty Eleven: https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-eleven-bp-1-5/All themes can use First Method but only some themes can use Second Method. If you need assistance in analyzing if you can use the Second Method for your theme, please post codes of your theme’s header.php, sidebar.php, index.php, page.php, and footer.php in respective pastebin.com pages.
February 20, 2012 at 11:32 pm #130133fashionbleeker
MemberThank you mercime…
Ok All is done … but I have some difficulty to understand the Fixing Alignment… I have find the page.php and this is the code inside, but I can’t understand what I have to change….because I can see the page (member, activity etc etc.) but everything is not aligned :
Thank you againEdit – see page.php code below
February 20, 2012 at 11:31 pm #130132In reply to: [Resolved] Weaver theme and BuddyPress alignment
@mercime
ParticipantAll of your revised BP page templates (except “Register” and “Activate”) are laid out correctly from IE 6 to IE 9 per test site link you gave in first post. Double-checked this in my computer as well as the online IE simulator at http://netrenderer.com/index.php
Download /registration/register.php and /registration/activate.php from your server and double-check that the layout has been updated per instructions given above. Reminder: there’s an extra script required for /registration/register.php file as I noted above.
February 20, 2012 at 11:19 pm #130131In reply to: Twitter bootstrap
Tammie Lister
ModeratorI think just as with any library of scripts (and it is a library of scripts (CSS / js) and images) it’s to be considered a toolbox not an ultimate solution. There are already a few WordPress themes using it. If you wanted to use it to create a BuddyPress theme it could be a good option to speed up the process.
My only note of caution with things like that is to avoid the attack of the clones so to speak. Yes, it’s great but some variation is also great
The web would be a truly boring place if we all had the same looking sites. -
AuthorSearch Results