Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,476 through 10,500 (of 32,521 total)
  • Author
    Search Results
  • #153032
    solosails
    Participant

    It seems many many people are having this issue with various themes, I have managed to almost get mine working by tampering with the blog template settings..

    However it seems that this issue could be avoided altogether if the user page could be a shortcode in a hardcoded page instead of dynamically being created which is why so many themes are not doing it correctly.

    Surely BBPress could figure out a more stable way of doing this user profile page?

    #153027
    Robin W
    Moderator

    Suggest this is theme related and you need to get bbpress to use the right theme template

    Step by step guide to setting up a bbPress forum – Part 1

    #153014
    Stephen Edgar
    Keymaster

    The code /includes/admin/converters/SMF.php#L717 is replacing [tt] and [/tt] respectively with <tt> and </tt> and a quick lookup of the “teletype” HTML tag shows we should not really be using it all 😉

    http://www.w3.org/wiki/HTML/Elements/tt

    Can you post the HTML raw source of the post from SMF for me, this will allow me to see if it is currently doing it correctly, which I think it is per the details and screenshot below.

    SMF Source: [sup]superscript[/sup]<br />[sub]subscript[/sub]<br />[tt]teletype[/tt]
    bbPress Converted Source: <sup>superscript</sup><br><sub>subscript</sub><br><tt>teletype</tt>

    https://i.cloudup.com/jnMQwRKTXA.png

    We probably should rather than converting them <tt> / </tt> convert them to a span and/or p HTML elements:

    e.g.

    <span style="font-family: monospace;">
    This is a sample.
    </span>
    
    #153013
    Stephen Edgar
    Keymaster

    I had a quick look around to see if I could find if it was a port or fork of another forum project but very little info was around.

    I’d suggest taking a look at either the phpBB or SMF importers, they are pretty much the top two importers that are included with bbPress and have the best “import” feature support for bbPress.

    The ‘Example.php” importer also tries (I know it can/could/should be better) to explain some of the field mappings.

    I made a start on guessing the field mappings for the forum section based on the phpBB importer:

    Using a table prefix deluxebb_ should work fine with the field map 'from_tablename' => 'forums',, as the converter joins these staements together giving you deluxebb_forums 🙂

    https://gist.github.com/ntwb/da6466dc2b057942f0fa

    I’ll let you have a crack at the topics, replies and users and then I’m more than happy to tweak it with some of the newest updates that will be included in the next release of bbPress.

    #153012
    brittonk
    Participant

    I’m moving a social site into BuddyPress and the forums used a now defunct DeluxeBB. It doesn’t seem to be one of the options for the Importer Tools. Do any of you know if the structure of DeluxeBB matches that of one of the options listed?

    Here are the forums, threads, and posts tables which contain most of the information needed for this migration.

    --
    -- Table structure for table <code>deluxebb_forums</code>
    --
    
    CREATE TABLE IF NOT EXISTS <code>deluxebb_forums</code> (
      <code>ordered</code> int(5) DEFAULT '0',
      <code>cid</code> varchar(225) DEFAULT NULL,
      <code>name</code> varchar(225) DEFAULT NULL,
      <code>fid</code> int(6) NOT NULL AUTO_INCREMENT,
      <code>topics</code> varchar(225) DEFAULT NULL,
      <code>replies</code> varchar(225) DEFAULT NULL,
      <code>viewstatus</code> varchar(10) DEFAULT NULL,
      <code>poststatus</code> varchar(10) DEFAULT NULL,
      <code>replystatus</code> varchar(10) DEFAULT NULL,
      <code>lastpost</code> varchar(225) DEFAULT NULL,
      <code>lastpostby</code> int(10) DEFAULT '0',
      <code>description</code> tinytext,
      <code>lastpid</code> int(6) DEFAULT '0',
      <code>lastpidtime</code> varchar(255) DEFAULT NULL,
      <code>password</code> varchar(32) DEFAULT NULL,
      <code>userlist</code> mediumtext NOT NULL,
      <code>moderators</code> mediumtext NOT NULL,
      <code>ficon</code> varchar(25) NOT NULL,
      PRIMARY KEY (<code>fid</code>),
      KEY <code>cid</code> (<code>cid</code>),
      KEY <code>lastpostby</code> (<code>lastpostby</code>),
      KEY <code>lastpid</code> (<code>lastpid</code>)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table <code>deluxebb_posts</code>
    --
    
    CREATE TABLE IF NOT EXISTS <code>deluxebb_posts</code> (
      <code>pid</code> bigint(10) NOT NULL AUTO_INCREMENT,
      <code>tid</code> bigint(10) NOT NULL DEFAULT '0',
      <code>author</code> int(10) NOT NULL DEFAULT '0',
      <code>subject</code> varchar(285) CHARACTER SET latin1 NOT NULL,
      <code>message</code> text NOT NULL,
      <code>picon</code> varchar(50) CHARACTER SET latin1 NOT NULL DEFAULT '',
      <code>postdate</code> int(10) NOT NULL DEFAULT '0',
      <code>ip</code> varchar(50) CHARACTER SET latin1 NOT NULL DEFAULT '',
      <code>smiliesoff</code> smallint(1) DEFAULT '0',
      PRIMARY KEY (<code>pid</code>),
      KEY <code>author</code> (<code>author</code>),
      KEY <code>tid</code> (<code>tid</code>,<code>postdate</code>,<code>ip</code>)
    ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=495424 ;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table <code>deluxebb_threads</code>
    --
    
    CREATE TABLE IF NOT EXISTS <code>deluxebb_threads</code> (
      <code>tid</code> bigint(10) NOT NULL AUTO_INCREMENT,
      <code>fid</code> int(5) NOT NULL DEFAULT '0',
      <code>author</code> int(10) NOT NULL DEFAULT '0',
      <code>subject</code> varchar(285) NOT NULL,
      <code>picon</code> varchar(50) NOT NULL DEFAULT '',
      <code>views</code> int(3) NOT NULL DEFAULT '0',
      <code>replies</code> int(3) NOT NULL DEFAULT '0',
      <code>closed</code> smallint(1) NOT NULL DEFAULT '0',
      <code>pinned</code> smallint(1) NOT NULL DEFAULT '0',
      <code>moved</code> int(10) unsigned DEFAULT '0',
      <code>flame</code> tinyint(1) NOT NULL DEFAULT '0',
      <code>lastpostby</code> varchar(255) NOT NULL DEFAULT '0',
      <code>lastpostdate</code> int(10) NOT NULL DEFAULT '0',
      <code>hiddenby</code> text NOT NULL,
      <code>likedby</code> text NOT NULL,
      PRIMARY KEY (<code>tid</code>),
      KEY <code>fid</code> (<code>fid</code>),
      KEY <code>pinned</code> (<code>pinned</code>),
      KEY <code>lastpostdate</code> (<code>lastpostdate</code>),
      KEY <code>author</code> (<code>author</code>),
      KEY <code>moved</code> (<code>moved</code>),
      KEY <code>ashouts</code> (<code>fid</code>,<code>tid</code>,<code>author</code>)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=406651 ;
    #153008
    ttmt
    Participant

    Hi all

    I’m using a WP multisite. One of the sites is a bbpress forum.

    On another site I’m pulling through the lastest post using the code below

    The only thing I can’t seem to find is the shortcode to show an extract of the post.

    Is there a shortcode to show an extract of the post.

    
    <?php
        switch_to_blog( 3 );
        $topics_query = array(
          'author'=> 0, 
          'post_type'=> bbp_get_topic_post_type(), 
          'post_parent'=>'any', 
          'posts_per_page'=>3, 
          //'post_status'=>join(',', array(bbp_get_public_status_id(), bbp_get_closed_status_id()), 
          'show_stickes'=> false, 
          'meta_key'=>'_bbp_last_active_time', 
          'orderby'=>'meta_value', 
          'order'=>'DESC', 
          'meta_query'=>array(bbp_exclude_forum_ids('meta_query'))
        );
        
        $widget_query = new WP_Query($topics_query);
    
        if ($widget_query->have_posts()) :
          $widget_output = $before_widget;
          $widget_output .= $before_title . $title . $after_title;
          ob_start();
    
        while ($widget_query->have_posts()):
          $widget_query->the_post();
          $topic_id = bbp_get_topic_id($widget_query->post->ID);
          $author_link = bbp_get_topic_author_link(array('post_id'=>$topic_id, 'type'=>'both', 'size'=>60));
          $forum_id = bbp_get_topic_forum_id($topic_id);   
      ?>
    
      <div class="col-sm-4"> 
        <div class="post">
          <h4><a>"><?php bbp_topic_title($topic_id); ?></a></h4>
          <p class="date"><span><?php bbp_author_link($topic_id); ?></span> <?php bbp_topic_last_active_time($topic_id);?></p>
          <p> <!--show post extract--> </p>
          <a href="">Read more</a>
        </div>
      </div>
    
      <?php 
        endwhile; 
        endif; 
        wp_reset_postdata();
      ?>
    
    #153007
    Robin W
    Moderator

    The problem i’m having is on all other pages

    so you altered code in “content-archive-forum.php”

    how or what are you doing for the other ‘pages’?

    #153002

    In reply to: Forum Icons?

    Robin W
    Moderator

    just tested worked fine on my twentyten test site

    suggest it could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyten to prove your code works.

    #152996

    In reply to: Picture

    Icaroferreira
    Participant

    My bbPress codes have many other plugins mixed with it, so I can not make these changes.

    I want to modify only these three items photo already do one weeks and I can not. =(

    I give you my username and password, you can get into my wp-admin to do these three changes? Please.

    3 items

    #152985
    arno8
    Participant

    Sorry to come back late to this @robkk , I got this working with

    #bbpress-forums .type-reply.user-id-6 {
        background:url(https://www.primeknights.com/wp-content/uploads/2014/09/Naamloos-2.jpg) repeat;
    }
    #bbpress-forums div.odd.user-id-6 {
            background:url(https://www.primeknights.com/wp-content/uploads/2014/09/Naamloos-2.jpg) repeat;
    }

    Thnx for your help 🙂

    #152984

    In reply to: Picture

    Robkk
    Moderator

    you can also add more padding for the space between the post and avatar

    #bbpress-forums div.bbp-forum-content, #bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content {
        margin-left: 150px;
        padding: 12px 12px 12px 20px !important;
        text-align: left;
    }

    if you say that the reply author details are not as wide as avatar photo and such .

    #bbpress-forums div.bbp-topic-author, #bbpress-forums div.bbp-reply-author {
    width: 150px;
    }

    and yeah if you need more help with styling bbpress id say look at these tutorials

    Step by step guide to setting up a bbPress forum – part 2

    Functions files and child themes – explained !


    https://codex.bbpress.org/creating-a-test-site/

    bbPress Styling Crib

    Step by step guide to setting up a bbPress forum – part 3

    #152982
    Robkk
    Moderator

    try this

    i think this should work now

    #bbpress-forums li.bbp-body .user-id-1,
    #bbpress-forums li.bbp-body .user-id-2 {
    background:yellow;
    }
    #152981
    KostRev
    Participant

    Somewhat related… anyone else have an issue where no anchor is generated for bbp_topic_subscription_link?

    In the loop-replies.php template I have:


    <div class="reply-content">
    <button type="button" class="btn btn-default btn-sm" title="Set as Favorite"><?php bbp_user_favorites_link(); ?></button>
    <button type="button" class="btn btn-default btn-sm subscribe" title="Subscribe to Topic"><?php bbp_topic_subscription_link(); ?></button>
    </div>

    If you view source on the webpage there is no anchor present.
    Subscribing to Forums works as expected.

    Probably related to these:

    Subscribe to topic link is no longer displayed

    BBP: Topic Subscribe Not Working

    I think I found a bug in bbp_topic_subscription_link


    https://bbpress.trac.wordpress.org/ticket/2581
    https://bbpress.trac.wordpress.org/ticket/2480

    Robin W
    Moderator

    If you want forums to be visible but not accessible to non-logged in users then you need my plugin

    https://wordpress.org/plugins/bbp-private-groups/

    which gives you loads of options on how your forums display

    The admin bar (called the toolbar) can be disabled apart from admins

    add

    //disable toolbar for non-admins
    if (!current_user_can('manage_options')) {
    show_admin_bar(false);
    }

    to you functions file

    Functions files and child themes – explained !

    #152976

    In reply to: Picture

    Robkk
    Moderator

    try this the size => auto probably doesnt work or it just defaults to 80px

    in loop-single-reply.php in your bbpress folder in your child theme.

    change

    <?php bbp_reply_author_link( array('show_role' => true, 'type' => 'role' ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false, 'type' => avatar , 'size' => auto ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false,'type' => 'name' ) ); ?>

    to this

    <?php bbp_reply_author_link( array('show_role' => true, 'type' => 'role' ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false, 'type' => avatar , 'size' => 100 ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false,'type' => 'name' ) ); ?>

    now to test it upload an avatar bigger than 100px in width

    #152974

    In reply to: Picture

    Robkk
    Moderator

    you can post a link to the image.
    and if you use something like imgur/flickr it will automatically embed into the post.

    you can click the img button in the toolbar above the reply form and put the url into modal popup and then insert it into the reply form that way too.

    #152971

    In reply to: Picture

    Robkk
    Moderator

    try this css code i forgot about min-width for a second.

    im setting a minimum width of the picture to be at least 100px just like this forum has.

    #bbpress-forums div.bbp-reply-author img.avatar {
    border: medium none;
    min-width:100px!important;
    max-width: 150px!important;
    padding: 0px;
    margin: 12px auto 0px;
    float: none;
    max-height: 150px!important;
    }
    #152970

    In reply to: Picture

    Robkk
    Moderator

    you could try this.

    #bbpress-forums div.bbp-reply-author img.avatar {
    border: medium none;
    width:auto!important;
    max-width: 150px!important;
    padding: 0px;
    margin: 12px auto 0px;
    float: none;
    max-height: 150px;
    }

    and the other code wasnt suppose to increase the avatar images, it was just suppose to be for the space between the post and avatar.

    if you still cant get it , post a link to a forum post on your website.

    #152953
    Robin W
    Moderator

    both fairly easy !

    Breadcrumbs

    Layout and functionality – Examples you can use

    Functions files and child themes – explained !

    Search

    Dashboad>settings>forums> look for search and unclick it.

    #152950

    In reply to: Picture

    Robkk
    Moderator

    you dont need to bump your topic up.

    and if you have more questions make a new topic.

    i already gave you css on how to change the reply author avatar here
    https://bbpress.org/forums/profile/robkk/

    the space between the avatar and the post can be increased by adding this and changing 130px to what your max-width of image is , as i said the max-width of the image at the site you led me to has a max-width of 150px so my css for the post would be something close to.

    #bbpress-forums div.bbp-forum-content, 
    #bbpress-forums div.bbp-reply-content, 
    #bbpress-forums div.bbp-topic-content {
    margin-left: 150px;
    padding: 12px 12px 12px 0;
    text-align: left;
    }

    to rename roles you can use the code on this , download and upload as plugin or copy from add filter down and put it into your child themes functions.php

    https://gist.github.com/ntwb/7864894

    #152938
    blackjak231
    Participant

    Hello!

    I’m trying to display a dropdown menu with all the forums on all templates of bbPress. I was able to easily to it on the “content-archive-forum.php” template with this code :

    <?php if ( bbp_has_forums() ) : ?>
    	<?php while ( bbp_forums() ) : bbp_the_forum(); ?>
    		<li><a id="textdropdown" class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a></li>
    	<?php endwhile; ?>
    <?php else : ?>
    	<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
    <?php endif; ?>

    The problem i’m having is on all other pages. I know that it’s passing the wrong forum_id to the bbp_has_forums function but i’m unable to modify the parameters or make a custom function to display a list (with links) of the MAIN forums (the one displayed on the “content-archive-forum.php”).

    Basically, it displays the message “Oh bother! No forums were found here!” on all other pages.

    Can anyone help me or tell me how to do this ?

    Thanks in advance!

    #152921
    Robkk
    Moderator

    @arno8 yeah i worked on this for awhile i cant get it to show a color based on the user id of the reply author on the topic background.

    just so you know it should be something like this for topics.

    .type-topic .user-id-1,
    .type-topic .user-id-2,
    .type-topic .user-id-3 { 
    background: yellow; }
    #152918
    Robkk
    Moderator

    see if its a plugin issue by deactivating each plugin one at a time and check to see if deactivating one helps the links work on bbpress.

    switch to a default theme like twenty twelve and see if that works.

    i have a feeling it could be that you havent made a bbpress.php file, if you havent make one.

    more info about bbpress.php here https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #152917
    Robkk
    Moderator

    i think you alread implemented the login and register buttons you were talking about.

    i also recommend adding a border to the text input boxes of the register and login forms, because they seem invisible, and also for the submit buttons for each form.

    you can just use simple css to fix that.

    to edit the appearance of the forum you can copy bbpress.css into your child and edit that then changes you make will affect the look of your forum.

    you can also copy the templates in wp-content>plugins>bbpress>templates>default>bbpress

    i recommenced just copying the whole bbpress folder into your child theme.

    there is more in the documentation about this.

    Step by step guide to setting up a bbPress forum – part 2

    Step by step guide to setting up a bbPress forum – part 3

    Functions files and child themes – explained !

    Layout and functionality – Examples you can use

    looking through the rest of the bbpress documentation isnt a bad thing too.

    Codex

    #152916
    Robkk
    Moderator

    you would have to edit and copy files from one to the other.

    since its bbpress its mostly going to require copying the template files and bbpress.css , but i am not sure if your going to going to need a function for bbpress in the function.php in the theme or many more codes.

    This could be really risky if you dont know what you are doing.

    I recommend working on a local development area. WAMP for Windows , MAMP for Mac , LAMP for linux , and XAMP for all.

    Help on this is really minimal on my side. Its more something you have to do yourself.

    But if you do need help transferring i might come up with something.

    Other than that it might be an answer of i dont have the time to this kind of thing right now.

Viewing 25 results - 10,476 through 10,500 (of 32,521 total)
Skip to toolbar