Search Results for 'add profile tab to nav bar'
-
Search Results
-
I want to have the profile tab in my navigation bar and Ive tried the profile menu plugin but it didnt work for 3.4.1. Can someone help me with a code or steps in adding it to my site?
Im running WP 3.3.2, BP 1.5.5 on linux at GoDaddy with php 5.x
Using Skeleton Component 1.6
My Theme set is Frisco, however it tests with the same result on default BP Theme.
Briefly…
All of my sub_nav items are setup the same minus their individual slugs and screens. Every sub_nav works fine accept the first one you see in the code below.Symptom…
The “Activity” tab also receives class=”selected” when the “Tweets” sub_nav is clicked or loaded via the parent screen_function setting.This is a huge problem because once the “Activity” tab is double selected with “Twitter” tab you can no longer click Activity and get the activity screen. you have to select a different sub_nav under “Twitter” to get the select off of “Activity”. Then, you can click “Activity” and get that screen.
I have no Idea why that one sub nav would freak out the Activity tab unless there is something in the “Tweets” sub_nav screen’s contents that makes PB think it’s the activity page. I have completely removed all contents of the screen accept the navigation and it’s still doing the same thing. There is not one reference to activity in the “Tweets” screen.
Here is the loader code…
`
/**
* Set up your component’s navigation.
*
* The navigation elements created here are responsible for the main site navigation (eg
* Profile > Activity > Mentions), as well as the navigation in the BuddyBar. PE Admin Bar
* navigation is broken out into a separate method; see
* BP_Twitter_Component::setup_admin_bar().
*
* @global obj $bp
*/
function setup_nav() {
$user_id = get_current_user_id();
if (get_user_meta($user_id, ‘tweetstream_synctoac’, 1)) {
// Add ‘Twitter’ to the main navigation
$main_nav = array(
‘name’ => __( ‘Twitter’, ‘bp-twitter-interface’ ),
‘slug’ => bp_get_twitter_slug(),
‘show_for_displayed_user’ => false, // When viewing another user does this nav item show up?
‘position’ => 80,
‘screen_function’ => ‘bp_twitter_mentions’,
‘default_subnav_slug’ => ‘mentions’
);$twitter_link = trailingslashit( bp_loggedin_user_domain() . bp_get_twitter_slug() );
// Adds the subnav item “Timeline” under the main Twitter tab
$sub_nav[] = array(
‘name’ => __( ‘Tweets’, ‘bp-twitter-interface’ ),
‘slug’ => ‘tweets’,
‘parent_url’ => $twitter_link,
‘parent_slug’ => bp_get_twitter_slug(),
‘screen_function’ => ‘bp_twitter_timeline’,
‘position’ => 15
);// Adds the subnav item “Mentions” under the main Twitter tab
$sub_nav[] = array(
‘name’ => __( ‘Mentions’, ‘bp-twitter-interface’ ),
‘slug’ => ‘mentions’,
‘parent_url’ => $twitter_link,
‘parent_slug’ => bp_get_twitter_slug(),
‘screen_function’ => ‘bp_twitter_mentions’,
‘position’ => 20
);// Adds the subnav item “Followers” under the main Twitter tab
$name = sprintf( __( ‘Followers %s‘, ‘bp-twitter-interface’ ), bp_twitter_followers_count() );
$sub_nav[] = array(
‘name’ => $name,
‘slug’ => ‘followers’,
‘parent_url’ => $twitter_link,
‘parent_slug’ => bp_get_twitter_slug(),
‘screen_function’ => ‘bp_twitter_followers’,
‘position’ => 30
);// Adds the subnav item “Following” under the main Twitter tab
$name2 = sprintf( __( ‘Following %s‘, ‘bp-twitter-interface’ ), bp_twitter_following_count() );
$sub_nav[] = array(
‘name’ => $name2,
‘slug’ => ‘following’,
‘parent_url’ => $twitter_link,
‘parent_slug’ => bp_get_twitter_slug(),
‘screen_function’ => ‘bp_twitter_following’,
‘position’ => 40
);// Adds the subnav item “People” under the main Twitter tab
// if the user is viewing a Twitter profile
$sub_nav[] = array(
‘name’ => __( ‘People’, ‘bp-twitter-interface’ ),
‘slug’ => ‘people’,
‘parent_url’ => $twitter_link,
‘parent_slug’ => bp_get_twitter_slug(),
‘screen_function’ => ‘bp_twitter_people’,
‘position’ => 50
);parent::setup_nav( $main_nav, $sub_nav );
`This has been frustrating me for two days now… What the heck am I overlooking?
First of all, I love BuddyPress. It suits my site and needs perfectly. I have integrated it into my custom theme and all is working great accept for the following:
Firstly,
When trying to post a status update on the activity tab, it works fine, however when putting a comment to an update, it simply goes to a “Page Not Found” page.
Secondly,
On the Homepage of my site, http://nationalgamingleague.com.au/main/, there are two widget sidebars. Now when you view a BuddyPress Profile, Activity, Messages and Friends tab, the contents from the left widget are below. I need to get rid of this on these pages. Please note that the widget does not appear on the “Members” list page.
I ran the BuddyPress template conversion plugin and this is how things ended up.
My website address is http://nationalgamingleague.com.au/main/ and is still currently being completed, but is due to be released to the public in the next 36hrs.
Here are the answers to the required support questions:
1. Which version of WordPress are you running?
3.3.1
2. Did you install WordPress as a directory or subdomain install?
It is installed in a directory.
3. If a directory install, is it in root or in a subdirectory?
Not sure but the directory is named /main
4. Did you upgrade from a previous version of WordPress? If so, from which version?
N/A
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes it was all working fine.
6. Which version of BP are you running?
1.5.5
7. Did you upgraded from a previous version of BP? If so, from which version?
No
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
Yes. Listed below:
Event Espresso
Dynamic Step Process Panels
iQ Block Country
MSI Engine WP Plugin Engine
Notification Bar
Role Manager
Smart Social
Social Slider
Simple Email Ticket Support System
Wordpress Database Backup
WordPress Importer
WP-PageNavi
WP Premium Members
WP Pro Ad System9. Are you using the standard BuddyPress themes or customized themes?
Customized
10. Have you modified the core files in any way?
No
11. Do you have any custom functions in bp-custom.php?
No
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
N/A
13. Please provide a list of any errors in your server’s log files.
N/A
14. Which company provides your hosting?
Digital Pacific Australia
15. Is your server running Windows, or if Linux; Apache, nginx or something else?
Linux
I hope I have supplied everything that is needed to help fix this.
Thanks,
Nate
Topic: Delete profile tab
I need to remove the user profiles tab:
http://img521.imageshack.us/img521/2634/sinttulodi.png
remove red
this does not work in bp-costum.php
<?php
define ( ‘BP_DISABLE_ADMIN_BAR’, true );
function bbg_remove_profile_tab() {
bp_core_remove_nav_item( ‘profile’ );
}
add_action( ‘bp_setup_nav’, ‘bbg_remove_profile_tab’, 99 );
?>Hi.
I have a small problem or bug, i created a sidebar on the left side and inserted bp_get_loggedin_user_nav(); in it to show the user nav in the sidebar !
Everything works, but if i go on activity or any link, the class “current_selected” is not applied and the link does not get highlighted in the sidebar!
But it does get highlighted in the .padder div area ( as in default bp theme ).My sidebar html:
<div id="profile-menu"> <span class="bbw-user-link"><a href=""></a></span> <ul class="bbw-avatar"> <li></li> </ul> <div id="side_nav"> <div class="menu-list-tabs no-ajax" id="object-nav"> <ul> </ul> </div> </div> </div>
P.s. My php skills are limited and this it the first time i use buddypress… i have no clue about the that are all around in the template files… could the highlight not work because of them?
Topic: Profile CSS
hi,
wanted to remove sidebar in profiles, checked home.php and understood that it uses all the same css as all other pages (content, padder, item-tabs etc.).
issue is that if in home.php I start changing div names, it works fine for build in navigation tabs/pages (activity, friends etc.), but if I have plugins like bp followers, when their tab is pressed, they still call standard content, padder, sidebar etc. (looks like they take it from bp default, not my child theme, because in home.php I have fully removed sidebar call).is there any way to pass around it, maybe some build in div like div#content. profile, does it exist?
any help?
I’m having issues with indexes for everything http://www.thoughtsofthemasses.com/blogs/ for example. There’s a huge space that exists regardless of anything I’ve edited.
I’m using the BuddyPress Template Pack Plugin to convert a WP Theme.
Index PHP:
``
CSS:
`/*
Theme Name: Andreas09
Theme URI: http://webgazette.co.uk/wordpress-themes/wp-andreas09/
Description: Highly customisable three column goodness.
Author: Andreas Viklund and Ainslie Johnson
Tags: orange, white, three column, flexible width, threaded comments, custom colors, buddypressandreas09 v1.0 (Dec 10th 2005) – An open source template by Andreas Viklund – http://andreasviklund.com. Free to use for any purpose as long as the proper credits are given to the original author.
Ported to WordPress by Ainslie Johnson – Last updated 28/07/06
*//* Inherit the default theme adminbar styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );/* General Element Styling */
body {
background:#8b8b8b;
color:#303030;
font:76% Verdana,Tahoma,Arial,sans-serif;
margin:0;
padding:0;
text-align:center;
}a {
font-weight:bold;
text-decoration:none;
}a:hover {
color:#808080;
text-decoration:underline;
}p {
line-height:1.5em;
margin:0 0 15px;
padding: 0px;
}/* Captions and image alignment for wordpress */
div.aligncenter {
display: block!important;
margin: 0px auto;
}
img {
border-width: 0px !important;
border-style: none !important;
}
div.alignleft {
float: left!important;
margin-right: 10px;
}
div.alignright {
float: right!important;
margin-right: 0px;
margin-left: 10px;
}
.wp-caption {
border: 1px solid #CCCCCC;
text-align: center;
background-color: #F8F8F8;
padding-top: 4px;
margin-top: 10px;
margin-bottom: 10px;
}.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 16px;
padding: 5px 4px;
margin: 0;
font-family: Arial, Tahoma, “Lucida Sans”;
color: #949494;
font-style: normal;
}p img {
padding: 0;
max-width: 100%;
}img.centered {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
float: right;
}img.alignleft {
padding: 4px;
margin: 0 7px 2px 0;
float: left;
}.alignright {
float: right;
}.alignleft {
float: left;
}/* End captions and image alignment */
/*** Main container ***/
#container {
color:#303030;
margin:0;
min-width:770px;
padding:0;
text-align:left;
width:100%;
}/*** Header section ***/
#sitename {
color:#ffffff;
height:90px;
margin:0 20px 10px;
text-align:left;
}#sitename h1,#sitename h2 {
font-weight:400;
margin:0;
padding:0;
}#sitename h1 {
font-size:2.4em;
padding-top:20px;
}#sitename h1 a {
color: #ffffff;
text-decoration: none;
letter-spacing: 5px;
}#sitename h2 {
font-size:1.6em;
}/*** Content wrap ***/
#wrap {
clear:both;
font-size:0.9em;
padding:0;
margin-top: 5px;
}/* Horizontal menu */
#mainmenu {
clear: both;
width: 100%;
margin: 0px;
padding: 0px;
}#mainmenu ul.level1 {
border-top: 1px solid #fff;
border-bottom: 1px solid #fff;
}#mainmenu ul {
background: #b0b0b0 url(images/menubg.jpg) center left repeat-x;
padding: 0 0 0 5px;
margin: 0px;
border-bottom: 1px solid #fff;
}#mainmenu li {
display: inline;
line-height: 25px;
margin-left: -4px;
padding: 0px;
font-size: 0.9em;
list-style: none;
text-transform: uppercase;
}#mainmenu a {
padding: 6px 9px 6px 9px;
text-decoration: none;
border-right: 1px solid #B0B0B0;
}#mainmenu li.current a {
color: #000;
}/*** Sidebars ***/
#leftside,#rightside {
margin:0;
padding:0 10px 10px;
width:165px;
}#leftside {
float:left;
margin-right:10px;
}#rightside {
float:right;
margin-left:10px;
}#rightside img {
border: 0px;
}/*** Sidebar menu ***/
#leftside h2, #rightside h2 {
font-size: 1.4em;
margin-top: 10px;
padding: 5px 5px 5px 0;
border-bottom: 1px solid #BEBFC3;
}#leftside ul, #rightside ul {
padding-left: 0px;
margin: 0px;
}#leftside li, #rightside li {
list-style: none;
}li#categories li a, li#archives li a, li.pagenav li a {
background:#e8e9ea;
border:1px solid #b0b0b0;
display:block;
margin-top:4px;
padding:5px 4px 4px 10px;
position:relative;
text-transform: capitalize;
width:140px;
}li#categories li a:hover, li#archives li a:hover, li.pagenav li a:hover {
background:#f8f9fa;
border:1px solid #909090;
color:#303030;
text-decoration:none;
}li#categories ul.children li a, li#archives ul.children li a, li.pagenav ul.children li a {
font-size:0.8em;
letter-spacing:1px;
margin:3px 0 2px 10px;
padding:4px 2px 2px 8px;
width:125px;
}li#categories ul.children li li, li#archives ul.children li li, li.pagenav ul.children li li {
padding-left: 10px;
}li#categories ul.children li li a, li#archives ul.children li li a, li.pagenav ul.children li li a {
width: 115px;
}li.feed {
background: url(images/rss.gif) no-repeat left top;
padding: 2px 0 8px 20px;
}li#recent-comments ul li {
padding-bottom: 5px;
}li#recent-posts ul li {
padding-bottom: 5px;
}/*** Content ***/
#content,#contentalt {
background-color:#fafcff;
border:1px solid #909090;
color:#2a2a2a;
padding:15px 20px 5px;
}#content {
margin:0 200px;
}#contentalt {
margin:0 200px 0 20px;
}#content h1,#contentalt h1,#contentalt h2 {
background-color:inherit;
color:#606060;
font-size:1.8em;
font-weight:bold;
letter-spacing:-1px;
margin:0 0 15px;
padding:0;
}#content h1,#contentalt h1 {
border-bottom: 1px solid #b0b0b0;
}#content h2 {
font-size:1.6em;
color:#606060;
}/* Archives/Links Page List styles */
.archives li, .linkspage li {
list-style: none;
}.archives ul.children {
padding-left: 10px;
margin-left: 10px;
}/*** Footer ***/
#footer {
background:#8b8b8b url(images/footerbg.jpg) top left repeat-x;
clear:both;
color:#000;
font-size:0.9em;
font-weight:bold;
margin:0;
padding:20px 0;
text-align:center;
width:100%;
line-height: 1.5em;
}#footer a {
color: #d0d0d0;
font-weight:bold;
}/*** comments Form ***/
#comment {
width: 100%;
border:1px solid #b0b0b0;
}#commentform {
width: 97%;
}#author {
border:1px solid #b0b0b0;
}#email {
border:1px solid #b0b0b0;
}#url {
border:1px solid #b0b0b0;
}#submit {
background:#f0f0f0;
border:1px solid #b0b0b0;
}#submit:hover {
background: #e8e9ea;
border: 1px solid #848484;
cursor: pointer;
}/* Image Display */
.entry img, .entrytext img {
border: 1px solid #b0b0b0;
margin: 5px;
padding: 5px;
}.entry a:hover img, .entrytext a:hover img {
border: 1px solid #505050;
padding: 5px;
}img.wp-smiley {
border: 0px;
margin: 0px;
padding: 0px;
}.thumbnail {
background:#fafbfc;
border:1px solid #b0b0b0;
margin:0 0 10px 10px;
padding:5px;
}.left {
background:#fafbfc;
border:1px solid #b0b0b0;
float:left;
margin: 5px 15px 6px 0px;
padding:5px;
}.right {
background:#fafbfc;
border:1px solid #b0b0b0;
float:right;
margin: 5px 0px 6px 15px;
padding:5px;
}.noalign {
background:#fafbfc;
border:1px solid #b0b0b0;
margin: 5px 5px 5px 5px;
padding:5px;
}/* Search Form */
#searchform {
margin-top: 10px;
}#searchbox {
background:#f0f0f0;
border:1px solid #b0b0b0;
margin:0 4px 0 0;
width:160px;
}#searchbutton {
background:#f0f0f0;
border:1px solid #b0b0b0;
}#searchbutton:hover {
background: #e8e9ea;
border: 1px solid #848484;
cursor: pointer;
}/*** Comments Display ***/
.postmetadata {
background:#e8e9ea;
font-size: 0.9em;
border: 1px solid #b0b0b0;
padding: 10px;
margin: 0px;
}ol.commentlist li {
border: 1px solid #b0b0b0;
padding: 10px;
margin-bottom: 10px;
}ol.commentlist li cite {
text-transform: capitalize;
}ol.commentlist li p {
padding-top: 10px;
}.alt {
background:#e8e9ea;
}/*** Text format ***/
.intro {
font-size:1.1em;
font-weight:bold;
letter-spacing:-1px;
}blockquote {
border: 1px dashed #b0b0b0;
padding: 10px;
margin: 30px;
}blockquote p {
padding: 0px;
margin: 0px;
}.small {
font-size:0.8em;
}.large {
font-size:1.4em;
}.center {
text-align:center;
}.category {
border-bottom: 1px solid #b0b0b0;
}.date {
margin-top: -10px;
padding-top: 0px;
border-bottom: 1px solid #b0b0b0;
}#page {
border-bottom: 1px solid #b0b0b0;
padding-bottom: 10px;
margin-bottom: 10px;
}/* Previous/Next Page Navigation */
.navigation {
margin: 0 0 20px 0;
padding: 0 0 20px 0;
border-bottom: 1px dashed #b0b0b0;
}.bottomnavigation {
margin: 30px 0 0 0;
padding: 5px 0 30px 0;
border-top: 1px dashed #b0b0b0;
}.alignleft {
float: left;
text-align: left;
}.alignright {
float: right;
text-align: right;
}.post {
padding-top: 0px;
padding-bottom: 10px;
margin: 0px;
}/* Fix by Andy Skelton */
.entry, .entrytext {
overflow: hidden;
}* html.entry, * html.entrytext {
overflow: visible;
height: 1px;
}* html.entry p, * html.entrytext p {
width: 99%;
overflow: hidden;
}.entrytext {
padding-top: 0px;
}/*** Various classes ***/
.clearingdiv {
clear:both;
height:30px;
width:1px;
}.hide {
display:none;
}/* Widgets */
.rsswidget {
border:0px;
vertical-align: bottom;
}
/*** End of file ***/.commentlist li li {
list-style-type: none;
}/* > Item Headers (Profiles, Groups)
*/div#item-header {
overflow: hidden;
}
div#item-header div#item-header-content { margin-left: 170px; }div#item-header h2 {
font-size: 28px;
margin: 0 0 15px 0;
line-height: 120%;
}
div#item-header h2 a {
text-decoration: none;
color: #777;
}div#item-header img.avatar {
float: left;
margin: 0 15px 25px 0;
}div#item-header h2 { margin-bottom: 5px; }
div#item-header span.activity, div#item-header h2 span.highlight {
vertical-align: middle;
font-size: 11px;
font-weight: normal;
line-height: 170%;
margin-bottom: 7px;
}div#item-header h2 span.highlight { font-size: 16px; }
div#item-header h2 span.highlight span {
position: relative;
top: -2px;
right: -2px;
font-weight: bold;
font-size: 11px;
background: #a1dcfa;
color: #fff;
padding: 1px 4px;
margin-bottom: 2px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
vertical-align: middle;
cursor: pointer;
display: none;
}div#item-header div#item-meta {
font-size: 14px;
color: #aaa;
padding-bottom: 10px;
overflow: hidden;
margin: 15px 0 5px 0;
}div#item-header div#item-actions {
float: right;
width: 20%;
margin: 0 0 15px 15px;
text-align: right;
}
div#item-header div#item-actions h3 {
font-size: 12px;
margin: 0 0 5px 0;
}div#item-header ul {
overflow: hidden;
margin-bottom: 15px;
}div#item-header ul h5, div#item-header ul span, div#item-header ul hr {
display: none;
}div#item-header ul li {
float: right;
}div#item-header ul img.avatar, div#item-header ul.avatars img.avatar {
width: 30px;
height: 30px;
margin: 2px;
}div#item-header div.generic-button, div#item-header a.button {
float: left;
margin: 10px 10px 0 0;
}div#item-header div#message.info {
line-height: 80%;
}/* > Item Lists (Activity, Friend, Group lists)
*/ul.item-list {
width: 100%;
}
ul.item-list li {
position: relative;
padding: 15px 0;
border-bottom: 1px solid #eaeaea;
}
ul.single-line li { border: none; }
body.activity-permalink ul.item-list li { padding-top: 0; }ul.item-list li img.avatar {
float: left;
margin: 0 10px 10px 0;
}ul.item-list li div.item-title, ul.item-list li h4 {
font-weight: normal;
font-size: 14px;
width: 75%;
margin: 0;
}
ul.item-list li div.item-title span {
font-size: 12px;
color: #999;
}ul.item-list li div.item-desc {
margin: 10px 0 0 64px;
font-size: 11px;
color: #888;
width: 50%;
}ul.item-list li div.action {
position: absolute;
top: 15px;
right: 0;
text-align: right;
}ul.item-list li div.meta {
margin-top: 10px;
color: #888;
font-size: 11px;
}ul.item-list li h5 span.small {
font-weight: normal;
font-size: 11px;
}/* > Item Tabs
*/div.item-list-tabs {
clear: left;
overflow: hidden;
margin: 25px -19px 20px -19px;
background: #eaeaea;
}
div.item-list-tabs ul li a {
text-decoration: none;
}div.item-list-tabs ul {
width: 100%;
}
div.item-list-tabs ul li {
float: left;
margin: 5px 0 0 5px;
}
div.item-list-tabs#subnav ul li {
margin-top: 0;
}div.item-list-tabs ul li:first-child {
margin-left: 20px;
}div.item-list-tabs ul li.last {
float: right;
margin: 7px 20px 0 0;
}
div.item-list-tabs#subnav ul li.last {
margin-top: 4px;
}div.item-list-tabs ul li.last select {
max-width: 175px;
}div.item-list-tabs ul li a,
div.item-list-tabs ul li span {
display: block;
padding: 5px 10px;
text-decoration: none;
}
div.item-list-tabs ul li span {
color: #aaa;
}div.item-list-tabs ul li a span {
display: inline;
padding: 0;
color: inherit;
}div.item-list-tabs ul li.selected a,
div.item-list-tabs ul li.current a {
background-color: #fff;
color: #555;
font-weight: bold;
-moz-border-radius-topleft: 3px;
-webkit-border-top-left-radius: 3px;
-moz-border-radius-topright: 3px;
-webkit-border-top-right-radius: 3px;
}
ul li.loading a {
background-image: url( ../images/ajax-loader.gif );
background-position: 92% 50%;
background-repeat: no-repeat;
padding-right: 30px !important;
}
div#item-nav ul li.loading a {
background-position: 88% 50%;
}div.item-list-tabs#object-nav {
margin-top: 0;
}div.item-list-tabs#subnav {
background: #fff;
margin: -15px -19px 15px -19px;
border-bottom: 1px solid #eaeaea;
min-height: 35px;
overflow: hidden;
}div.item-list-tabs ul li.feed a {
background: url( ../images/rss.png ) center left no-repeat;
padding-left: 20px;
}/* > Item Body
*/.item-body {
margin: 20px 0;
}span.activity, div#message p {
display: inline-block;
font-size: 11px;
font-weight: normal;
background: #FFF9DB;
border-bottom: 1px solid #FFE8C4;
border-right: 1px solid #FFE8C4;
color: #ffa200;
padding: 1px 8px;
margin-top: 6px;
text-decoration: none;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}/* > Directories (Members, Groups, Blogs, Forums)
*/div.dir-search {
float: right;
margin: -37px 0 0 0;
}
div.dir-search input[type=text] {
padding: 4px;
font-size: 12px;
}/* > Pagination
*/div.pagination {
margin: -15px -20px 9px -20px;
border-bottom: 1px solid #eaeaea;
padding: 10px 20px 10px 20px;
color: #888;
font-size: 11px;
height: 16px;
}
div.pagination#user-pag, .friends div.pagination,
.mygroups div.pagination, .myblogs div.pagination, noscript div.pagination {
background: #f8f8f8;
border: none;
padding: 8px 15px;
}div.pagination .pag-count {
float: left;
}div.pagination .pagination-links {
float: right;
}
div.pagination .pagination-links span,
div.pagination .pagination-links a {
font-size: 12px;
padding: 0 5px;
}
div.pagination .pagination-links a:hover {
font-weight: bold;
}
`In BuddyPress 1.2.5, another attempt was made to provide us all with built in hooks we can use to tap into BuddyPress’s core loading and setup processes.
These changes appear in bp-loaded.php and bp-core.php. There are now several different actions you can attach your plugin to, depending on when exactly you need to load your code.
The main action that gets this ball rolling is called ‘bp_loaded’. It is loaded very late attached to the WordPress action ‘plugins_loaded’, at priority 20. This is to allow any old plugins that used plugins loaded the opportunity to continue to load themselves ahead of BuddyPress.
You can choose to attach your functions early or late to ‘bp_loaded’ depending on your needs.
The first action attached to ‘bp_loaded’ is ‘bp_include’. This action is intended to be used for including your files, and to attach your functions to the actions that follow it.
Next up is ‘bp_setup_root_components’ which components should use if they are adding a BuddyPress root component; I.E. ‘domain.com/groups’
Next is ‘bp_setup_globals’ which is where components actually set up all of their global properties into the $bp global.
Next is ‘bp_setup_nav’ which is how you attach your components navigation to the BuddyBar and the tabbed navigation area when viewing your profile.
Next is ‘bp_setup_widgets’ which is how you tell BuddyPress that your special component comes with extra widgets.
Lastly, is our old friend ‘bp_init’. It was moved to the end of the order so that your plugins have a place to modify existing BuddyPress core components after they have completely initialized themselves and hooked into all of the previous actions.
Plugin authors, this means that you will want to pay attention to when your plugins load which pieces of code, and make sure that you are not ahead or behind the curve.
This also means that if you’re using a heavily modified BuddyPress installation, it’s possible non-compliant plugins might not behave, so as always take extreme care when upgrading your BuddyPress installation and be sure to back everything up before giving it a go.
Thanks everyone and please report any issues you have pertaining to these new actions/hooks here so I can keep track of anything major.
Topic: The Chemistry Book
Site URL: http://www.thechembook.com
Site creation date: April 7, 2007
Software installed: WordPress 3.0. , BP 1.2.5, MediaWiki 1.15.1, Moodle 1.9.9+TheChemBook.com would not be possible without BuddyPress and all of the wonderful help on this site.
History
TheChemBook started as a MediaWiki installation in April 2007. Each year students provide feedback for what they need or want on the site. During the Winter break of 2008-2009, a forum plugin for MediaWiki was installed (removed with BP installation). At the end of the 2009 school year, students suggested a better news area and so WordPress was installed on the front end. During the fall 2009, students asked for better uploading of files (and calendar) and so Moodle was installed. Approximately two weeks ago I asked the students why they were not interacting and discussing the wiki articles.BuddyPress
BuddyPress was installed about two weeks ago with a strong negative response. Many students complained about poor navigation, confusion for purpose of certain areas, and a strong dislike for the registration as well as login process. In response, a child theme was created to modify the navigation tabs, a landing page was created for explaining several areas of the site, and many plugins were installed to enhance the site.Plugins
Currently sixteen (16) plugins are installed. These includeAnnounce Group
Profile Field Setup
BuddyPress Like
BP CubePoints
BP Album+
Welcome Pack
Forum Extras
Forums-Move Topic
Invite Anyone
Live Chat (Ajax)
Restrict Group Creation
Facestream
Tweetstream
BuddyPress sitewide activity widget
oEmbed for BP
User Name AvailabilityWhat helped the most?
Critical to the success was learning how to use a child-theme and adding an image to the header, helping students understand the site was just like the “old” one….The first plugin to help the site really grab students’ attention was the CubePoints integration. For some students, interaction occurred (occur) because they wanted extra credit assigned by the CubePoints.
The second plugin was the Profile Fields because it became necessary during registration to distinguish between my students and students in several other teachers’ classes.
Third, integration of login for MediaWiki and WP helped students who still rely on searching the wiki but wanted to interact on the front BP side.
Fourth, groups expanded as several kids realized that they could use the site to discuss their projects. I shut this off after a few kids abused the groups and were just joining everything – as well as creating dozens of groups (for no reason).
Challenges
Some students are still struggling with navigation, however, many students have now stated the changes in tabs and addition of the sidebar sub-navigation helps tremendously. The big problem I see is that the MediaWiki installation doesn’t have the same exact navigation. I’m not good with CSS and cannot seem to change the drop down on MediaWiki to look like the BP navigation.Removal of groups and the about page limited unnecessary pages but I think the CD avatar bubble (when it works with WP 3.0 and BP 1.2.4) will be a good add-on to find other members.
Some students do not understand the activity stream – and so I’ve added hints to the top of the tutoring page as well as the activity stream.
On Friday, several students explained that they use their iPhone to navigate the site. I haven’t checked the theme for mobility.
How can you help?
What would you suggest is changed so that more students become comfortable with the website? For example, students stated the site was “not inviting” because “there are too many words.” I’m not an artist – so maybe you have a suggestion on how to make the landing page “more inviting.”Also, the site expansion to BP also got me to think chemistry students from other schools might take interest (don’t know if this is real) – and so a few groups were added for them too (including a college group). Maybe you have some ideas there …
Maybe you see a huge glitch – maybe something is terribly out of place and is leading to student confusion.
Thank you all for your positive (and negative) feedback. I look forward to enhancing the site even more!
Topic: Selective Signups
Hi, I’ve also posted this on the WPMU support forum – I suppose this is an overlapping issue. I’m quite familiar with WP, but still relatively new to WPMU/BP. So I’d *really* be grateful for any hint.
I’ve just installed WP 3.0 and I’m experimenting with the wpmu/multisite option and buddypress. I’m trying to have a second blog as a community blog that is open to all members while the main blog is only edited by a group of editors.
So I have created a second blog, and I tried to create new user accounts for the second blog, but I ran into trouble. So I’ve spent a couple of hours to realize that doing what I want to do is hard in WP/MU/BB.
I basically want users to have an extended profile and the ability to blog in the community blog. Yet I had to realize that it’s practically impossible to restrict new members to their profile and the community blog dashboard. Once they’re signed up, they will automatically have access to either the main dashboard or a “dashboard site” dashboard in addition to the one they can write for.
Searching the web and the WP forum I found the following code that I put into wp-content/mu-plugins –
`
add_action( ‘wpmu_new_user’, ‘ds_new_user_meta’, 10, 2);
add_action( ‘wpmu_new_user’, ‘ds_new_user_meta_too’, 99, 2);function ds_new_user_meta($user_id) {
add_user_to_blog(‘4’, $user_id, ‘contributor’);
// adds every new user to blog_id 4
}function ds_new_user_meta_too($user_id) {
remove_user_from_blog($user_id, 1);
//removes user from the main blog
}
[/CODE]`This code is supposed to add the new user to the blog with the ID 4 and remove the new user from the main blog. Alas, it doesn’t work as supposed to.
I can *manually* assign “no role for this blog” to the new user *after* the user was created, but I’d want this to happen immediately. Basically, I don’t mind the single database for users as long as community blog users cannot ever access the main blog’s dashboard or aren’t confused by a redundant dashboard blog when all they need is an ability to edit their profile and write on the community blog – if possible even via front-end editing.
Manually assigning “no role for this blog” randomly works for hiding the main blog entry from the BuddyPress navigation bar. I’ve also created a role “member” (using the members plugin) without *any* privileges and was able to choose it as default new user role in the superadmin network options, but when I signed up a user, the new user still appeared as contributor. I had hoped that the new user would appear as “member” in the main blog and as contributor in the secondary blog – added by the first part of the code cited above.
Didn’t work.
And now I’m a bit lost and I think I’ve read pretty much everything Google has to offer on this matter – hopefully someone here can provide some help!
Thanks in advance![CODE]
add_action( ‘wpmu_new_user’, ‘ds_new_user_meta’, 10, 2);
add_action( ‘wpmu_new_user’, ‘ds_new_user_meta_too’, 99, 2);function ds_new_user_meta($user_id) {
add_user_to_blog(‘4’, $user_id, ‘contributor’);
// adds every new user to blog_id 4
}function ds_new_user_meta_too($user_id) {
remove_user_from_blog($user_id, 1);
//removes user from the main blog
}
[/CODE]`This code is supposed to add the new user to the blog with the ID 4 and remove the new user from the main blog. Alas, it doesn’t work as supposed to.
I can *manually* assign “no role for this blog” to the new user *after* the user was created, but I’d want this to happen immediately. Basically, I don’t mind the single database for users as long as community blog users cannot ever access the main blog’s dashboard or aren’t confused by a redundant dashboard blog when all they need is an ability to edit their profile and write on the community blog – if possible even via front-end editing.
Manually assigning “no role for this blog” randomly works for hiding the main blog entry from the BuddyPress navigation bar. I’ve also created a role “member” (using the members plugin) without *any* privileges and was able to choose it as default new user role in the superadmin network options, but when I signed up a user, the new user still appeared as contributor. I had hoped that the new user would appear as “member” in the main blog and as contributor in the secondary blog – added by the first part of the code cited above.
Didn’t work.
And now I’m a bit lost and I think I’ve read pretty much everything Google has to offer on this matter – hopefully someone here can provide some help!
Thanks in advance!
Topic: Skysa Footer Bar
Im here to move a plugin forward. if you know about skysa.com you then know how great of an addon it really is. Did you know they have an api for it?
Here is the code
<script type=”text/javascript”>
var _SKYAUTH = {
loginUrl:’http://techtronic7.net/wp-login.php’,
memberNick:’REPLACE WITH CONTEXT CODE TO GET MEMBER USER NAME’,
memberId:’REPLACE WITH CONTEXT CODE TO GET MEMBER ID’,
profileUrl:’REPLACE WITH MEMBER PROFILE URL’,
photoUrl:’REPLACE WITH MEMBER PHOTO URL’
};
</script>
This is called sky auth the api behide skysa. learn more here http://www.skysa.com/forums/?page=post&id=A8D63165-B5C1-493A-AF16-A2C67570AEBE
What you may not know there no currently as of this post no working api for wordpress for skysa.
This is what I want to change. The only one who has got this to work has only made it for vb. He is now working on phpbb3. We need to work on wordpress. There is no support for sky auth how ever there is support for the skysa bar. http://www.techtronic7.net is using the skysa bar but we have not been able to get sky auth to work.
Here is what you can do with skysa
Integrated Membership – Skysa is able to offer deeper apps because our bar has Member Integrated Features. We will have 100’s of Social Apps you can use with your website that are possible thanks to intergraded membership.
* Integrated Member Login and Registration, this create a rich user experience and allows you to collect valuable member information.
* Micro Profiles with profile photo, member about me and much more. Customizable!
* Member management page for managing member accounts with full access to all member information including emails.
* Use your own Members Database. When your members are logged into your website they are logged into the bar.
* Members on Ning, and Spruz are automatically logged into the bar. Thus allowing for a richer member experience.
Attractive User Experience – We are the only bar platform with App Windows that can be Dragged, Resized and Moved inside your page.
* Clean Bar Design that makes it easy for your visitors to find an option they are looking for.
* Easy to use Bar Style Designer with real time style bar preview. This allows you to closely match the bar style to the look and feel of your website.
* Several Predesigned Bar Themes that can all be easily customized by you.
* Visitors can Drag, Resize and Move your App Windows
* Bar Collapse Options. Users can collapse the bar or you can collapse it for them.
* Tools Menu for collapse mode for easy access to your installed Apps without having to expand the whole bar. Plus you can turn off Bar Collapsing
* Go Completely White Label, removes all Skysa Branding from your bar.
Skysa App Collection
Currently we have 27 Apps and growing. You can use and install the Apps that best fit your needs. It’s up to you! We are adding new Apps Weekly, Go to your Get Apps page to add Apps to your bar. We will have a developer API ready soon.
Announcements
Alert your website visitors when there is something new to tell them. This App allows you to add announcements/notices that display automatically 1 time per person when something new is posted.
Chat Room
This Chat Room App is launch-able chat room and takes advantage of our integrated member system. The Chat Room features a list of who’s online in the room, a counter in the bar that displays the number of people in chat and Instant Messaging just to name a few of the features.
Comments
Our commenting App is very customizable and takes advantage of our integrated membership system. Control rather visitors or only members can comment, select the number of comments per page, and more! Also has a comment liking feature so people reading a comment can like it.
Custom App
For Advanced Users Only. This App allows you to configure your own custom App for use in the bar. Copy and paste a Widget,HTML, Text or custom Javascripting.
Facebook Fan Page
This app displays information directly from your Facebook Group. Add this App to bring your social spaces a little closer to home.
Flickr Photo Gallery (Cooliris)
This is a photo wall that allows you to display photos from a flickr account
Friends IM App
With our Friends Instant Messaging App your members see a list of their friends that are online that they can IM. Currently this App only works on websites powered by the Spruz Platform.
Games (HeyZap)
Games powered by HeyZap
Games (Hooked Media)
Games powered by Hooked Media Group
Interactive Sharing (Beta)
Interactive sharing allows people on your website to comment, and share pieces of your websites content. Users can highlight blocks of text, images, and videos, then comment, and post it to their favorite sharing website (Facebook, Twitter, Etc). When people click on the shared link users will see the content that was shared highlighted right on your website with the option to comment on it. This App features reporting that shows the links shared, comments, clicks and much more!
Map and Directions (Google)
This app allows users to see a map and get directions to an address of your choosing. The user can also print out the directions.
Navigation Box
Adds a navigation menu to your website. Create links to sites you love, other pages on your site or Blog RSS feeds.
Quick Links
Offer quick launch links on your bar. Top Features daily click tracking, and launches a link while keeping a bar at the top for quick navigation back to your website.
Random Post
Help people discover your website news with our Random Post App. Enter your RSS feed and our system does the rest to pick a redirect your visitor random entry from your Blog.
RSS Feed
This App allows you to enter an RSS feed and display summary information from the feed in and App Window.
RSS Ticker
This App displays a Ticker (Scroll Message) from any RSS feed on your bar. Features include Entry Preview that shows some text from the entry and an image that auto pans if it is to large. In the App Settings you can set how wide the ticker displays on your bar, the number of entries to display, window open options for when an entry is clicked, and the loading text. You can install up to 3 RSS Tickers on your bar.
Scroll To Top
This is a simple App that adds a button for users to quickly scroll to the top of your page.
Search
Powered by Google Search allows your visitors to find content they are looking for within your website.
Share (By Addthis)
Allow your website to go Viral with Sharing. This uses the Sharing Service AddThis to offer your visitor with a hugh list of ways they can share your website.
Simple Text Ticker
This App displays a Ticker (Scroll Message) of any text you choose. In the App Settings you can set how wide the ticker displays on your bar and the speed you want it to scroll(including no scrolling). When the ticker is hovered over the tool tip shows the full text.
Translate
Translates your website text to a language that is more familiar to your website visitor. You decide how many languages you want to offer your website visitor to pick from.
Twitter
Get Twitter Connected on your website, post tweets directly from your webpage or blog. Features your Twitter feed, Converstation feed and Twitter Search
Video Chat (TinyChat)
Cool Video Chat room that supports Web Cams and Audio powered by TinyChat. This App Supports Skysa Membership Systems, Members logged into your website automaticly can join chat without having to log into chat again.
Voting Poll
Allow your members to vote on hot topics that you create with this Voting Poll App. Key features include Poll History, Auto Poll Closing and More!
Who’s Online IM
This Who’s Online app features a list of who’s online currently, a counter in the bar that displays to everyone with the number of people online and integrated Instant Messaging and co-browsing.
YouTube Video Wall (Cooliris)
Powered by Cooliris this App displays media from a your YouTube Channel on an interactive 3D wall.
YouTube Videos
Do you YouTube? If so this App is for you, automatically grabs your newest videos from your YouTube Channel and displays them in a movable box. Shows the video image, description, and title. Plus when a video is clicked it displays directly on your website!
(mod note: removed affiliate link and changed the title of the topic to be more reflective of the actual post)