Search Results for 'buddypress'
-
AuthorSearch Results
-
September 9, 2011 at 11:35 pm #119827
Boone Gorges
Keymaster+1 to using the `xprofile_` functions if you can.
September 9, 2011 at 11:33 pm #119825In reply to: adding group fields
Quint
Participant@4ella, I believe this is post to which you are referring (near the bottom of the page): https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-add-fields-to-group-creation-with-group-extension-api-please-read/?topic_page=4&num=15
It’s from modemlooper. And it’s a follow-on to modemlooper/jorges plugin. One has to go into the php file to add/modify fields but it solves the need. Plus, whatever html tags have been placed in the php file to organize the fields, one can just add IDs/Classes and style them in your child theme’s style.css. No need for inline styling.
With that being said, @slaffik will your update allow for Group types and/or categories? For example, for a specific group type, the admin could create/apply a form containing fields specific to that Group type. With the application of categories/sub-categories, the user would be able to filter across an exhaustive list of Groups. I am looking forward to trying your updated plugin.
September 9, 2011 at 11:05 pm #119823In reply to: adding group fields
modemlooper
ModeratorTry using this http://github.com/modemlooper/buddypress-group-fields
You have to edit the code your self to add fields. i’m going to develop it so it matched the profile fields editor that comes in default BP.
September 9, 2011 at 10:57 pm #119822In reply to: Profile rating system
embergermedia
MemberHey @christophg
Sorry, I’ve been travelling a lot or work and haven’t had enough time to come back here!! Thanks for the info on Profile manager. I was half way through with my solution when I stumbled upon hers. It didn’t work for me, so I contacted her. After several iterations of the plugin it still didn’t work for me. I suspect there may be a plugin conflict, however, I have limited plugins running on my installation, and my community needs every one of them. So I continued to make refine the idea I sent to you.
As for your question regarding using S2 to control who gets one of your pages created, I am not sure if it is possible. As it stands, S2’s hooks and filters only allow you to keep content sequestered depending on user level.
One idea for you though is to allow a page to be created for every one who registers. Then, display the contents of that page as an iFrame on each users member profile page. Create a private group for the members who should have a rating. Then wrap the iframe in code that restricts the display of the iframe to only displayed members of that group. I do this very thing for my “Brands”.
I believe this is the code I used to show only on my brands member pages:
Let me know if you need more help!
September 9, 2011 at 10:35 pm #119821In reply to: removing group auto join
tommyhoang
MemberHOLY SMOKES! i figured it out, the bp-custom.php file mustve been corrupted because i deleted and simply tried to replace the code. and now it works!!!
thanks for all the help @mercime!!!!
September 9, 2011 at 10:27 pm #119820In reply to: removing group auto join
tommyhoang
Member@mercime, but it doesnt change the fact that my members are still autojoining the group when they reply to a post. the original code only disables the autojoin when starting a new topic.
September 9, 2011 at 9:22 pm #119819In reply to: adding group fields
hjbarraza
MemberHey guys, im just posting this +1 so i can find this thread again.
I’m willing to donate a few dollars to @SlaFFik if he updates his plugin
: )September 9, 2011 at 8:25 pm #119818Anonymous User 96400
InactiveIf you want to add a record, then there are API functions to do that for you for the most part. `xprofile_insert_field()` is one such function. There’s more in bp-xprofile/bp-xprofile-functions.php.
If you really do need to query the database directly, then you can find the table names within the $bp global, e.g. `$bp->groups->table_name` for the main groups table.
If there are API functions, then you should use these. Only query directly if you can’t find a function to do the heavy lifting for you.
September 9, 2011 at 8:20 pm #119817Boone Gorges
KeymasterComponents register their table names themselves. See https://buddypress.trac.wordpress.org/browser/trunk/bp-xprofile/bp-xprofile-loader.php#L85
In the case of xprofile, they are
`$bp->profile->table_name_data
$bp->profile->table_name_fields`
and so on.You may find it helpful to look at https://buddypress.trac.wordpress.org/browser/trunk/bp-xprofile/bp-xprofile-classes.php to see how BP itself references these tables. Likewise for the other components.
September 9, 2011 at 7:49 pm #119816sdls
MemberSomething like this
`
$sql = “SELECT *
FROM wp_bp_xprofile_data XP
WHERE XP.user_id = $iallusersUserID”;
$xprofile = $wpdb->get_col( $wpdb->prepare($sql));
`should probably more like this
`
$sql = “SELECT *
FROM $wpdb->x_profile XP
WHERE XP.user_id = $iallusersUserID”;
$xprofile = $wpdb->get_col( $wpdb->prepare($sql));
`Maybe this whole style of calling a custom SQL query is way of track? any suggestions?
September 9, 2011 at 6:24 pm #119813In reply to: Activating existing users
sdls
MemberAltough User A (ID:21) does show up in the table “wp_bp_xprofile_data”
It would be great if there was some help in bp_has_members
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-members-loop/
To reference these orphaned users with a state…. like “inactive”September 9, 2011 at 6:13 pm #119811In reply to: Activating existing users
sdls
MemberOn this same topic…..In the members directory in BP 1.5 user are displayed based on more criteria then mentioned by the discussion above.
User A (ID: 21) is showing up in the members directory but does NOT appear in the buddypress activity tables
`
$sql2 = “SELECT *
FROM wp_bp_activity activity
WHERE activity.user_id = $iUserID”;
`OR the user_meta table
`
$sql3 = “SELECT *
FROM wp_usermeta UM
WHERE UM.user_id = $iUserID
AND UM.meta_key LIKE ‘last_activity'”;`
Any thoughts on what’s making these members appear in the directory?
September 9, 2011 at 5:25 pm #119804In reply to: BP 1.5 ~ Bugs with Private Messaging autocomplete
Boone Gorges
Keymaster@simon_said – Would you mind posting a bug ticket on trac.buddypress.org, with steps to reproduce? Thanks!
September 9, 2011 at 5:17 pm #119802In reply to: BP 1.5 ~ Bugs with Private Messaging autocomplete
sdls
Member@boonebgorges – Correctamundo. The text field for “To” is blank rather then being populated with the username.
@DJPaul – to get back to you on usernames see below
User A – archon2112
User B – Simon.delaSalle
User C – Tim.PowellTHANKS BOTH!
September 9, 2011 at 4:49 pm #119801In reply to: removing group auto join
@mercime
Participant@tommyhoang “headers already sent error” usually means that there’s space before the opening “ tags required in functions.php just like it is in bp-custom.php
What the code above does is to replace the text string “You will auto join this group when you start a new topic.” to something else like ‘Feel free to reply.’ You could also leave the replacement text as blank by not adding text and just space between ‘ ‘
September 9, 2011 at 1:47 pm #119792In reply to: How do you change last active to date created?
casix
MemberNever mind I figured it out. I modified the code bp_get_group_date_created() so it does get the date. For those who want to do the same or if the group for buddypress want to modify the code to do it the same, here is what I did.
I didn’t want to do lot of code change that way if BP does any updates it would be easy to put the mod back in.
Note: This mod requires you to modifying the BP core make a back up each file before modifying.
1st I created a new function in the bp_core_function.php called bp_core_date_since() and I put it above bp_core_time_since() to keep them together.
function bp_core_date_since($older_date) {
// array of time period chunks
$chunks = array(
array( 60 * 60 * 24 * 365 , __( 'year', 'buddypress' ), __( 'years', 'buddypress' ) ),
array( 60 * 60 * 24 * 30 , __( 'month', 'buddypress' ), __( 'months', 'buddypress' ) ),
array( 60 * 60 * 24 * 7, __( 'week', 'buddypress' ), __( 'weeks', 'buddypress' ) ),
array( 60 * 60 * 24 , __( 'day', 'buddypress' ), __( 'days', 'buddypress' ) ),
array( 60 * 60 , __( 'hour', 'buddypress' ), __( 'hours', 'buddypress' ) ),
array( 60 , __( 'minute', 'buddypress' ), __( 'minutes', 'buddypress' ) ),
array( 1, __( 'second', 'buddypress' ), __( 'seconds', 'buddypress' ) )
);
if ( !empty( $older_date ) && !is_numeric( $older_date ) ) {
$time_chunks = explode( ':', str_replace( ' ', ':', $older_date ) );
$date_chunks = explode( '-', str_replace( ' ', '-', $older_date ) );
$older_date = gmmktime( (int)$time_chunks[1], (int)$time_chunks[2], (int)$time_chunks[3], (int)$date_chunks[1], (int)$date_chunks[2], (int)$date_chunks[0] );
}
$output = date("F d, Y",$older_date);
return $output;
}
Next I modify the function bp_group_date_created() in the bp_groups_template.php
rem out the return and created a new return
return apply_filters( 'bp_get_group_date_created', bp_core_date_since(strtotime($group->date_created)) );
Now anytime you want to show date created in stead of time since you just replace bp_groups_last_active() to bp_groups_date_created().
So now instead of showing “active since 1 day, 20 hours”. It shows “Created September 8, 2011”
September 9, 2011 at 1:06 pm #119790Boone Gorges
KeymasterThe BuddyBar builds those links mostly out of $bp->bp_nav and $bp->bp_options_nav (which are also responsible for site navigation in other places). See https://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-buddybar.php#L423
The WP Admin Bar is built more independently of the BuddyBar. Each component essentially does its own work. See for instance https://buddypress.trac.wordpress.org/browser/trunk/bp-groups/bp-groups-loader.php#L370
September 9, 2011 at 12:43 pm #119788Boone Gorges
KeymasterWow, this issue is getting weirder.
I have copied your theme but I can’t reproduce the problem. This could have to do with the fact that I don’t have the font files on my system. In any case, I have no idea whatsoever about how a font declaration could cause the sorts of problems you’re talking about.
Just to see if it helps, you might try commenting out the BP javascript that makes the dropdown filters work. Look in buddypress/bp-themes/bp-default/_inc/global.js, around line 542, for the block beginning “When the filter select box is changed re-query”. Comment that out, clear your cache, and try again. (I’m skeptical this will actually get us any closer to the issue, since it sounded like you were having this problem with dropdowns other than this one.)
September 9, 2011 at 6:51 am #119783September 9, 2011 at 6:37 am #119782ankurm
Member@Dwenaus , i have the same problem which @ibn.nadir had..
there are no error messages appearing after the redirection. How to get that message appear?thanks
September 9, 2011 at 6:21 am #119780In reply to: Header Background Image
tommyhoang
Member@r-a-y @quint, yeah i already made a child theme. and am trying to figure out how to edit the header size. i followed the tutorial (http://buddydress.com/2010/04/custom-header-tutorial-adding-an-image-and-changing-the-size/).
ray i added this to my child’s function.php define( ‘HEADER_IMAGE_HEIGHT’, 300 );. and on my dashboard i can indeed upload bigger images, but after saving it, my site homepage still displays the default size header. furhtermore the images i upload are always messed up on the bottom or top.
heres what i mean
September 9, 2011 at 5:01 am #119779In reply to: removing group auto join
tommyhoang
Member@mercime, yeah im not sure what thats suppose to do. but as soon as i log out of admin, i get a bunch of error messages saying cannot modify header etc.
im still trying to disable the autojoin function. the code define(‘BP_DISABLE_AUTO_GROUP_JOIN’,true);
only disables the autojoin when starting a new topic. the autojoin for post reply is still active.September 9, 2011 at 2:12 am #119777Quint
Participant@boonebgorges, okay Boone, I’ve spent the last 6 hrs 16 minutes on this. I have determined where the issue is occurring but I do not know how to fix it. But first here’s the calibration I eventually got to: I re-installed WordPress and Buddypress (yep, I’m getting faster reinstalling this stuff).
I created a new child theme; that is, a new style.css file and a new functions.php file to enqueue the child’s style.css file. Here’s the code for my functions.php file:`<?php
function bp_dtheme_enqueue_styles() {
// Bump this when changes are made to bust cache
$version = ‘20110804’;// Default CSS
wp_enqueue_style( ‘bp-default-main’, get_template_directory_uri() . ‘/_inc/css/default.css’, array(), $version );wp_enqueue_style( ‘bp-child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $version );
// Right to left CSS
if ( is_rtl() )
wp_enqueue_style( ‘bp-default-main-rtl’, get_template_directory_uri() . ‘/_inc/css/default-rtl.css’, array( ‘bp-default-main’ ), $version );
}add_action( ‘wp_print_styles’, ‘bp_dtheme_enqueue_styles’ );
?>`
Should be no issue there. With the new stylesheet I started adding back my old code starting at the very top. I didn’t have to go very far at all. It failed at the body selector (at the very bottom of this post); specifically, the @font-face font that the stylesheet loaded. I took it out; I replaced it with verdana or helvetica. No issues. I cycled through all of the @font-face fonts and each one produced the error. Note: The @font-face fonts rendered properly on every page but failed when I clicked on a “dropdown-style” field as described in my first post. Do you have any recommendations? Am I supposed to enqueue the fonts just as I had the stylesheet? If so, how would that be done? Thanks!
Note: I commented out a few declarations in the body selector to help narrow down which declaration could be the issue. And just like Firefox, this works fine in Chrome 13.0.782.220.
`/*
Theme Name: My BP Default Child Theme 1
Theme URI: http://folio.com
Description: This is my first Buddypress Default Child Theme
Author: Quint A. Rahaman, Jr.
Template: bp-default
Tags: buddypress, two-column, grey, dark
*//* RESET – http://meyerweb.com/eric/tools/css/reset/ | v1.0 | 20080212 */
/*
*/body,html{height:100%;}
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:top;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}/* Floating & Alignment */
.fl{float:left;}
.fr{float:right;}
.ac{text-align:center;}
.ar{text-align:right;}/* Clear Floats */
.col-full:after{content:”.”;display:block;height:0;clear:both;visibility:hidden;}
.fix{clear:both;height:1px;overflow:hidden;margin:-1px 0 0;}
html body * span.clear,html body * div.clear,html body * li.clear,html body * dd.clear{background:none;border:0;clear:both;display:block;float:none;font-size:0;list-style:none;overflow:hidden;visibility:hidden;width:0;height:0;margin:0;padding:0;}/* Generated by Font Squirrel (http://www.fontsquirrel.com) on September 8, 2011 */
@font-face {
font-family: ‘FontSiteSansRoman’;
src: url(‘includes/fonts/includes/fonts/fontsitesans-roman-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-roman-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-roman-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-roman-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-roman-webfont.svg#FontSiteSansRoman’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘BergamoStdItalic’;
src: url(‘includes/fonts/bergamostd-italic-webfont.eot’);
src: url(‘includes/fonts/bergamostd-italic-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/bergamostd-italic-webfont.woff’) format(‘woff’),
url(‘includes/fonts/bergamostd-italic-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/bergamostd-italic-webfont.svg#BergamoStdItalic’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘BergamoStdRegular’;
src: url(‘includes/fonts/bergamostd-regular-webfont.eot’);
src: url(‘includes/fonts/bergamostd-regular-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/bergamostd-regular-webfont.woff’) format(‘woff’),
url(‘includes/fonts/bergamostd-regular-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/bergamostd-regular-webfont.svg#BergamoStdRegular’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansCondensed’;
src: url(‘includes/fonts/fontsitesans-cond-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-cond-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-cond-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-cond-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-cond-webfont.svg#FontSiteSansCondensed’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansUltraLight’;
src: url(‘includes/fonts/fontsitesans-ultralight-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-ultralight-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.svg#FontSiteSansUltraLight’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘StMarieThin’;
src: url(‘includes/fonts/stmarie-thin-webfont.eot’);
src: url(‘includes/fonts/stmarie-thin-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/stmarie-thin-webfont.woff’) format(‘woff’),
url(‘includes/fonts/stmarie-thin-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/stmarie-thin-webfont.svg#StMarieThin’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘BergamoStdItalic’;
src: url(‘includes/fonts/bergamostd-italic-webfont.eot’);
src: url(‘includes/fonts/bergamostd-italic-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/bergamostd-italic-webfont.woff’) format(‘woff’),
url(‘includes/fonts/bergamostd-italic-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/bergamostd-italic-webfont.svg#BergamoStdItalic’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘BergamoStdItalic’;
src: url(‘includes/fonts/bergamostd-italic-webfont.eot’);
src: url(‘includes/fonts/bergamostd-italic-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/bergamostd-italic-webfont.woff’) format(‘woff’),
url(‘includes/fonts/bergamostd-italic-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/bergamostd-italic-webfont.svg#BergamoStdItalic’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘BergamoStdRegular’;
src: url(‘includes/fonts/bergamostd-regular-webfont.eot’);
src: url(‘includes/fonts/bergamostd-regular-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/bergamostd-regular-webfont.woff’) format(‘woff’),
url(‘includes/fonts/bergamostd-regular-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/bergamostd-regular-webfont.svg#BergamoStdRegular’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘BergamoStdRegular’;
src: url(‘includes/fonts/bergamostd-regular-webfont.eot’);
src: url(‘includes/fonts/bergamostd-regular-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/bergamostd-regular-webfont.woff’) format(‘woff’),
url(‘includes/fonts/bergamostd-regular-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/bergamostd-regular-webfont.svg#BergamoStdRegular’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansCondensed’;
src: url(‘includes/fonts/fontsitesans-cond-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-cond-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-cond-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-cond-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-cond-webfont.svg#FontSiteSansCondensed’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansCondensed’;
src: url(‘includes/fonts/fontsitesans-cond-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-cond-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-cond-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-cond-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-cond-webfont.svg#FontSiteSansCondensed’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansRoman’;
src: url(‘includes/fonts/fontsitesans-roman-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-roman-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-roman-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-roman-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-roman-webfont.svg#FontSiteSansRoman’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansRoman’;
src: url(‘includes/fonts/fontsitesans-roman-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-roman-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-roman-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-roman-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-roman-webfont.svg#FontSiteSansRoman’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansUltraLight’;
src: url(‘includes/fonts/fontsitesans-ultralight-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-ultralight-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.svg#FontSiteSansUltraLight’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘FontSiteSansUltraLight’;
src: url(‘includes/fonts/fontsitesans-ultralight-webfont.eot’);
src: url(‘includes/fonts/fontsitesans-ultralight-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.woff’) format(‘woff’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/fontsitesans-ultralight-webfont.svg#FontSiteSansUltraLight’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘StMarieThin’;
src: url(‘includes/fonts/stmarie-thin-webfont.eot’);
src: url(‘includes/fonts/stmarie-thin-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/stmarie-thin-webfont.woff’) format(‘woff’),
url(‘includes/fonts/stmarie-thin-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/stmarie-thin-webfont.svg#StMarieThin’) format(‘svg’);
font-weight: normal;
font-style: normal;}
@font-face {
font-family: ‘StMarieThin’;
src: url(‘includes/fonts/stmarie-thin-webfont.eot’);
src: url(‘includes/fonts/stmarie-thin-webfont.eot?#iefix’) format(’embedded-opentype’),
url(‘includes/fonts/stmarie-thin-webfont.woff’) format(‘woff’),
url(‘includes/fonts/stmarie-thin-webfont.ttf’) format(‘truetype’),
url(‘includes/fonts/stmarie-thin-webfont.svg#StMarieThin’) format(‘svg’);
font-weight: normal;
font-style: normal;}
#sidebar{display:none;}
div#content .padder{margin-right:0px; border-right-width:0px;}body { font-family: ‘FontSiteSansRoman’, helvetica, sans-serif;
/* font-size: 0.75em;
line-height: 1.5em;*/
color: #3e3e3e;
background: url(“images/bg.png”) repeat fixed 0 0 #f6f0d6;
/* max-width: none;
width: 100%;*/
/* position: relative;*/
}`September 9, 2011 at 1:27 am #119774In reply to: Changing Group tab display defaults
Andrew Tegenkamp
Participant@jad117, I hope this helps, and please let me know with another mention if not.
Basically the first step is to create a blank file called bp-custom.php and save it as /wp-content/plugins/bp-custom.php. You can learn more about this file at https://codex.buddypress.org/extending-buddypress/bp-custom-php/ and what it does and all.
Then, in that file (or in your theme’s functions.php file) you can paste certain bits of PHP code that have become known as hacks or tricks in order to make BuddyPress act a little differently. One such trick is to move around the tabs and redirect people so that group links like http://testbp.org/groups/buddypress-testers-614548248/ would actually redirect to http://testbp.org/groups/buddypress-testers-614548248/forum/ instead of showing http://testbp.org/groups/buddypress-testers-614548248/home/ as it does now.
The code I gave earlier does this and like myself, some others after me have offered various improvements or changes, so I’d try them each out and see what works best for your setup. You can only have one function of each name at a time or you’ll get an error. You can also visit http://bp-tricks.com/featured/feature-forums-noticed/ for how the author of that post does this “trick” and see some comments there as well, as that is a site devoted to finding just the right trick to get BuddyPress to do exactly what you want!
I hope that helps, and as I said, if not, write back at me, and I’ll try to answer any questions you have!
Thanks,
AndrewSeptember 9, 2011 at 12:32 am #119773In reply to: BuddyPress.org’s Unified Search – How can I get it?
Micheal Kennedy
ParticipantNeeds updating.
-
AuthorSearch Results