Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,751 through 4,775 (of 32,518 total)
  • Author
    Search Results
  • Themezly
    Participant

    Let me start by saying that I did extensive searching for past 2 hours and are surprised to see all questions about the same issue getting brushed off. Some even instruct to remove the home link from breadcrumb just to hide an actual bug.

    https://bbpress.org/forums/topic/breadcrumb-and-forum-index-issues/

    bbPress breadcrumb forum root link issue


    there are many more but I am allowed only 3 links. Google breadcrumb [bbp-forum-index]

    Please take the issue as it is which is a bug confirmed by many.

    1. Breadcrumbs forum home page link and the page that user has created are not in sync
    2. When user creates the page with shortcode as instructed in Step 2 https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ or even Step 1

    the default Forum Root archive is overriding that page instead other way around. The process should be same as selecting page for posts in WP but in BB is just complicated and not effective.

    Use default theme, follow instructions in step 2 , when you done , go to your custom created forum page and change template. No changes. Now change the root in forum settings, redo permalinks go back to custom page and you will see the change.

    Note that I have no custom overrides so it is not theme related.

    #188455
    yemlihakorkmaz
    Participant

    Old smf page url address

    www.website.com/forum/saglik/kanatli-hastaliklari/

    New wordpress bbpres url adress

    www.website.com/topic/kanatli-hastaliklari/

    This is important

    Old smf page first forum later saglık later page name

    New bbpress page direct go page name

    How do i fix the problem ?

    ancawonka
    Participant

    Hmm. So I’ve figured out the issue w/ the no-replies link – I can now see the auto-generated view for forums with no replies at

    {domain}/sitename/forums/view/no-replies/

    But the page with the shortcode still doesn’t work.

    ancawonka
    Participant

    Hi there,

    I’m trying to show users a list of the topics with no replies. However, I’m getting a “Oh bother! No topics were found here!” message on that page. Here’s what I did:

    1. I created two forums, each one with topics. Each forum has topics with no replies in it.
    2. The topics display the following information (Voices: 1, Posts: 1). (Instead of “Voices 1, Replies: 0);
    3. I created a page, and added this shortcode: [bbp-single-view id=’no-replies’]

    The site is a multisite, configured as a subdirectory install.

    Also, when I try to hit the no-replies view directory by going to {domain}/sitename/forums/view/no-replies I get a 404 page.

    I wonder if I’ve configured something incorrectly?

    (edited so I could subscribe to follow-up replies)

    ahau
    Participant

    Hi,

    Could someone help me with the syntax for the following join

    SELECT
    maoriorg_exportoldforums.pp_threads.thread_subject,
    maoriorg_exportoldforums.pp_posts.post_message,
    maoriorg_exportoldforums.pp_threads.thread_id
    FROM
    maoriorg_exportoldforums.pp_posts
    INNER JOIN maoriorg_exportoldforums.pp_threads
    ON maoriorg_exportoldforums.pp_posts.post_id = maoriorg_exportoldforums.pp_threads.thread_id
    GROUP BY
    maoriorg_exportoldforums.pp_threads.thread_id

    This is what I have come up with so far, (compied from bbPress1.php to follow) but not sure how to put the GROUP BY clause

    
    		// Topic content.
    		// Note: We join the 'posts' table because 'topics' table does not include content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'posts',
    			'from_fieldname'  => 'post_text',
    			'join_tablename'  => 'topics',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (thread_id) WHERE posts.post_position IN (0,1)',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    		);
    

    Mind you, I could also have the wrong fields in the wrong place so any corrections and help most appreciated.

    Thank you for your time 🙂

    #188442
    xfallseane
    Participant

    Problem almost fix ! I recode the author zone, actually it’s good.

    How to remove the red zone (screen) =>

    I have search in different template but i don’t find !

    #188441
    xfallseane
    Participant

    I have update my css with your code but don’t work, the profil picture is almost good !

    I have test different code the margin-left for reply-content is the problem maybe no ?

    #188440
    ytwebdesigns
    Participant

    Hi

    I am using bbpress on hebrew website.
    Using Poedit to translate
    I have managed to translate most strings but I have the string “on” in english on which appears on line 1186 in widgets.php
    i also tried editing the php code on this row and replacing “on” with a hebrew string and uploading to wp-content/child/bbpress/includes/common/widgets.php but this didnt work
    also in po file tried translating string and replacing “on” with “test” this didnt work either.

    I cant seem to apply any css on this either
    https://forumbaaleytshuva.co.il/category/%D7%9E%D7%90%D7%9E%D7%A8%D7%99%D7%9D/%D7%93%D7%99%D7%95%D7%9F-%D7%A0%D7%95%D7%A7%D7%91/

    screenshot below

    View post on imgur.com

    thanks

    #188436
    Robin W
    Moderator

    hmm, not suer why your bbpress.css file is in wp-content/plugins/templates rather than wp-content/plugins/bbpress/templates – have you altered this?

    In essence you want to set

    .bbp-reply-author width :100% ;
    .bbp-reply-content margin : 0px;

    This will force the content to the next line, and move it to the start of that line.

    I’d also add

    #bbpress-forums div.bbp-reply-author img.avatar {
    position: relative;
    }

    so you’d end up with (untested)

    @media only screen and (max-width: 480px) {
    
    .bbp-reply-author  {
    width :100% ;
    }
    .bbp-reply-content {
    margin : 0px;
    }
    
    #bbpress-forums div.bbp-reply-author img.avatar {
    	position: relative;
    	}
    
    }
    #188424

    In reply to: No bbp-themes folder

    Robin W
    Moderator

    the instructions are quite dated.

    the recent version is here

    Step by step guide to setting up a bbPress forum – Part 1

    bbpress no longer has theme’s – it uses your wordpress theme

    #188415

    Topic: No bbp-themes folder

    in forum Themes
    lisa044
    Participant

    Hi,
    I am following these instructions (https://codex.bbpress.org/themes/theme-compatibility/step-by-step-guide-to-creating-a-custom-bbpress-theme/) and have got Cyberduck connected but in the wwwroot > wp-content > plugins > bbpress folder there is no ‘bbp-themes’ folder as the directions state.

    No idea what to do next, whether I should be using a different folder as the instructions are out of date for my version or what??

    Think Im on wordpress 4.8 and bbpress 2.5.14

    Thanks
    Lisa

    #188414
    peter-hamilton
    Participant

    You could use CSS to make the width of articles 100%

    .article {width: 100%;}

    You can use google Chrome to test/alter CSS to see what you need to do to fix things.
    Use right mouse button on an element on the screen and press “inspect”, then a window opens where you can play with CSS.

    You do have a child-theme I hope?

    #188382
    peter-hamilton
    Participant

    Hi all, I have been playing on and off with WordPress, BBPress and Buddypress, mostly to build my own company website.

    I have almost completed my quest to make BBpress as functional and user friendly as any other major, paid for, forum software offers, and I think I have even improved to my own preference and proven that BBpress is capable to be better then any commercial package.

    Please review my website, I have a demo account as you need to be logged in for all the plugins and hacks to be visible.

    I have added quite a few plugins and function snippets, I do not know how to code php or javascript, just basic html and css for the rest I cut and paste until it works, although I do understand what I am looking at with php after 4 years of cut-and-paste…lol

    http://www.seedism.nl

    username: demo
    passowrd: demo2017

    Just to let you know, I breed hybrid strains of medicinal Cannabis so you will find this content on my website!!

    #188376
    AdventureRidingNZ
    Participant

    I know this is a topic dredge but would the same code work for excluding particular forums from search results?

    #188375
    AdventureRidingNZ
    Participant

    @adjunkten Did you find a fix for this? I am using the same code snippets to extend my search results but now want to exclude/hide some private group forums.

    Robin W
    Moderator

    Start with

    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/
    3. Some people have fixed it with this plugin https://wordpress.org/plugins/asyncronous-bbpress-subscriptions/

    ahau
    Participant

    Hi,

    After a day of using the example.php to create a custom import form I finally tried to run it and all I get is Staring Conversion with the little spinner next to it and nothing else happens.

    I have stopped it and then chosen another converter just to see what it does and it does run past there telling me No fourms to convert etc …

    For curiousity I ran a different conversion and used the wrong username and it did tell me it couldn’t connect. I also did that again using the wrong database and it said it couldn’t connect tot he database. So I am guessing that this starting conversion, spinner, nothing (even after leaving it for 1/2 hour and I do not have a large forum to convert) must be an error after there is a database connection and before the main code runs.

    Here is basically what I have done

    Renamed example.php to Originalforum.php

    Changed Line 4 to * Originalforum converter base impoprter template for bbPress

    Changed line 9 to class Originalforum extends BBP_Converter_Base {

    Went through line by line and changed as needed, making sure that the case in the tables was the same in the file.

    Used example.php, mingle.php and vanilla.php to check each line. For example I used the vanilla.php dates code as the one I am doing has the same format as needed and the mingle.php to add in the bottom the public function callback_topic_status code.

    If anyone can point me in the right direction to get past the starting conversion – spinner – nothing else that would be most appreciated. I know once I am past that if there are sql / code errors I will be able to fix those – I just need to be able to get to that stage!

    Thank you for your time.

    #188347
    Robin W
    Moderator

    brilliant – thanks so much for posting the solution, and yes it looks like if you partner with a page and have multiple shortcodes then you may need to choose what the forum root should show.

    #188345
    Jason
    Participant

    I found this topic from 3 years ago, which helped me:

    Pagination broken when using shortcode for topic index

    It suggested changing the Forum setting “Forum root should show” to “Topics by Freshness.” I had it set to “Forum Index.” With this setting changed, my pagination works.

    Not sure why this setting would break pagination in bbpress topics index shortcode, but at least it works now.

    #188334
    Justin
    Participant

    I tried 2.6Rc3 and it did more, but still getting the same error along with a lot of others:

    Import Finished
    17: No threaded replies to import
    16: No anonymous reply authors to import
    WordPress database error: [Table 'db507177147.Comment' doesn't exist]
    SELECT convert(Comment.CommentID USING "utf8mb4") AS CommentID,convert(Comment.DiscussionID USING "utf8mb4") AS DiscussionID,convert(Comment.InsertIPAddress USING "utf8mb4") AS InsertIPAddress,convert(Comment.InsertUserID USING "utf8mb4") AS InsertUserID,convert(Comment.Body USING "utf8mb4") AS Body,convert(Comment.DateInserted USING "utf8mb4") AS DateInserted,convert(Comment.DateUpdated USING "utf8mb4") AS DateUpdated FROM Comment AS Comment WHERE Format != "Deleted" LIMIT 0, 100
    15: No replies to import
    14: No favorites to import
    13: No topic subscriptions to import
    WordPress database error: [Table 'db507177147.TagDiscussion' doesn't exist]
    SELECT convert(TagDiscussion.DiscussionID USING "utf8mb4") AS DiscussionID,convert(TagDiscussion.TagID USING "utf8mb4") AS TagID,convert(Tag.Name USING "utf8mb4") AS Name FROM TagDiscussion AS TagDiscussion INNER JOIN Tag AS Tag USING (tagid) LIMIT 0, 100
    12: No topic tags to import
    11: No closed topics to close
    Continuing Import
    Import Stopped (by User)
    10: No super stickies to stick
    9: No stickies to stick
    8: No anonymous topic authors to import
    WordPress database error: [Table 'db507177147.Discussion' doesn't exist]
    SELECT convert(Discussion.DiscussionID USING "utf8mb4") AS DiscussionID,convert(Discussion.CountComments USING "utf8mb4") AS CountComments,convert(Discussion.CategoryID USING "utf8mb4") AS CategoryID,convert(Discussion.InsertUserID USING "utf8mb4") AS InsertUserID,convert(Discussion.Name USING "utf8mb4") AS Name,convert(Discussion.Body USING "utf8mb4") AS Body,convert(Discussion.closed USING "utf8mb4") AS closed,convert(Discussion.InsertIPAddress USING "utf8mb4") AS InsertIPAddress,convert(Discussion.Announce USING "utf8mb4") AS Announce,convert(Discussion.DateInserted USING "utf8mb4") AS DateInserted,convert(Discussion.DateUpdated USING "utf8mb4") AS DateUpdated,convert(Discussion.DateLastComment USING "utf8mb4") AS DateLastComment FROM Discussion AS Discussion WHERE Format != "Deleted" LIMIT 0, 100
    7: No topics to import
    6: No forum subscriptions to import
    5: No forum parents to import
    WordPress database error: [Table 'db507177147.Category' doesn't exist]
    SELECT convert(Category.CategoryID USING "utf8mb4") AS CategoryID,convert(Category.ParentCategoryID USING "utf8mb4") AS ParentCategoryID,convert(Category.CountDiscussions USING "utf8mb4") AS CountDiscussions,convert(Category.CountComments USING "utf8mb4") AS CountComments,convert(Category.Name USING "utf8mb4") AS Name,convert(Category.Description USING "utf8mb4") AS Description,convert(Category.Sort USING "utf8mb4") AS Sort,convert(Category.DateInserted USING "utf8mb4") AS DateInserted,convert(Category.DateUpdated USING "utf8mb4") AS DateUpdated FROM Category AS Category WHERE Category.CategoryID > 0 LIMIT 0, 100
    4: No forums to import
    3: No passwords to clear
    WordPress database error: [Table 'db507177147.User' doesn't exist]
    SELECT convert(User.UserID USING "utf8mb4") AS UserID,convert(User.Password USING "utf8mb4") AS Password,convert(User.Name USING "utf8mb4") AS Name,convert(User.Email USING "utf8mb4") AS Email,convert(User.DateInserted USING "utf8mb4") AS DateInserted FROM User AS User WHERE Deleted !=1 LIMIT 0, 100
    2: No users to import
    1: Skipping sync-table clean-up
    WordPress database error: [Specified key was too long; max key length is 1000 bytes]
    CREATE TABLE GcuHRqrGbbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default '0', meta_key varchar(191) null, meta_value varchar(191) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
    Starting Import
    Ready to go.

    Any suggestions? Is my database not allowing writes? I am using 1and1 as my web and database host.

    #188330
    ahau
    Participant

    Hi,

    I am moving an old site to WP and bbPress and need to convert my old forums. I understand I need to use the example.php in the converter folder and write a converter for each old forum – there are 3 I am gong to convert.

    And wouldn’t you know it, the 3 different forums use 3 different date formats!

    Here they are
    1415922411
    2004-09-13 19:25:59
    20080407181855

    From looking around in all of the converter files I see that forum dates are done 2 ways

    In example converter – I am guessing that I would use this format to convert the date like 20080407181855 ?

    // Forum dates.
    $this->field_map[] = array(
    'to_type' => 'forum',
    'to_fieldname' => 'post_date',
    'default' => date('Y-m-d H:i:s')
    );

    In vanilla converter – I am guessing I would use this format to convert the date like 2004-09-13 19:25:59 ?

    // Forum dates.
    $this->field_map[] = array(
    'from_tablename' => 'Category',
    'from_fieldname' => 'DateInserted',
    'to_type' => 'forum',
    'to_fieldname' => 'post_date',
    );

    Anyone know how I can convert a date such as 1415922411 to the correct date format – which I am guessing is Y-m-d H:i:s?

    Thank you for your time.

    #188326
    Robin W
    Moderator

    ok, I’ve got the login information and looked at the issue.

    On my test site, I can replicate a page with

    [bbp-topic-index]
    [bbp-forum-index]
    [bbp-topic-form]

    and have no problem in pagination. page 2 comes up as

    http://mysite.com/forums/page/2/

    This is with a twentyseventen clean theme.

    #188323
    Jason
    Participant

    Robin, I would like to give you login access so you can take a look at how the forums are working, but I don’t want to provide details here. Ideas?

    1. Yes, Forum index page is here: http://cathollowcondos.com/forums/ and it is the one that is generating invalid pagination links.
    2. Yes, the Forum index page has [bbp-forum-index] in it. In fact, I have [bbp-topic-index], [bbp-forum-index], and [bbp-topic-form] on the page, in that order. It looks like [bbp-topic-index] is the shortcode responsible for generating invalid pagination links.

    I have 3 categories/forums listed on the index page, and they have the following number of topics in each: 3, 13, and 1.

    **Important** – If I go to the General forum with 13 topics, there are 2 pages of topics; one with 15 topics, and a 2nd page with another 15 topics. So, it looks like the count is not being displayed properly. BUT, the pagination link to page 2 is working on the General forum page, but not on the main index page. Also, I’m not sure what the difference is between topics and posts shown on the Forums index page. Replies are listed separately. I think you really need to see it for yourself, but it’s a private site.

    #188316
    Robin W
    Moderator

    Thanks for that.

    The blogs per page should not affect the number of forums shown. This is set to 50 in bbpress unless changed by code, which would either be code you have done (and would know about), code from a plugin (but you have disabled and checked these) or your theme (which again you have checked).

    I’m not sure what else would be doing this

    Do you know how to access the database and look at items in it?

    #188312
    tkdoherty
    Participant

    I’d like to remove the date stamp from topics and responses. I found a couple of code suggestions trough Google searches but I haven’t gotten any to work. As a work around, I simply changed the wordpress general settings for date and time to Custom, and then left the custom field blank. This almost worked. The date/time stamp changed from, for instance, “11/25/2017 at 7:03 am” to just ” at “. My trouble is that “at”. I’ve been sniffing through the wordpress and theme php files to remove it or change it to a space, but cannot figure out where the “at” is. Can anyone tell me how I can change or remove it?

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