Search Results for 'code'
-
AuthorSearch Results
-
January 22, 2018 at 1:21 am #189606
swagataminnovations
Participant@pascal, thank you very much for your consideration.
However, I think you should make an effort to upgrade your plugin with the mentioned feature so that the migrated comments to bbpress can be shown under the individual posts by the users.
I cannot see any reason why we should wait for the permission of the other plugin author?
Because you are not copying anybody’s codes, you are only creating a similar functionality in your plugin
January 21, 2018 at 10:50 am #189585In reply to: BBpress: Registration mails fail
Robin W
Moderatoryour smtp service will be expecting the correct email address
what is set is
dashboard>settings>general>email address
and does it match your smtp?
1. You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address in wordpress settings>general is
fred@gmail.comthen it is likely that messages will be dumped in transit. You need to set up email to come from your site egfred@mysite.com, your hosting provider can help if needed.
2. Just bbpress?
Then you need to see if this is wordpress wide or just bbpress.
Try https://wordpress.org/plugins/check-email/January 21, 2018 at 10:39 am #189584In reply to: BBpress: Registration mails fail
suraj1977
ParticipantHi Robin,
Thanks for the reply.
I have tried with above plugin. Unfortunately, it didn’t help.
I have added above code in Child theme’s function file. Still unable to send registration/verification mails.
Kindly suggest.Suraj Awadhani
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 4:59 pm #189553Robin W
ModeratorNot sure what to advise for best.
I’m not a bbpress author, so have no direct influence on code.
However I have 6 plugins that are sub-plugins to bbpress most of which have shortcodes that won’t display correctly under 2.6rc5.
I have asked the authors to reconsider restricting bbpress – the min file is only 32kb, so won’t affect load times to go on all pages – it is just downloaded once when the site is accessed.
If they decide to go as is, I will need to duplicate part or all of the bbpress.css file in my plugins, which means that someone using 3 of my plugins will get the same css downloaded 4 times – 3 by me and one by bbpress which is not good 🙂
So watch this space.
if you are deep into coding, you could just enqueue a copy of bbpress.css in your theme, or probably much easier just dump the contents of bbpress.css into your theme’s css – that will fix it.
January 20, 2018 at 4:03 pm #189549TechHaus
Participant@robin-w, I owe you big time! Thank you. I will check to see if that causes any other issues on the site, but for now, it seems to have fixed it on my local site.
I guess for now I will rely on sidebar widgets for bringing the forum to the front page. Do you think I should attempt my own loop there instead of using the shortcode, or just wait a bit until the 2.6 officially comes out?
Thank you soooo much for looking into this for me.
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 4:31 am #189544Robin W
Moderatorok, 2.6 is trying to just load on bbpress content pages, but obviously is missing those that use code.
I’ll update the trac ticket
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 6:02 pm #189539TechHaus
Participant<?php echo do_shortcode("[bbp-forum-index]"); ?>January 19, 2018 at 5:53 pm #189538Robin W
Moderatorwhich shortcode are you calling ?
January 19, 2018 at 5:45 pm #189537TechHaus
ParticipantIt didn’t load the style for the shortcode on twentyfifteen either!
January 19, 2018 at 4:38 pm #189533TechHaus
ParticipantAnd here is right after I install 2.6, babble about cryptocurrency for a bit, and then hit refresh. The forum page looked normal, then I look at the front page and notice the CSS isn’t formatting the shortcode.
(no need to watch that, but just for the sake of documenting the issue. time stamp for when i look at it at 5 minutes 2 seconds. Also sorry about curses! Don’t watch if offended by bad language. My apologies.).
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:11 pm #189529urbexjordan
ParticipantHi bbPress,
I am looking for help to make my bbPress full width, I’ve tried a bunch of CSS, tried to make a new bbPress.php template, nothing works.
Note – I am not the best coder , but I do know some stuff.
My issue (IMG)

I am trying to make it go full width, but keep that 30-50px padding on either side. Just my OCD kicks in with that stuff, lol.
bbPress Version: 2.5.14
My Theme: Socialize by GhostPoolJanuary 19, 2018 at 2:57 pm #189527TechHaus
Participant@robin-w, thank you for the response. Nothing too clever going on! There is a 999 priority to enqueue the site’s css after plugin css, to over-ride things like some woocommerce styles, but that seems like pretty normal practice. I don’t think that’s it. The plugin styles still load, in this case, just first.
Besides, the shortcode worked when i originally used bbPress 2.5.14, and the when i switched to bbPress 2.6 Release Candidate 5, the styles stopped loading.
Hmmm….
They were both (local and server) clean installations, and only contain bbpress plugins right now. I didn’t copy the databases over.
And yes, they work as expected on twentyfifteen.
Stumped! ahhh. Ty again.
January 19, 2018 at 1:10 pm #189520In reply to: Size of box for listing sub forums
emiralem
ParticipantHello Robin, Im using pixiehuge as isuzu. I changed codes like you said in pixiehuge theme (main.css) but my problem not solved yet.
Here is the my website forum http://e-sporturkiye.net
January 19, 2018 at 6:02 am #189514TechHaus
ParticipantHi Robin W. – just want to say that thank you so much for all the responses and help you give to this community. Super inspiring.
I ended up just uploading the theme and putting up a little dummy content.
The two areas of note I mention, on the front page, http://jockjams.com, you can see below the blog post that what the shortcode out put on my page isn’t styled.
However, if you dig around at http://jockjams.com/forums/ or go to http://jockjams.com/forums/topic/do-the-nets-suck/, these look ok.
Another place where there is an issue is if you go to some of the lists on the profile page:
http://jockjams.com/forums/users/bobby/topics/
That is a good example. The list is THERE, you can see it when you inspect the page. Somehow the styling (or lack of) just pushed it way off to the side.
Both of these looked right in twenty fifteen, and I know for sure the shortcode worked on bbPress 2.5.14 from wordpress plugin repository, but not on bbPress 2.6 Release Candidate 5 that I downloaded from this form.
I guess those are all of the details. I would love to know why the styling worked on twenty fifteen, yet it doesn’t work on my theme, while the other two examples above are styled correctly along with my theme and are being properly targetted by bbpress css as well for the list styling.
Thoughts?
Sorry if this is beyond the scope of this forum. I use JointsWP.com btw as my starter theme.
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 3:14 am #189511In reply to: Importing from Rainmaker; Topics’ post_parent = 0
liderxlt
ParticipantThanks for answering…
As I mentioned in the open topic today https://bbpress.org/forums/topic/do-not-see-the-topic-in-forum/ What I did was prepare an xml file with the information to upload in the forums , topic and replies.I am using the plugin all import to load because it allows me to use cron tasks daily, not overload the server and not rewrite what is already loaded.
I can do the import and visualize it correctly in the dashboard. The problem is that it is not displayed in the frontend. As far as I could see the post_parent of the topic is 0 … It must be equal to _bbp_forum_id.
These are the parameters for the topic:
_bbp_topic_id = 2231
_bbp_forum_id = 2229
_bbp_reply_count = 0
_bbp_voice_count = 1
_bbp_forum_parent_id = 2229Parameters replies:
_bbp_topic_id = 2231
_bbp_forum_id = 2229
the_reply_parent_topic_id = 2229The other parameters, such as Post Status, are already automated.
The good thing about the import plugin is that it allows you to introduce functions in import http://www.wpallimport.com/documentation/advanced/execute-php/I leave an extract of the topic export, there you can see how it takes the values but not the post_parent one
<title>2586/15</title> <link>http://localhost/expedientes/forums/topic/2586-15/</link> <pubDate>Fri, 19 Jan 2018 03:22:16 +0000</pubDate> <dc:creator><![CDATA[liderxlt]]></dc:creator> <guid isPermaLink="false">http://localhost/expedientes/forums/topic/2586-15/</guid> <description></description> <content:encoded><![CDATA[<p style="text-align: center;"><strong><span style="text-align: start;"> <strong>CAUSA:</strong> JUICIO EJECUTIVO]]></content:encoded> <excerpt:encoded><![CDATA[]]></excerpt:encoded> <wp:post_id>2113</wp:post_id> <wp:post_date><![CDATA[2018-01-19 00:22:16]]></wp:post_date> <wp:post_date_gmt><![CDATA[2018-01-19 03:22:16]]></wp:post_date_gmt> <wp:comment_status><![CDATA[closed]]></wp:comment_status> <wp:ping_status><![CDATA[closed]]></wp:ping_status> <wp:post_name><![CDATA[2586-15]]></wp:post_name> <wp:status><![CDATA[publish]]></wp:status> <wp:post_parent>0</wp:post_parent> <wp:menu_order>0</wp:menu_order> <wp:post_type><![CDATA[topic]]></wp:post_type> <wp:post_password><![CDATA[]]></wp:post_password> <wp:is_sticky>0</wp:is_sticky> <category domain="topic-tag" nicename="2586-15"><![CDATA[2586/15]]></category> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_activity_id]]></wp:meta_key> <wp:meta_value><![CDATA[10]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_author_ip]]></wp:meta_key> <wp:meta_value><![CDATA[120.000.001]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_last_active_time]]></wp:meta_key> <wp:meta_value><![CDATA[2016-02-03]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_reply_count]]></wp:meta_key> <wp:meta_value><![CDATA[0]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_voice_count]]></wp:meta_key> <wp:meta_value><![CDATA[1]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_wp_page_template]]></wp:meta_key> <wp:meta_value><![CDATA[default]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_forum_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[_bbp_forum_parent_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[post_parent]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[wp_get_post_parent_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> <wp:postmeta> <wp:meta_key><![CDATA[parent_id]]></wp:meta_key> <wp:meta_value><![CDATA[1327]]></wp:meta_value> </wp:postmeta> </item>Can it be solved with the correct function?
Thanks for your time @netwebJanuary 18, 2018 at 11:45 pm #189507In reply to: Importing from Rainmaker; Topics’ post_parent = 0
liderxlt
ParticipantHi Mike!
I have the same problem. https://bbpress.org/forums/topic/do-not-see-the-topic-in-forum/
Have you been able to solve the problem? I’m almost sure it’s the post_parent although I still can not assign a value to that paramenter. If I could do it with the others _bbp_forum_id, _bbp_reply_count, etc.When I’m doing the import I tried to force it with the function
<?php function pariente($id){ include "wp-load.php"; wp_get_post_parent_id( $id ); return ; } ?>But I have not succeeded
January 18, 2018 at 3:04 pm #189489TechHaus
ParticipantI just tried to insert the shortcode on a random page via the admin editor, and it worked fine.
So it has something to do with putting it in my template directly. Any ideas?
January 18, 2018 at 2:59 pm #189488TechHaus
ParticipantI even tried in another browser, so it wasn’t a cache issue.
It’s odd that everything else seems to work and style correctly, but not this shortcode.
I just tried
<?php echo do_shortcode("[bbp-forum-index]"); ?>And same issue. Hmmm…
January 18, 2018 at 2:42 pm #189485Topic: [bbp-topic-index] shortcode displaying without styles
in forum TroubleshootingTechHaus
ParticipantHi,
I started working on bbpress 2.5.14 last night and used the shortcode [bbp-topic-index] on my front page, and it rendered as expected.
Today I switched development to 2.6 Release Candidate 5, and now it is displaying without styles. For example, the all of the lists are showing up completely unstyled with bullets, etc.
However, when I switch to twentyfifteen and use the shortcode on a page, it looked fine.
Any ideas?
Sorry the site is only on my local server as of now, but I could upload later if necessary.
Thank you,
Bobby -
AuthorSearch Results