Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,901 through 8,925 (of 32,505 total)
  • Author
    Search Results
  • #161437
    Robkk
    Moderator

    you might have to make a copy of the login widget , and customize it to how you want it.

    Layout and functionality – Examples you can use

    This part of the guide shows you how to add custom links to their profile and also an edit link.

    if you copy the edit link and just change the last slug in the url you could get to most of your profile sections.

    so in the end you might have

    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>edit" >Edit Profile/Change password</a></p>
    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" >View Profile</a></p>
    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>topics" >Topics Created</a></p>
    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>replies" >Replies Created</a></p>
    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>subscriptions" >Subscriptions</a></p>
    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>favorites" >Favorites</a></p>

    sharongraylac
    Participant

    You really are helpful, robkk! 🙂

    I have no idea where they went. I can at least now see where they are suppose to be…

    In the second image down, the area is marked #8 on this page:

    https://codex.bbpress.org/bbpress-styling-crib/

    Do you know what the class/id of this is, so I can see if I accidentally hid it in the css? I can’t imagine why, as I really want these links!

    Thanks so much again,
    Sharon

    #161435

    In reply to: Sub Forums Styling

    Robkk
    Moderator

    try this

    #bbpress-forums ul.bbp-forums-list li.bbp-forum a {
      display: inline !important;
    }
    Robkk
    Moderator

    this should do it

    #bbpress-forums #bbp-your-profile fieldset.submit {
      padding: 0px;
    }
    #161412
    Henrijs Kons
    Participant

    ok never mind fixed it by adding

    -webkit-animation-duration: 0s; /* Chrome, Safari, Opera */
    animation-duration: 0s;

    one plugin was adding
    animation-duration: 0.0001s
    to all img tags

    #161410

    In reply to: having problem

    Robin W
    Moderator

    bbpress uses wordpress registration and assigns the default role set in settings>forums upon first user login.

    so any wordpress registration will work

    bbpress has a shortcodes

    [bbp-login] – Display the login screen.
    [bbp-register] – Display the register screen.

    or you can use sidebar widgets also

    cirrus123
    Participant

    I am painstakingly going through the code to fix this issue, and due to the fact that I have no experience with bbpress code, it is way more taxing than it should be.

    I will leave crumbs here so anyone more equipped than myself can jump in and repair it before I do and save us all a lot of trouble.

    I have discovered that there is a bug with the following function:

    bbp_forum_query_last_reply_id

    This is called when the update freshness repair is run and is supposed to return the last reply ID for a forum. Right now, it is consistently returning ‘0’.

    It is found in includes/forums/functions.php

    Robkk
    Moderator

    They work fine.

    there is some CSS hiding your content though. i just changed clear:none to clear:left

    if you find any other style awkwardness tell me and i could fix it pretty quick.

    add this anywhere you can add custom css

    #bbpress-forums #bbp-user-wrapper ul.bbp-lead-topic, 
    #bbpress-forums #bbp-user-wrapper ul.bbp-topics, 
    #bbpress-forums #bbp-user-wrapper ul.bbp-forums, 
    #bbpress-forums #bbp-user-wrapper ul.bbp-replies, 
    #bbpress-forums #bbp-user-wrapper fieldset.bbp-form {
      clear: left;
    }
    #161382

    In reply to: Widgets

    Robkk
    Moderator

    its not a widget its the [bbp-forum-index] shortcode

    there is a couple of alternatives if you do want it in widget form though..

    #161371
    project_subdomain
    Participant

    did you create a custom widget?? it might be better if you did for this because then you could output all of the links to the user profile.

    unfortunately not, as i’m using a plugin (jquery-vertical-accordion-menu) for the accordion/dropdown menu widget for that menu, which makes it more complicate, i guess. does the
    $id_base = 'dc_jqaccordion_widget';
    help with this and if where and what else to put in the code for a custom widget that’s using the accordion/dropdown menu as well?

    initially hoped that making a redirect via permalink in functions.php or via page template would be the fastest and easiest solution. am i totally wrong with this?
    as i’m not familiar with coding, i see a high risk of having set wrong variables all the time. i’m using default bbpress setting with a nicername/username instead of user’s id in the permalink.

    #161362
    sharongraylac
    Participant

    Yes, it does have Woocommerce shortcode.

    Here’s the link, in case it helps…

    bellynsoul.com/my-account.

    Thanks!
    Sharon

    #161347
    Robkk
    Moderator

    you are just talking about stuff like this right??

    or the way how your titles output like this

    <title>Yasodhara Teachers Network » All Posts</title>

    or this

    <title>
    <![CDATA[ New Internship Opportunities ]]>
    </title>

    just clarifying.

    #161346
    Robkk
    Moderator

    what is your full function of echoing the shortcode and where are you putting it??

    in an actual page you would not need to echo a shortcode you would just place it.

    you echo shortcodes in templates if you want though.

    #161339

    In reply to: Upload & Embed Images

    Robkk
    Moderator

    well a good idea would be to have a tinymce button that pops up a modal when clicked and shows an upload button to add images and then you would accept the uploaded pictures and post it in the content with an anchor tag wrapped image. but we do not have anything like that.

    for now you can use this plugin to upload pictures

    https://wordpress.org/plugins/gd-bbpress-attachments/

    and oembed would automactically embed any links to images from imugur and flickr.

    you could also use the img button to show an image from external sources too.

    #161338
    Robkk
    Moderator

    @sharongraylac

    is there anything else supposedly in the my account page??

    like say a woocommerce shortcode??

    #161322
    sharongraylac
    Participant

    Hello!

    I tried adding the BBpress login shortcode ([bbp-login]) to my “My Account” page, but it does not appear. Is there something I’m missing?

    Thanks!
    Sharon
    bellynsoul.com

    #161320
    The Kestrel
    Participant

    Hello,

    I’d like to find a way to have all users on the forums be able to upload images and have them embedded in a post. I’ve tried both solutions below and Enable TinyMCE Visual Tab only links the image and inserting the code from the second link doesn’t work.

    bbPress Enable TinyMCE Visual Tab
    Add media upload button to bbpress

    Any new insight on achieving this? The media button would be perfect for what I’m looking for.

    Thanks!

    #161311

    In reply to: Add Custom User Roles

    Alice Kaye
    Participant

    Hi @robin-w,

    Thanks for the response. Sorry for the slow response, I was away for the weekend.

    I’ll try to replace the code again today, but basically what happens is, when they go to the forums it displays a 404 error as if the page doesn’t exist. They can see the top menu, and the rest of the website’s look, but the forums aren’t visible at all.

    #161303
    wplove3268
    Participant

    This looks like exactly the solution I need to display sub-sub forums on my forum index page. Unfortunately I tried it and got a blank screen. Does anyone know if this patch is still valid for the most recent version of bbPress?
    Also-it looks like the file to be edited is outside the “Templates” folder:
    plugins/bbpress/includes/forums/template.php
    Is it possible to modify the templates.php file and put it in my child theme to protect it from future updates?
    This guide only refers to files in the template folder.

    Thanks.

    Edit: scratch the first question-I got it to work I had just pasted the code incorrectly. Still need to know if it’s possible to put this modified file into a theme folder.

    #161302

    In reply to: having problem

    Robin W
    Moderator
    #161293
    project_subdomain
    Participant

    @robkk, thanks again for your support. my latest post disappeared, maybe because of too many links.

    regarding the new menu, i hope this image can explain it better:
    the default menu below the avatar shall be removed and appear in the sidebar on the right in a dropdown menu ( not only to make a consistent layout but also to prevent users to see the information also on other user profiles). Optimally it should be shown only when the user is logged in, but yet i’d be very happy to get it working no matter of the user’s login status.

    unfortunately i can’t provide a link at the moment, so i put the id’s at the image.

    parent menu items are “nachrichten” and “account”.
    in “account” the links for the user profiles shall be displayed as sub menus.

    the parent menu-code looks like this:
    <li id="menu-item-566" class="menu-item menu-item-type-post_type menu-item-object-page cur…ancestor menu-item-has-children menu-item-566 dcjq-parent-li">

    the sub menu show profile-code like this:
    <li id="menu-item-572" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-572"></li>

    (for “edit profile” I already found a menu-link solution)
    [btw: default theme twenty twelve]

    #161276
    Robin W
    Moderator
    phil_b
    Participant

    Yea I suspect so too.

    If anyone, ideally a bbpress developer, could offer any advice on how I might re-code the import script to match topics/replies to user via email that would be great!

    I shall cross my fingers for a response 😉

    Thanks

    #161265
    vinzen
    Participant

    I wanted to filter the recent forum topics not only by their parent forum but also by their topic tags.

    I fiddled with the widgets.php that I found at wp-content/plugins/bbpress/includes/common/.

    I’m not a programmer yet I achieved the widget interface to contain the field for topic tag.

    Screenshot of Recent Topics Widget

    Though it looks good, its not working. The topics are not filtered by the desired topic tag. In fact, it is not making any difference.

    I think the problem is about not getting the field ID for the topic tag. Or, there isn’t any filter for sorting topic tags.

    I searched the entire BBPress support forums but did not find any similar post or problem.

    I wish to know is it right to use the following:

    $instance['topic_tag'] = sanitize_text_field( $new_instance['topic_tag'] );

    get_field_name( 'topic_tag' );

    Should I use –

    'post_topic_tag' => $settings['topic_tag'],

    or

    'post_topic_tag' => bbp_get_topic_tag_tax_id(),

    I came across a somewhat related topic https://bbpress.org/forums/topic/topic-tag-archive-wrongly-displaying-all-topics/

    It suggests to use this –

    if( bbp_has_topics( array( bbp_get_topic_tag_tax_id() => bbp_get_topic_tag_slug() ) ) )

    Now, I’ve tried all of these and I’m getting nowhere.

    I hope the experts here will spot out the problem and help me sort out my widget in the way I want.

    Thanks.

    #161262
    xydeown
    Participant

    Also forgot to say , i create new forum.php page template , and echo there the bb shortcode , i opened new page with name forums and link forums , and used the forum.php template over that page.

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