Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,751 through 4,775 (of 32,522 total)
  • Author
    Search Results
  • #188526
    Gewitty
    Participant

    I’m running WP 4.9.1 with the Sport theme and BBPress 2.5.14

    Everything works OK, but I have one user who has persistent problems posting. Every time he attempts to post a message, he gets an error saying, ‘ERROR your topic cannot be created at this time”.

    This does not happen with any other users and the problem persists even after I deleted his account and created a new one with a different ID and password.

    This would seem to point to some external cause, originating on his PC, but I can’t figure out what. I did suspect that he was possibly drafting his posts in MS Word and then copy/pasting them into his posts, which could have included MS control codes, a problem I’ve encountered before. However, after getting him to enter text directly in a new post, the same error message appeared.

    This one has me stumped. If anyone has seen anything like it before, or has any ideas about what the cause is, I would be very grateful to hear.

    #188502
    u_Oi
    Participant

    Hi @louisgeorges

    In fact you can do it 😎

    1.- Copy the follow code and paste it in functions.php file (If you dont know about functions please read about it before do this):

    //Restrict Topic and Replies Content For No-Registered Users
    function pj_hla_logged_in_topics($have_posts){
    if (!is_user_logged_in()){
    $have_posts = null;
    }
    return $have_posts;
    }
    add_filter('bbp_has_replies', 'pj_hla_logged_in_topics');

    With the above code your visitors (no registered users) will see only the topic title. The code locks topic content and all replies.

    2.- After pasted the code, try open a topic so you will see a bbpress notice about “you dont have access to… etc something like that”. You need to find the file where is that notice, to edit it with anything you want, for example a link to the sign up page (Sorry, I dont remember the file name).

    To show topics titles in your post or other pages you have 4 options:

    1.- Add each URL in your blog post with the same topic title and link it to the topic (hard work but good if you like linkbuilding)

    2.- Default bbpress shortcode: [bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096] ( https://codex.bbpress.org/features/shortcodes/#topics )

    3.- @robin-w plugin: http://www.rewweb.co.uk/bbpress-additional-shortcodes/

    4.- Hire a developer to create a shortcode to show last topics or whatever about topics.

    Hope this can help you!

    #188489
    thinkinginxyz
    Participant

    Hello @robin-w,

    Again, I am sorry if I offended you. It was totally no my intention. I am sorry for that. I am actually a pro open-source. I have my open open-source projects and I collaborated in a lot of variety of them. I didnt post initially this thread, and I found it because I try to come often to look around in the forum to get knowledge and to see if I can help (with my current little knowledge that I have). The question that I post is not related with this topic. I posted here in bbpress, on other expert platforms, (even now I posted it in codementor to speed up the process) and I am always on the official irc chat of bbpress. But, so far no luck at all. That is why I started,few weeks ago, learning WP plugins and hooks. I was just expecting that bbpress has a more active (from my experience) support.

    Once again, I am sorry to offend you or anyother one. No my intention.

    #188487
    Robin W
    Moderator

    Thank you for apologising. Bbpress like all free open source software is written for free by people who like coding. People who like coding don’t always tend to be those who like doing support, so like much free software, they rely on community people to help in supporting. I hope that you will also feel that if you are helped in a support forum, you look to help someone else, as that is the only way that a ‘community’ can exist. If you simply just ask a question, get a response and then go away, it is hardly surprising that there is no-one helping.

    Your question would require lots of time to understand and code, so I suspect that it will not get answered. You quickest may well be to duplicate using that code and then delete those not wanted.

    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.

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