Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,626 through 13,650 (of 32,519 total)
  • Author
    Search Results
  • #138042
    Stagger Lee
    Participant

    Thank you, i am just trying that, and report comes.

    Some other thing, converter stops with error because you have hard coded database prefix at line 365:

    'join_expression' => 'ON kunena_messages_text.mesid = kunena_messages.id LEFT JOIN jos_kunena_topics AS kunena_topics ON kunena_messages.thread = kunena_topics.id WHERE kunena_messages.parent != 0',

    That “jos_” i need to change to my Joomla prefix and all is OK.

    #138038
    inspirationally
    Participant

    I just installed my forum at http://mydomain.com/forums, which is the same as http://myseconddomain.com/forums – and used

    1. the multidomain plugin https://wordpress.org/plugins/multidomain/

    2. templates and menus based on the domain you see – this includes a different index loop file and different custom menu.

    This also works with subdomains.

    Here the code of index.php:

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query. 
     * E.g., it puts together the home page when no home.php file exists.
     * Learn more: https://codex.wordpress.org/Template_Hierarchy
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    <?php if ( $_SERVER['SERVER_NAME'] == 'mydomain.com' ) { ?>
    
    			<?php
    			/* Run the loop to output the posts.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-index.php and that will be used instead.
    			 */
    
    			 get_template_part( 'loop', 'index-mydomain' );
    			?>
    <?php } elseif ( $_SERVER['SERVER_NAME'] == 'myseconddomain.com' || $_SERVER['SERVER_NAME'] == 'sub.mydomain.com'  ) { ?>
    
    			<?php
    			/* Run the loop to output the posts.
    			 * If you want to overload this in a child theme then include a file
    			 * called loop-index.php and that will be used instead.
    			 */
    
    			 get_template_part( 'loop', 'index-myseconddomain' );
    			?>			
    <?php } ?>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    

    Then there is loop for the main site, and one for the forum including the forum overview.

    In the header I have

    <?php if ( $_SERVER['SERVER_NAME'] == 'mydomain.com ) { ?>
    <?php wp_nav_menu( array('container_class' => 'menu','menu' => 'Mydomain.org' )); ?>
    <?php } elseif ( $_SERVER['SERVER_NAME'] == 'myseconddomain.com' || $_SERVER['SERVER_NAME'] == 'sub.mydomain.com'  ) { ?>
    <?php wp_nav_menu( array('container_class' => 'menu','menu' => 'Myseconddomain.com' )); ?>
    <?php } ?>
    

    (the same for sidebar widgets etc.)

    Of course you could work with special forum templates for the forum sites.

    (real example see johnny-depp.org/deppheads.com)

    I think, I will have to add some kind of rewrite to not have duplicate content in the future.

    #138034
    Stephen Edgar
    Keymaster

    This cannot be done at this stage…

    The only way I can think of doing this would be to install WordPress as forums.gamingtracks.com and then you would have URL’s like this:

    http://forums.gamingtracks.com/forums/topic/bbpress-forums-to-subdomain-included-with-domain/

    #138031
    Stephen Edgar
    Keymaster

    @stagger-lee If the converter is stuck at Converting replies (10100 - 10199) click Stop wait a few seconds then click Start and the converter will continue on its merry way. 🙂

    ikidre
    Participant

    I just migrated my legacy Buddypress forums to bbPress, and at first it seemed that everything was working great. Then I clicked on a topic and saw the notice info, and the reply form, but I presume that posts should be displaying in between. There’s nothing there in the code (so it’s not a CSS issue).

    I created a brand new forum, a brand new topic, which you should be able to see here: http://atdp.berkeley.edu/forums/topic/test-topic-2/
    There should be two posts (the topic post and a reply), but there’s nothing.

    We use Buddypress groups, and the group forums have the same behavior. The forum and topic ULs look like they imported fine, but no posts appear when you click on a topic. So the symptoms persist for both pre- and post-migration forums, and for both group and site-wide forums.

    I can see all topics and replies just fine in the backend and in the database, though it’s confused me that posts seem to be saved in the wp_posts table, not wp_bb_posts. I also can’t figure out where the new forum gets saved, because it’s not in wp_bb_forums, nor do new topics appear in wp_bb_topics. Anyway, they appear in Buddypress activity streams, and I can edit them in the backend, so it seems they’re just not making it to the page.

    I’m using the theme Custom Community 1.17.3, and thought maybe that was the issue. Nope. Same exact behavior with Twenty Twelve and the default Buddypress theme.

    I went through the standard toggling of plug-ins and saw no change.

    WP version is 3.6.1, Buddypress 1.8.1, and bbPress 2.4. I updated to 2.4.1 in the hopes that that might fix something, but nope. I closely followed these instructions for migrating my data.

    I’d love some troubleshooting ideas, because I’m about out!

    #138015

    Topic: Change Gravatar Size

    in forum Themes
    Noumaan Yaqoob
    Participant

    In a default bbpress installation, I am seeing that the gravatar size is set to 80px. I learned that it can be changed in /templates/default/bbpress/loop-single-reply.php file. By adding the size parameter on line 45 like this:

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>

    to

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'size' => '44', 'show_role' => true ) ); ?>

    I wanted to change it. Is it possible to do so without modifying any core template files?

    #138013
    Nashwan D
    Participant

    bbPress gets popular everyday.. with new users, new questions and new bugs! as you know bbPress is an open source project developed by a great volunteers from all over the world.

    Which means many bbPress users can’t write in English and can’t ask support from the official forums, for this reason I suggest to add links in Codex(or any place), to all support forums that give a good support for bbPress in other language.

    Maybe something like this:
    http://codex.wordpress.org/L10n:Localization_Teams

    for now bbPress start to gets popular in the Arabian Community, with a lot of questions from the new users, so we decided to give bbPress a special support, see:
    http://www.ar-wp.com/forums/section/bbpress/

    What you think?

    #138008
    Stagger Lee
    Participant

    Maybe some detailed clarification. It is about replies of some topic.

    Converting replies (10100 - 10199)

    #138004
    thecueball
    Participant

    Hi all, I’m trying to set up BBPress to combine forums and comments on my website, and I’m stumped by an odd issue.

    I can create a menu page with the short code [bbp-forum-index] that looks and works perfectly, but whenever you go deeper into the forums, everything defaults to the Post template – which means I get the standard blog sidebar (that I don’t want on the forum) and an author detail at the bottom of the page.

    I’ve tried turning off comment integration (disabling the plugin) and it doesn’t seem to make a difference. Can anyone help?

    #138002
    sadhiya
    Participant

    I thinks that short code [bbp-forum-index] not correct, So try with log-in option and then watch what short code you need to use. You can try: wp-login.php , i hope it will work for you.

    hologram stickers manufacturers

    #137997
    joyceswiss
    Participant

    Hi, when I click on the forum tab in my menu, the page that loads is “Opps, page not found”. I have tried pasting the shortcode [bbp-forum-index] into my forum page. But Still doesnt work. Please advise. Thank you.

    Wordpress version: 3.6.1
    bb press version: 2.4.1
    http://artyconnections.sg

    #137956

    In reply to: View "featured" topics

    Nermoz
    Participant

    It will be wonderful if you could do something. Unfortunately my code knowledge is too limited. Keep us updated, thanks.

    #137952
    Stephen Edgar
    Keymaster

    You won’t need this text and/or value that you imported.

    You will have to create your own templates by copying bbPress templates to your theme directory:

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

    You would then use the_excerpt rather than the_content to output only ‘x’ words from each topic/reply

    https://codex.wordpress.org/Function_Reference/the_excerpt

    There are a few people who have played around using the_excerpt and bbPress, have a good look around the site to see how and what they did:

    https://bbpress.org/forums/search/the_excerpt/

    #137949

    You could try:

    bbp_forum_class( bbp_get_forum_id(), array( 'clearfix' ) );

    #137936

    In reply to: Images

    niuserre
    Participant

    You can allow them to use images hosted elsewhere via HTML or BBCode. e.g.

    Or there are plugins (GD bbPress Attachments) to add a way for them to upload an image on your site.

    There isn’t currently a plugin, I think, that will let them upload an image and place it somewhere the way you do with a WordPress Post using the Media Library but it’s on the roadmap for the rtMedia plugin.

    Jgonl
    Participant

    I use a fairly easy.
    I think the issues but did not give a parent forum.
    The call with shortcodes and thread id.

    Also add this in the theme functions, which deletes the search path, so that it is more beautiful

    function mycustom_breadcrumb_options() {
    // Home – default = true
    $args[‘include_home’] = false;
    // Forum root – default = true
    $args[‘include_root’] = false;
    // Current – default = true
    $args[‘include_current’] = true;

    return $args;
    }

    add_filter(‘bbp_before_get_breadcrumb_parse_args’, ‘mycustom_breadcrumb_options’ );

    #137921
    niuserre
    Participant

    content.php seems like a weird place to be swapping an image, is this a header image or something?

    From the way you’ve worded it I think maybe you need an if else statement around the specific image?

    if( is_bbpress() ) {
    
    // bbpress image
    
    } else {
    
    // default image
    
    }

    Is that the issue? If not, could you describe a bit more what you’re expecting to happen and what is happening instead please? It could also be that you actually need a BuddyPress if call rather than bb.

    #137916
    TobiasHartmann
    Participant

    Hello,

    I am using WordPress with bbPress(2.4) an buddyPress(1.8.1).

    Trying to change the image when I am in the forum.

    Trying it with : <?php if ( is_bbPress() ) : ?> in my content.php under my theme…

    No effect !

    Are there other ways to change the appearance?

    Greetings,
    Tobias

    #137909

    In reply to: Landing page issues

    benjito
    Participant

    Thanks for this. I have had a go this morning and tried adding a bbpress.php duplicate of several different files (index, post, page..) none of which seemed to make a difference.

    Apparently the Customizr theme structure is a little complex and the theme is split in parts, i can’t say i understand all that much but that seems to be the problem!

    At least for now i have gone with a function which removes the “forums” breadcrumb and prevents linking to that page which i have replaced with the static page containing shortcodes.

    #137896
    niuserre
    Participant

    Your child theme needs to call your normal WordPress theme as its parent. It will then use your normal theme and add your child theme customisations on top.

    If you have followed the instructions there, especially Step 5 (including the bit where it tells you to follow the ones here: https://codex.wordpress.org/Child_Themes) then activating the theme should still use your normal theme as well.

    #137895
    Feracon
    Participant

    I have followed this guide http://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/

    to create a child theme containing the default bbpress theme files. It appears in my wordpress admin CP themes but I don’t see how this lets me apply it to only the bbpress.

    If I were to make it active it would retheme my entire wordpress site.

    #137891

    In reply to: Landing page issues

    niuserre
    Participant

    The breadcrumb uses the default Forum Index even if you use a shortcode to display your forum so it will always link back to the automatically created Forum Index.

    If you only need the shortcode method because of the template problem then let’s fix the template so you don’t need the shortcode.

    From: https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    On a plain vanilla install of bbPress using a “normal” wordpress theme, the plugin looks for the following templates from the active wordpress theme and “injects” the forum into (i guess) the first one it finds:

    ‘plugin-bbpress.php’,
    ‘bbpress.php’,
    ‘forums.php’,
    ‘forum.php’,
    ‘generic.php’,
    ‘page.php’

    I’m guessing your theme doesn’t have one of those so bbPress appears to be using some kind of archive template.

    You need to give bbPress a theme template to hook into. In your theme folder (or in a child theme if you want to do auto-updates with your theme) create a bbpress.php template, you can probably just create a duplicate of one of your theme templates and change its name.

    Here’s my bbpress.php template: http://pastebin.com/ZquKQfmw (Adept is my theme name, hence @package Adept). I took my theme’s full width template and duplicated it, called it bbpress.php then changed the header information. bbPress will figure out the rest.

    #137887
    niuserre
    Participant

    It is best not to make changes to the bbPress core files because they will be lost when you update. The same for your theme files unless it’s already a custom theme. The best way is with a Child Theme.

    In your theme folder (or preferably, child theme), create a subfolder called css with a file called bbpress.css so you have /wp-content/themes/%your-theme%/css/bbpress.css

    The last rule defined overrides any previous, conflicting rules so this file will make your styles the last rules. See if it works then and if it still doesn’t then check for what is overwriting it – because something is.

    (Specificity is usually the reason why your CSS doesn’t work the way you think it should. If there are styles in your code that are more specific, they will win. There is a good article on specificity at Smashing Mag.)

    #137880
    EL45
    Participant

    Hello,

    Calling <?php echo do_shortcode('[bbp-topic-index]'); ?> shows the latest 15 posts and it does show the pagination ie: “1 2 … 7 →”. However when selecting the next page (or any page for that matter) I get redirected to ?post_type=forum&paged=2 but the same 15 posts remain.

    Has anyone seen this or know a fix?

    #137863
    mcartur
    Participant

    You are right niuserre, let me apologize,

    As far as I am aware, we are not using shortcodes (we have not created any page for showing the forums but using directly the templates and urls filled on the settings).

    I am working with a tweenty twelve child theme. My wordpreses version 3.6.1. My bbpress: Version 2.4 localized to spanish.

    The exact issue is that whenever I try to edit a written post, raw html appears in the text area for editing. The html that appears is not only the one corresponding to the content of the reply i would like to edit.

    It comprises also the breadcrums and much more tags and content of the page. Exactly inside the editor appears all the content inside the <div class=”entry-content”> tag (this element is the parent of<div id=”bbpress-forums”>).

    I do not what that can be related with…

    Thank you for your time,

Viewing 25 results - 13,626 through 13,650 (of 32,519 total)
Skip to toolbar