Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,301 through 13,325 (of 32,521 total)
  • Author
    Search Results
  • #139534
    Robin W
    Moderator

    You might need to play a bit, and come back if this either works or doesn’t, I’ve only had a quick look, and suspect there’s a much better way…but

    You main theme uses ‘Helvetica Neue’,sans-serif and the forum is using Arial

    I’m still on 2.4.1 so can’t tell you which lines you need in version 2.5

    So in the bbpress.css file you’ve correctly copied to theme’s folder, do a search for “font-size” and where you find it, add a line

    font: ‘Helvetica Neue’,sans-serif;

    That will take it in common with the main theme’s font.

    for instance

    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3 {
    	background: none;
    	border: none;
    	font-size: 16px;
     	line-height: 1em;
     	margin: 8px 0;
    	padding: 0;
    	text-transform: none;

    you’d alter it to say

    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3 {
    	background: none;
    	border: none;
    	font-size: 16px;
     	font: 'Helvetica Neue',sans-serif;
     	line-height: 1em;
     	margin: 8px 0;
    	padding: 0;
    	text-transform: none;
    #139532

    In reply to: Stylesheet Issues

    Tadas Krivickas
    Participant

    Hi,

    This is definitely a bug in bbp 2.5 on Windows. 2.4.1 does not have this issue. You can reproduce it by reverting to 2.4.1 (works again) -> update to 2.5 (doesn’t work again).

    <link rel="stylesheet" id="bbp-default-css" href="http://localhost/wordpress37/wp-content/C:devhtdocswordpress37wp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199" type="text/css" media="screen">

    Windows 7 x64, httpd+php+mysqld, latest stable WP, BP, BBP

    #139520

    In reply to: Menu link to Profile

    Robin W
    Moderator

    Diggories,

    Some great tips there.

    mm, the upgrade will have overwritten the change – as per first post

    Of course you’ll need to make a note of this change, as it is lost whenever you upgrade bbpress versions

    I haven’t upgraded yet, let me know if putting it back fixes it !

    #139514

    In reply to: Menu link to Profile

    Sloppy Buns
    Participant

    oh if you want it to go directly to the edit profile section just add /edit at the end like this

    <a href="http://yoursite.com/forums/users/[hana-code-insert name='BB Profile' /]/edit">My Profile</a>

    #139513

    In reply to: Menu link to Profile

    Sloppy Buns
    Participant

    I don’t know if this will help or not however I have found a simple way to do a text link in a page or post.

    I use the below PHP to call the current user

    <?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>

    And then surround it with a standard html link.

    <a href="http://yoursite.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>">My Profile</a>

    I use a plugin called Hana Code Insert to place it in posts and pages using the following steps:

    1.) Take the php code

    <?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>

    and place it in the “New Entry” box in the Hana Code Insert plugin and give it a name like “BB Profile” or what ever you want.

    2.) Tick the “Evaluate as php code.” check box at the bottom of the “New Entry” field.

    3.) Click “Create New Entry” and this will produce a shortcode something like this [hana-code-insert name='BB Profile' /]

    4.) Then on the page or post you want to place the link just place the following <a href="http://yoursite.com/forums/users/[hana-code-insert name='BB Profile' /]">My Profile</a>

    That’s it, hope it helps and I.m sure someone here can figure a way to use this in a menu link, I am still trying to figure that out.

    #139512

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    Somehow, I just notice or suspecting that.. it might be related to either :
    1 – post with custom BBtag.
    2 – post/topic that has Poll option.

    What is the custom ‘BBtAg’ is it ‘BBtag’, I can try to replicate this as we do use a 3rd party library to convert some BBCode and it could be a conflict there (shouldn’t be but could be)

    I will also setup a ‘poll’ to try the import with.

    Another thing I haven’t tried yet though this just came to me as an idea, when the conversion stops change the value of Rows Limit from 100 to 1 and click start again, causing it to go one row at a time.

    This way when it stops and won’t go any further you should be able to look at _bbp_converter_startin thewp_optionsdatabase and add a1 to that number. This in affect will make the converter start again on the next row rather than the row it is failing on.

    Once it gets past the problematic topic, you could click stop again, change it back to 100 and start again so the remainging 200k posts are not imported one by one.

    #139508
    Stephen Edgar
    Keymaster

    Take a look at the Data Parameters of WP_Query https://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters

    You can also create custom views in bbPress eg.

    function ntwb_register_custom_views() {
    	bbp_register_view( 'popular-topics', __( 'Popular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num' ), false );
    	bbp_register_view( 'unpopular-topics', __( 'Unpopular Topics' ), array( 'meta_key' => '_bbp_reply_count', 'orderby' => 'meta_value_num', 'order' => 'asc' ), false );
    	bbp_register_view( 'random-topic', __( 'Random Topic' ), array( 'orderby' => 'rand' ), false );
    	bbp_register_view( 'closed', __( 'Recently Closed' ), array( 'post_status' => 'closed' ), false );
    	
    
    }
    add_action( 'bbp_register_views', 'ntwbc_register_custom_views' );
    #139507
    FreeWPress
    Participant

    yes topic subscriptions are ok.. it work fine..

    I don’t have bbpress.php in my child theme folder…

    #139506
    Stephen Edgar
    Keymaster

    Edit: Just read your reply on Trac

    Also check if you have a bbpress.php file in your child theme folder.

    #139502
    FreeWPress
    Participant

    I don’t have any custom bbpress-functions.php in my theme and i have copy entire user-subscriptions.php in my child theme. And it not work… I see only: You are not currently subscribed to any forums.

    But i have subscribed three forums…

    #139497
    Stephen Edgar
    Keymaster

    I am pretty sure you are looking for the widgets https://codex.bbpress.org/widgets/

    #139495
    Stephen Edgar
    Keymaster

    https://bbpress.trac.wordpress.org/ticket/2480 has been updated with some more info.

    Also if you have a custom bbpress-functions.php in your theme that also needs to be updated.

    #139492
    Bright Thought, LLC
    Participant

    After I updated bbpress to version 2.5 the stylesheet for the default theme is not being linked correctly.

    <link rel=’stylesheet’ id=’bbp-default-css’ href=’http://localhost/wordpress/almostaveragegamers/wp-content/C:xampphtdocswordpresswp-contentpluginsbbpress/templates/default/css/bbpress.css?ver=2.5-5199&#8242; type=’text/css’ media=’screen’ />

    This is the way that the link is showing up when I look at the source code for the site which I am designing on a local host server. When I click on the link to see what is displayed this is what it is showing me below.

    https://www.dropbox.com/s/3as5djr6w0m2b0a/error-message.jpg

    #139480
    Cory
    Participant

    I’m trying to create a version of the Popular Topics widget that will only display posts that are less than a certain age.

    I’ve been able to query popular posts with this:

    $query = new WP_Query( array(
    'posts_per_page' => 5,
    'post_type'      => 'topic',
    'meta_key'       => '_bbp_reply_count',
    'orderby'        => 'meta_value',
    'order'          => 'DESC'
    );

    But I would like to weed out any posts that are, let’s say, older than 1 week.

    Is it possible to do this?
    Can I somehow use an additional meta query and access each topic’s freshness?

    #139478

    In reply to: BBPress Grey text

    FreeWPress
    Participant

    Hi, is correct because you have closed topic and bbpress use ccc colors text for closed topics..

    If you want to change it, open bbpress css at line 66 and find:

    #bbpress-forums .status-closed, #bbpress-forums .status-closed a {
        color: #CCCCCC;
    }

    change in #000000 or other colors…

    #139476
    FreeWPress
    Participant

    Link must be placed in content-single-forum.php and it show link.. But when i click on subscrive link it works, but if you go in subscrived section in your profile it show: You are not currently subscribed to any forums.
    I have been updated user-subscriptions.php file with new code..

    is bad!! :/

    #139469

    In reply to: Menu link to Profile

    mmichael1991
    Participant

    Hi, I used the first solution.

    But after when I looked at the code of my site, I noticed something strange.
    It shows the text behind the logout button.
    Pic (link to dropbox): https://dl.dropboxusercontent.com/u/17971771/site.png

    So has this something to do with my theme? Or can I simply fix this within bbPress?

    Thanks for your help!

    #139463
    FreeWPress
    Participant

    If you use a children template you must to add manually new link…

    <?php bbp_forum_subscription_link(); ?>

    #139451
    PureLoneWolf
    Participant

    Hi there

    I upgraded to 2.5 this morning and, after noticing that some of my users were not assigned the participant role, ran the tool to remap users to default roles.

    This had the unfortunate side-effect of setting both of my administrator accounts to Participant, and removed all Dashboard related links to bbpress.

    In users, when I choose “Change Forum Role to” at the top of the user list, the highest level is moderator. Keymaster is no longer there.

    Am I missing something?

    I tried, in PHPMyAdmin, to change the wp_capabilities table from a:3:{s:13:"administrator";b:1;s:14:"backwpup_admin";b:1;s:15:"bbp_participant";b:1;} to a:3:{s:13:"administrator";b:1;s:14:"backwpup_admin";b:1;s:15:"bbp_keymaster";b:1;} after looking at a few posts on here. But that actually stopped access to the site until I changed it back.

    Can anyone help?

    Thanks

    #139445
    Stephen Edgar
    Keymaster

    You should have your translations in /wp-content/languages/bbpress/ not in the /wp-content/plugins/bbpress/languages/ folder.

    See this for further information, also if your translations are at 100% for your language there is a very high chance you will now get this automatically updated when new translations are added/corrected etc.

    https://codex.bbpress.org/bbpress-in-your-language/

    #139427
    byronlee27
    Participant

    I am having some trouble figuring out how to change the font type on my forum. Everything looks good except the forum index, which is using a font that looks like it’s done with a typewriter. I want to use a bolder, darker font link the rest of the site has. I’ve copied the bbpress to the themes folder and made a CSS folder and copied everything to there. I was looking through the code and I couldn’t make heads or tails out of it. Can someone go to http://www.lowvisionrants.com/forums and tell me how to change the font of that main page so it looks normal?

    #139425
    psysex
    Participant

    Dunno if that’s related to the same problem, but I see this in apache’s error log:
    Duplicate entry ‘785’ for key ‘PRIMARY’ …. INSERT INTO wp_postmeta (post_id,meta_key,meta_value) VALUES (607,’_edit_last’,’1′)…

    #139411
    iHaz
    Participant

    Hey there, I just updated to the newest version 2.5. I still can’t see the forum subscriptions (when I go to my account, there is just

    Subscribed Forum Topics
    You are not currently subscribed to any topics.

    Did I do something wrong?

    #139401
    Thibaud
    Participant

    Sure, although the first steps of customization comes from avada theme who integrate styles for bbpress as you can see on this page : http://theme-fusion.com/avada/forums/forum/general-information/

    The following is the css i added to the style.css file of avada. I’m a begineer so let me know if something is wrong.

    #bbpress-forums li.bbp-header, #bbpress-forums div.bbp-reply-header, #bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a, div.bbp-template-notice, div.indicator-hint {
    background: rgba(255, 204, 0, 0.65) !important;
    }
    
    #bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic {
    font-size: 17px;
    }
    
    li.bbp-forum-topic-count, li.bbp-topic-voice-count, li.bbp-forum-reply-count, li.bbp-topic-reply-count {
    float: left;
    text-align: center;
    width: 11%;
    }
    
    #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, #bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic, #bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-reply-author .bbp-reply-post-date, #bbpress-forums div.bbp-topic-tags a, #bbpress-forums #bbp-single-user-details, div.bbp-template-notice, div.indicator-hint .bbp-arrow {
    border-color: #FAD200 !important;
    }
    
    #bbpress-forums div.odd, #bbpress-forums ul.odd {
    background: rgba(10, 89, 229, 0.16);
    }
    
    #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: 15px;
    }

    And a few BBpress specific’s plugins :

    Social Login (also a wordpress plugin)

    Orbisius bbPress Enhancer

    bbPress New Topic Emailer

    bbPress Enable TinyMCE Visual Tab

    bbPress2 shortcode whitelist

    bbPress2 BBCode

    And unfortunatly bbPress Threaded Replies doesn’t work with bbPress Enable TinyMCE Visual Tab, it’s one or the other.

    #139396
    Robin W
    Moderator

    Did you create a separate .ccs file – if so, could you post it here (surround it with the code button) so that others can see what you did, and I’ll maybe use it in the official documentation as an example !

Viewing 25 results - 13,301 through 13,325 (of 32,521 total)
Skip to toolbar