Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,551 through 4,575 (of 32,481 total)
  • Author
    Search Results
  • #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

    #189489
    TechHaus
    Participant

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

    #189488
    TechHaus
    Participant

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

    TechHaus
    Participant

    Hi,

    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

    #189482
    Robin W
    Moderator

    they are held in the postmeta table

    so taking a topic or reply make a note of the id – in the example below it is 16191.

    then go into the postmeta and enter this sql command

    SELECT * FROMwp_postmetaWHEREpost_idLIKE '16191'

    assuming your table prefix is ‘wp_’

    you see entries for both the IP and email

    #189479

    In reply to: @mentions not working

    pjbarry21
    Participant

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

    #189462
    Robin W
    Moderator

    ok, I can’t help you with winscp, but what you need to achieve is the following.

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    so line 38 says

    <div class="bbp-forum-content"><?php bbp_forum_content(); ?></div>

    delete this and in its place put these lines

    <div class="bbp-forum-content">
    		
    		<?php setup_postdata(bbp_get_forum_id()) ; 
    				
    		$excerpt = get_the_excerpt() ;
    		
    		echo $excerpt ;	?>
    		
    </div>

    This will then put the first 55 characters of your content.

    Once you have achieved that, come back and I’ll show you the second part.

    #189450
    avaiya
    Participant

    Wordpress Version:4.9.2
    bbPress Version: 2.5.14
    Site: http://www.avaiya.com

    I just installed bbPress a few days ago and I see it automatically created this page:

    https://www.avaiya.com/forums/

    But when you click on it it doesn’t have the actual forum on it. It seems like this should be the main forum page, with all our Categories & Forums listed on that page.

    I then watched a tutorial and realized I needed to create a page with the bbpress forum index shortcode. So I did that on the page below and now this page shows all the forums & categories on it.

    Enlightenment Village – Community

    The issue I still see, however, is that if you’re on one of the forum pages:

    https://www.avaiya.com/forums/forum/community-discussions/

    You still see the “Forum” text near the top and if you click on it it takes you
    back to this page: https://www.avaiya.com/forums/

    How can I fix this?

    Thanks!

    #189446

    Hi and thank you very much,

    we are close but not there yet: this last code works, but writes the meta-tag on <b>each page of the forum</b>, not only the archives.

    How is it possible to make it work only for archives pages?

    Thank you,

    the Process

    #189437
    Pascal Casier
    Moderator

    That should be the correct functions.php, yes.
    As the theme is not open sourced, I cannot see how the different archives and pages you mentioned are setup. If they are really bbPress pages, then the above should at least add the meta tag when looking at the source of the html page.

    You could also try (make sure to copy it from here on the forum, not from an email that you get):

    add_action( 'wp_head', 'casiepa_add_noindex' );
    function casiepa_add_noindex() {
      if ( bbp_is_topic_archive() || bbp_is_forum_archive() ) {
        wp_no_robots();
      }
    }

    Maybe have the theme author have a look at the above code and ask him to add an option in the theme?

    makingcircuits
    Participant

    sorry..this plugin not correctly coded, I got the following error message as soon as I installed..and I had to immediately deactivate it…

    “The plugin generated 115 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin…”

    Robin W
    Moderator

    since bbpress just uses wordpress then anything that works in wordpress

    eg code

    https://stackoverflow.com/questions/21928355/list-currently-logged-in-users-wordpress

    or plugin

    WP-UserOnline

    There are probably lots more examples, I just googled ‘wordpress list logged in users plugin’

    richard.miller
    Participant

    Is there a way to display which users are currently logged in?

    I’m not using a sidebar, so a code snippet I could drop into a template would be idea.

    Thanks!

Viewing 25 results - 4,551 through 4,575 (of 32,481 total)
Skip to toolbar