Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'register'

Viewing 25 results - 3,951 through 3,975 (of 4,248 total)
  • Author
    Search Results
  • #59816
    MaryJane
    Member

    This is what i have for my wp login. I want my users to login/register from the wp side. So i have this snippet of code i gathered from various forum posts as well as some of it was in my current theme.

    It says Welcome guest when you arent logged in or registered and it gives the link to register. If your signed in or sign in it says Welcome username and shows the forum avatar you have set. Based on your user level it shows you different links for each thing you can do. Like make a post in WP or your profile and favorites in the forum.

    I have a redirect page setup that when you login from this form it just directs you back to the index page instead of going automatically to the dashboard as this confuses most people and the links are on there if your signed in to show you what you can do.

    ** I didnt write this i just gathered it up from various sources on the internet in different forum posts and edited it to suit my needs. Part of it was already wrote into the theme i bought for my wp. **

    pastebin url to it: http://pastebin.ca/651318

    The redirect part is a file i named redirect.php and placed in my wp main directory with a redirect link to the main page. You can see that bit here :

    http://pastebin.ca/651326

    If you have your bbpress intergrated well with wp you should be able to use the same form on your forum. That is what i use.

    #59891

    In reply to: Always login

    Null
    Member

    Can this be used as a plugin? The real questions should be: Can you overide normal bbpress functions with a plugin? And if so, how would this plugin look like?

    And can a function like this be added:

    If user logged-in = false -> redirect to login.php (or register.php)

    #2222
    #59808
    avatarx
    Member

    Thanks for both your replies. I’d read that thread previously and my impression was that it is overly complex for what I’m trying to accomplish and was hoping for a much simpler way. I’d rather avoid having to “hack core files” as described and I want to be able to upgrade both WP and bbPress easily with changes only in my template files. I also don’t need the complex behavior of conditionally showing admin links, etc. since I just bookmark the admin page. And finally, as I mentioned, my PHP skills are non-existant at this point so not the kind of thing I am comfortable taking on right now.

    fel64, currently I have my user tables and cookies integrated. I installed bbPress within the WP directory to get the easy integration described in the docs since I’m still pretty new to both. So far that seems to work great. I like your suggestion of just grabbing the HTML code for the WP login and making it look like the bbPress login. That would solve the login part of it. However, then I would need some conditional code to display different things if the user is logged in or not, similar to what the bbPress login form does. It displays the welcome and profile link if logged in, or login form if not. For new user registration I’d have to send them to the bbPress registration page because I want them to fill out profile info not available in the WP registration form since it only asks for username/pw. Then I think it would be kind of weird that the user clicks register from the home WP page and gets taken to the forums after they register. Probably have to do some special handling there to see where they came from and send them to the right place.

    So…. hope you don’t mind the thinking outloud but after all that I’m wondering if it’s all worth the trouble given how unfamiliar I am with these systems. Maybe I’ll postpone this until future versions of bbPress make login integration much easier or there are plug-ins written for WP that can help. My initial thought was, why can’t I just call the login form code from bbPress from WP? Is this something that requires a deeper level of integration than what I have? I’m curious about this in general as it would be something I’d like to be able to do in the future.

    Thanks!

    #59806
    ganzua
    Member

    “ganzua, that’s not all that helpful.”

    Well, If undestood quite enough this quote;

    “What I’d like to have is that same bbPress login form show up in my WP page so that if users are logged in they get the welcome/view profile otherwise they can log in/register from anywhere on the site.”

    We solved this same thing here, ;

    https://bbpress.org/forums/topic/any-idea-to-integrate-wp-and-bb-login-forms?replies=24

    #2208
    #49557
    raumgleiter
    Member

    I have the integration working. Got wordpress in the root and bbpress in a subfolder called /forum.

    When I register on wordpress, the user is displayed as subscriber in WP and as member in bbpress. so all is correct.

    But if I register on bbpress, then the user is “member” in bbpress but in WP it gets no role at all.

    Second problem is that bbpress doesnt seem to send out any confirmation email although I can see new users in the backoffice.

    BOTH plugins are installed and seem to be working fine.

    #2203
    Null
    Member

    Hi,

    There is a hook so that, on plugin deactivation, you can do an action. In my case, I want to drop a table when the plugin is deactivated.

    I can’t seem to get it to work. What am I missing?

    The code:

    function bb_deactivate_bbmenu() {
    bb_register_deactivation_hook( bbmenu.php, 'drop_bbmenu_table' );
    }

    do_action( 'bb_deactivate_bbmenu' . $plugin );

    function drop_bbmenu_table() {
    global $bbdb;

    $query = "DROP TABLE <code>$bbdb->menu</code>";

    $bbdb->query( $query );
    }

    Also where does $plugin come from? Do I need to set it or does it grab the plugin’s name? And same about __file__ I used the plugins php file for this. Is this correct?

    Some help plz

    #59659

    In reply to: Caching in bbPress?

    _ck_
    Participant

    I solved all spam on my blogs quite easily – any post with more than one url never gets approved, never displayed. I’ve yet to see spammers not be greedy and only post one url.

    I had forgotten about the OpenID standard! We need to try to suggest that to the right people making WP/BB. That would be one of the most useful features ever (wordpress.com has nearly a quarter million registered members!)

    update: WAIT! It’s been done?!?!?

    http://wordpress.com/blog/2007/03/06/openid/

    How do we get openid support into bbpress then?!

    added: here’s a wordpress plugin to allow openid, now we need to port it to bbpress…

    http://verselogic.net/projects/wordpress/wordpress-openid-plugin/

    I’ll start a new topic on this…

    #59657

    In reply to: Caching in bbPress?

    _ck_
    Participant

    Oh I didn’t realize xcache is just an opcode cache. I already use eaccelerator which seems to have zero quirks compared to other solutions. But yeah, any opcode cache for wordpress/bbpress is a must for any active site.

    I already create the sidebar statically across my sites, saves a lot of work and repetition on the db.

    the wp-cache “plugin” has flaws in it’s logic. I noticed that unregistered visitors were getting edit links on posts, not good, even if they couldn’t actually edit. Then it has an exclude feature to keep certain parts dynamic, but you can’t have wordpress calls in those dynamic parts because wordpress isn’t actually loaded, which is the whole point. so it won’t work and gives error (#1 confusion to most people trying to use it)

    In the end, I hacked wp-cache to only cache the RSS feeds which were causing the most requests, yet the most static of all the content. Caching rss feeds on bbpress should be an easy, useful thing too, but then on a forum I highly doubt the use of rss feeds on anything but the latest discussions.

    What really worries me about the 0.84 release is the xml-rpc pingbacks. bbpress is going to become known as the spammers forum of choice with a bad rep, until novices are given an easy option to turn it off, or better yet it’s off by default. I cannot disagree more highly with the entire feature idea. It defeats the entire purpose of a forum. What they are trying to do is have a universal way to cross post across forums but the whole point of a forum is *community* and getting people to actually visit, not stay away.

    What they really should do instead of pingbacks if they want easy cross communication, is have a universal login based on a database at wordpress.com – Basically anyone with a wordpress account could visit your wordpress or bbpress site and instantly post if they wanted as “wp.membername” without having to register again and again. Sure there are security issues to be tackled but it’s better than anonymous spam heaven on pingbacks. Akismet won’t protect pingbacks, I see spam in my wordpress.com account every week.

    #59666
    Andrew
    Member

    I stand corrected… I register everyone through the WP admin interface. I don’t think BB press has an admin based registration interface.

    #59662
    fel64
    Member

    I don’t get emails for dudes registered through bb and you shouldn’t. bb updates the database but wp’s registering hooks are not triggered AFAIK.

    #2195
    howtogeek
    Member

    I’m not getting any sort of notification when users register on the site, which might be useful to know.

    #2082
    larsvegas
    Member

    Maybe somebody can help:

    I have a workin’ installation of bbPress with lots of users and content. Now i want to get a fresh copy WP up and running and want to get all registered users from bbPress into WP.

    As far as I know, I can’t just tell WP to use bbPress-Usertable. Maybe somebody can give me some tipps know how to get it done.

    nexlamar
    Member

    Hi!

    For my bbpress I need a check against human spam attacks.

    For this I just need a random generated question in my language (the one that the spammers cannot speak ;) ) and a check if the postet answert is correct. I tried to implement this into register.php, but my checks are ignored by bbpress. Is there anybody who can give me a hint, who maybe works on the same problem?

    I also figured out that I can register twice with the same e-mail adress. How can I check if the adress already exists?

    Thanks for your help,

    Markus

    #59557
    clairecc
    Member

    Okay, bit of a problem. I have managed to sync so that bb sign in looks to wp database and I can log in with wp details on bb but when I do administrator in wp is just a registered user in bb and I havent got access to the bb admin panel… I cant seem how to work out how to give top privilidges to a user without logging into the admin panel in bb which I cant do!

    #59534
    Sam Bauers
    Participant

    > is there a method way to delete a view

    In current trunk…

    bb_deregister_view( $view )

    #59531
    Sam Bauers
    Participant

    You should be aware that views are registered differently in the latest versions in trunk. Views are now constructed using the BB_Query class.

    See the latest Support Forum plugin for a way to use both the new and old, although it is wrapped in a Class in there so the basic idea is:

    if (is_callable('bb_register_view')) { // Build 876+
    $query = <SOME ARRAY ACCEPTABLE TO BB_QUERY>;
    bb_register_view('myview', __('My view name'), $query);
    } else { // Build 214-875
    add_filter('bb_views', 'my_addView');
    add_action('bb_custom_view', 'my_processView');
    }

    hi all …

    i use plugin synchronize bbPress registrations with WordPress but it doesn’t work. I create new user bbPress but in WordPress that user doesn’t have any role. Someone tell me what i miss ???

    and when i login to bbPress use user registered in wordpress (spypark.reborn), i got report Log In Failed and user name automatically change to spyparkreborn. Another word bbPress integration not work well or i miss something.. i don’t know ????

    #59468
    fel64
    Member

    No-one knows anything about writing plugins when they start writing them. :) You said you were learning PHP, this is your chance to put it into practice/get better. This might not work but it’s the basic way you’d go about it I think.

    add_action('register_user', 'myfunctiontochangeuserstatuswhentheyregisterheh');

    function myfunctiontochangeuserstatuswhentheyregisterheh( $user_id ) {
    //I suspect somethin' like this:
    $user = get_user( $user_id );
    $user->set_role('inactive');
    }

    #59340

    In reply to: Adding a new User Type

    amazon3d
    Member

    Im in the same boat, I know things like BB(something) has it so you can set mods to see this group or that group and super mods can post in those but regulars can see the groups. So like Unregistered;rights=1 Member;rights= 2 Student;rights=3 Teacher;rights=4 Mod;rights=5 SuperMod;rights=6

    Where the #= the level of forum they can access like setting thread “teachers” to level 4 would make it so anything lower could not access it. And level 5 would make it so mods can see it but not post. & Level 6 would be like a place where you place questionable threads.

    I really don’t know alot about php yet but in due time I’m sure I will. Is there a way to make it like this?

    #59465
    fel64
    Member

    No, but you can write a plugin that sets your member status to ‘inactive’ or similar when you register. Then you would have to set their member status to ‘member’ before they could post.

    #59441
    _ck_
    Participant

    There are many other things you will need to do to get it working properly with wordpress.

    1. cookies paths need to be fixed in both programs

    2. the integration plugin should be installed

    3. the allow spaces in usernames plugin should be installed

    4. force all registrations/logins through wordpress from the several places they are buried on the forum (the WP interfaces are far more developed)

    5. add the ” set default role when registering new user though forum” plugin tweak

    There are probably a few others I’ve forgotten by now.

    #2161
    _ck_
    Participant

    I’m gonna need this one in a hurry so if there’s nothing similar in existance, looks like I have a weekend project.

    For now I’m going to keep it simple, add a text link somewhere in the template and that will popup a javascript query for a description why it should be moderated and then an email will be fired off to the admin. What I really want it to do is create a new post in the moderator forum so one of the mods will see it and take action, but that might have to wait until the next version.

    Am I the only one (other than the few documented examples) who’s using bbpress for something other than a micro-forum and needs these kinds of tools?

    ps. the examples page needs to be updated, over 200,000 registered members now

    outchy
    Member

    yeah that’ll work for now, thanks.

Viewing 25 results - 3,951 through 3,975 (of 4,248 total)
Skip to toolbar