Search Results for 'code'
-
AuthorSearch Results
-
April 21, 2015 at 9:12 am #161347
In 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.
April 18, 2015 at 7:41 pm #161261Robkk
Moderatoryou can use bbPress profile code on Woocommerce templates if you know what you are doing.
it could just be copying the user-details.php file from the bbPress templates and adding a simple link to your my account page from wwocommerce.
i suggest you hire a developer if you want anymore customization and possible merging templates of bbPress and Woocommerce.
April 18, 2015 at 6:41 pm #161259Topic: echo shortcode – view forum – not see topics
in forum Troubleshootingxydeown
ParticipantHello , i just installed bbpress on my wordpress , i opened new Theme page and echo shortcode [bbp-forum-index] , i can see the forum , but when enter the test forum , it’s not enter inside it , what to do i don’t know bbPress much , here a link to my forum page :
http://xn—-7hcbracas6eta3ak.tv/forums/
sorry for Language but you should understand because forums is at middle there and i am sure you can see it clearly , Thanks in advacned.April 18, 2015 at 5:54 pm #161255In reply to: User Topics Created
Robin W
Moderatorok if you look at user-topics-created.php you’ll see on line 18 that it calls
bbp_get_user_topics_started()that function presumes that you have $user_id set for the user, and however you are calling it, that is not the case, so you need to set it.
so try adding
$user_id = get_current_user_id(); <code>and then call</code>bbp_get_user_topics_started($user_id)April 18, 2015 at 5:18 pm #161247In reply to: (bbp_reply_to) Show as button from admin links
Robkk
Moderatoreach admin link has a class , you can style each to your liking.
here is an example of what i did to make a link in the twentyfourteen theme look like a button.
span.bbp-admin-links a.bbp-topic-reply-link, span.bbp-admin-links a.bbp-reply-to-link { color: #fff; background-color: #24890d; border-radius: 2px; padding: 5px 10px; } span.bbp-admin-links a.bbp-topic-reply-link:hover, span.bbp-admin-links a.bbp-reply-to-link:hover { background-color: #41a62a; }April 18, 2015 at 4:51 pm #161246In reply to: Hide forum post content in activity streams?
andrew55
ParticipantI’m still testing, but I think this does it:
.activity-list li.bbp_topic_create .activity-content .activity-inner, .activity-list li.bbp_reply_create .activity-content .activity-inner { display: none !important; }It shows bbPress forum titles in BuddyPress activity streams, but not content of the reply/post.
Hope this helps anyone who might need it.
April 18, 2015 at 3:08 pm #161242Robkk
ModeratorHowever, the auto mentions only work from the text tab (not the visual), is this a bug?
i think the functionality to make the script work for the TinyMCE visual editor is not possible now. You see that we are basically just borrowing the script from BuddyPress to work for bbPress forums , and also that neither bbPress and BuddyPress have the visual editor in their default installations without some plugins or functions added.
It is possible to make it work for TInyMCE though, you would probably have to use some of the code of this auto-complete plugin for TinyMCE.
https://github.com/abrimo/TinyMCE-Autocomplete-Plugin
If you want to develop some custom functionality to make it work for your client ,only thing i can suggest is look over how this plugin is developed and see how they make it work for TinyMCE and of course add on to the script from the BuddyPress plugin.
wordpress.org/plugins/mentionable/
Other than that maybe decide to disable the visual editor for bbPress to make it work fine.
Also, it seems that some users get a notification, but some are not.
If you are talking about the notifications users get when @mentioned , then go to the BuddyPress Support forums for help on this.
April 18, 2015 at 4:47 am #161231In reply to: Showing freshness of replies in forums
Robin W
ModeratorI’ve just had a look at my test site, and I think the code is not working as it should. Topics are fine, bur replies refer to the original topic date/time not the latest reply date/time. So if no reply it is correct, but otherwise wrong !
I’ll take a look at the source code when I get a chance, but maybe some days away. I’m not the plugin author, just a humble user !
April 17, 2015 at 6:22 pm #161202In reply to: import from bbPress1 crashes/restart Apache
thierryyyyyyy
ParticipantI got it !
sometimes, Apache exited with higher Status number example :
[Sat Apr 18 00:02:05.423769 2015] [mpm_winnt:notice] [pid 5900:tid 404] AH00428: Parent: child process 5032 exited with status 3221225725 — Restarting.Google gave me a hint : write this code in your httpd.conf (that’s for Windows)
<IfModule mpm_winnt_module> ThreadStackSize 8888888 </IfModule>It works now, like a charm 🙂
explanation : the stackSize in Windows is defaulted at 1MB, and it seems that bbPress Import need much more…. This line push the limit to more than 8MB. That’s all.
WAMP does NOT show this mpm_winnt_module in the list of loaded modules, I guess it is because it’s a default Apache Windows module ( http://httpd.apache.org/docs/2.2/mod/mpm_winnt.html )
Ah, I put first only the line “ThreadStackSize 8888888” (without ifModule) to be sure that it is taken into account. If the module was not mounted, Apache would have wrote it in apache_error.log. It should work on every windows normal installationApril 17, 2015 at 5:31 pm #161198In reply to: Add Custom User Roles
Robin W
Moderatorok, I’ve just loaded that code to my test site and it all works fine, the artisan role gives moderator access.
Not sure what has happened, what other changes have there been to your site?
He had the same results when set to an Artisan
Presume you mean he could not access, and by the by what do you mean by that? what happens when they try and access the forums, can they not see menu item, or what do they get when they try??
April 17, 2015 at 4:56 pm #161197marjons
ParticipantHello, I’m the webdesigner for BBC and installed both buddypress and the extra code for functions.php for him.
However, the auto mentions only work from the text tab (not the visual), is this a bug?
Also, it seems that some users get a notification, but some are not.
Any idea what could be the problem?
Thanks in advance!
April 17, 2015 at 3:23 pm #161195In reply to: Add Custom User Roles
Alice Kaye
ParticipantHi @robin-w!
Thanks for replying back about this. I’m sorry I failed to mention my troubleshooting. It definitely worked when I set up my husband’s account as a Councilman, and I tested every single rank on his account. He had the same results when set to an Artisan.
At that point, I came here because I can’t see anything wrong with the code.
Thanks again for the reply! 🙂
-
AuthorSearch Results