Search Results for 'test'
-
AuthorSearch Results
-
January 23, 2018 at 1:15 pm #189662
Robin W
Moderatorok, let’s see if this works
This just adds an action on any post save and if it is a forum and has no post parent, we add your default one
AGAIN THIS IS UNTESTED !!
add_action( 'save_post', 'add_forum_id' ); function add_forum_id( $post_id ) { //get post type and post parent id $post_type = get_post_type($post_id) ; $post_parent = wp_get_post_parent_id ($post_id) ; //if it's a forum and has no post parent (allows for normal topic creation, and other posts type creation etc.) if ($post_type == bbp_get_forum_post_type() && (empty ($post_parent))) { // Update topic (post) 1234 forum (post) 321 $my_post = array( 'ID' => $post_id, 'post_parent' => 31086, ); // Update the post into the database wp_update_post( $my_post ); } }January 23, 2018 at 12:52 pm #189659Robin W
ModeratorForums and Topics are totally separate custom post types, correct?
Yes.
I am reticent to start delving into this plugin – there are hundreds of thousand of plugins in wordpress and I only go into those that are specifically bbpress and then only a few of those – it can take a day easily to look at and understand a plugins code 🙂
There is a hook in topic creation that you could use
The following code is untested, but you could put this in your functions file. You must be able to edit that file outside of wordpress (ie NOT using dashboard>appearance>editor) in case it errors so you can amend it.
add_action( 'bbp_new_topic_pre_extras', 'new_topic_id', 10, 1 ); function new_topic_id ($forum_id=0) { if (empty ($forum_id)) $forum_id = 31086 ; return $forum_id ; }This will put any topic that doesn’t have a forum into that forum.
January 22, 2018 at 9:24 pm #189635In reply to: bbPress Post Via Mail
Stephen Edgar
KeymasterThis plugin supports posting to bbPress by email https://github.com/rmccue/falcon
It’s out of date and needs some testing and reporting what does and doesn’t work
If anyone could help with the I could help get any code changes required added 🙂
January 22, 2018 at 5:19 pm #189627In reply to: Noidex metatag to groups of pages
Pascal Casier
ModeratorI just added this on my test site:
add_action( 'wp_head', 'casiepa_add_noindex' ); function casiepa_add_noindex() { if ( bbp_is_single_user_profile() ) { wp_no_robots(); } }And I when I go to the profile of a user (in my case /forums/users/user1/), I now correctly find:
<meta name='robots' content='noindex,follow' />Could you have a check on your side?
January 22, 2018 at 1:17 pm #189625In reply to: Settings is missing in BBpress
Robin W
Moderatorand the one that doesn’t will have something different about it.
either delete the identical site and start again with it, or carry out the tests above, which will help narrow where the error could lie.
January 22, 2018 at 12:42 pm #189621In reply to: Settings is missing in BBpress
Robin W
ModeratorIt could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
January 22, 2018 at 2:40 am #189609In reply to: BBpress: Registration mails fail
suraj1977
ParticipantHi,
It seems I could not link properly to the images.
Let I describe the issue.
I have checked SMTP and WordPress email address.
Although both are GMAIL addresses, the WP SMTP plugin accepts it.
That’s why, I guess, I could send the test mail from the contact form.
I confirmed, these test emails from contact form are coming via the domain which I have created for SMTP plugin.
After registration of dummy account, I receive the message stating verification mail send.
However, no such registration/activation mail gets received for dummy account.
After registration I receive message stating verification mail send.
The dummy account gets listed on the WordPress backend user list.
The check email plugin sends the test mail to the Gmail address in general settings of the WordPress.
However, it fails to send the test mail to another Gmail address.
Kindly suggest.
Thanks in advance,Suraj
January 22, 2018 at 2:22 am #189608In reply to: BBpress: Registration mails fail
suraj1977
Participanttest reply..
It seems I could not post here as I could not see my replies posted.Suraj
January 21, 2018 at 6:04 pm #189604In reply to: New user registration error – suspected bot
Robin W
Moderatornever seen that before, and like you all I can find on a google is reference to Mojo Marketplace
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
January 21, 2018 at 5:20 pm #189602Topic: New user registration error – suspected bot
in forum Troubleshootingpiha.dave
ParticipantI have just created a forum for my site but when testing new registrations receive an error: “suspected bot”.
I’ve enabled “anyone can register” and I’ve also searched online but the only answer I can find is to disable Mojo Marketplace plugin. I currently don’t have this installed.
I’ve also tried disabling every plugin and trying again but receive the same error.
January 21, 2018 at 5:05 am #189577In reply to: BBpress: Registration mails fail
Robin W
ModeratorIt wasn’t until I started googling this that I notice it is a recurring issue with bbpress sites using smtp, and hasn’t got a definitive answer.
As far as I can see two things seem to help.
1. amending the from address
2. not sending bulk emailsthis plugin seems to address these two issues
Can you try it and report back
also there is a code snippet that lets you change the from address that smtp may well need -I don’t think it is needed as the plugin does this I hope (I haven’t tested the plugin), but quoted just in case 🙂
However, something causes that in the forum post notifications the “From” is set back to the default <noreply@domain.com>, although it is set to different/custom address by the WP Mail SMTP plugin. My web hosting service blocks the PHP mails sent from unknown addresses, so that’s the reason why the e-mails are not delivered.
/*BBPress email fix*/ add_filter( 'wp_mail_from_name', 'email_sent_from_name' ); function email_sent_from_name( $name ) { return 'SITE NAME'; } add_filter( 'wp_mail_from', 'email_sent_from' ); function email_sent_from( $email ) { return 'email@example.com'; }January 20, 2018 at 12:54 pm #189548Robin W
ModeratorI’ve now set up a quick test site for 2.65c5 to validate
I can confirm that
<?php echo do_shortcode("[bbp-forum-index]"); ?>doesn’t work but the shortcode on a page on it’s own does.
However your issue with profiles is a theme/bbpress one, it all works on my test site.
Can you try adding this to your themes css
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results, #bbpress-forums ul.bbp-topics { overflow: visible !important; }that seemed to fix it for your site, but I haven’t checked that it doesn’t create issues elsewhere !
January 20, 2018 at 8:33 am #189546In reply to: Vanilla Forums Importer needs this
Stephen Edgar
KeymasterApologies for the late reply, there hasn’t been many requests to update the Vanilla importer, what I’ve done with most importers is when asked I’ll update it to the latest, in this case I’d checkout what the latest 2.x version is and add any updates as needed, for the most part there is usually not many changes as major database changes typically only occur in “major” releases, so if Vanilla 3.x is out, there would be a high change some SQL changes would be in that release.
Grab the latest bbPress RC-5 zip from the downloads page https://bbpress.org/download
The “Specified key was too long” error you mentioned has been fixed in this release along with loads of importer improvements.
January 19, 2018 at 7:31 pm #189542TechHaus
ParticipantGood call! And guess what, it works if I use the shortcode on a page via the wordpress backend.
January 19, 2018 at 6:07 pm #189541Robin W
ModeratorSorry, but I support live versions, so I’m reluctant to load RC code to my test site, so I’ll keep asking you to do stuff if that’s ok !
Can you create a page and put the shortcode in there – I want to test if that makes a difference over using code to call it.
January 19, 2018 at 4:04 pm #189532TechHaus
ParticipantYes, correct! OMG, i recorded this…
I just hit save there with the shortcode on 2.5.14
At 20:05 if the video doesn’t load at the right time. Thanks again! You made me remember that I actually documented this so I don’t have to fire up a new wordpress instance to retest. I recorded every thing I’ve done so far on this bbpress installation.
January 19, 2018 at 3:58 pm #189531TechHaus
ParticipantTest reply:
I’m getting
ERROR: Your reply cannot be created at this time.
to this thread.
January 19, 2018 at 3:20 pm #189530Robin W
Moderatorso test results
2.6 on twenty fifteen – works
2.5.14 on twenty fifteen – works2.6 on your theme – doesn’t work
2.5.14 on your theme – worksAbove all correct ?
January 19, 2018 at 2:19 pm #189523Robin W
Moderatoryour theme (or maybe other plugin) is only loading bbpress.css on what it thinks are bbpress pages, and it is not treating the front page and profile as bbpress.
I don’t think bbpress 2.6 is doing that, but a quick flip to twentyfifteen would confirm, although I think you are saying you have already tested that above?
Do you have a plugin that is trying to minimise css loading or is your theme being too clever ?
January 19, 2018 at 4:56 am #189513In reply to: Importing from Rainmaker; Topics’ post_parent = 0
Stephen Edgar
KeymasterI’d still prefer to see the database schema, not data that’s already been parsed.
From what I can see you’ve got various issues with that WXR data:
•
<wp:post_type><![CDATA[topic]]></wp:post_type><-topicshouldn’t be wrapped in![CDATA[/]], I’m not sure if that or any other instances apart from content will be affected by this.•
_wp_page_templateshouldn’t be included, if thepost_typewaspage, then yes, buttopicpost type shouldn’t have a_wp_page_templatemeta key, again, I’ve no idea what the resultant behaviour of this would be, maybe ok, maybe not.• You have the following, which is correct:
1327is the “forum ID”`
<wp:postmeta>
<wp:meta_key><![CDATA[_bbp_forum_id]]></wp:meta_key>
<wp:meta_value><![CDATA[1327]]></wp:meta_value>
</wp:postmeta>
`• Just above the above, you have the following which is *not* correct,
post_parentis *not* “post meta”, this should be in thewp_poststable and *notwp_postmeta`
<wp:postmeta>
<wp:meta_key><![CDATA[post_parent]]></wp:meta_key>
<wp:meta_value><![CDATA[1327]]></wp:meta_value>
</wp:postmeta>
`• Closer to the top of your code you have
<wp:post_parent>0</wp:post_parent>, this is where thepost_parentshould include that1327forum id.I suspect if you can get
1327into that last item above you’ll be all set, or at least progressed somewhat, I’m pretty sure the repair tools will be able to recalculate the topic meta once that is in, so that’s another option to repair any meta issues.This might be a handy reference https://codex.wordpress.org/Database_Description
Also checkout https://bbpress.trac.wordpress.org/ticket/2516, the file attached to that ticket is a pretty comprehensive WXR XML file of forum, topics, and replies layed out per the description in that ticket, it might be worth importing into a test site to help visualise the data when looking at the source of the XML file 🙂
January 19, 2018 at 4:49 am #189512In reply to: Do not see the topic in forum
Robin W
Moderatorok, It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
January 18, 2018 at 6:01 pm #189500In reply to: Incorrect Message: “You cannot create new topics.”
LucasHilty
ParticipantBumping this. I have the same problem. I am using the latest activity version of the main forums page.
Once a user opens a forum, he or she is allowed to create a new topic.
Screen shotJanuary 18, 2018 at 12:10 pm #189479In reply to: @mentions not working
pjbarry21
ParticipantDoes not autopopulate/work in forum discussions using the visual editor, although cutting and pasting or typing handles changes them into links upon saving — most of the time. Sometimes we have to go back in and edit/remove spaces around the entry for it to show up.
To try to get a little more functionality on a test site, I’ve added code from here: https://bbpress.org/forums/topic/mentions-not-becoming-links-some-times/ — but this only works in the text editor and not in the visual editor.
It does autopopulate in activity feeds and does work in resources (bpdocs).
January 17, 2018 at 5:13 pm #189459Topic: Editing the Post Edit Style
in forum ThemesAudiomonk
ParticipantHi,
Been looking through here for quite a while, am wanting to change the styling of the edit post screen. Currently it’s got a red background *urk* and looks bad. It’s probably inherited from my main theme I don’t know.
Can someone point me where the styling for the post edit screen is. I tried using an editor but it only shows styles that seem to be for main posts.
Latest BBpress,latest WordPress. No link as it’s an edit screen, but you can view the site at https://jwfsanctuary.club
January 17, 2018 at 5:04 pm #189458Topic: Hold topic
in forum Troubleshootingmax143
ParticipantI click topic to make it hold on the top, but on another page there are no topic on the top
http://prntscr.com/i1vufg – hold On
http://prntscr.com/i1vurr second page -
AuthorSearch Results