Forum Replies Created
-
Ah! Now I got it what you’re trying to achieve..
Well, that is very much doable but then this is no easy task..
If you want to include images and other styling options, you can replace the plain text form with tinymce rich text editor by putting some codes in bp-templates/bp-legacy/buddypress/groups/create.php. But remember, simply enabling rich editor will not work unless you allow the img & other relevant tags, else it will strip off and data will not be saved..
You can manage the wp media library to view able to only the person who uploaded the media.. This way it will not mixed up with many other users with their files..
And for hiding the content or long description, you can use js to show/hide..
You can also add other template pages if you need other separate pages for description like address, events etc.. Remove the default no-ajax nav items and replace it with your own custom items.. You can also ajax them, if you want them to.. They looks pretty straight but are more complicated that what you just read.. I did the similar kind of work before..
I’m not sure if you’re looking something like this: http://imgur.com/a/k9SbZ
Doesn’t bp groups already creates separate pages for each group? also put description of the page while creating?
While, if you’re trying to achieve something like groups or pages in facebook, that will be a massive task, and for that CMS or buddypress is not a good choice to begin with. It will be better to custom build with php..
I previously abandoned similar project.. but here i’m not getting it.. what you mean by: “Of course group admin can modify the content from their group page (not via admin section).”
Do you want group members to put description of their own? I guess even in the facebook page, only admin can put description about that page.. Members can only likes and comments, that’s it.
Am I missing your points? Can you elaborate more?
Hello danbp, thanks for commenting..
I’m not looking for loggedin_user_link.. What I’m looking is to generate url of sub-domain with displayed user username like http://www.sub.example.com/$username i.e.. external domain link/ echo the displayed user username..
Why don’t you just put this two lines of css code in your theme’s css or custom css page instead of trying to get into functions files..
a.button.item-button.bp-secondary-action.delete-activity.confirm {
display: none;
}
a.delete.acomment-delete.confirm.bp-secondary-action {
display: none;
}That code is for plain text tinymce in “post form”.. This will render in the post form but not in the comment form (though without rich text editor you can implement it easily anywhere). The problem is only with rich text editor which you can insert images, bold font, italic etc without displaying codes (as in text form editor).. When you are on to threaded forum (multi-level commenting) you will have to figure out three things here.. 1st Post form (the one you posted above), 2nd comment form (replies to the original post) and the replies form (replies to the comments which is threaded in nature)..
The one I’m talking about is – I could able to implement first two steps i.e, post and comment form in rich text editor format, but still figuring out the last format i.e., replies which is messing up the things.. The thing is that buddypres is implementing both comment and replies in the same ids which needs to be corrected to be able to implement with tinymce and also the AJAX on the replies collapse behavior which doesn’t support with the buddypress right now
Sorry the codes are not working: The first code is: //href=”<?php bp_displayed_user_link(); ?/dashboard”>Dashboard
Avoid // ( I mentioned it because the links are not posting here
You can’t directly get working url without using little bit of php code (while you’re accessing users profile).. If your content page allows php code, try this: /dashboard”>Dashboard
else,
if you are looking for just a profile link of users (any users), then create a page named “profile” and add this code in your functions.php or custom-functions.php :
function redirect2profile(){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if($_SERVER['REQUEST_URI'] == '/profile/' && is_plugin_active('buddypress/bp-loader.php') && is_user_logged_in()){ global $current_user; wp_redirect( get_bloginfo('url') . '/members/'. $current_user->user_login . '/profile/'); exit(); } } add_action('init', 'redirect2profile');
Above line will work only if you have set the members directory as “members” in the buddypress settings.. If you named it other, then simply mention that instead of “member” in the /members/ place.
By doing this you can simply paste url = http://www.mywebsite.com/profile anywhere.. When the users click on the link, it will be directed to their respective profile page..
But, but: The later tricks will be much slower to access the given link than the former..Choice is yours!
Good luck.
@bigkahunaburger you must be talking about plain text tinymce editor (just like you see here in the editor)?? If this is the one you’re talking about, then you can do it without problem (even in the replies).. What I’m talking about is rich text editor where you can see the image conversion (from code) within the editor text area itself like in the wp backend. This will allow direct image insertion in the post form along with some few other basic features like bold, italic, indentation and listing – which is a basis of WYSIWYG. This ensures that instead of dealing with the codes, you will see directly preview of live output within the content itself which is very important when you’re building social networking website.. As you’d know social networkers doesn’t understand codes and it looks very messy (unless it’s a forums like here).. Check for example quora.com.. But to be aware that, while working with media button in tinymce, it comes huge responsibilites with storing the images and restricting others from accessing the gallery of other users.. If you can allocate space for storing images in your subdomains, and restrict others from accessing gallery of fellow users – it could be a juicy UI to bet on..
I could able to implement rich text editor in the comment section by adding/modifying some js files but for the replies and threaded comments it’s a huge task.. To be honest, buddypress are not meant to be work as smooth in threaded comments (at least as of now). I will update If I can successfully implement tinymce in both comments and replies section. Cheers!
Hi, @djpaul thanks for the response.
The condition is that: Yes, widgets shows up everywhere (including BP profiles and group pages) but they are perfectly working as an error or 404 not found page.. If I edit ‘404 page not found’ or error page (such as background color and as such), they all get reflected in the buddypress pages, and vice-versa.
I even tried with dynamic widgets and display widgets plugin to see if that can identify the exact problem, but they are not helping either.. I tried with custom db query to identify the basic problem but they are not helping either..
function custom_error_pages()
{
global $wp_query;if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
{
$wp_query->is_404 = FALSE;
$wp_query->is_page = TRUE;
$wp_query->is_singular = TRUE;
$wp_query->is_single = FALSE;
$wp_query->is_home = FALSE;
$wp_query->is_archive = FALSE;
$wp_query->is_category = FALSE;
add_filter(‘wp_title’,’custom_error_title’,65000,2);
add_filter(‘body_class’,’custom_error_class’);
status_header(403);
get_template_part(‘403’);
exit;
}if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
{
$wp_query->is_404 = FALSE;
$wp_query->is_page = TRUE;
$wp_query->is_singular = TRUE;
$wp_query->is_single = FALSE;
$wp_query->is_home = FALSE;
$wp_query->is_archive = FALSE;
$wp_query->is_category = FALSE;
add_filter(‘wp_title’,’custom_error_title’,65000,2);
add_filter(‘body_class’,’custom_error_class’);
status_header(401);
get_template_part(‘401’);
exit;
}
}function custom_error_title($title=”,$sep=”)
{
if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
return “Forbidden “.$sep.” “.get_bloginfo(‘name’);if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
return “Unauthorized “.$sep.” “.get_bloginfo(‘name’);
}function custom_error_class($classes)
{
if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 403)
{
$classes[]=”error403″;
return $classes;
}if(isset($_REQUEST[‘status’]) && $_REQUEST[‘status’] == 401)
{
$classes[]=”error401”;
return $classes;
}
}add_action(‘wp’,’custom_error_pages’);
I can’t really trace back the exact problem.. I’m not so well versed with the buddypress thing, maybe those are making me harder to identify the problem..
Seems Like I may have to seek for new installation but that’s very discouraging..
@danbp I did not find any such string in the .pot file, this is why I had to search it manually to confirm it.. It looks like the buddypress component.. you can check in this http://imgur.com/Zc9rzVq to confirm it..
@danbp This may help for the comments loading after “load more” button..
Can this be implemented on the replies section (i.e 2nd level threaded comments)? Because for now, threaded replies doesn’t collapse either. When I see the entry.php & comment.php all the divisions are wrapped in ‘activity-comments’ There is no distinction IDs & classes between comments and replies (2nd level comments or threaded). They are all counted or put under as comments-replies together. I think there needs to re-write some of the template files or put relevant separate classes for both comments and replies to be successfully work with js.. Pre-loading the comments by default hide property may do the tricks but that’s no easy task for a guy like those who are relatively new to buddypress.
Any suggestions?Thanks.
Hey, @danbp Thanks for the long and detailed response.
I’m fully aware of what you’re trying to convey the risk factors on this.. But as my requirements are different, I’ve completely disabled the media library and allowed access the users to each individual gallery only (negating the access of other’s files).. I’ve uploaded images hosted on sub-domains that completely separate from the main site.
All the activities that takes place on the site are on the front end.. The back end wp administrator dashboard are disabled for editing ( of course they are enabled for updating plugins & adding pages occasionally) as most of the pages are done in custom-template.. No admin or author level privileges are created on the site – just the subscriber as it’s mainly a networking site.. The idea that attaching the media button gives lots of flexibility to the users to resize the images or review them in the content area itself before they can post the activity.. Unless it’s a forums or community sites, for a networking sites, leaving alone with html codes or text editors may be (perhaps) discouraging impression for the social users.
I’m glad that you pointed out it’s more of a wordpress thing than buddypress.. I’ll have a look at the possibility of getting it work and let you know.
Thanks.
@danbp Thanks for the reply.. I got this working with “text editor” on both post (what’s new) & comment section, but just wondering what prevents those forms from allowing “visual editor” – as it remains unclickable. Is it something to do with filters on buddypress or the problem comes from within wordpress? I’d just want “add media” and “bold font” button on the visual switch.
If you can point me the files I can edit, that would be wonderful.. I looked around activity filters & bp-core but I’d want to confirm from your end about this before experimenting it or messing up the wrong files.
Thanks