Search Results for 'wordpress'
-
AuthorSearch Results
-
July 19, 2012 at 9:43 am #137586
In reply to: bp_activity table is empty
Jeff
MemberHi,
The error log I posted encompasses the errors that have been generated while I was micking around with reinstalling buddypress and bbpress.
I have both bbPress and Buddypress installed currently, and I also have the Activity Streams component enabled.
However, a ticket from way back three years ago explains what I think the problem is. https://buddypress.trac.wordpress.org/ticket/241
If I go to my profile, and post an update on my profile, this gets saved in bp_activity. But anything new topic creation or reply on my bbPress forum, it DOES NOT get saved in that table. So it looks to me that stuff created in the BuddyPress side gets saved in bp_activity, but stuff from the bbPress side do not.
Is there any way so that user activities from bbPress gets saved to this BuddyPress table?
=========
== EDIT ==
=========
I have tried deactivating all plugins apart from bbPress and BuddyPress. Also, switched to the theme that came with BuddyPress. SiteWide Activity Stream is still limited to just BuddyPress activities.Note that I have User Groups and Discussion Forums (within Groups) DISABLED, which is how I do want it, as we want the community as simple and straighforward as possible while still enjoying the awesome features like messaging from BuddyPress
I also imagine that if I were to create Groups in BuddyPress, and then post messages in Forums of that Group, it will get posted to the Activity Stream. But I really do not want Groups.
I understand that this may very well be how the plugin was designed to work, but this is a plea for a little help now
July 19, 2012 at 7:57 am #137580CJ Kruger
ParticipantNo, where your navigation is ( most probably in header.php ), place the last code snippet i posted.
Don’t install the plugin i posted, it was simply to give you an idea of the bp member links
July 19, 2012 at 7:44 am #137579kdforf
Participantsorry , i didnt get it , if the plugin is activated and i paste this second code somewhere in the theme it will show that menu?
July 19, 2012 at 7:22 am #137577CJ Kruger
ParticipantThe plugin i posted was a guide line, place this somewhere within your theme: http://pastebin.com/JLjMynR0
If the user is logged in, it will show up. It is a link to the users @Mentions
July 19, 2012 at 7:16 am #137573kdforf
Participantunfortunately none of them worked
July 19, 2012 at 1:01 am #137568In reply to: How To add ‘Community’ dropdown in a menu
@mercime
ParticipantWP themes which are updated to latest WP versions like Twenty Ten and Twenty Eleven plus BuddyPress’ own bp-default theme have custom menu functions you’ll find in Appearance > Menus.
Just create a link named “Community” and add whatever links you want under it.
e.g. for bp-default theme or its child theme https://codex.buddypress.org/extending-buddypress/how-to-set-up-your-main-site-navigation-using-the-built-in-wordpress-menus/July 18, 2012 at 11:33 pm #137566In reply to: Activate And Register Tabs Not Visible
Hornet1968
Member@mercime, I am using the standard default template and have gone into the general settings of wordpress and checked the box for anyone to be a subscriber. Still nothing.
July 18, 2012 at 10:52 pm #137564July 18, 2012 at 10:31 pm #137562In reply to: Activate And Register Tabs Not Visible
@mercime
Participant@hornet1968 if you’re using a WP theme, you also need to install/activate the BP Template Pack plugin and go through Appearance > BP compatibility process. We have a list of “template-packed” WP theme near the bottom of this page https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
July 18, 2012 at 8:24 pm #137551In reply to: I need a PHP code IF user-level
Roger Coathup
ParticipantUser levels were replaced by roles in WP 2.0, and were deprecated in 3.0 — so, checking wp_user_level and such like shouldn’t be relied on
July 18, 2012 at 7:55 pm #137546In reply to: I need a PHP code IF user-level
meg@info
Participanthi,,
global $current_user;
get_currentuserinfo();
$userLevel = $current_user->wp_user_level;switch ($userLevel){
//https://codex.wordpress.org/Roles_and_Capabilities
case 0: $_SESSION = 2; break; // member
case 1: $_SESSION = 2; break; // Contributor
case 2: $_SESSION = 1; break; // author
case 3: $_SESSION = 1; break; // author
case 4: $_SESSION = 2; break;
case 5: $_SESSION = 2; break;
case 6: $_SESSION = 2; break;
case 7: $_SESSION = 2; break;
case 8: $_SESSION = 0; break;
case 9: $_SESSION = 0; break;
case 10: $_SESSION = 0; break; // admin
default: $_SESSION = 3; // guest
}and read this https://codex.wordpress.org/Roles_and_Capabilities
July 18, 2012 at 7:52 pm #137544CJ Kruger
ParticipantThis was from a plugin I developed for a site, you should find just about everything you need in there, and if not have enough of an understanding to fill in any ones that aren’t covered: http://pastebin.com/xC1jd4vv
also check out: http://wpmu.org/daily-tip-how-to-add-all-navigation-links-to-the-buddypress-admin-bar/
and: https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
next time wait a day, I’d say that’s the average response time, if it’s sooner, be grateful!
July 18, 2012 at 7:50 pm #137543Roger Coathup
ParticipantAre you being serious? You are asking just 1 hour later, why no-one has responded to your question?
You can’t add conditional menus / menu options via the WordPress menu settings in wp-admin.
If you want conditional menus, and those with PHP driven dynamic links (e.g. changing for the current user), you will have to code them in your header / navigation templates.
July 18, 2012 at 7:46 pm #137542In reply to: I need a PHP code IF user-level
Roger Coathup
ParticipantAre you using a plugin to create your user levels? If so, which one? WordPress supports roles and capabilities for users by default, but doesn’t have numeric levels.
If s2member have a look at their documentation for if queries on member level.
July 18, 2012 at 7:06 pm #137540In reply to: Take Freshness off the forum directory
@mercime
Participant@b1gft there are a couple of simple ways to go about deleting “freshness” from group forums
1. Simplest of the rest -> Just add the following at the bottom of your theme’s style.css file
`span.time-since { display: none !important; }`or 2. Copy over https://buddypress.trac.wordpress.org/browser/tags/1.5.6/bp-themes/bp-default/forums/forums-loop.php to your themes /forums folder, open it up and delete line #85
or 3. filter bp_the_topic_time_since_last_post in functions.php
July 18, 2012 at 6:49 pm #137539In reply to: How can I get rid of this?
newpress
ParticipantSpecs
1. WordPress latest
2. Buddypress latest
3. Frisco theme
4. Use bbpress 2.0 for group forums
5. Use “GD bbpress Tools” plugin to have a signature. (its sad that bbpress doesnt have such a basic feature)For the second time in my entire life, I had a look at PHP and CSS. I hope I can cope with. Till then which is the “Hitchhiker’s Guide to the Galaxy”?
July 18, 2012 at 6:37 pm #137538kdforf
ParticipantWhy nobody is helping me?
July 18, 2012 at 4:19 pm #137524In reply to: Register Page Problem
Lacey
MemberThanks for the reply @karmatosed
On the Changelog for the Suffusion BuddyPress Pack on the WordPress page it says they’ve added support for BuddyPress 1.6.
https://wordpress.org/extend/plugins/suffusion-buddypress-pack/changelog/July 18, 2012 at 3:22 pm #137519shanebp
Moderator@djpaul ticket created:
https://buddypress.trac.wordpress.org/ticket/4362July 18, 2012 at 2:56 pm #137515In reply to: Using BuddyPress with incompatible themes
Tammie Lister
ModeratorYou can adapt a theme to work with BuddyPress, your first port of call for that is to use this https://wordpress.org/extend/plugins/bp-template-pack/
July 18, 2012 at 2:50 pm #137514In reply to: Register Page Problem
Tammie Lister
ModeratorHi, have you checked if the latest pack on Suffiusion supports the latest WordPress/BuddyPress? I see this:
WordPress 3.0 or higher
Suffusion 3.6.8 or higher.
BuddyPress 1.2 or higherTo me, that may be the issue is that it is not compatible. I’d probably suggest contacting the pack authors to confirm.
July 18, 2012 at 1:52 pm #137510In reply to: Front Page like Facebook
juanmaguerrero
ParticipantHi, @raminjan you can certainly achieve that, both making it yourself working at code level or (what I suggest) start with a plugin that achieves the “private community” functionality and set yourself a “front page” (you’ll use a modified version of the login page I guess
).Here are some helpful links on how to do what you need:
http://wpmu.org/buddypress-news-create-your-own-private-buddypress-community/
http://www.1stwebdesigner.com/tutorials/buddypress-collaboration-system/
https://wordpress.org/extend/plugins/buddypress-private-community/
https://wordpress.org/extend/plugins/private-buddypress/Hope it helps! cheers,
-JM
July 18, 2012 at 12:06 pm #137500Paul Wong-Gibbs
KeymasterAnd if someone could be extra kind and create a trac ticket for this over at https://BuddyPress.trac.WordPress.org — be sure to link back to this discussion — I’ll be your BFF.
July 18, 2012 at 11:39 am #137489Roger Coathup
ParticipantIt’s straightforward to do in BuddyPress – @hotsitez has already pointed you to the basic function for echoing profile field values (which is also documented in member-header.php), and I’ve told you which files you need to look at.
As a PHP coder, you should be able to walk through those files to find the appropriate points in the code to hook actions in or modify your templates. You should also be able to search the BuddyPress codebase to find profile field functions you can call — start with the one @hotsitez gave you.
You can also look on the documentation (codex) area of this site for information about the profile field loop which may help you further – and point you to how base and other profile field groups are handled.
[Edit: and, if you want to learn about the action, filtering paradigm for development, you can find introductory articles on the wordpress.org codex]
July 18, 2012 at 11:06 am #137488frank tredici
MemberWell, yes and no @hotsitez….
Here’s what I have:
I went into WordPress/BuddyPress via wp-admin — then navigated to Buddy Press > Profile Fields
On the Extended Profiles Fields page, I added a “Start Date” for our members to populate which is the date they started with our company. Then on the Base (Primary) tab on that page, I got my extended field positioned where I want it to display.
Perfect (so far).
Now what I want to do is apply some PHP to calculate how many months and years the person has been with our company and parenthetically display it next to the start date value on the member’s profile page in Buddy Press when people view a person’s profile.
How To Do That?
So where/how in member-header.php do I add that bit of PHP code? Note, I am a PHP coder, so I have no problem producing the code to make the calculation — I am not asking for that guidance. I simply need to know (a) what script/document file do I go to to add my code, (b) where in the page production stream in that script/document file do I add my code, and (c) how do I grab the start date value that is stored in the BuddyPress DB?
This maybe too complicated for Buddypress to do, but I am willing to give it a shot.
[Note: I toyed around with member-header.php per @hotsitez suggestion. The profile area that this script impacts is the upper “header’ area for a member. I am interested in getting into the flow of the Profile > Base page.]
-
AuthorSearch Results