Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,401 through 8,425 (of 32,505 total)
  • Author
    Search Results
  • #163924
    peter-hamilton
    Participant

    I think (correct me if I am wrong) you can use this snippet in your functions.php

    function login_redirect( $redirect_to, $request, $user ){
        return home_url('forums');
    }
    add_filter( 'login_redirect', 'login_redirect', 10, 3 );

    I use this on my site onlijn.com and works good for me.

    #163917

    In reply to: New Roles

    Celtic
    Participant

    https://codex.bbpress.org/custom-capabilities/# Creating new roles

    Hi okay so I added 2 more roles by following the link above. The new roles show up and I can choose them in the User’s Profile and almost work with no problem but I am having a few problem. I did not give permission to alter “Posts” or “Comments” for either new role that I created and it is allowing the new roles to change everything about Posts and Comment sections. I did give permission to alter “Forum” in the new role Moderator-FLO but that doesn’t work.

    So I checked to see if the regular Moderator role that comes with the plugin allowed for editing of the Forum and it also does not. I don’t know where to go to check the permissions to see if I can change it but I have been searching for the last hour and a half.

    I also checked to see if the regular Participant role that comes with the plugin worked like it was suppose to and that one is perfectly fine although I would like to change creating topics temporarily.

    In your forum on the link above that I have added I could not find where it says to add the coding, so I just assumed, taking a chance that it would work in the function.php file in my theme. So that is where the coding is located.

    Can you tell me where to find the original Moderator permissions that comes with your plugin? Or anything to tell me what I could be doing wrong? These roles are super important to this type of forum and I could use all the help I can get…. This is really my first time working with WordPress but I’ve been doing HTML since 1998 self taught… I have been out of the game awhile.

    Ok so I’ll simplify this a bit:

    #163884

    In reply to: Tackback spam in Forum

    Robkk
    Moderator

    @amelliya

    It might be that some comment form data is on the template that bbPress is inheriting.

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

    You can create a bbpress.php and remove any comment code , or you can install this plugin and disable comments and trackbacks on bbPress post types.

    https://wordpress.org/plugins/no-page-comment/

    #163881
    Robkk
    Moderator

    Peter’s Login Redirect plugin should work for what you want to do.

    I am guessing since you are saying “forum page” and you made that private , that you created a page and put the forum index shortcode in it.

    Well since you chose to make that page private , it makes sense that Admin rights can only see it.

    https://codex.wordpress.org/Content_Visibility#Private_Content

    What you should do is just redirect to yoursite.com/forums and whatever forum you want private

    make the forum private by editing the forum and setting it to private there.

    Robkk
    Moderator

    So I’m looking for a Plugin or Code that can make the Topic Closed for comments from everybody, except the Author of the Topic.

    There is no such plugin or snippet of code that I know to achieve this yet

    Haley
    Participant

    A category in my forum lets people write there stories and update it throughout the months. So I’m looking for a Plugin or Code that can make the Topic Closed for comments from everybody, except the Author of the Topic. Is this possible?

    #163877
    ccarlow
    Participant

    New install of bbpress v2.7.5 on wordpress v4.2.2

    Question: How can I redirect to /forum after login? I have forum page set as a private page. bbpress forums need to be private and only accessed by registered users.

    I have searched for info on how to login/register and then redirect to a forum and haven’t been successful in finding a simple solutions. Some solutions look too complicated regarding writing code. I would assume there is a simple solution here.

    I have tried a redirect plugin (peter’s) and doesn’t work for bbpress users set with any bbpress role but does work if I login in as wp-admin with wp admin rights.

    SakuSama
    Participant

    Sorry but I don’t know what and where to add something. In the widget.php I have this :

    <?php		if ($show_user) :
    
    			echo '<div class="bbp_show_user">by <span class="topic-author">' . $author_link . '</span></div>';
    
    		endif;
    
    		if ($show_forum) :
    
    			echo '<div class="bbp_show_forum">In: <a href="' . bbp_get_forum_permalink($forum_id) . '">' . bbp_get_forum_title($forum_id) . '</a></div>';
    
    		endif;
    
    		if ($show_date) :
    
    			echo '<div class="bbp_show_date">';
    
    			bbp_topic_last_active_time($topic_id);
    
    			echo '</div>';
    
    		endif;
    
    		if ($show_detail) :
    
    			echo '<div class="bbp_show_detail">';
    
    			bbp_topic_excerpt($topic_id);
    
    			echo '</div>';
    
    		endif; ?>

    I think that I have something to do with the bbp_get_forum_permalink to go to the last page of the topic.

    I have tried to add this to the .php of the widget but it’s not working

    I’m a noob in php … I just know where to find the files on my ftp and to edit if someone know what I could add to the files. I have tried the widget “last posts” but it show all the last posts even if the lasts were in the same topic. It doesn’t display the news topics if nobody reply into them.

    #163875
    Robkk
    Moderator

    see if the note left here can help.

    Kunena (Joomla)

    and also if this topic helps.

    Kunena converter for bbPress 2.4

    Robkk
    Moderator
    #163864
    Robkk
    Moderator

    You can try flushing your permalinks and see if that works

    Navigation Links Return 404s Errors

    #163863

    In reply to:

    Robkk
    Moderator

    How to install bbPress.

    Installing bbPress

    The search box I am not sure what you are after really, bbPress comes with its own forum wide search though.

    #163862
    Robkk
    Moderator
    #163843
    Danilo Borges
    Participant

    Hi comunity!

    I’d like to make a page to list the moderators of a forum. Is there any shortcode, or parameter to put into a query to get this list?

    A previous thank for any suggestion šŸ™‚

    #163839
    ghoush
    Participant

    Just found this thread. Getting the error and can’t identify why. Disabling plugins didn’t help.

    Editing line 1446 and adding the array() call around the 2nd argument works fine and solves the problem. Is there any reason this is not done in the main code?

    #163831
    Robkk
    Moderator

    Your theme is causing the issue , especially its styles for WordPress comments.

    Try this custom CSS

    #bbpress-forums .reply a {
      font-size: inherit;
      line-height: inherit;
      margin: 0;
      padding: 0;
      float: none;
      color: #c1052c;
    }
    
    #bbpress-forums .reply a:hover {
      color: #42a202;
    }

    Also in your CSS your links do not really have a defined color to them. There is this CSS, but it should be something like this #c1052c

    p a, a {
      color: c1052c;
    }
    #163825

    In reply to: CSS..?

    Uncle Jimmy
    Participant

    @Robkk

    First off, thank you! for pointing me to files Rob, that’s always my first battle. And thanks for giving me the clues to the solutions.

    I got notified right when you replied, on Sunday no less! And was SO excited! Thanks for responding on your personal time.

    Now I’m just trying to sort out your recommendations..lol! Seeing what files to work on helps me focus my learning curve.

    The avatar on the left (in the Edited View of above image) is going to hook back to the authors Buddypress Profile. Seeing that the file is structured in an unordered list helps me understand what’s happening with the php a little better.

    I have too much to learn! lol!, I wish there was a forum where services could be traded. :o)

    Here is how I sorted it out;

    First
    This article provided a snippet example that showed me the correct statement to put into a <li></li> right above the top li in loop-single-topic.php, I only had to add the class="bbp-topic-author-link" to the li, and then tell it to float-left/padding-0,10 in the child-theme/bbPress/css and voila! Wooohoooooo!!! Sorry, I get excited when things go right! lol!

    Second
    I commented out the Forum Titles – Voices/Freshness in loop-topics.php like this

    <!-- 			<li class="bbp-topic-voice-count"><?php _e( 'Voices', 'bbpress' ); ?></li>
    			<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
     -->

    ..and then move the reply count over & under Freshness, (again, with css)

    Third
    I’ll be back, I like to keep a record in my Topics here, cause I know!, I’ll forget! lol!

    #163810
    Robkk
    Moderator

    Try some troubleshooting first if you haven’t already. Especially the theme and plugin sections.

    Troubleshooting

    #163808
    Robkk
    Moderator

    Usually when you have BuddyPress installed the Extended Profiles component is activated by default, bbPress forum user profiles links use the BuddyPress extended profiles.

    You can see if copying the BuddyPress templates into your child theme would fix things.

    Theme Compatibility

    Theme Compatibility & Template Files

    #163803
    mette_Chr
    Participant

    Hey guys!
    I’m working on forum in bbPress and got some symbols in front of debatforum. It is 5 of these symbols > in the right sidebar. I need to remove these from the code, but can’t figure out which files. Can you help me?

    #163796

    In reply to: Tackback spam in Forum

    Stephen Edgar
    Keymaster

    The mail I get also states that You can see all trackbacks on this post here:http://openmindtrips.com/forums/topic/tobacco/#comments, but the trackback is never visible in the front end. Do you think Akismet is useful when it comes to preventing this kind of spam?


    @amelliya
    , that is a topic you linked to rather than a forum…

    That said you shouldn’t be getting any trackbacks on any forum/topic/reply šŸ™

    I’ll go have a look around and see what I can find and if needed add a fix for the next release šŸ™‚

    AjitKhodke
    Participant

    hi
    When I click DNS settings in the Domain area and get message..

    Table::select() failed: no such row in the table

    How to resolve this issue?

    #163774
    Stagger Lee
    Participant

    It is not problem to hardcode WP-Polls function inside specific bbPress custom template, to bypass activating shortcodes in topics and replies.

    https://wordpress.org/plugins/wp-polls/installation/

    But main problem is User interaction. Shame, WP-Polls is very nice Polls plugin.
    It would be needed one modal popup where User opening topic can add new poll. believe Roles and permissions are not problem to fix with plugin filters, but other doesnt exist.

    It is not acceptable to send Users to separate page (backend) just to make poll for topic they opening.

    #163764
    Stagger Lee
    Participant

    This one is closest I could find. Still has to be guessed to hit 24-48 hours, or exact week time ban for instance. But there is no better out there.
    Strange, considering WP has plenty plugins for everything.

    It is permanent ban logics fault. Sometimes it is enough to cool down User by time ban of 1 day, one week or one month.

    https://wordpress.org/plugins/user-blocker/

    Maybe you can borrow code and make something for bbPress core.

    #163762
    boriskamp1991
    Participant

    Great tip, thanks! not using widgets areas but the used the the_widget() function!

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