Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,426 through 8,450 (of 32,505 total)
  • Author
    Search Results
  • #163757
    Robkk
    Moderator

    copy the bbPress templates to your child theme , it has fixed this issue for me before when using Twenty Fifteen.

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

    Robkk
    Moderator

    Just copy loop-forums.php from the bbPress plugin templates into a folder called bbpress in your child theme, or edit the one that is already custom from your theme to a child theeme.

    Edit this and change Forum to what you want.

    <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li>

    Robkk
    Moderator

    So maybe, I should create the learning platform as I envision it and take a more relaxed stance on the fact that parts of the profile and member information are visible for guests.

    Hey I mean it is your website you can do whatever you want to it. If you feel the information people are passing on your forum should be private you can make it private. The other solution that I thought of is similar to Robins code and that is to just put a conditional if the user is logged in to a bbpress.php file so it would only work on bbPress pages (and hopefully not mess with woothemes sensei). But this would require code editing/WordPress template knowledge.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #163748

    In reply to: CSS..?

    Robkk
    Moderator

    It is definitely possible.

    You might want to create custom templates then style it to want you want from there.

    copy the loop-single-topic.php file into your child theme in a folder called bbpress. THen add the topic excerpt using bbp_topic_excerpt() and also place the post count into an icon font.

    You can add topic thumbnails with a plugin I think, or just manually put that before every topic.

    You can also change the heading to comments by copying/editing I think loop-topics.php into your child theme in a folder called bbpress also.

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

    #163747

    In reply to: BBCode Buttons?

    Robkk
    Moderator

    if you have the pro version they give you an editor for the bbcode/shortcode buttons.

    If you are messing with the bbPress default quicktags you can change the buttons output display to bbcode/shortcodes instead of html.

    If you look at this you can see that it says you can copy the Javsacript from bbPress to your custom child theme.

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

    So you can copy the editor.js file from bbPress and created custom buttons for your bbPress installation from there. You can see an example to change the output of the code button to just use quote marks.

    /* Use backticks instead of <code> for the Code button in the editor */
    	if ( typeof( edButtons ) !== 'undefined' ) {
    		edButtons[110] = new QTags.TagButton( 'code', 'code', '<code>', '</code>', 'c' );
    		QTags._buttonsInit();
    	}

    This will I think use the bold, italics , and lists format that they use in the plugin.

    /* Use some bbcode outputs for the quicktags editor in bbPress */
    	if ( typeof( edButtons ) !== 'undefined' ) {
    		edButtons[10] = new QTags.TagButton( 'strong', 'b', '[b]', '[/b]', 'b' );
    		edButtons[20] = new QTags.TagButton( 'em', 'i', '[i]', '[/i]', 'i' );
    		edButtons[80] = new QTags.TagButton( 'ul', 'ul', '[ul]', '[/ul]', 'u' );
    		edButtons[90] = new QTags.TagButton( 'ol', 'ol', '[ol]', '[/ol]', 'o' );
    		edButtons[100] = new QTags.TagButton( 'li', 'li', '[li]', '[/li]', 'l' );
    		QTags._buttonsInit();
    	}
    #163744

    Topic: BBCode Buttons?

    in forum Showcase
    Moobs
    Participant

    I’m looking for a way to get bbcode buttons for users. I have the gd bbpress toolbox, but I’d like to have buttons for those codes on the toolbar. Any suggestions?

    #163735
    project_subdomain
    Participant

    ok, the code above could not work.

    the remaining issue comes from a different singular/plural form of “Your” in my language.

    came across this, but I’m not sure what’s been the specific purpose of that changeset:
    trac 5105

    Robkk
    Moderator

    Hmm I probably need to contact the author about the incompatibility with the WooThemes Sensei online courses, or I will just check out what is causing the issue later.

    Robins zip file does not contain a plugin, it is just custom bbPress templates with some conditional code.

    You can email me about all these issues, and also since this topic is messing up too. I am going to be busy today though because of celebrating July 4th with the family though, but I will be there to help you out definitely tomorrow.

    Contact

    orko9696
    Participant

    Great to know that you developed the plugin, this some sort assures me of my solution. But the problem still persists with the code you provided, now it shows

    Parse error: syntax error, unexpected T_STRING in /home/joshtaylor/public_html/wp-content/themes/flycase/functions.php on line 102

    Anonymous User
    Inactive

    O.k. I deinstalled the members only plugin and installed the Functionality plugin.

    With this and your code snippet, robkk, I was able to hide the forum/topic descriptions. I also found a code snippet to redirect all bbpress feed requests.

    Now, I found this to hide the user page:

    bbPress – Making Profile Pages Private

    But I am wondering:
    – Is that update safe?
    – Is there a way to solve the same in functions.php or .htaccess instead of starting with a third approach to get familiar with? I have seen something like returning the user profile blank. Unformatted as they are they are useless anyway.

    Nicole

    #163719
    mtupuschies
    Participant

    Hi,
    try the following:

    1. In your themes folder create a new folder called “bbpress”
    2. Then go to: ../wp-content/plugins/bbpress/templates/default/extras
    3. Copy all these files into the folder you created in step one.
    4. Edit the files in ../wp-content/themes/marketica/bbpress:

    Every file in there has the line (close to the bottom):
    <?php get_sidebar(); ?>
    Change this to:
    <?php /*get_sidebar();*/ ?>

    This should completely hide the sidebar. Otherwise maybe contact the author of the theme. Maybe the theme already contains forum template which may overwrite the bbpress originals.

    Hope I could help!

    Anonymous User
    Inactive

    Hello robkk,

    Thank you for pointing me to the functionality plugin. I did not know that such thing exists. I also have a theme with filters + hooks in the theme options:

    If I knew where to place the code, I might not need the plugin.

    Nicole

    #163715
    Cyberdogs7
    Participant

    When I edit a reply I get a white screen with a 500 error code. Refreshing the page brings the reply back up just fine.

    Running on a dedicated server with plenty of memory, tested with multiple themes, including twenty fifthteen, and even made sure the wordpress memory was increased in the wp-config.php file.

    Anything else I can do to get rid of this issue?

    #163713
    Robkk
    Moderator

    This is usually caused when customizing theme or plugins. It also could be a memory limitation but try the theme and plugin route first.

    Blank Pages

    Robkk
    Moderator

    I have found a way to hide most notices by CSS. Question is, can I keep it that way, or will there be any important notices not showing up later when the user is interacting with the form:

    Well that is the thing , I would have to know what is important to you. The notice that shows when a users post is in moderation might be useful so that they know the moderator has to approve their post , but that will not be in til 2.6 of bbPress. Some plugins might hook into that , and some notices might be for post flooding and maybe some users might think their is a bug on your site if they do not know why they couldn’t post.

    The Topic/Forum descriptions could also be removed with some PHP using this function and you can place it in a plugin like this.

    https://wordpress.org/plugins/functionality/

    It should be Plugins > Edit Functions. You can place any code snippet you might see useful into this.

    You can place the snippet after the plugin information.

    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    
    function ja_return_blank() {
    
        return '';
    
    }

    The users plugin you suggest is from 2 years ago; I would not install that. I am told again and again by my hoster and main plugin providers that old plugins are one of the greatest vulnerabilities.

    It should be fine , it is a fairly small plugin and very well coded.

    You can see the plugins main code functionality in the link below. There is also an empty languages folder and a readme.txt file also in the plugin.

    https://gist.github.com/jaredatch/3868274

    And then I had to turn off the buttons for html because they are badly formatted, barely legible in white text on light-grey background.

    You can fix that with some CSS too. Here is a simple black background to fix it.

    #bbpress-forums #qt_bbp_reply_content_toolbar input,
    #bbpress-forums #qt_bbp_topic_content_toolbar input {
      background-color: #000;
    }

    I also would like to offer my clients a possibility to create a profile page with some background on themselves and the business project they are working on.

    There is a bunch of plugins that add custom fields like BuddyPress some premium plugins add social features too , just like BuddyPress. The thing I am guessing you want is to highlight it on the Home of the users profile page with the forum role and user stats. This would require some PHP coding to achieve. By default the user can add a description and it would show up on the front-end , nothing too crazy.

    Anonymous User
    Inactive

    Hello robkk,

    Thank you very much for your answers. They helps me get started.

    I have found a way to hide most notices by CSS. Question is, can I keep it that way, or will there be any important notices not showing up later when the user is interacting with the form:

    /* bbpress */
    div.bbp-template-notice.info {
    display: none;
    }
    
    div.bbp-template-notice {
    display: none;
    }
    

    The bbpress pages cause me headaches. The original bbpress pages for forum index and user page all come out unformatted in my theme, practically useless. I have created a forums page by using shortcodes for forum index and topics index. That is well formatted and informative. But only with one level of hierarchy.

    The users plugin you suggest is from 2 years ago; I would not install that. I am told again and again by my hoster and main plugin providers that old plugins are one of the greatest vulnerabilities. Isn’t there a way to block all access to pages containing mysite/forums/users/* in .htaccess or something like that?

    And then I had to turn off the buttons for html because they are badly formatted, barely legible in white text on light-grey background.

    I also would like to offer my clients a possibility to create a profile page with some background on themselves and the business project they are working on. I have tried BuddyPress but it is not for me. I cannot code and this seems to be necessary to effectively use BuddyPress. So, I have not found a good solution for that yet. For the moment I have chosen to go with the wordpress.com/gravatar profiles and encourage people to introduce themselves and their project in the forum.

    Nicole

    #163702
    jamborambo7
    Participant

    Hello everyone,

    I am having an issue with trying to make my bbpress forum full-width. I’ve looked through several troubleshooting guides and nothing has seemed to work. I am using Marketica theme with bbpress plugin.

    From this link below:
    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
    I’ve located the file it is pulling from (through What the File plugin) and it is from bbpress.php (since I copied a page.php file and renamed it to bbpress.php and added it into my Marketica child theme) file directory.

    I then changed the style.css file in the Marketica child theme and injected:

    .bbPress #primary {
    display: none;
    }
    .bbp-forums {
    width: 100%;
    }

    I’ve tried other css stylings that I found online and nothing seems to have worked. Can someone please help me? I’m running out of ideas! Thank you all in advance.

    #163701
    Nuchaz
    Participant

    I am having the same issue right now and was wondering if a solution was ever found? I tried the bbpress-do-short-codes plugin and it seems to work for google chrome, but not firefox. I would ok to just disable image captions from the tinymce editor too. I’ve been trying to figure out the css code so I could just slap it with a display:none, but haven’t had any luck.

    I’m using WP v4.2.2 and BB Press 2.5.4.

    Garrett Hyder
    Participant

    Hi @viratsteelgroup,
    You can check out the documentation here – https://codex.bbpress.org/
    If you’d like assistance with anything specific I suggest opening a new topic as this is an old unrelated one so no one is going to read your post.
    I did notice you’re with wordpress.com and not a self-hosted wordpress.org instance so you won’t be able to use bbPress as it’s an installable plugin for wordpress.org instances. You can look into creating a free forum on another site, more information here;
    https://en.forums.wordpress.com/topic/how-to-add-forum-capability?replies=17
    Cheers

    #163690
    Nuchaz
    Participant

    I guess I jumped the gun on asking for help on this. A little more digging and I found my answer. I found a way to automatically load my default style sheet in place of the tiny mce style sheet and this basically automatically styled the editor to look like everything else.
    Just had to add this to my functions.php:

    if ( ! function_exists('tdav_css') ) 
    {
        function tdav_css($wp) 
        {
            $wp .= ',' . get_bloginfo('stylesheet_url');
    	return $wp;
        }
    }
    #163689
    Nuchaz
    Participant

    Hello bbPress community, I am currently building a theme for my website (started with the underscores theme) that uses bbPress and I’ve hit a snag. So, as per the bbPress codex here on enabling the visual editor, I have that enabled. I also hid the tabs to switch between the visual editor and the html editor (just using css display:none) since I only want my users to access the visual editor. Ok, that works fine. Now I need to style the visual editor.

    So how would I go about styling the tinymce editor? I would like to change the font family and add some styling to the block quotes so they match everything else.

    Looking at the code via the chrome dev tools it looks like the tinymce editor loads its own style sheets inside the tinymce form. I’m not sure how to override them.

    Thanks in advance to anyone who can help me figure this out. This is my last major thing I think I need to do before I can call my theme done and move it from my local dev environment to my staging server and start building out all my content.

    Carliff
    Participant

    Hi,

    I was trying to customise my theme and the next thing I know is I can’t access my website anymore. White screen.

    First, i went to my files in cpanel and deleted the bbpress plugin. Not fixed.

    Then I set the WP_DEBUG to true in wp-config.php file and this is the message i got:

    Fatal error: Call to undefined function listify_theme_mod() in /home2/saba2359/public_html/wodchaser.com/wp-content/plugins/code-snippets/includes/snippet-ops.php(446) : eval()’d code on line 5

    Please somebody help me.

    I have been searching and reading forums about this for 12 hours and I still have no idea at all what to do about it.

    Note: WordPress and bbpress is latest version (newly installed and updated)

    monica44
    Participant

    I created a new page, and put the following short code on it:

    [bbp-forum-index]

    Then I uploaded it to the front end of my site.

    Now when I try to put any type of new page under the Forum parent page, it uploads but then it gives me the “sorry this cannot be found” message if I click on the new sub-page on the front end…

    #163654
    Robin W
    Moderator
    #163646

    In reply to: Forum comment spam

    Robkk
    Moderator

    There is more I would have to write like identifying spam for moderation.

    And also knowing the difference between human spam vs robot spam and what suggestions I listed in the guide would help fight each one.

    Hopefully though it helps you fight spam in bbPress.

    https://codex.bbpress.org/getting-started/user-submitted-guides/dealing-with-spam/

Viewing 25 results - 8,426 through 8,450 (of 32,505 total)
Skip to toolbar