Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,276 through 15,300 (of 32,519 total)
  • Author
    Search Results
  • #119383
    zaerl
    Participant

    Maybe the email has been catalogued as spam. It is a common problem especially if you are using a shared host or something similar. The admin can activate the user in the admin area at http://example.com/wp-admin/users.php

    The activation codes are unique.

    #119382
    zaerl
    Participant

    > how about shortcode single topic tag?

    Do you mean a shortcode that display all topics which have tag N? [bbp-single-topic-tag id=N]

    #119380
    boatkorachal
    Participant

    dddd

    > sdfasdf

    ds![asdf][1]
    
    #119379
    Mimma
    Participant

    how about shortcode single topic tag? I have tried this [bbp-single-topic-tag id=10] and [bbp-single-tag id=10], but it result empty page on my website, can anyone help me ?

    #119378

    In reply to: Shortcode not working

    Mimma
    Participant

    i have try this one too, but it still doesn’t work :'(
    [bbp-single-tag id=12] or [bbp-topic-tag id=12]

    #119370
    chromancer
    Participant

    Hey folks, I had the same problem as you all. With no solution forthcoming, I dug down into the code and used a bunch of debug_zval_dump() statements to see the actual SQL.

    The problem is that the code is producing this query to find out whether or not you have subforums:

    SELECT ID FROM wp_posts WHERE post_parent = 31 AND post_status IN ( 'publish' ) AND post_type = 'forum' ORDER BY ID DESC
    

    But the status for your private subforums is ‘private’. You want to see this:

    SELECT ID FROM wp_posts WHERE post_parent = 31 AND post_status IN ( 'publish','private' ) AND post_type = 'forum' ORDER BY ID DESC
    

    I found this on line 1287 of bb-common-functions.php:

        $post_status = array( bbp_get_public_status_id() );
    

    That line of code is what puts the ( ‘publish’) list in the SQL. I changed it to:

        $post_status = array( bbp_get_public_status_id(), bbp_get_private_status_id() );
    

    Now my subforums are showing up correctly. To see if this fix would have any adverse affects, I created a public forum, added a private subforum and logged out. The private subforum was not visible. Seems like this fix worked for me.

    If you don’t have access to the actual source code, I’m afraid you won’t be able to do what I did, but I wanted to share that for those who do. Perhaps somebody can make some sort of plugin to help everyone else. I’m actually not a PHP guy and hardly know what I’m doing at all and I’m new to bbpress as well. If anybody comes up with anything better, I’d love to see it!

    #119365

    In reply to: Shortcode not working

    Shmoo
    Participant

    Looks like single-topic-tag ID isn’t a supported short code.

    It’s [bbp-single-tag id=12] or [bbp-topic-tag id=12]

    https://codex.bbpress.org/shortcodes/

    #119361

    In reply to: Shortcode not working

    Mimma
    Participant

    i have the same issue ..
    how to fix this problem? Anyone know?
    i have try any shortcode and it still doesn’t work ..
    Thx

    #119327
    JoanBotella
    Participant

    Hi everyone.

    I’m developing a web site with multilingual support, using WordPress 3.4.2 and the Polylang plugin 0.9.4 . I’d love to add a forum to the site, so I downloaded, installed and activated bbPress 2.1.2 .

    The first problem was that bbPress didn’t switch from one language to another, always keeping the default WordPress language. I solved this calling again bbpress()->load_textdomain() before loading the header template:

    function cbp_bbPressTranslate(){
    bpress()->load_textdomain();
    }
    add_action('get_header','cbp_bbPressTranslate');
    

    This worked great, but soon other problem appeared. If topics and replies doesn’t have translations, they doesn’t show up. I can add translation posts for they from the admin panel, but of course my users can’t. I’ve isolated the problem to the Polylang plugin: switching back to Twenty Eleven theme and deactivating all plugins but Polylang didn’t do anything. Deactivating Polylang showed the topics again.

    I’ve tried other multilingual plugins like xili-language, which works great with bbPress, but lacks of customizing menus panel, wich I need on my site.

    Anyone can help me? Encouraging words will be welcomed too! 😀

    #119315
    #119289

    In reply to: metadata for forums

    Shmoo
    Participant

    Metadata for search engines?

    Use a plugin maybe SEO by Yoast.

    Else use Custom Fields.
    https://codex.wordpress.org/Custom_Fields

    #119287
    Shmoo
    Participant

    I think what he’s trying to say that somebody is working on it.

    This means somebody outside WordPress is making a replica because i can’t believe WordPress giving away the code to the same sites they own. Normally nobody would do so.

    But usual it’s not problem to recreate them and make them look the same, it’s just somebody has to do it in there free time so it takes a little time to complete.

    But maybe i’am mistaken and WordPress is giving you this layout by default inside bbPress.
    Maybe instead of the Twenty Ten option.

    And last, bbPress.org is running on WordPress + bbPress version 2.2 this version hasn’t been released yet and don’t know why the team would do so or tell people that they do. It’s against WordPress ‘thinking’ they never tell people to use development software (code) on Live websites. Always test it on local websites.

    You can find stuff about bbPress version 2.2 and up on this website.

    https://bbpress.trac.wordpress.org/roadmap

    #119285
    Shmoo
    Participant

    I think the WordPress Adminbar is now been called the Toolbar.

    https://codex.wordpress.org/Administration_Screens#Toolbar

    Read and searsh a bit i think it’s very easy to add a link and remove stuff from this Toolbar.
    there are filters i believe you can add to your functions.php to make this happen.

    • There is also a plugin for locking members from going to your back-end made by @jjj
    #119284

    In reply to: page.php as template

    Shmoo
    Participant

    That’s very strange looks like the WP Loop is going somewhere through the sidebar.php file.

    Make sure nowhere in the file is this code also look in the footer or other files that will be used.

    ( without the * )

    But why would you copy stuff form the archive-forum.php template to the page.php template ?
    page.php is used to generate a default WordPress page.

    bbPress has it’s own Custom Templates
    https://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Those can be found in the extra’s folder. For example if you copy page-front-forums.php from the extras folder to your WordPress theme folder you can find it while adding a new Page inside the WordPresss Dashboard.

    Just: Add New Page and in the sidebar on the right side you can find an option the select a different Page Template.
    Pick the new bbPress page template and name your page like Support of whatever the title or (url) of this page has to be and Save it.
    Visit the Page and all the forums will show on that new page.

    Now if you like to add some WordPress (blog) stuff to that page copy it from whatever WordPress template inside the page-front-forums.php

    Make sure you delete the sidebar() code that i showed above out of that template.
    Thats the logic way of working i believe. Don’t touch the page.php because it’s a default WordPress template for making new pages on your website.

    #119276
    Phill
    Participant

    I, like most people using BBpress, have had an issue removing the sidebar from my new BBpress forums. I tried editing template files, adding files into my theme’s root, commenting our sidebar commands and whatever else has been recommended on these forums. Not to say those don’t work – I just couldn’t figure them out which is most likely due to my complete lack of php knowledge. I’m posting this for those of you like me, who have no idea how to do those fancy things.

    Here’s how I removed my sidebar:

    First, I copied over the CSS folder from my BBpress plugin folder /bbp-theme-compat to my theme’s root folder. (From your server root it should be wp-content/plugins/bbpress/bbp-theme-compat/)

    Then, I found the CSS class my theme was using to design the main content of my wordpress blog (should be a style.css file in your theme’s folder). Mine happened to be #main_content. Next, I found the the sidebar CSS in my theme’s style.css file which was simply #sidebar.

    Note: I found the CSS class by right clicking the main content area of my website (where posts show) and selecting “Inspect Element”.

    After finding those I created BBpress specific classes and pasted those into the bbpress.css file now located at {you_theme’s_root}/CSS/bbpress.css.

    Here’s what I pasted in:

    .bbPress #sidebar { 
    width: 0px;
    display:none; }
    
    .bbPress #main-content { width: 940px; !important } 
    

    Most likely you won’t need the sidebar’s width attribute but I added it in just in case.

    And finally, after hours of trying to figure this out I went to my BBress forums page to discover that the forums fit perfectly into my theme without any sign of a sidebar.

    I hope this helps!

    #119273

    In reply to: WordPress comments

    Callum Macdonald
    Participant

    Has anyone found a working solution to this? I’m considering migrating my WordPress plugin support from comments on a WP post / page onto a bbPress forum (so the history is searchable). If such a thing doesn’t exist, I’d need to create it, because the history is what’s really valuable.

    I had a quick look at the basic format and it doesn’t look all that complicated. Each forum, topic, or reply becomes a new entry in wp_posts with some extra metadata stored in wp_postmeta for things like the commenter’s name, email, url, and IP. I reckon the core logic would be pretty straightforward, my biggest question is how to kick off the import process.

    Anyone with development experience interested in collaborating? Or got any existing code to share?

    #119262
    Gary3000
    Participant

    I can’t seem to find it on CodeCanyon. Do you remember the name or have a link to it?

    #119261
    gabrielstuff
    Participant

    Hey there, please find my little code that I’ve put into function.php :

    function ela_signup_redirect($redirect_to){
      $return_url = "";
    
    if (defined('ICL_LANGUAGE_CODE')) {
        switch (ICL_LANGUAGE_CODE) {
            case 'fr':
                $return_url = "http://xxx/merci/";
              break;
            case 'en':
                  $return_url = "http://xxx/forum/sinscrire/";
              break;
            default:
                  $return_url = 'langue non configurée';
              break;
        }
    }
    error_log("message : " . $return_url);
    return $return_url;
    }
    add_filter("bbp_user_register_redirect_to", "ela_signup_redirect");
    

    I’ve been trying to debug everywhere and hunt when the redirect happen, but I still get redirected to the admin panel.

    Any help would be appreciated.

    #119258
    Phill
    Participant

    Hi Lynq, thank you for this code! I would have never figured this out on my own.

    I have a question. I’ve pasted these functions into my bbpress-functions.php and called the custom forum list function in my single-loop-forum.php file but for some reason I keep getting a parse error telling me that there was an unexpected T_Public. Do you know how I would fix this? Is there a certain place in the bbpress-functions.php file I’m supposed to paste that code?

    Thanks for the help!

    ouyagamingsource
    Participant

    Update- I deleted and reinstalled the child theme and copied back over the bbp-twentyten files into the child folder as according to these directions: https://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ however I’m still having issues with the theme working with bbP… for some reason my password field turned white on all my pages from an original dark theme setting (though the login field stayed the same), and I can’t figure out how to format the colors and background to my forum page to stay with the original theme settings: http://ouyagamingsource.com/forums/ including maintaining the tables, sidebars and colors of the other pages. I’m wondering if it can be done by bypassing some of the twenty-ten commands on the bbpress-functions.php file I copied to the child? I’m not much of a PHP expert so this is a little complicated.

    #119249

    In reply to: page.php as template

    Phill
    Participant

    Thank you Shmoo! That has helped me out tremendously. I only have one question. I’ve copied over the archive-forum.php template and then replaced the code with the original page.php template and removed a few things but I still end up with the sidebar (no sidebar specific code in the original page.php) However, I’ve noticed that the line is associated with placing the sidebar. How do I get around this? Thanks!

    • This reply was modified 13 years, 8 months ago by Phill.
    #119247

    In reply to: page.php as template

    Shmoo
    Participant

    If you use the bbp-theme-compat theme you can copy some template files from the plugin directory to your theme directory.

    This way bbPress can get updates in the future while your custom edits will not disappear because of the updates to the plugin.

    https://codex.bbpress.org/theme-compatibility/
    (read the last part.)

    Only thing is, there is a template file that’s named like this: page-front-forums.php everybody thinks this is the default template that will be shown when you have an url like this.
    http://example.com/forums/

    But that’s not true, this template is only used when you use bbPress (the forum index page) as a homepage for your WordPress site.
    If you use the forums (index) page as a separated page like my ‘example.com’ url above bbPress uses the archive-forum.php template.

    What you can do very easy is copy-/paste the archive-forum.php template from the wp-content > plugins > bbpress > bbp-theme-compat > extras > directory to your theme’s directory.
    wp-content > themes > your-theme-name > and edit that template file.

    Now bbPress wil not use page.php but the archive-forum.php template instead and you can edit this page to all your needs.

    ouyagamingsource
    Participant

    Hello BBP Forum,

    I got nearly everything set up with the BuddyPress and bbPress forum plugins, however there’s a few tweaks I need to finish it off and I’m trying to figure out which files I need to adjust the html settings to match my custom theme of my other pages.

    Going from these directions: http://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ I created a child from my Alyeska theme and copied the Default bbPress Theme to the child theme folder. This helped get the forum page a little closer to my custom theme style, but still not there yet; the sidebars are missing, the forum BG is white, amongst a few other issues, but it’s getting closer. I’m just not sure where the CSS master file for this page is, I tried editing the two files in the child_theme/bbp/CSS folder but it didn’t make any change: http://ouyagamingsource.com/forums/, any ideas?

    Thanks ahead of time!

    –Bryan

    Gary3000
    Participant

    Just as the title says, I’m curious to know how the current main page at bbpress.org/forums/ is set up. Ideally, I’d like to have my forums main page set up in exactly the same fashion.

    Am I correct in assumming that it’s done as a Page (“forums” being the slug) with the bbPress shortcode “[bbp-topic-index]” as its content?

    I notice for Latest Topics it lists 28 topics, however in the bbPress Codex listing of shortcodes, it says that particular shortcode only lists 15 of the most recent topics. How does one go about configuring it to show more (or less) than the default of 15?

    The other thing I’m curious about is how one gets the nicer “Forums” sidebar widget. The one on bbpress.org/forums/ is styled with a header containing “Forum” and “Topics” column headers, and then a striped list of the Forums with the associated topic counts. In the current public version of bbPress (2.1.2), the “Forums” widget only shows a straight, plain list of the Forums — no header/columns, and no topic counts. Is the widget used on bbpress.org/forums/ from the current SVN of bbPress, or was it customized specifically for bbPress?

    #119235

    In reply to: No bb-load in download

    Stephen Edgar
    Keymaster

    Have you looked at these two docs to help get you started?

    https://codex.bbpress.org/theme-compatibility/ and https://codex.bbpress.org/shortcodes/

    (The thread that you linked to above is out of date as it is only relevenet to the old stand alone bbPress and not the current plugin bbPress 2.x )

Viewing 25 results - 15,276 through 15,300 (of 32,519 total)
Skip to toolbar