Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,451 through 13,475 (of 32,521 total)
  • Author
    Search Results
  • #138823
    harpeml
    Participant

    Hi,

    I would like to automate the use of the feature in the topic title. Would someone point me to where in the bbPress code I should look to get assistance? Is there some tool already available to do this?

    By way of background, I am going to write and external program to WordPress that adds new posts periodically to an existing forum. I then need to somehow trigger automatically the forum repair process.

    thanks,
    mike

    #138822
    RB2108
    Participant

    Hi .. As a volunteer, I’ve created and run a website for a local dental charity http://www.dentaid.org which uses WordPress and a custom theme. The charity have asked me whether its possible to add a forum within the existing site to allow the dental volunteers who go on organized trips to developing countries to get together before the expeditions and discuss topics, ask questions of the organizer etc. Clearly bbPress is a natural candidate for this but having spent a few hours searching the web, I’m not 100% sure of the right way to proceed (and of what I’ve read, there seems to be several different ways to implement bbPress .. maybe depending upon the level). I would like the forum to work as a self-contained subsystem within the existing web site with one entry URL (www.dentaid.org/forums) which can be added to the nav bar and maintaining the existing header/nav bar and footer, so using the one column full screen width content for bbPress. I think that bbPress will need it’s own styling as I’m sure that the existing style.css won’t be optimal for forums.

    I’ve tried putting bbpress shortcodes into new pages as recommended in some of the web articles but although it appears to work, the styling is not ideal and functionally it seems very basic. What I’m aiming for is to put something like the bbPress forum page that I’m using right now into the content of a page on our website while keeping the rest of the website exactly asis. (I would also like to allow new folks to register and/or existing users retrieve their lost passwords from within the bbPress ‘subsystem’ i.e. provide complete forum functionality from within the bbp system.

    Any help as to how I go about this would be much appreciated as the charity have decided that this is an urgent requirement for a trip to Uganda coming up soon and I don’t want to go off at a tangent and waste a whole load of time climbing the learning curve. At the moment, I’m confused as to whether I should be using widgets, creating child themes, using shortcodes with my own pages or anything else.

    Pointers to web pages, documents, videos or just some good old-fashioned advice will be very welcome.

    Thanks in anticipation.
    Ron

    #138815
    Stephen Edgar
    Keymaster

    Again, you can extend bbPress with custom views.

    One of the sites in that link list has 4 views:

    Most popular topics
    Topics with no replies
    Topics with most replies
    Latest topics

    That doesn’t mean they are part of bbPress, check your themes functions.php file for something like this:

    function wphc_register_custom_views() {
    	bbp_register_view( 'popular-topics', __( 'Popular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num' ), false );
    	bbp_register_view( 'unpopular-topics', __( 'Unpopular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num', 'order' => 'asc' ), false );
    	bbp_register_view( 'random-topic', __( 'Random Topic' ), array( 'orderby' => 'rand' ), false );
    	bbp_register_view( 'closed', __( 'Recently Closed' ), array( 'post_status' => 'closed' ), false );
    	
    
    }
    add_action( 'bbp_register_views', 'wphc_register_custom_views' );
    #138811
    Stephen Edgar
    Keymaster

    Check your forum settings, anonymous posting may be enabled.

    https://codex.bbpress.org/forum-settings/

    Anonymous posting
    Any site visitor can post a new topic or reply without the need of logging into your site. They will still be required to enter a name and email to post, but will not be required to create a username or password and will not be shown in the list of WordPress Users.

    #138810
    Stephen Edgar
    Keymaster

    You can give it a shot, time permitting I’ll try to help where I can, there is a lot of info in those links I shared above and in the codex I linked to also.

    #138808
    Stephen Edgar
    Keymaster

    It might be worth that being explained somewhere as I can’t be the only person whom that’s confused.

    I made a note of this at https://codex.bbpress.org/import-forums/vanilla/

    A CSV import will work perfectly, it is just a matter of matching the to & from fields in the dataset, good data = good import.

    #138801
    Stephen Edgar
    Keymaster

    You could just make the data anonymous, if there is username, emails etc after your export just normalize the data,

    Eg. Username: Donta -> user1
    Email donta@mydomain.com -> user1@example.com

    The same for IP addresses, topic title, or any other data you can just change this ‘recognizable’ data to some generic text, the sql you export will be in plain text so you can edit this in any text editor.

    The key information needed is:

    * 3-5 rows from the forum table
    * 3-5 rows from the thread table that are listed in the above forums sql
    * 10-15 rows from the post table that show replies from the above topics sql
    * 1-3 rows from the user table that shows users from the above topics & replies sql

    #138800
    Stephen Edgar
    Keymaster

    bbPress only includes two views ‘out of the box’ and they are both translatable.

    Most popular topicshttps://bbpress.trac.wordpress.org/browser/tags/2.4.1/languages/bbpress.pot#L301
    &
    Topics with no replieshttps://bbpress.trac.wordpress.org/browser/tags/2.4.1/languages/bbpress.pot#L305

    Check if you have these in a custom function or another plugin.

    #138786
    Robin W
    Moderator

    ok.
    In 99% of cases this file will not have changed in the update, but all bbpress update plugins will overwrite this file, so you’ll lose your change.

    Therefore you can have two strategies.

    1. do the update – this will overwrite the code. Then go back in to this file and just put your two lines of code back. You might need to check that the file hasn’t altered around line 24, so might need to alter where you put it.

    2. Copy the file using FTP to your PC. Following an update, inspect the new content-single-topic to see if the file has been altered. Very high chance it hasn’t. If not, then just FTP back the file on your PC. If it has altered, you’ll need to copy the two ,lines fo code and put them back in the right place.

    #138785
    Mailhilfe
    Participant

    Thank you!
    This works, but how can I save the code before an update?

    #138778
    raduszeged
    Participant

    To moderators: please, remove the blog links and images from my post! My server is under heavy load 🙁

    #138772
    raduszeged
    Participant

    nicoblue: I checked your website and – as far as I can see – you solved the problem. I’ve the same issue now; could you help me with the solution?

    Wordpress version: 3.5.1
    BBpress version: 2.3.2
    Theme: Default Twenty-eleven (from earlier WP) with my own minor modifications

    The problem is the same: the bbpress forum style on the full-width pages are working flawless. But when I use the shortcode, the floating elements are broken, for example the pagination is messed up. The styling was okay a year ago, but I updated bbpress not so long ago, after I did not checked the shortcode pages (my bad…), and yesterday I faced with the problem.

    I show you the difference:

    On full-width page, without shortcode (perfect):

    Link: http://www.radu.hu/forum/f/kerdesek-a-pontos-adatokkal-kapcsolatban/

    With shortcode, pagination and other styles are broken:

    Link: http://www.radu.hu/hasznos-eszkozok/jo-minosegu-backteszt-adatok/adatok-letoltese/

    At the bottom of the page, the new topic box (the border) is wrong:

    Link: http://www.radu.hu/hasznos-eszkozok/jo-minosegu-backteszt-adatok/adatok-letoltese/

    If anyone could give me a hint… 🙂

    #138768
    connielk
    Participant

    I was right. There was a file missing.

    I took archive-forum.php and renamed it search-forum.php. Then I changed this line:

    <?php bbp_get_template_part( 'content', 'archive-forum' ); ?>

    to this:

    <?php bbp_get_template_part( 'content', 'search' ); ?>

    Then I copied it into my theme folder. And voila. Search now works.

    I get the gold start today.

    #138767

    In reply to: Forum Access Question

    Robin W
    Moderator

    This will take you several stages but should get you where you want to be

    1. For your forum page

    Create a page called forum or forums. In the body of the page type the following code

    [bbp-forum-index]

    And save

    If your menu auto-creates then this will appear, if not go into dashboard>appearance>menus

    2. Create a register form

    Download contact form 7

    https://wordpress.org/plugins/contact-form-7/

    set up a page called ‘register’, and put a registration for in there

    3. Download bbpress WP tweaks

    https://wordpress.org/plugins/bbpress-wp-tweaks/

    This will give you a bbpress sidebar that your forum page will use

    Go into dashboard>appearance>widgets and populate this with

    (bbpress) login widget

    The url for register will be the page you set up under 2 – so populate this with “/register”, and the lost password url will be “/lost-password”

    (bbpress) forums list

    (bbpress) recent topics

    (bbpress) recent replies

    And anything else you want to add

    4. When someone sends in a form (it’ll be emailed to you) then you can set them up, and ensure that they don’t get the toolbar. They will have “no role for this site” for wordpress, and “participant” form bbpress.

    That should be enough to get you going, but come back if you need more !

    #138766
    tristanojbacon
    Participant

    I have tried to install bbPress, but am having issues with the Forum Index page.
    This is the forum index: Forums. However, the actual forums work fine, as you can see on a test forum I created called Suggestions.

    Any ideas as to why it’s doing this? I’ve followed the few instructions I could find, including the page about Theme Compatibility. I added the bbPress theme files to my own theme, as suggested in those intructions.

    Also, is there a way for the link to just be ‘http://thewhitesharks.co.uk/forums/suggestions/&#8217; instead of ‘http://thewhitesharks.co.uk/forums/forum/suggestions/&#8217;? Seems a bit long to me…

    #138760
    connielk
    Participant

    It’s as if there is a php file missing in pugins\bbpress\templates\default\extras that displays the search results. Where can I find that?

    #138758
    connielk
    Participant

    That’s a great tutorial. And close to what I did yesterday, just without the child theme. I used this: https://codex.bbpress.org/theme-compatibility/

    However this had no effect on the search page and I can’t find what page to edit.

    #138748
    neotrikz
    Participant

    Follow this link for the tutorial :http://technotip.org/bbpressplugin-theme-compatibility/

    #138746
    connielk
    Participant

    As per the theme support page, I went to bbpress\templates\default\ and copied the bbpress and css folders into my theme folder. I also copied archive-forum.php and single-user.php in to the theme folder.

    I made a few modifications to archive-forum.php and single-user.php to fit into the page and remove the sidebar.

    Seems like most functions are working now except Search. It still goes to a wonky page. Where do I go to look to fix that?

    #138744
    connielk
    Participant

    Do you mind posting again? I don’t see a link to a tutorial.

    In the mean time I found a post about Theme support. It helped somewhat. The page is too wide and I want to remove the sitemap. I can probably find that in the php. And Search still doesn’t work. Not sure how to fix that. Any pointers there?

    OrgSpring
    Participant

    For those still struggling with the garbled forums page in a stock woothemes canvas installation (or child theme off canvas) this support post at WooThemes really helps:
    http://support.woothemes.com/entries/24051302-Fix-bbPress-forum-search-in-Canvas

    The woo team created a simple bbpress template for use in canvas and included the attached files – one template file and a some code for functions.php.

    Works like a charm.

    #138738
    Robin W
    Moderator

    Your first “forum” is actually your home page – most people run forums as a sub to their main site -the site sort of thinks it is displaying

    home>forums>Digital terrestrial

    Interesting thread here

    How do I edit bbPress breadcrumbs?

    Which makes me think this plugin might be what you need to lose the “home” page bit in the breadcrumb.

    https://wordpress.org/plugins/bbpress-string-swap/

    It that doesn’t work, come back and I’ll try to work out where in the plugin you put some code.

    #138735
    neotrikz
    Participant
    #138731
    connielk
    Participant

    I removed the page with the shortcode, since the links in it to users and search send it to the slug that doesn’t work. It has just confused everyone. So what you see in the menu now goes directly to the slug that doesn’t work.

    #138729
    connielk
    Participant

    So now what do I do. The entire rest of the site is ready. The forum is imported. What do I do???

Viewing 25 results - 13,451 through 13,475 (of 32,521 total)
Skip to toolbar