Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,201 through 10,225 (of 32,504 total)
  • Author
    Search Results
  • #154201
    bsilverop
    Participant

    Thanks @robkk. This is looking good to me after making the changes. I tested on a few different screens here with different sizes and seems to be working well. I’m not sure why the @media screen commands weren’t working before, but suspect it had something to do with the order. This is what I ended up with for those looking to do something similar in the future. Thanks again, and if you accept donations please contact me or direct me to a place where I can contribute to all who helped here. Thanks again,

    .site,
    .site-header {
    	max-width: 100%;
    }
    
    .bbpress-forums .col-2cl .main {
    	background: none repeat-y right 0;
    	padding-right: 0;
    }
    
    .site-content .entry-header,
    .site-content .entry-content,
    .site-content .entry-summary,
    .site-content .entry-meta, 
    .page-content {
    	max-width: 100%;
    }
    
    .form-allowed-tags {
    	display: none;
    }
    
    div.bbp-breadcrumb, 
    div.bbp-topic-tags {
    	font-size: inherit !important;
    }
    
    #bbpress-forums ul.bbp-lead-topic, 
    #bbpress-forums ul.bbp-topics, 
    #bbpress-forums ul.bbp-forums, 
    #bbpress-forums ul.bbp-replies, 
    #bbpress-forums ul.bbp-search-results {
    	font-size: inherit !important;
    }
    
    #bbpress-forums {
    	font-size: inherit !important;
    }
    
    .bbpress .hentry {
    	margin: 0 auto 48px;
    	max-width: 100%;
    }
    
    @media screen and (min-width: 1008px) {
    	.bbpress .site-content {
    		margin-right: 0;
    		margin-left: 182px;
    	}
    }
    
    @media screen and (min-width: 1080px) {
    	.bbpress .site-content {
    		margin-left: 222px;
    	}
    }
    
    @media screen and (min-width: 1218px) {
    	.bbpress .site-content .entry-content {
    		margin-right: 0;
    	}
    }
    
    @media screen and (min-width: 673px) {
    	.bbpress .site-content {
    		margin-right: 0;
    	}
    }
    #154198
    Robkk
    Moderator
    @media screen and (min-width: 1218px) {
    .bbpress .site-content .entry-content {
        margin-right: 0px;
    }
    }

    this should remove that space on the right of the forums

    #154197
    Robkk
    Moderator

    @bsilverop

    remove the !important from

    @media screen and (min-width: 1008px) {
     .bbpress .site-content {
    	margin-right: 0 !important;
    	margin-left: 182px !important;
    }
    }

    there should be some space to the right, I will try to figure out that too, but tell me if removing the !important fixes the forums hiding under the left sidebar.

    #154192

    In reply to: User Porfile Page

    brunof13712
    Participant

    Hi @Robbk,

    I added this code on functions.php from my theme and appeared a link ”profile” on my menu who directs to this link: http://quadriciclobrasil.com.br/forums/users/admin/ but it is a page not found. Am I doing it correctly?

    #154189
    Robkk
    Moderator

    this css code i forgot to add , put it before the media queries

    .bbpress .hentry {
        margin: 0px auto 48px;
        max-width: 100%;
    }
    #154184
    Robkk
    Moderator

    alright this should be your entire css now

    if the @media queries still do not work try just adding them into your child themes style.css file.

    if it still doesnt work when you put the media queries in your style.css make sure you are not using @import and instead using this in your child themes functions.php

    add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
    function enqueue_child_theme_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
        wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style')  );
    }

    more info here https://codex.wordpress.org/Child_Themes

    and also contact jetpacks plugin support and see if there is a problem or if i made another mistake or something

    .site,
    .site-header {
    	max-width: 100%;
    }
    
    .bbpress-forums .col-2cl .main {
    	background: none repeat-y right 0;
    	padding-right: 0;
    }
    
    .site-content .entry-header,
    .site-content .entry-content,
    .site-content .entry-summary,
    .site-content .entry-meta, 
    .page-content {
    	max-width: 100%;
    }
    
    .form-allowed-tags {
    	display: none;
    }
    
    div.bbp-breadcrumb, 
    div.bbp-topic-tags {
    	font-size: inherit !important;
    }
    
    #bbpress-forums ul.bbp-lead-topic, 
    #bbpress-forums ul.bbp-topics, 
    #bbpress-forums ul.bbp-forums, 
    #bbpress-forums ul.bbp-replies, 
    #bbpress-forums ul.bbp-search-results {
    	font-size: inherit !important;
    }
    
    #bbpress-forums {
    	font-size: inherit !important;
    }
    
    @media screen and (min-width: 1008px) {
            .bbpress .site-content {
    	margin-right: 0 !important;
    	margin-left: 182px !important;
    	}
    }
    
    @media screen and (min-width: 1080px) {
    	.bbpress .site-content {
    		margin-left: 222px;
    	}
    }
    
    @media screen and (min-width: 673px) {
            .bbpress .site-content {
    		margin-right: 0;
    	}
    }

    you can see i removed the width:100% on the #bbpress-forums css code , its because it didnt really do anything.

    #154178
    dtbaker
    Participant

    I’ve updated the plugin to include a (very basic) paypal payment feature and the ability to mark topics as “accepted”. You have to manually update the topics when payments come in, I don’t have enough time to make any sort of PayPal IPN integration.

    Code has been updated here: https://github.com/dtbaker/bbPress-Support-Forums ( warning, my paypal address is hard coded into includes/bbps-vote-functions.php )

    Screenshots:

    Main forum page, it sorts topics by “funds” then “accepted” then “votes”.

    Admin topic page: you can vote, mark topic as accepted, and manually update payments.

    User topic view, can vote (when logged in) and pay:

    Live demo here: http://ultimateclientmanager.com/forums/forum/feature-requests/

    #154173
    bsilverop
    Participant

    Thanks. I’m just using one .bbpress .site-content because I’m keeping the right sidebar. Whenever I use the @media screen piece, it just chops off what’s below it. But yes, it does seem like it’s needed. The first other person to test said that the title of the page is cut off just a little bit on the left side, where as on my end it seems like there’s plenty of space.

    This is all the custom CSS if it makes a difference:

    .site,
    .site-header {
    	max-width: 100%;
    }
    
    .bbpress-forums .col-2cl .main {
    	background: none repeat-y right 0;
    	padding-right: 0;
    }
    
    .site-content .entry-header,
    .site-content .entry-content,
    .site-content .entry-summary,
    .site-content .entry-meta, .page-content {
    	max-width: 100%;
    }
    
    .form-allowed-tags {
    	display: none;
    }
    
    div.bbp-breadcrumb, div.bbp-topic-tags {
    	font-size: inherit !important;
    }
    
    #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results {
    	font-size: inherit !important;
    }
    
    #bbpress-forums {
    	font-size: inherit !important;
    	width: 100% !important;
    }
    
    .bbpress .site-content {
    	margin-right: 0 !important;
    	margin-left: 182px !important;
    }

    And this is it after I add the @media screen tag (notice it just cuts off the rest):

    
    .site,
    .site-header {
    	max-width: 100%;
    }
    
    .bbpress-forums .col-2cl .main {
    	background: none repeat-y right 0;
    	padding-right: 0;
    }
    
    .site-content .entry-header,
    .site-content .entry-content,
    .site-content .entry-summary,
    .site-content .entry-meta, .page-content {
    	max-width: 100%;
    }
    
    .form-allowed-tags {
    	display: none;
    }
    
    div.bbp-breadcrumb, div.bbp-topic-tags {
    	font-size: inherit !important;
    }
    
    #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results {
    	font-size: inherit !important;
    }
    
    #bbpress-forums {
    	font-size: inherit !important;
    	width: 100% !important;
    }
    
    @media screen and (min-width: 1008px) {
    #154170
    Robkk
    Moderator

    try this and make sure its above the other .bbpress .site-content {

    @media screen and (min-width: 1008px) {
    .bbpress .site-content {
    	margin-right: 0 !important;
    	margin-left: 182px !important;
    }
    #154169
    bsilverop
    Participant

    I didn’t notice this before, but the problem seems to be that when I try and save anything with the @media statement, it ends up saving it like what’s shown below (notice the missing margin-right and margin-left) no matter how many times I fill in the missing lines and re-save. I suppose it’s an issue with the CSS plugin (JetPack Custom CSS), but from what I understand that file is stored in the database and generated dynamically and cannot be modified directly. So I’m not too sure how I can add this otherwise.

    @media screen and (min-width: 1008px)
    .bbpress .site-content {
    	
    }
    #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

Viewing 25 results - 10,201 through 10,225 (of 32,504 total)
Skip to toolbar