Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,851 through 14,875 (of 32,519 total)
  • Author
    Search Results
  • #124961
    kriskl
    Participant

    Hi!

    Just migrated to bbpress, and users are confused.. as they do not see standard on other forums ‘New Topic button..

    I hope it is possible to add one using  function code – so it would appear at the top of every forum – and either expand to add ne topic – like in buddypress or at least to direct users to the bottom of the page..

    happy to pay $10-20 for this. but  please post code on the forums, so everyone can get the benefit 🙂

    thanks

    kris

    #124960
    Stephen Edgar
    Keymaster

    @shrewdies

    Huge thanks for this 🙂 (and your life story, it puts things in a much clearer context.)

    I have also split this topic starting from your first post as a new thread as I am quite sure this will be referenced by quite a few who do migrate from Simple Press.

    I will also link to it from the FAQ I am doing that will link from this page:

    https://codex.bbpress.org/import-forums/simplepress/

    Cheers,

    Stephen

    #124953
    shrewdies
    Participant

    OK, here are the redirects, but first some background.

    Your move takes some planning, and the redirects are specific to your old Simple:Press Forum structure and your new bbPress settings (Admin-Settings-Forums). I describe how I approached my conversion, but you may need a different approach. If you need specific help with a different set of objectives, then please just ask. I did not use tagging in Simple:Press, as it was more trouble to implement than the benefit it gave. None of this refers to tagging, and I notice that the r4638 version of SimplePress5.php has them commented out.

    If your forum has little search and external referral traffic, then save yourself the bother of all this, and just get on with building your new forum.

    Before I explain the permalinks, you need to be aware that I took this opportunity of simplifying my forum structure. I used to believe in different forums for different subject areas, but I’ve come to realize that most forum users do not understand my theme, so they cannot decide which forum to post in. I noticed the same thing here when I looked around for the best place to post. I decided to simplify my forums to two main choices, with the rest as child forums. I did this by manually editing the Forums parents in bbPress after the conversion. That explains my choice of Topic slug in bbPress settings, but redirects should handle any choice.

    In Simple:Press, topics get permalinks in a hierarchy under their forum, and all forums lie within the WordPress forums page in the Simple:Press settings. Thus, a topic will be referenced domain/wp-forums-page/sp-forum-title-slug/sp-post-title
    In bbPress, permalinks are built from your WordPress root, with prefixes set in the bbPress settings under slugs. Thus a topic will be referenced domain/bb-forums-base/bb-topic-slug/bb-post-title

    The post titles are the same in bbPress and Simple:Press, so redirects have to account for the changed forum slug structure.

    The first bbPress setting, Forums base, is the equivalent of your Simple:Press WP page, so I used exactly that. If you made bad choices when setting up your Simple:Press forum, I guess you could change it with the redirects, by specifying different destination URLs. I kept it the same, and simply renamed my old Simple:Press page (be aware this auto changes in WP menus, so you may need to manually delete old forum menu pages and add new custom menu links)

    In bbPress settings Single Slugs, the Forum Prefix should be left switched on.

    Forum slug has no Simple:Press equivalent, so I opted for something theme related. The default is probably OK, but I’m slug-fixated as a result of a bad SEO upbringing. I have not redirected these pages, but I will assess the impact over the next few days, and come back with these if I see they are necessary.

    I set topic slug to my most popular forum, which is very general, as per my introduction. Redirects will handle whatever you put here.

    The rest of the bbPress settings do not affect conversion.

    At last, @netweb here are the requested redirects. Are you glad you didn’t ask for my life story? 😉

    The general construct is:
    Old
    ^ begin with
    /wp-forums-page
    /sp-forum-title-slug
    (.*) store the rest

    New
    //domain
    /bb-forums-base
    /bb-topic-slug
    /$1 whatever * stored

    
    RedirectMatch 301 ^/gout-pal-forum/gout-symptoms(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gout-cures(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gout-diet(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/colchicine-campaign(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/united-states-colchicine-sources(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gout-related(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/uric-acid(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/your-gout(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/tech-stuff(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/wish-list(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    RedirectMatch 301 ^/gout-pal-forum/gouties-water-trough(.*) http://www.gout-pal.com/gout-pal-forum/please-help-my-gout/$1
    

    One potential complication lies with multi-page topics. I’m still assessing if it is worth bothering with these, as traffic rarely hits anything after the first page. Google WebMaster Tools is currently complaining, but experience tells me it will soon re-index unless there are other sites that link to specific pages.

    Disclaimer: Before you try this at home, you might like to wait a month or so. I’ll be back to tell you if I killed my forum traffic or not. 😮

    #124951

    Topic: Removing the sidebar

    in forum Themes
    dreamache
    Participant

    Okay first, I’m well aware of the 10+ threads already that exist about this topic, and I’ve gone through all of them.

    I’ve read this:
    http://codex.bbpress.org/theme-compatibility/

    It seems as though “extras” contains all of the files with get_sidebar, which I’ve edited to //get_sidebar

    The link above mentions:
    ““extras” contains optional page templates and things to make life a little easier when customizing; copy any you want to use or modify into the same ‘bbpress’ folder. eg. /wp-content/mytheme/bbpress/”

    First, that should probably be changed to: /wp-content/themes/mytheme/bbpress

    Secondly, I’ve done this. My directory structure looks like:
    wp-content/themes/sahifa/bbpress/extras (which contain the modified //get_sidebar files)

    Yet the sidebar still shows up.

    Is there anything I’m missing?

    Thanks.

    #124948
    Sunidaze
    Participant

    I really searched Google and the forum to try to find the answer but I just can’t come up with it. I have a brand new install of BBPress. I’ve never used it before. (I’m using version 2.2.3.) I’m using Wordress version 3.5.

    I went over the roles here:

    http://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    It says participants can create and edit their own topics and replies. On my forums participants cannot create topics at all. I don’t want to bump them up to moderator because I don’t want everyone to be able to edit everything.

    I’m hoping there is a simple fix for this or someone can please tell me what I’m doing wrong. 🙁

    #124945
    funnycat777
    Participant

    Hi,
    I am using the latest version of bbpress.

    When I post youtube videos using the embed code (iframe) in a bbpress post, the video does not fit within the width of the textbox.

    How can I make the youtube video responsive so that it always fits within the post and resizes itself with the correct aspect ratio?

    freax
    Participant

    I have the same problem too. I tried to find get_sidebar function to delete it from the code but I only find them in ‘extra’ directory and it is showing again. Any help ?
    Thanks in advance.

    #124943
    Ben
    Participant

    Okay, that’s just weird.

    I created a separate page for topic creation and just ran the same PHP call (`echo do_shortcode(‘[bbp-topic-form]‘);`), and it works… So for some reason that call doesn’t behave properly in my `bbpress.php`, but does just fine in a custom template.

    Stephen Edgar
    Keymaster

    So close… Indeed you use bbp_has_replies to reverse order the replies

    function custom_bbp_has_replies() {
      $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending)
      
      return $args;
    }
     
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );

    And use bbp_show_lead_topic to always show the ‘lead topic’ (More details here.

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }
     
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    #124935
    PavelS
    Participant

    And as you can see i can’t even post code part. I have tried PRE + your CODE button.

    #124934
    PavelS
    Participant

    I have the same issue.

    All i need to do is to show all forums with topics on main page. Here is my archive-forum.php

    When i try to use BB_Query i get error.
    When i try to use shortcode i get error.

    
    <ul>
     
    	<li>
    		<a href="" title="" rel="nofollow">
    		
    	</a></li>
      <li> 
         'art'
            )
          );
          $topic_query->results;*/
     
          //$forum_id = bbp_get_forum_id();
          //echo do_shortcode("[bbp-single-forum id=$forum_id]"); 
        
        
          if ( !bbp_is_forum_category() && bbp_has_topics() ) :  
            bbp_get_template_part( 'loop', 'topics-custom' );        
          endif; 
        
        ?>  
      </li>  
      
    </ul>
    #124932

    Topic: Custom front page

    in forum Themes
    PavelS
    Participant

    Hi, guys.

    I need forums titles list with topics on my forums frontpage. How can i do that? What is the right way?

    I have add next lines, and all topics are shown for each of forums. I need each forum have only it’s own topics. I know that i can use BB_query or even WP_Query but i can’t figure it out. System says that i have “Fatal error: Class ‘BB_Query’ not found in X:\home\vkk.ca\www\wp-content\themes\themeName\loop-single-forum-custom.php”

    if ( !bbp_is_forum_category() && bbp_has_topics() ) : 
    bbp_get_template_part( 'loop', 'topics-custom' ); 
    endif;

    PS: it’s bad that i should enter username only instead email or username.

    #124931
    Lynq
    Participant

    Create a page and call it something like forum registration.
    Add the registration shortcode: [bbp-register]
    Then link to the new page.

    (You can find more shortcodes here: https://codex.bbpress.org/shortcodes/)

    Maruti Mohanty
    Participant

    Hi All,

    I have installed both the site wide and group forums following the steps from the link below

    http://codex.buddypress.org/user/setting-up-a-new-installation/installing-group-and-sitewide-forums/.

    I have forums in both site wide forums and group forums but I only see group forums under the forum tab in the profile page, but i want to see details of both group and site wide forum under it. This may have happened because of the step where we select “group forum” page as the discussion forum while installing both site wide and group forums.

    Taking the above fact into consideration I tried to change the discussion forum page from “Group Forums” to “Forums”, but this didnt change the details under the forum tab in the profile page.

    Any help will be highly appreciated

    Thanks in Advance.

    #124919
    Clicknathan
    Participant

    So I believe I’ve figured out a really simple solution to this all. My particular issue with the plugin in question in this thread is simply that it relies on users clicking a link to mark a post as read, which isn’t all that intuitive in my humblest of opinions.

    Using a built in BBPress function `echo bbp_get_topic_last_reply_url( $topic_id );` and some CSS, we can easily style unread threads.

    `echo bbp_get_topic_last_reply_url( $topic_id );` links to the latest reply in a given thread. So something like myforum.com/forum/topic/post-name/page/10/#postid-12345

    When a new reply is created, that last bit there becomes #postid-12346 and is therefore a new URL, so browsers will treat it as an unvisited link. Therefor, doing something like this gets the job done:

    `a:visited {color:red;}`

    For anyone who’d like more detail, I’ve written a complete post on exactly how to do this: http://clicknathan.com/web-design/bbpress-read-topic/

    It only involves changing one BBPress template file in your theme & adding a single line of code to your style.css file.

    #124897
    Stephen Edgar
    Keymaster

    You just need to run the Repair Tools for ‘Count topics for each user’ and ‘Count replies for each user’.

    #124892
    Stephen Edgar
    Keymaster

    Are you referring to Mingle Forums?

    If so I could not repro this with bbPress 2.2.3 and Mingle Forums 1.0.33.3

    • WordPress Role = Administrator | bbPress Role = Keymaster
    • WordPress Role = Subscriber | bbPress Role = Moderator
    • WordPress Role = Subscriber | bbPress Role = Participant
    • WordPress Role = Subscriber | bbPress Role = Spectator

    The above was all I tested but each works as expected:
    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    #124890

    In reply to: bbConverter error

    Stephen Edgar
    Keymaster

    bbPress 2.x includes its own phpBB converter (It was based on bbConverter)

    https://codex.bbpress.org/import-forums/

    The next release of bbPress will also include further improvements of the phpBB importer (I am working on these right now)

    Hansaplastique
    Participant

    Oh you of course will need CodeColorer plugin installed …

    Hansaplastique
    Participant

    Never mind; figured it out (by coincidence).

    If anyone is interested, add the following code to your wordpress functions.php;

    function t4a_bbp_shortcodes( $content, $reply_id ) {
    	return codecolorer_highlight( $content );
    }
    add_filter('bbp_get_reply_content', 't4a_bbp_shortcodes', 10, 2);
    add_filter('bbp_get_topic_content', 't4a_bbp_shortcodes', 10, 2);
    #124808
    Ben
    Participant

    Have you found a solution to this problem?

    I’m having the same issue. I used the [bbp-topic-form] shortcode in my `bbpress.php` template file. If I enter with my super-admin account I can see the form and create topics. But if I enter under the default “Participant” role, it gives me the message “You cannot create new topics.” However, if I go to a specific forum, the topic form is displayed underneath, so it must be a shortcode problem.

    Right now I’m using `echo do_shortcode(“[bbp-topic-form]“);` to include the form in my template file. Is there a better way to do this?

    Hansaplastique
    Participant

    I’d like to offer visitors the ability to use CodeColorer to syntax highlight their code.

    I know that shortcodes are basically disabled for security reasons – which makes sense.

    But how can I add a “safe” shortcode to bbpress?
    The WP plugin bbPress2 Shortcode Whitelist and bbPress do shortcodes are not working (the latter even being risky at best).

    bbPress: 2.2.3
    WP: 3.5
    Theme: my own development

    #124799
    Yurij
    Participant

    I am trying to translate the bbpress plugin v2.2.3 to swedish.

    I have followed this guide:
    http://codex.bbpress.org/bbpress-in-your-language/
    But its not working 🙁

    #124791
    Lynq
    Participant

    The only thing I can think of is that there is some template files that are overriding the default bbPress theme and they are erroring because of some custom function or have no actual code in them.

    Have you had a look in your theme folder to see if there is a bbpress folder, is there any files inside that folder?

    #124784
    distjoyo1
    Participant

    tanx so much…yea, so rite “the theme is doing bad things to the WordPress queries (to pull in the topics / replies) ” ..my theme is made v1.3 …but it most have been corrected in the latest version. however is there a way for me to probably correct this by editing some of “made” page code and hw can i correctly troubleshoot this problem…

Viewing 25 results - 14,851 through 14,875 (of 32,519 total)
Skip to toolbar