Skip to:

Re: Replacing “You must log in to post” with login form

I did have the same problem but in different context where I never wanted to dive into the code because the theme I was making was to be used by someone else and thus I just wanted the person place it and activate it and it should worked rather then him diving into the code and replacing the files.

In the end what I did was , as BBPRESS 1.0+ supports the use of functions.php in theme files . so i just copied the function from the and changed the funciton name a bit and then replaced it in theme files.

Example : like “You must login to post.” is in post_form function in file. I copied the function to functions.php in my bbpress template. renamed the function from post_form -> post_form_edited and made the replacements I wanted and then in my theme files where ever it was using the old function of post_form() i replaced it with my new edited function post_form_edited().

like in your functions.php after you copy the post_form function and change it to post_form_edited you can find the line “__(‘You must log in to post.’),” and change it to anything you want. And use the new function in your theme. Like this you won’t have problems upgrading the bbpress installation too in future.

then I dived in the theme files and replaced all the post_form() with post_form_edited() and voila it worked. But in my case I knew what I was using like the plugins and stuff and thus i tested it with everything first.

I hope this helps you out . Some of the stuff I told above has been applied to the postform in

Skip to toolbar