Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,576 through 4,600 (of 32,518 total)
  • Author
    Search Results
  • #189635

    In reply to: bbPress Post Via Mail

    Stephen Edgar
    Keymaster

    This 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 🙂

    #189632
    liderxlt
    Participant

    Hello, people again. I know that this is not the official forum of the plugin but as there are few add-ons for the import in bbpress I am sure that some time they will have used it.

    I’m still struggling to import and update my forum automatically. As you can see in previous topics I was trying to import from xml files and with the plugin allimport.

    Hello, people again. I know that this is not the official forum of the plugin but as there are few add-ons for the import in bbpress I am sure that some time they will have used it.

    I’m still struggling to import and update my forum automatically. As you can see in previous topics I was trying to import from xml files and with the plugin allimport.

    Now I try to import with the bbPress Import & Export plugin.The problem is
    “AJAX Error” message when importing

    I thought the structure of the csv file was wrong so I made a clean forum with topic and replic, export it to import it again but the same error comes out.

    The first time I import, I also appreciate the error message but it was the only time I import some topic, then I could not import anymore.

    I leave the structure of the csv file.

    "ID","post_date","post_date_gmt","post_content","post_title","post_status","comment_status","post_parent","menu_order","post_type","post_mime_type","post_alter_id","tag_topic"
    "241","2018-01-20","2016-02-02","CONTENIDO","2415/15 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","241","2415/15"
    "285","2018-01-20","2016-02-02","CONTENIDO","2859/15 | NOMBRES ","publish","closed","19","0","topic","","285","2859/15"
    "172","2018-01-20","2016-02-02","CONTENIDO","1723/14 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","172","1723/14"
    "226","2018-01-20","2016-02-02","CONTENIDO","226/12 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","226","226/12"
    "227","2018-01-20","2016-02-02","CONTENIDO","227/12 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","227","227/12"
    "258","2018-01-20","2016-02-02","CONTENIDO","2583/15 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","258","2583/15"
    "257","2018-01-20","2016-02-02","CONTENIDO","2575/15 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","257","2575/15"
    "255","2018-01-20","2016-02-02","CONTENIDO","2557/15 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","255","2557/15"
    "256","2018-01-20","2016-02-02","CONTENIDO","2569/15 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","256","2569/15"
    "258","2018-01-20","2016-02-03","CONTENIDO","2586/15 | NOMBRES s/ JUICIO EJECUTIVO","publish","closed","19","0","topic","","258","2586/15"

    I’m working on a localhost installation.
    Regards!

    #189627
    Pascal Casier
    Moderator

    I 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?

    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

    #189585
    Robin W
    Moderator

    your 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 eg fred@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/

    #189584
    suraj1977
    Participant

    Hi 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

    #189577
    Robin W
    Moderator

    It 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 emails

    this plugin seems to address these two issues

    Can you try it and report back

    AsynCRONous bbPress Subscriptions

    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';
    }
    #189553
    Robin W
    Moderator

    Not 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.

    #189549
    TechHaus
    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.

    #189548
    Robin W
    Moderator

    I’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 !

    #189544
    Robin W
    Moderator

    ok, 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

    #189542
    TechHaus
    Participant

    Good call! And guess what, it works if I use the shortcode on a page via the wordpress backend.

    bbpress Shortcode test

    #189541
    Robin W
    Moderator

    Sorry, 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.

    #189539
    TechHaus
    Participant

    <?php echo do_shortcode("[bbp-forum-index]"); ?>

    #189538
    Robin W
    Moderator

    which shortcode are you calling ?

    #189537
    TechHaus
    Participant

    It didn’t load the style for the shortcode on twentyfifteen either!

    Image of css failing to load on twentyfifteen index.php w/ bbpress shortcode

    #189533
    TechHaus
    Participant

    And 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.).

    #189532
    TechHaus
    Participant

    Yes, 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.

    urbexjordan
    Participant

    Hi 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 GhostPool

    #189527
    TechHaus
    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.

    #189520
    emiralem
    Participant

    Hello 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

    #189514
    TechHaus
    Participant

    Hi 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.

    #189513
    Stephen Edgar
    Keymaster

    I’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> <- topic shouldn’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_template shouldn’t be included, if the post_type was page, then yes, but topic post type shouldn’t have a _wp_page_template meta 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: 1327 is 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_parent is *not* “post meta”, this should be in the wp_posts table and *not wp_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 the post_parent should include that 1327 forum id.

    I suspect if you can get 1327 into 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 🙂

    #189511
    liderxlt
    Participant

    Thanks 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 = 2229

    Parameters replies:
    _bbp_topic_id = 2231
    _bbp_forum_id = 2229
    the_reply_parent_topic_id = 2229

    The 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 @netweb

    #189507
    liderxlt
    Participant

    Hi 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

Viewing 25 results - 4,576 through 4,600 (of 32,518 total)
Skip to toolbar