Search Results for 'custom activity page'
-
Search Results
-
Topic: mod_rewrite issue
Hey everyone,
I have a BuddyPress installation working pretty well at http://pmasocial.com. I am running WPMU version 2.8.6 and have configured it to use subdirectories. The installation is in the root of the site’s web directory. I am running BuddyPress 1.1.3, and both WPMU & BP were fresh installations. I am using a custom theme but have not modified the core files in any way. I have custom functions. I also have bbPress installed but have no idea how to determine which version.
The one problem (I’m aware of) right now is that there is evidently an issue with either the .htaccess file or mod_rewrite itself, which causes a redirect to the 404 page whenever I attempt to delete an item from my activity feed at this URL:
http://pmasocial.com/activity/delete/14?_wpnonce=b3416fe825
Below is the content of my .htaccess file:
<br />
<IfModule mod_rewrite.c><br />
RewriteEngine On</p>
<p># Tom: getting max redirects exceeded errors in apache error_log.<br />
# Increasing from default of 10 in attempt to troubleshoot.<br />
RewriteOptions MaxRedirects=35</p>
<p>RewriteBase /</p>
<p>#uploaded files<br />
RewriteRule ^(.*/)?files/$ index.php [L]<br />
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*<br />
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]</p>
<p># add a trailing slash to /wp-admin<br />
RewriteCond %{REQUEST_URI} ^.*/wp-admin$<br />
RewriteRule ^(.+)$ $1/ [R=301,L]</p>
<p>RewriteCond %{REQUEST_FILENAME} -f [OR]<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteRule . - [L]<br />
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]<br />
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]<br />
RewriteRule . index.php [L,QSA]<br />
</IfModule></p>
<p><IfModule mod_security.c><br />
<Files async-upload.php><br />
SecFilterEngine Off<br />
SecFilterScanPOST Off<br />
</Files><br />
</IfModule><br />I am also getting this error from Apache (1.3):
Request exceeded the limit of 10 internal redirects due to probable configuration error.
I have googled and searched the forum but haven’t been able to solve this yet on my own. Any help would be greatly appreciated. Thanks in advance.
Tom
This is my third Post here within 24 hours and I feel I am spamming the forums already – so sorry about this!
I want to add a class to the member links in the activity stream so I can direct the output to an ajax layer rather than reloading the page.
I am making progress in changing existing classes of links to my own (unfortunately the member link does not have any class so I will have to fiddle around with my preg_replace a bit futher)..
This Code:
<?php
add_filter( 'bp_get_activity_content', 'add_ajax_class', 1 );
function add_ajax_class( $content ) {
$content = preg_replace('/class="([^"]*)"/i', 'class='AjaxDivBox_Link'', $content);
return $content;
}
?>is what does it for me in the bp-customs.php in the mu-plugins directory however the code changes the link on the FULL site and not only in the activity content.. Is there something I overlooked??
I read over this but didn’t find a clear answer as to whether the activity stream can be filtered by blog. http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
I’m mostly looking for the following in one list:
___ commented on post ___
___ posted ___ (post/page)
All post-activity for all members of a blog who are Contributors or better, and all comment activity for all members in one list (with bp-avatars). I’d also like to be able to have tabs to filter one or the either (as well as additional items below).
I’d also like to associate the blog with a group, so that it can incorporate the activity there as well (http://trac.buddypress.org/ticket/567):
___ joined (the group) ___
___ wrote ___ on the wire/wall
etc.. The feed would still go on the blog.
“Group wide activity” would ideally show blog-related activity across several associated blogs.
The widget could then have the options:
( ) sitewide (global)
( ) this blog only
( ) this blog and the group ___
( ) this blog, the group ___ and all blogs in the group ___
The last option would allow readers of blog X to see what is happening on blog Y from a filtered activity feed.
What is possible (easy-ish) now with a little bit of code?
What should I wait for the next point release?
===
Always willing to $ponsor development if this is something you think you can code.
Topic: CLASSIFIEDS COMPONENT news
Hi…Big news here.
But (in parts) bad news :
I was cleaning the code of my plugin, which is at this point almost finished.
I was trying to find a reliable way to handle categories and tags : my code is working but categories and tags are in 2 different custom tables (the code is a little dirty); there is no admin page to manage them…
Well, I was looking at how WordPress was handling them because I wanted the code to be strong enough to keep maintaining my component in future easily.
Then I start to look at the taxonomy system.
Then I saw that WP 2.9 will include custom post types…
And then… I’m half disappointed, half excited :
Half excited, because “custom post types” means that you will be able to define new post types (-actually, there is just “pages” and “posts”), like, let’s say … “classifieds”.
That means that you will be able to use the WP dashboard to write a classified like you write a post, and use categories and tags for those classifieds as you do for a post. Those categories or tags will not be those you use for your posts but custom ones just for your “classifieds” post type.
The wire for a classified is no more necessary as you can will be able to use the core comments system with your classified.
Idem for pictures that you will be able to upload and attach directly from there.
That also means that you will be able to search,filter and display those classifieds with the same functions that you do for your posts.
Well, well, that means that this is a big step for WordPress…
But this is also a disappointment for me because that means that lot of the time (several months so far – not full time of course, and i’m an autodidact) I spent to write my plugin was useless as now, the WP core will be able to do by itself a lot of what I wrote in my plugin.
So I think that it would be a wide decision to wait that the custom post type stuff came and to… almost start writing a new plugin from scratches.
Yes, some pieces of my work will still be reusable to make all this “buddypress-friendly” (attach classifieds to groups, notifications, etc), but 95% of my actual code will potentially be useless as WP core function will do the same, and better.
But from what I read, we don’t know exactly when all that stuff will came. Some parts of the functions will be available in WP 2.9 but it’s not sure that the whole thing will be usable in that version, neither we know when WPMU 2.9 will be out : in the trac, they say
I really see no reason we cannot get this into 2.9 since a large majority of the work has been completed already. Even if we only get some of the basic functionality of this into 2.9 it would still be a big help and a basis of something to build off of for 3.0.
.
Well… think the best thing to do should be :
STEP 1 :
Sleep. Cry. Sleep. Howl.

STEP 2
-restart from scratches if I feel the courage for it

-write a new plugin that creates a new blog just for Classifieds at the plugin’s activation.
-All the members of the BuddyPress installation would be members of that blog and so have the capability to write posts.
-Use the posts on that blog as the “classifieds” displayed in the BuddyPress site.
-Control the data sent – number of images used in the post, number of chars, post boxes displayed, etc).
-Add the BP features for notifications, activity, “attaching” classifieds to groups and so.
-use that blog as the basis of my plugin; then
STEP 3
This will be able to make the component ready for WP 2.9 or WP 3.0…
There shouldn’t be lots of stuff to modify in the code. change the post types of the posts in the custom blog to “classifieds”, move them to the main blog and add specific capabilities to decide who can do what. Example : you could be able, as subscriber, to write classifieds but not posts or pages.
And why not differenciate classifieds written on the main blog and classifieds written on a user’s blog, if any (ex. company blog).
STEP 3b
Add a BP-friendly posting system ?
So here’s where I am.
As I said I’m feel a little sorry.
Maybe I should have though of handle the data from my component from a blog from the beginning. But that when we make mistakes that we go further !
The good thing is that I learned a lot about WordPress & BuddyPress and that I know now what I can do with it, and i’ll release my own BP project soon or later. And that once that custom post type system will be available, writing the classifieds component should be a piece of cake, or almost.
If I feel it, i’ll start to rewrite it soon as I explained it in step 2. But I have a lot of work now so I’m not sure I will be able to do this at this moment. I’ll tell you about it in a few days.
Anyway, RIP (for the moment) my-custom-component
You can still see some pictures of the work achieved here : http://dev.benoitgreant.be/2009/11/18/classifieds-component-postponed/
Topic: Customizing the members page
Hi,
I’d like the members page to have a more creative layout.
Is it possible to show like 3 members on each row instead of just showing 1 member on each row?
Also on each row, I’d like each of the 3 member’s thumb, name and activity-stamp to have a gray square block as “background”, if you know what I mean.
How is this possible?
Thanks.
Getting fatal error in upgrading BP that I’ve not found in forum search (long post, the “help us help you” information is lengthy)
I followed the instructions in this post:
http://codex.buddypress.org/getting-started/upgrading-from-10x/
2) Which state to deactivate all BP-related plugins (I only had one, already deactivated)
3) I deactivated Buddy press
4) I downloaded latest version, uploaded it via FTP using Firezilla and overwrote the previous BP folder
5) Returned to plugins page to re-activate BP, which is when I received this Fatal Error:
Fatal error: Cannot redeclare bp_activity_install() (previously declared in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php:19) in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php on line 52
Steps 6 I haven’t attempted
Step 7: I was using default themes, but the instructions imply deleting bp-themes folder and etc. should happen *after* you reactivate BP.
I’ve looked through the forum and didn’t find another “fatal error” instance with this particular problem, so, as per: http://buddypress.org/forums/topic/trouble-upgrading, I’m creating a new thread
Here are the details pertaining to the “Help us Help you” questionnaire.
1. Which version of WPMU are you running?
Upgraded to 2.8.5.2 just prior to this
2. Did you install WPMU as a directory or subdomain install?
Directory
3. If a directory install, is it in root or in a subdirectory?
Directory
4. Did you upgraded from a previous version of WPMU? If so, from which version?
Yes, the immediate preceding version
5. Was WPMU functioning properly before installing/upgrading BuddyPress?
Yes
6. Which version of BuddyPress (BP) are you running?
it was 1.1.1, whatever the previous recent version was
7. Did you upgraded from a previous version of BP? If so, from which version?
See above
8. Do you have any plugins other than BuddyPress installed and activated?
When first attempting upgrade I did have non-BP plugins activated, but after first received error message, I restored my site, deactivated ALL plugins, but still received fatal error
9. Are you using the standard BuddyPress themes or customized themes?
Standard (only had replaced logo with our own, by adopting the default logo name)
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?
Not running BPress
13. Please provide a list of any errors in your server’s log files.
I can provide these if needed, but I think they’re preventing my post from showing up.
Getting fatal error in upgrading BP that I’ve not found in forum search (long post, the “help us help you” information is lengthy)
I followed the instructions in this post:
http://codex.buddypress.org/getting-started/upgrading-from-10x/
2) Which state to deactivate all BP-related plugins (I only had one, already deactivated)
3) I deactivated Buddy press
4) I downloaded latest version, uploaded it via FTP using Firezilla and overwrote the previous BP folder
5) Returned to plugins page to re-activate BP, which is when I received this Fatal Error:
Fatal error: Cannot redeclare bp_activity_install() (previously declared in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php:19) in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php on line 52
Steps 6 I haven’t attempted
Step 7: I was using default themes, but the instructions imply deleting bp-themes folder and etc. should happen *after* you reactivate BP.
I’ve looked through the forum and didn’t find another “fatal error” instance with this particular problem, so, as per: http://buddypress.org/forums/topic/trouble-upgrading, I’m creating a new thread
Here are the details pertaining to the “Help us Help you” questionnaire.
1. Which version of WPMU are you running?
Upgraded to 2.8.5.2 just prior to this
2. Did you install WPMU as a directory or subdomain install?
Directory
3. If a directory install, is it in root or in a subdirectory?
Directory
4. Did you upgraded from a previous version of WPMU? If so, from which version?
Yes, the immediate preceding version
5. Was WPMU functioning properly before installing/upgrading BuddyPress?
Yes
6. Which version of BuddyPress (BP) are you running?
it was 1.1.1, whatever the previous recent version was
7. Did you upgraded from a previous version of BP? If so, from which version?
See above
8. Do you have any plugins other than BuddyPress installed and activated?
When first attempting upgrade I did have non-BP plugins activated, but after first received error message, I restored my site, deactivated ALL plugins, but still received fatal error
9. Are you using the standard BuddyPress themes or customized themes?
Standard (only had replaced logo with our own, by adopting the default logo name)
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?
Not running BPress
13. Please provide a list of any errors in your server’s log files.
ERRORS:
[Sun Nov 08 15:08:41 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/wp-admin/plugins.php?deactivate=true&plugin_status=all&paged=1
[Sun Nov 08 15:08:43 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/wp-admin/plugins.php?deactivate=true&plugin_status=all&paged=1
[Sun Nov 08 15:08:44 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/wp-admin/plugins.php?deactivate=true&plugin_status=all&paged=1
[Sun Nov 08 15:08:51 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/wp-admin/plugins.php?deactivate=true&plugin_status=all&paged=1
[Sun Nov 08 15:08:51 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/wp-admin/plugins.php?deactivate=true&plugin_status=all&paged=1
[Sun Nov 08 15:08:52 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/wp-admin/plugins.php?error=true&plugin=buddypress%2Fbp-loader.php&_error_nonce=966100c537
[Sun Nov 08 15:08:53 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/wp-admin/plugins.php?error=true&plugin=buddypress%2Fbp-loader.php&_error_nonce=966100c537
[Sun Nov 08 15:08:53 2009] [error] [client 68.196.146.62] PHP Fatal error: Cannot redeclare bp_activity_install() (previously declared in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php:19) in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php on line 52, referer: http://barlimans.com/wp-admin/plugins.php?error=true&plugin=buddypress%2Fbp-loader.php&_error_nonce=966100c537
[Sun Nov 08 15:08:53 2009] [error] [client 68.196.146.62] PHP Fatal error: Cannot redeclare bp_activity_install() (previously declared in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php:19) in /chroot/home/barliman/barlimans.com/html/wp-content/plugins/buddypress/bp-activity.php on line 52, referer: http://barlimans.com/wp-admin/plugins.php?error=true&plugin=buddypress%2Fbp-loader.php&_error_nonce=966100c537
[Sun Nov 08 15:10:39 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0
[Sun Nov 08 15:10:40 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:40 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:40 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:40 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:40 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:40 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:40 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:43 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/
[Sun Nov 08 15:10:43 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/category/hall-of-regulars/
[Sun Nov 08 15:10:43 2009] [error] [client 68.196.146.62] PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0, referer: http://barlimans.com/category/hall-of-regulars/
Note: “hall of regulars” being where BP is
Hi everyone,
Is it possible to hardcode a widget into your homepage.. so that you can give it a custom width and are not limited to the widget sizes in your theme ?
I have a 3 Column layout but would like to have 2 columns at the top of my homepage which shows the SiteWide Activity Feed on the Left and the Paginated Site Wide Post (http://webscripts.softpedia.com/script/Modules/WordPress-Plugins/BP-Paginated-Posts-55471.html) plugin on the Right.
The left part is easy because that’s 1 big column and is widgetized but I need to hardcode the other widget before the actual 2 widget columns to make this work.. Any help would be greatly appreciated! And please keep in mind that I’m a total php n00b
I need some help guys and gals …
I am designing a custom theme, completely from scratch, for an install of WPMU, including BuddyPress. I’m running WPMU 2.8.4 right now and BP 1.1.1. What I’m trying to do doesn’t seem like it would be that hard. I’m just obviously not understanding the whole scope of what I need to know.
I basically need to load specific information into header/footer/content areas of various pages (including, but not limited to archives, 404’s, single posts, pages, buddypress pages like profile, activity, etc). My strategy has been to create custom header and footer files for each necessary case, then use an if … elseif … else statement in the main header.php/footer.php files to include the appropriate content.
While I seem to be able to get this work in many different occasions, blending the buddypress pages with the WPMU pages (particularly search, archive, and 404) has proven difficult. Apparently, BuddyPress pages like Profile, Activity, etc return true to the following WP Conditionals placed in my header.php – is_archive(), is_search(), and even is_404() if you can believe that.
I know this is dragging on, but please stick with me if you can, because I am highly frustrated. To make matters more confusing, once we have included the header, in this case headerHome.php, I then run an if … elseif … else statement to determine which of the main menu tabs should be set to active, and it always shows correctly.
I am totally befuddled by this. It seems that the two statements, which are essentially identical except for what info they return, should display the right content. Here are the two code examples:
From header.php
<?php
if ( is_home() ) {
include (TEMPLATEPATH . '/../ARHealthCareersFrameTheme/customHeaders/homeHeader.php');
} elseif ( is_single() ) {
include (TEMPLATEPATH . '/../ARHealthCareersFrameTheme/customHeaders/homeHeader.php');
} elseif ( is_page(array ('Why We\'re Here', 'ahecs') ) ) {
include (TEMPLATEPATH . '/../ARHealthCareersFrameTheme/customHeaders/homeHeader.php');
} elseif ( is_archive ) {
include (TEMPLATEPATH . '/../ARHealthCareersFrameTheme/customHeaders/homeHeader.php');
} elseif ( is_search ) {
include (TEMPLATEPATH . '/../ARHealthCareersFrameTheme/customHeaders/homeHeader.php');
} elseif ( is_404 ) {
include (TEMPLATEPATH . '/../ARHealthCareersFrameTheme/customHeaders/homeHeader.php');
} else {
include (TEMPLATEPATH . '/../ARHealthCareersFrameTheme/customHeaders/communityHeader.php');
}
?>From this code, all BuddyPress pages display the homeHeader.php file. Curiously, however, if I remove the is_archive, is_search, and is_404 lines, communityHeader.php loads correctly.
Here is the bit of code from homeHeader.php
<?php
if ( is_home() )
$mainMenuTab=0;
elseif ( is_single() )
$mainMenuTab=0;
elseif ( is_archive() )
$mainMenuTab=0;
elseif ( is_page(array ('Why We're Here', 'ahecs')) )
$mainMenuTab=0;
elseif ( is_search() )
$mainMenuTab=0;
elseif ( is_404() )
$mainMenuTab=0;
else
$mainMenuTab=2;
?>So, with my original header.php file, all BuddyPress pages show homeHeader.php instead of communityHeader.php. However, the variable $mainMenuTab will be set to 2, which means the code atop homeHeader.php is performing as I would expect, but not the code inside the header.php file.
Anyway, I know this is a lot to weed through, but I would greatly appreciate any thoughts you all might have as to why I am banging my head against the wall on this one. Things would be easier if the BuddyPress conditionals would perform as expected, but I have had no luck with the conditionals like bp_is_user_profile and others.
Am I just going about this task in the wrong way? Do I not really have a sound understanding of how to accomplish this particular task? Or is something just screwy?
Please help if you can.