Search Results for 'questions'
-
Search Results
-
Hello
I’ve got two questions
1.How can I activate plugins for all blogs (like the cookies for comments plugin)
2.How can I show special themes only for members.
Hi there,
I’ve released the initial version of my activity notification plugin. You can find a description at the link below:
http://wordpress.org/extend/plugins/buddypress-group-activity-stream-subscription/
Please let me know how you get on with it and let me know of any issues. As this is the first release, I recommend against installing it on production sites.
Please post here or on http://namoo.co.uk with feedback/questions.
Hey, I just wanted to post the solution that I used in a fresh topic so that I could post it on http://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions.
(this is the solution to http://buddypress.org/forums/topic/email-login-random-member-urls)
Before I start I want to thank Peterverkooijen for helping me with this.
So this takes a few steps, but I would think others would be interested in this.
1. Download and install the wp-email-login plugin.
-this allows users to login with their emails
2. Save the following code in a file called usernameGen.js somewhere where you can direct to.
function copyinput(){
var tmp = document.getElementById('signup_email').value;
tmp = tmp.toLowerCase();
tmp = tmp.replace(/[^a-z0-9-]+/g, "").replace(/[-]+/g, "-").replace(/^-+|-+$/g, "");
var chars = tmp;
var string_length = 20;
var scramble_string = '';
for (var i=0; i<string_length; i++) {
var rnum = Math.floor(Math.random() * chars.length);
scramble_string += chars.substring(rnum,rnum+1);
}
var number_chars = "0123456789";
var number_length = 5;
var scramble_number = '';
for (var i=0; i<number_length; i++) {
var rnum = Math.floor(Math.random() * number_chars.length);
scramble_number += number_chars.substring(rnum,rnum+1);
}
document.getElementById('signup_username').value = "mem"+scramble_number+scramble_string;
}-I got the base for my code from this post
-This code takes the email a user types in on the registration page and scrambles the characters of the email into a 20 character string. It generates a randomized 5 digit number and it puts “mem” for member at the start of your URL.
3. In your header.php within the head tag put in:
<script type="text/javascript" src="usernameGen.js"></script>-but you will need to change (src=”usernameGen.js”) to the directory you saved your js file in.
4. In register.php change
<label for="signup_username"><?php _e( 'Username', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
<?php do_action( 'bp_signup_username_errors' ) ?>
<input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
<label for="signup_email"><?php _e( 'Email Address', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
<?php do_action( 'bp_signup_email_errors' ) ?>
<input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" />to
<input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value() ?>" />
<label for="signup_email"><?php _e( 'Email Address', 'buddypress' ) ?> <?php _e( '(required)', 'buddypress' ) ?></label>
<?php do_action( 'bp_signup_email_errors' ) ?>
<input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value() ?>" onkeyup="copyinput()" />-I removed the “Username (required)” and the “bp_signup_username_errors”
-and I also added onkeyup=”copyinput()” to the email input so that while a user types in this field, it calls upon our “copyinput” function within our js file.
And that’s it, no core files were edited!
I know it’s a little complicated but if you follow the instructions closely than it should work for you.
So here is what it does, and what it did.
What it USED TO DO
When a user goes to register, they would type in a username, an email and a password.
Their username becomes their URL and that’s the name they used to login.
So JoeSmith’s URL is
http://www.yoursite.com/members/joesmith
What it DOES NOW
When a user goes to register, they get to type in an email and a password.
Their ‘username’ field is hidden.
The code will randomly generate a URL for the person like below:
mem12345abcdefghijklmnopqrst
so their URL would be
http://www.yoursite.com/members/mem12345abcdefghijklmnopqrst
Freeing up the good names like John and Smith to be created manually by an administrator.
There is a small small small chance that it will randomize the code to EXACTLY what someone’s URL already is, BUT then if that happens:
normally a message would pop up and say “this username is taken”, but because I’ve hidden the username error box nothing pops up. However the page is refreshed, allowing the user to retype something into the email section, re-randomizing the URL.
If you have any questions or you have a better way of doing this, let me know.
I felt like it was my turn to give something back to buddypress, this forum has done so much for me.
Thanks
Nick
Hey, I’ve got 2 questions about the way users signup/register for buddypress websites.
On the default sign up page, there are:
Username
Email
Password
Confirm Password
Is there anyway that I can get rid of the Username field. Basically I want my users to log in with their emails, and not a username (like Facebook does it).
And I know it might seem odd to some people that I would want my users to have a random profile url, but basically I want to leave the names free for users that I choose.
I basically just want to leave the specific URLS free for users that I choose.
So my 2 questions:
1. Is there a way to create Email Login instead of Username Login
2. How can I randomize the member URLS so they aren’t http://site.com/members/joe
(I would prefer a URL like http://site.com/members/q23ks2lafd=2+)
Thanks
Nick
Topic: bp 1.2 setup questions
A few questions.
1. I am trying to setup bp on my wpmu 2.9.1 setup where some of my sites ‘x.example.com’ can have bp enabled, but some sites like ‘y.example.com’ do not have bp enabled.
So I added define ( ‘BP_ENABLE_MULTIBLOG’, true ); to my bp-core.php file towards the top.
I then went to ‘x.example.com’ and activated bp.
The problem is now bp is enabled on all my blogs instead of just the one blog I went to the admin and turned it on at. (I plan on having multiple blogs using bp).
Did I miss something here that would cause bp to activate system wide instead of on a per blog basis?
#2. For some reason I am seeing the old buddypress theme, ‘orange one’ and not the new default theme.
How do I activate the brand new theme on a blog? –I do not see an image of it anywhere in my theme admin page that I can select. I only see the old bp orange ones from my prior install.
my ULTIMATE goal is to have only certain blogs have the ability to have bp enabled as many clients do not want it at all. Then once it’s working on individual blogs, I can try and figure out how to filter the data so that only members/posts/groups/etc from that blog being displayed would be shown. (mini ning setup).
I need a little advice with relation to the spam questions that have been going forth.
I’m about to launch our redesigned site which after some debate, looks like instead of using groupblog due to incompatibility, I’m going to use a separate blog for community features. I’ve already added the blog and set the bp_root_blog as that blog so now it works great. I can use a standard wordpress theme for the home blog and a bp enabled blog for my community site. Here’s where it gets a little tricky.
I need to know the best and most secure way to set up registration and to sync users across to the community blog. Right now, I have around 1300 members on our main blog that was converted from standard wordpress and I need to get them into the other blog. I found an article that suggested the code to put into wpmu power tools but that only seems to add around half of the users to the other blog before dying and I’ve already edited all the relevant values in my php.ini to extend this. Also, I need to know what the best way would be to handle registration? I’m planning on using the gigya plugin and it works well on the wp side of things, but after some of the reading about spam and splogging, I don’t know if it would be better to turn off registrations on wp and force them to register via bp on the sub blog and have it auto add to the main blog, or whether I should allow them to register on my main blog via wp-login and then have it sync to my community site. I’m not going to allow users to create blogs so there should only be two blogs to worry about unless groupblog gets updated in which case that will handle the other permissions to the blogs. Any ideas?
Forgive me if this has been covered already.
But I wanted to ask a couple questions about the ability of creating a duplicate of the Groups Capability.
Basically a completely new instance of Groups. For example:
Groups – This would be the exact way Groups are configured now. Allowing users to create and manage, etc.
Groups(Or a custom name) 2 – A complete copy of the Groups functionality, but creation of Groups here would be limited to Admin level only. Participation in forums and such would be open to all. Or managed based on roles.
Any idea if anyone has done this? Is taking the existing Groups system and duplicating it as a Plugin add-on (additional Groups with settings) the best means for adding this functionality?
Thanks, and again sorry if this has been covered. I am new here!
Just briefly as I wrote a detailed description and it got “lost”
Have just upgraded wpmu, bp and bbpress to all latest version.
I had a working integration of BP and bbpress previously and everything during upgrade seems to have worked but there is a problem.
I am using an external bbpress for forum and a diff. db.
The wpmu/BP installtion is here :
xhttp://www.australianracinggreyhound.com/network/
The external forum installtion is here :
xhttp://www.australianracinggreyhound.com/forums/
But BP wants to keep tyring to see the forum here:
xhttp://australianracinggreyhound.com/network/forums
Oddly enough you can see the tags from the external forum have been integrated but none of the posts!
Obv. I can run two forums in parallel and this is not theme dependant as I have changed BP themes and prob. still occurs.
I a haven’t mod’d any files or core yet and don’t want to until I know everything is working.
I have two questions :
1. Is this a bug? If so how do I fix it without hacking the core?
2. Given the changes soon to come – is it reailistic to keep running the forum externally and from a diff. db? Would I be better to import the forum db in to the wpmu db? If yes, how would I go about doing that?