Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,451 through 13,475 (of 32,585 total)
  • Author
    Search Results
  • #139016
    thirtyfivemill
    Participant

    Guys, I’ve searched goodness knows how many threads, read the two standard documentation posts and I cannot for the life of me fathom how to activate a simple bbpress theme. Every thread I read tells of others with the same problem or notes that the documentation is out of date.

    Has anyone written a concise and easy to follow step my step instruction post on how to install and activate a theme using the current release of bbpress? Or a video? I just can’t figure how I can spend an entire day googling and searching the site for something which virtually every new user would look for within the first phase of bbpress installation and setup? Have a I missed it?

    As far as I’m aware I’ve done everything asked for in these two posts:

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

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

    yet having followed them to letter as best I could I can’t quite see how the newly installed “blue static” is to be called into play as functions.php is calling for the default theme?

    The two posts above seem to get you about 90% there and then fail to explain the last few steps required to actually make everything work. Or it could be I’m going senile very early in life, in which case please for give me but could someone help me anyway? 🙂

    Many thanks in advance for any help you might offer.

    #139015
    Daniel Lemes
    Participant

    Anywhere in your theme (i put on a custom page template), use this:

    $wp_roles = new WP_Roles();
    $wp_roles->remove_role("bbp_role");

    …where “bbp_role” can be “bbp_keymaster”, “bbp_participant”, etc. This worked for me.

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

    #139014
    Daniel Lemes
    Participant

    At least i found how to remove this annoying roles.

    Anywhere in your theme (i put on a custom page template), use this:

    $wp_roles = new WP_Roles();
    $wp_roles->remove_role("bbp_role");

    It was the only way to remove bbp_keymaster and bbp_participant roles that keep appearing even after uninstall bbPress.

    phendyr
    Participant

    Hi folks,
    newcomer to bbpress, and I appreciate anyone’s time/effort to help resolve my question. I’m trying to write a php script that will display the most recent 3 topic titles/excerpts from the bbpress forum, onto the homepage of my website.

    Existing posts I’ve found so far are from several years ago, and so if there’s something that exists already, I would greatly appreciate getting pointed in the right direction.

    Thanks again.

    #139012
    inspirationally
    Participant

    Allright, found it in single-forum-content.php –

    <?php if ( !bbp_is_forum_category() && bbp_has_topics( array( 'meta_key' => '_bbp_language', 'meta_value' => 'German' ) ) ) : ?>

    should work

    #139008
    inspirationally
    Participant

    After moving my bilingual 200,000 posts forum from Woltlab to bbPress, I realized, that the completely English forum with English forum descriptions etc. is too difficult for some of the German members, so I would like to somehow filter the German topics.

    Already before importing, I created a custom field bbp_language and when creating the topic, they can chose a language, so that in the topic overview, you can see either of the flags – see http://deppheads.com/forums/new-posts/

    With qTranslate, I can add German Forum descriptions, but maybe there is an easier possibility with just adding such a field to the Forum descriptions, not the whole site. I will have to write a little custom fields plugin for that.

    I have no idea yet, how to set the language…if to display one language only or all – if it is in the profile, Cookie, if it is a little extra-URL like /de/ or a drop down?!?

    My bigger problem is, how can I make, in the sub forums, that only threads with German or only English threads will be shown? Is there some filter / hook that I can use?
    Any file or function or short code?

    Like in „normal WordPress“ it would be

    
    <?php query_posts('meta_key=bbp_language&meta_value=German‘);  ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    #139005
    Robin W
    Moderator

    and that class is the one you tried to change, it is on line 166 of bbpress.css

    #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;
    }
    #138993
    bbp-fan
    Participant

    I have just seen in the source code that the line that I want to change is
    a class = "bbp-forum-title"
    Apparently the LINK class is defined anywhere else?

    #138988
    Robin W
    Moderator

    Ok, you can add the following to it

    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3 {
    	font-size: 16px !important;
     	}

    16px is what it is currently set to, just alter the 16px to whatever size you want

    h3 by the way is “heading 3” there are a number of different heading sizes that bbpress sets and uses, that are separate from your main themes h3

    #138986
    Juanfra Aldasoro
    Participant

    Well, 10 minutes after..I see there’s not much around. Went to the code and did a little tweak. I’m sharing this in case anybody need it:

    
    add_filter( 'is_bbpress', 'my_bbpress_page' );
    
    function my_bbpress_page( $retval = false ){
    	
    	if ( is_page_template( 'my-template.php' ) ) {
    		$retval = true;
    	}
    	
    	return $retval;
    }

    I’ll try and see if I have some time to make some docs around this. Having documentation is the key to have more things around this plugin.

    Best,
    Juan.

    #138983
    Juanfra Aldasoro
    Participant

    Hello,

    I’m using this function in order to enqueue some custom CSS when a forum related page is loaded.

    The problem is for example, the “New Topic” page – Part of bbPress – gives FALSE when I call is_bbpress()

    Is there any place where I can check about this function besides going through the core code? I’ve searched over the Documentation and couldn’t find anything.

    Thanks,
    Juan.

    #138982
    FreeWPress
    Participant

    I have download this theme (frontier) and opened function.php and i have this line at 344:

    $frontier_content = frontier_option('content_width', 610);

    But if the funtion.php was modified by you or others this line maybe incorrect!!

    #138981
    FreeWPress
    Participant

    you must use a software like phpdesigher to access in ftp and open function file…

    We cant help you if don’t paste here the code.. Sorry!!

    #138976
    williamyap
    Participant

    i did it via dashboard.
    and after i did it on dashboard and i couldn’t do anything about it anymore.
    can’t even go back into wp-admin page.
    is the coding problem.
    but i don’t know how to find the code to get it done. i edit the website full from the dashboard on the web browser.
    please help me robin
    thanks

    #138972
    Robin W
    Moderator

    ok, all you’ve got is some bad code in your functions.php file

    were you customising this file or another? or via the dashboard?

    If you can, post line 344 of the functions.php in your reply, it can be as easy as a comma or semicolon missed.

    #138969
    jsalomone
    Participant

    I had already done all the repairs too, even locked me out when I was remapping existing users to forum roles, got that back by editing in the db though using a backup.

    I have looked at the code and what it does in the end is return true or false in every case, resulting in the showing or not showing of the whole page, not forum elements. And disabling that code completely just skips the check, done that several times, but it didn’t make a difference.

    #138965
    Robin W
    Moderator

    ok, lets try doing a repair on the forums to see if they’ve lost the relationship somewhere
    Dashboard>tools>forums

    I’d work my way down the first 6 – maybe one at a time to ensure you don’t get hours of spinning discs.

    The code you provided to protect does have a section where it is working out whether to show a post, topic or reply, and the code for each is slightly different (starts at around line 40). I’m not good enough ton validate this code, but if you’re still stuck, always worth contacting the codes owner to see if they can help

    #138956

    In reply to: phpbb import hanging?

    Stephen Edgar
    Keymaster

    Do not check the following setting:

    Purge Previous Import Purge all information from a previously attempted import

    Do check the following setting:

    Start Over Start a fresh conversion from the beginning

    There is something weird going on with the above that ‘Purge Previous Import’ setting that I am looking into, it works for some and not others and is really bugging me 🙁

    In between imports if it doesn’t finish and you need to try again you will manually have to delete the imported users from the WordPress User admin panel and reset bbPress’ forums as per https://codex.bbpress.org/reset-forums/.

    #138954
    Stephen Edgar
    Keymaster

    @stagger-lee Thanks for taking another look at this, most appreciated. 🙂

    I have a couple of ideas that I will try tomorrow and that should also include the removal of the hard-coded jos_ prefix.

    Out of curiousity did you use Kunena2.php or Kunena3.php this time round?

    #138952
    jsalomone
    Participant

    I have gone through those steps a number of times already, including removing the membership plugin. This membership plugin is not specific to bbpress. It has no awareness of topics and users and such. It is to restrict access to wordpress pages and posts.

    The way the forum is protected is by this code: https://gist.github.com/strangerstudios/1633637
    What it basically does is determine if it is going to show forum content or not and then either not show it at all and redirect to another page (in my case the home page) or continue and show whatever the forum is showing. It does not discriminate between topics or replies or whatnot from what I can tell.

    Again, disabling that bit, or disabling the membership plugin as a whole does not make a difference.

    Walking through all forum roles: blocked shows a 404 page, all the others show the content except the first post (of type topic)

    Walking through all wordpress roles: only administrator will show the first post (of type topic)

    #138949
    Robin W
    Moderator

    There were some instructions here

    https://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/

    But they are out of date

    Your forum link didn’t work, but if you post again, I’ll take a quick look to see if teher are any quick and easy changes you could make

    #138939
    bbp-fan
    Participant

    –
    It’s only a small thing – basically. Nevertheless, since a few days I am on experiment, only to enlarge the font size of the links “forum-title” and “topic title”. 🙁 And only these two! (no other font-size in the forum) I’m not successful. Despite the use of Firebug I do not find the correct place in the CSS.

    I also do not understand what in this line
    # bbpress-forum div.bbp-forum-title h3,
    the “h3” is. My “h3” is much larger defined, but is not taken.
    Which “h3” is meant and where it is defined?

    Please help! I’ll go crazy 🙁

    #138936

    In reply to: BBPress – Post Count

    Robin W
    Moderator

    The issue is that in loop-single-reply the variable $user_id is not set. I’ve just written a plugin for this, which should work – it does on my site, but I am trying to work out why it doesn’t on another who also has buddypress.

    You installing it would help me determine if it is me !

    Download to your pc, and then upload to the plugins

    bbp topic count plugin

    or crack it open to see what code I used

    #138933
    Stagger Lee
    Participant

    No, absolutely same problem. Stuck at the same place.
    Plus error with that hard coded jos_ in PHP, but that one is easy to fix. I type my own database prefix.

    #138931

    In reply to: page templates

    Robin W
    Moderator
Viewing 25 results - 13,451 through 13,475 (of 32,585 total)
Skip to toolbar