Search Results for 'code'
-
AuthorSearch Results
-
April 22, 2015 at 7:28 pm #161437
In reply to: Redirect from page to profile url (menu link)
Robkk
Moderatoryou might have to make a copy of the login widget , and customize it to how you want it.
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>April 22, 2015 at 7:16 pm #161436sharongraylac
ParticipantYou 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,
SharonApril 22, 2015 at 7:12 pm #161435In reply to: Sub Forums Styling
Robkk
Moderatortry this
#bbpress-forums ul.bbp-forums-list li.bbp-forum a { display: inline !important; }April 22, 2015 at 2:33 pm #161424Robkk
Moderatorthis should do it
#bbpress-forums #bbp-your-profile fieldset.submit { padding: 0px; }April 22, 2015 at 9:03 am #161412In reply to: Need help finding cause of avatar flicker on firefox
Henrijs Kons
Participantok 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 tagsApril 22, 2015 at 7:34 am #161410In reply to: having problem
Robin W
Moderatorbbpress 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
April 22, 2015 at 5:25 am #161402cirrus123
ParticipantI 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
April 21, 2015 at 8:54 pm #161383Robkk
ModeratorThey work fine.
there is some CSS hiding your content though. i just changed
clear:nonetoclear:leftif 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; }Robkk
Moderatorits not a widget its the
[bbp-forum-index]shortcodethere is a couple of alternatives if you do want it in widget form though..
April 21, 2015 at 3:12 pm #161371In reply to: Redirect from page to profile url (menu link)
project_subdomain
Participantdid 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.April 21, 2015 at 12:54 pm #161362In reply to: Can’t seem to make login short code work
sharongraylac
ParticipantYes, it does have Woocommerce shortcode.
Here’s the link, in case it helps…
bellynsoul.com/my-account.
Thanks!
SharonApril 21, 2015 at 9:12 am #161347In reply to: Html entities in my rss feed titles
Robkk
Moderatoryou 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.
April 21, 2015 at 9:08 am #161346In reply to: echo shortcode – view forum – not see topics
Robkk
Moderatorwhat 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.
April 21, 2015 at 8:32 am #161339In reply to: Upload & Embed Images
Robkk
Moderatorwell 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
imgbutton to show an image from external sources too.April 21, 2015 at 8:27 am #161338In reply to: Can’t seem to make login short code work
Robkk
Moderatoris there anything else supposedly in the my account page??
like say a woocommerce shortcode??
April 20, 2015 at 11:11 pm #161322Topic: Can’t seem to make login short code work
in forum Troubleshootingsharongraylac
ParticipantHello!
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.comApril 20, 2015 at 10:20 pm #161320Topic: Upload & Embed Images
in forum TroubleshootingThe Kestrel
ParticipantHello,
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 bbpressAny new insight on achieving this? The media button would be perfect for what I’m looking for.
Thanks!
April 20, 2015 at 1:53 pm #161311In reply to: Add Custom User Roles
Alice Kaye
ParticipantHi @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.
April 20, 2015 at 12:14 pm #161303In reply to: My customized sub-sub-forums
wplove3268
ParticipantThis 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.
April 20, 2015 at 12:02 pm #161302In reply to: having problem
Robin W
Moderatorsuggest you read
April 20, 2015 at 10:01 am #161293In reply to: Redirect from page to profile url (menu link)
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]April 19, 2015 at 5:11 pm #161276In reply to: Sidebar disapear for topics list
April 19, 2015 at 1:51 pm #161274phil_b
ParticipantYea 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
April 19, 2015 at 6:33 am #161265Topic: Adding topic tag filter in recent topics widget
in forum Troubleshootingvinzen
ParticipantI 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.

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.
April 18, 2015 at 8:08 pm #161262In reply to: echo shortcode – view forum – not see topics
xydeown
ParticipantAlso 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.
-
AuthorSearch Results