Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,226 through 10,250 (of 32,519 total)
  • Author
    Search Results
  • #154167
    Robkk
    Moderator

    @bsilverop

    well i just checked and its almost there,

    you have space on the left whenever you go to a smaller screen size so you probably need to bring back the @media statement so there is space for the left sidebar when it reaches 1008px but none when its on a smaller than 1008px.

    #bbpress-forums {
    	font-size: inherit !important;
    	width: 100% !important;
    }
    
    @media screen and (min-width: 1008px)
    .bbpress .site-content {
    	margin-right: 0 !important;
    	margin-left: 182px !important;
    }
    
    .bbpress .site-content {
    	margin-right: 0 !important;
    	margin-left: 0 !important;
    }

    i think your full width forum should be done now

    #154166
    bsilverop
    Participant

    Thanks, removing @media screen and (min-width: 1008px) and adding !important seems to have worked. The forum now resizes to fit the page if you go to a smaller screen size. I appreciate the help from both @robin-w and @robkk. I didn’t expect support like this, I really am grateful. Thanks again!

    Solution:

    1) Copy page.php and rename bbpress.php. Remove <?php get_sidebar( 'content' ); ?> as I want to extend beyond the content sidebar.

    2) Add CSS:

    #bbpress-forums {
    	font-size: inherit !important;
    	width: 100% !important;
    }
    
    .bbpress .site-content {
    	margin-right: 0 !important;
    	margin-left: 182px !important;
    }
    #154165
    Robkk
    Moderator

    @robin-w 🙂


    @bsilverop
    well you can try adding !important to it too, or removing the @media screen and (min-width: 1008px)

    i just took it right off of inspect element.

    but for sure keep the margin-right:at zero pixels because that is where your old sidebar use to be.

    if all still doesnt work change .bbpress to #bbpress-forums

    reply back if you havent got it yet.

    #154163

    In reply to: User Porfile Page

    Robkk
    Moderator

    you can use this to add links to the edit profile section of your profile in the menu.

    Layout and functionality – Examples you can use

    you can then use this to just lead to just the profile

    // Filter wp_nav_menu() to profile link
    add_filter( 'wp_nav_menu_items', 'my_nav_menu_pro_link' );
    function my_nav_menu_pro_link($menu) {
        if (!is_user_logged_in())
            return $menu;
        else
            $current_user = wp_get_current_user();
            $user=$current_user->user_login ;
            $profilelink = '<li><a href="/forums/users/' . $user . '/">Profile</a></li>';
            $menu = $menu . $profilelink;
            return $menu;
     
    }

    then you can just create a link to your topics archive by going to the menu section and adding a link to the menu with the link being yoursite.com/topics

    #154159
    Robkk
    Moderator

    change the width from 150% to just 100%, if you go to a smaller screen size the forums are cut-off.

    use this and see if it works

    @media screen and (min-width: 1008px)
    .bbpress .site-content {
    margin-right: 0;
    margin-left: 182px;
    }
    #154158
    PJ Brunet
    Participant

    I had initially installed Buddypress but uninstalled it right away.
    So Buddypress took a ____ on my domain and didn’t clean up after itself.

    Now I need to code my own members list plugin, I don’t see a good one in the plugins directory.

    #154157
    packzap
    Participant

    Just want to add my notes in updating from dinosaur version 0.9.0.7 to 1.2 for anyone going thru the process. Follow the steps in https://codex.bbpress.org/legacy/updating/ (shown below).

    At step four, these additional steps need to happen:

    4-b) In bb-includes on the server create a drectory called backpress. Copy all the backpress files from the download of “backpress-1.2-bbpress\includes”. Copy the folder “schema” to \\bb-includes\backpress\ on the server.

    4-c) In /bb-includes/backpress/ on server create a folder called “pomo”. Copy the 5 files from the download of “Glotpress pomo” into it.

    Updating

    These instructions cover upgrading to version 1.2

    • First, you should always back up your files and your database in case something goes wrong.
    • Second, deactivate all plugins.
    • Third, keep the following files and directories.

      bb-config.php
      my-plugins/ (if you have it)
      my-templates/ (if you have it)
      my-languages/ (if you have it)
      also backup your existing .htaccess file if you have modified it, then delete everything else.

    • Fourth, upload the newest version of bbPress to your server.
    • Fifth, log in and visit your bbPress admin area. If you see an upgrade link instead of the normal screen, click it. If you don’t see an upgrade link (it would have been really obvious), continue to the next step.
    • Sixth, visit the new “Settings” area of the admin and edit any details or settings in the “General” section. Also visit the “Permalinks” section to regenerate your .htaccess file if necessary. Also reactivate your plugins one by one (some may need to be upgraded as well).
    • Seventh, sit back and relax; you’re done!

    These downloads are for legacy versions of bbPress and are no longer in active development but still available for download if you’re feeling nostalgic. You can find the WordPress plugin bbPress here
    bbPress 1.2

    The latest 1.x stand-alone version of bbPress is 1.2 (.zip / trac / svn)

    The latest bbPress 1.2 specific BackPress package is backpress-1.2-bbpress (.zip / trac / svn)

    (You will also need the GlotPress ‘pomo’ folder from here.)

    #154155
    bsilverop
    Participant

    It did indeed muck up other areas of the site. But I combined the two you sent and this seems to work:

    #bbpress-forums {
    	width: 150% !important;
    }

    Can you see any reason why this wouldn’t be ideal? The only thing I’ve noticed so far is that when testing on a large monitor, the footer has a lot of empty space at the bottom (only on the forum pages). Otherwise it looks to be working ok on my laptop, I’m just concerned it might not for others. Thanks again!

    #154149
    Robin W
    Moderator

    My role no longer displayed as ‘villager’ but instead switched back to ‘participant’, and the ‘trash’ links were never present

    That’ll be because the code you’ve changed is in the functions file of your theme?!, so goes when you switch to a another theme.

    #154147
    toomba
    Participant

    Hello,

    Previous problem
    Yesterday I was having trouble fixing the template for the forum index (Troubleshooting post here)

    Now I’ve fixed that, I seem to have another problem (though I’m not sure if it existed before I fixed the index).

    My current problem

    Topic pages are not appearing. They appear as links on the indexes, and I can create new ones, however if I click them, I am taken to a page of a messed up template (elements scattered everywhere). Something appears very broken somewhere. As soon as I create a new topic, it posts it with a title (eg: websitename.com/forum/topics/turquoise-curtains-4-11-14)
    However, when inspecting the source code, none of the content of the post is there.

    Question

    Has this been encountered by other users?
    Does anyone have any pointers on how I can go about troubleshooting this problem?

    #154146
    Robin W
    Moderator

    Ok, no don’t bother – I was not really expecting it to change anything, just wanted to eliminate before jumping into lots of code, but since it will be a hassle, we’ll leave that for the moment and I’ve now looked at the raw code !!

    ok, the template it is using is loop-single-reply which then callsbbp_reply_admin_links . this then checks whether it is a topic or reply and for a reply continues and then calls each of the elements in turn

    so for trash it calls

    bbp_get_reply_trash_link and checks that the user can ‘delete_reply’ before posting that link.

    For a topic it jumps to

    bbp_get_topic_admin_links and checks that the user can ‘delete_topic’ before posting that link.

    NOW I guessing (and probably wrongly, but am short of time tonight so will get you to do more work!) that the codex or this function might be wrong and you should be giving a delete_topic singular rather than delete_topics so give that go.

    If that works (and I’ll be very surprise if it does!), then you’ll need the filter much earlier to prevent permanent deletion.

    Otherwise I’ll take another look tomorrow !

    #154144
    Robkk
    Moderator

    @atfpodcast yeah thats what people usually say there.

    try just switching to bbpress bbcode with the whitelist plugin

    and also bbpress direct quotes.

    the bbcode plugin just turns basic html into shortcodes , so its still fine even though it is 2 years old.

    but remember to use it with the whitelist plugin too so that other users cant post the bbpress login shortcode and other unwanted shortcodes you dont want in bbpress posts/wordpress comments/buddypress activity/buddypress private messages.

    bbpress direct quotes wont quote as fast as gd bbpress tools quotes but it still works fine too.

    #154132
    bidhan.baruah
    Participant

    Hi,

    We had a custom forum created through a .NET application. Its a legacy application built in 2006.
    Now client is migrating to wordpress / bbpress. For forum migration I have created a application to import data from .NET application (Sql Server database) in a format where I can use mingle importer to import.

    The tables we have created are wp_forum_forums, wp_forum_threads; wp_forum_posts;

    Table definition are
    CREATE TABLE wp_forum_forums (
    id bigint(20) NOT NULL AUTO_INCREMENT,
    name varchar(4000) NOT NULL,
    parent_id bigint(20) NOT NULL,
    description text,
    sort int(11) DEFAULT NULL,
    PRIMARY KEY (id)
    ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;

    CREATE TABLE wp_forum_posts (
    id bigint(20) NOT NULL AUTO_INCREMENT,
    parent_id bigint(20) NOT NULL,
    subject varchar(2000) DEFAULT NULL,
    author_id bigint(20) unsigned NOT NULL,
    text mediumtext,
    date datetime NOT NULL,
    PRIMARY KEY (id),
    KEY fk_wp_forum_posts_wp_forum_threads_idx (parent_id),
    KEY fk_wp_forum_posts_wp_user (author_id),
    CONSTRAINT fk_wp_forum_posts_wp_forum_threads FOREIGN KEY (parent_id) REFERENCES wp_forum_threads (id),
    CONSTRAINT fk_wp_forum_posts_wp_user FOREIGN KEY (author_id) REFERENCES wp_users (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
    ) ENGINE=InnoDB AUTO_INCREMENT=69731 DEFAULT CHARSET=latin1;

    CREATE TABLE wp_forum_threads (
    id bigint(20) NOT NULL AUTO_INCREMENT,
    parent_id bigint(20) NOT NULL,
    starter bigint(20) unsigned NOT NULL,
    subject varchar(4000) DEFAULT NULL,
    status varchar(100) NOT NULL,
    date datetime NOT NULL,
    last_post datetime NOT NULL,
    closed varchar(50) NOT NULL,
    PRIMARY KEY (id),
    KEY fk_wp_forum_threads_wp_forum_forums_idx (parent_id),
    KEY fk_wp_forum_threads_wp_users_idx (starter),
    CONSTRAINT fk_wp_forum_threads_wp_forum_forums FOREIGN KEY (parent_id) REFERENCES wp_forum_forums (id),
    CONSTRAINT fk_wp_forum_threads_wp_user FOREIGN KEY (starter) REFERENCES wp_users (ID) ON DELETE NO ACTION ON UPDATE NO ACTION
    ) ENGINE=InnoDB AUTO_INCREMENT=9303 DEFAULT CHARSET=latin1;

    Through our custom code we populated these tables.

    Everything works fine, but while importing the wp_forum_posts (which has got 69K records) the importer hangs between 35600 to 35699. I tried atleast 5 / 6 times but same result every time.

    Can you kindly help us in this?

    Thanks and Regards
    Bidhan

    #154131
    toomba
    Participant

    I ended up deleting the forum index page, and readding it, then changed the template and put in the shortcode. It’s working now. Thanks for the reply!

    #154127
    Robin W
    Moderator

    If you are using the shortcode

    [bbp-forum-index]

    on a page, then the template that page is using can be called but sub pages will use bbpress.php

    See if that is your issue

    #154123
    swammy05
    Participant

    Robin, I’ve followed these steps (and several other of your support responses on this issue), and I’ve successfully created new roles using both methods, but I have a strange symptom: No matter what capabilities I allow, only the ‘Edit’ link shows on topics and replies. I simplified it to a new role, modeled after a keymaster. The role shows up, the database capabilities shows correctly, and now keymaster-only data shows under user profile images (like IP address), but still no admin links such as move, trash, etc. If I switch the user back to a regular moderator role, the links show just fine:

    function add_custom_role( $bbp_roles ) {
      
    $bbp_roles['villager'] = array(
    'name' => 'Villager',
    'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as participants
    );
    return $bbp_roles;
    }
    add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );
    #154120
    blueberrycove
    Participant

    Jlaks – the way I did it was to put in some html code on the WordPress page, above the shortcode for the forum. However Robkk’s plugin is really simple and much better – I’m using it as well now!

    #154106
    Robkk
    Moderator

    well i cant see the links on your site because its only shown if you are logged in.

    but i just looked up the css selectors on here.

    see if this changes the color.

    a.subscription-toggle,
    a.favorite-toggle {
    color:328c00;
    }

    if you want to change the color of other links like for example the reply author link use inspect element in your web browser, and try to find the class/id then style it from there.

    if sometimes some css doesnt work you would have to probably go add the parent class/id in the css or add !important to the end.

    like

    li.bbp-header a.favorite-toggle {
    color:#328c00;
    }

    search up on google/youtube on how to use inspect element in your browser

    more info here

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

    bbPress Styling Crib

    #154105
    bsilverop
    Participant

    Thanks for the update. I have a file called full-width.php in wp-content/themes/twentyfourteen/page-templates. And I apologize, I don’t think I was clear in my original post. I want the forum to extend the width of the page beyond the content sidebar on the right side of the page. I do want the left sidebar to remain.

    I modified the copy of bbpress.php taken from page.php, and I removed

    <?php get_sidebar( 'content' ); ?>

    I was already hiding the content sidebar on forum pages, so the result there is the same. The forum is cut short where the content sidebar on the left normally appears.

    I tested the full width page template on one of my pages to make sure it extends beyond the content sidebar on the right, and it does. I am hoping to get the forum to do the same. Thanks again,

    #154102
    Robin W
    Moderator

    my twentyfourteen theme doesn’t have a full-width.php.

    Suggest you make a copy of page.php – rename it bbpress.php

    then remove

    get_sidebar();

    near the end

    and save it and let us know if that works

    #154096
    Robkk
    Moderator

    if you want your bbpress forum links to be different than your sites links use this

    #bbpress-forums div.bbp-topic-content a, #bbpress-forums div.bbp-reply-content a {
    background: none;
    border: none;
    display: inline;
    font-weight: normal;
    margin: 0;
    padding: 0;
    color: red;
    }
    gvasilis
    Participant

    When i create topics from the Dashboard with greek names, the title in the link is sanitized automaticaly, and there is no problem. But when a user creates a topic from the bbpress interface then the link remains in greek and the topic returns a 404 page not found error.
    I dont understand if i need to put some code in bb-post.php and bb-edit.php, where and what exactly i should change.

    #154079
    Robkk
    Moderator

    1. the login issue , i cant do much about since its about the design of bbpress.org , i can pitch some desgin ideas like just showing login and register links in the admin bar instead of the anonymous user profile dropdown so that it could be more like the wp admin bar as it is now.

    2. i dont think bbpress login shortcode/widget have a referrer login redirect , use this plugin to get that kind of functionality.

    https://wordpress.org/plugins/peters-login-redirect/

    if it doesnt work , i dont know how else to help you on this issue.

    3. i think you should create a new topic for this, i dont really know much about this.

    #154078
    Robkk
    Moderator

    @suntura

    you have to wrap the loop with pagination code and divs manually

    like for example in content-single-forum.php, around the loop originally has the get template pagination kind of code, you have to replace the first one above the loop with the php code for the count, and the below with the pagination links.

    like this.

    <div class="bbp-pagination-count">
    
    		<?php bbp_forum_pagination_count(); ?>
    
    	</div>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    <div class="bbp-pagination-links">
    
    		<?php bbp_forum_pagination_links(); ?>
    
    	</div>  

    you have to make sure you are choosing the right pagination set up for each content single file template.

    also make sure you have copied the templates over to your child theme so you can edit them with no problem.

    #154075
    jlaks
    Participant

    Thx Rob,

    Missed it as well my eyes are weary. Thank You for the quick response. Setting new forum for my eccomerce site https://www.boatpartsforless.com/. Learned quite a bit about bbPress in a day. Last thing really needing attention before it goes live is a login re-direct and one piece of code color of font forum titles. Really like bbPress but two a few quirky things.

    First: when I registered today for bbPress forum I really had to look for log in then finally figured out it was the icon top right. Seems like logging in and registering should not take that much effort.

    Second: Quirk. After log in site does not redirect back to page you where on. That disappointed me earlier today when searching for info and had to register to add to this topic. Again while I am really liking bbPress so far, seems weird two paramount conveniences are not incorporated in out of the box.

    Last one: is a little scary. If someone inputs incorrect log in information it redirects to WordPress main login in screen. Really have to work on that one before forum goes live. While most hackers know where log in in is for WordPress sites still seems stupid to advertise it like that.

    Or it could just be me, frustrated with having to learn something new.

Viewing 25 results - 10,226 through 10,250 (of 32,519 total)
Skip to toolbar