Search Results for 'code'
-
AuthorSearch Results
-
August 5, 2016 at 4:28 pm #176883
smithcreate
ParticipantWhen I place the shortcode in a page, it renders the form as expected. And when I enter a username or email address, the form submits and refreshes the current page.
Example: http://www.ccghpa.com/test01/
So with the shortcode in a widget on my forums page I would expect the form to submit and refresh the current page. Instead, it jumps to a random forum.
August 5, 2016 at 4:19 am #176873Topic: Multiple forums and capabality
in forum TroubleshootingNormadSoul
ParticipantHello
English is not my forte. I will try to write you understand what I mean and what I want and something advise.
We’re going to be a big project. We establish mmporg page in which guild will have its pages, posts and also their forum and all in one website.
BbPress will do together with Budypress.
I set up the group in Buda press and there a separate forum, but can not add multi layer one major forum in the forum. It has to do administration on the bulletin board in WordPress.
Assign rights administrators with limited options, but the problem is that it can delete all topics and I do not want it. It may read topics.
I want to set that could delete your own topics and dirty.
I adjusted the law in the bbPress code, such as false and true, may well lubricated.
I just want that each guild had their own separate forum and in which their users and manage this forum only. The others can not do.
Thank you
August 4, 2016 at 7:57 am #176862In reply to: correct way to override bbpress templates
Robin W
Moderatoryes, the code I posted above if placed in your plugin would tell bbpress to look in
content/plugins/myplugin/templates/templates1/
August 2, 2016 at 2:10 pm #176819Robin W
Moderatorok,
when I put the shortcode in the text widget, I just get it displayed as text ie [bbp-lost-pass] rather than rendered.
can you try the code in a page and see where that goes
August 2, 2016 at 1:52 pm #176818smithcreate
ParticipantI’m using an iThemes Builder theme and have a page template with a right column being used for that page. Under Appearance > Widgets, I have a Text widget applied to this column with the following code:
[bbp-lost-pass]
This renders the lost password form.
August 2, 2016 at 1:45 pm #176817Robin W
Moderatorcan you tell us how you have put that code in the widget – ie what widget you are using and how you have put
[bbp-lost-pass]in itAugust 2, 2016 at 5:30 am #176791In reply to: Help with breadcrumbs…
Robin W
Moderatorok, so back to your initial post – you renamed the forum root slug as ‘Index’ – yes?
if you do that, and then create a wordpress page called ‘Index’ and in that page put
[bbp-forum-index]Then call that page from your menu and it should all work nicely.
August 1, 2016 at 12:37 pm #176760In reply to: Page Layout
Robin W
Moderatorsidebars are theme related – start by looking at
section 8
August 1, 2016 at 12:34 pm #176758In reply to: Missing – else return $action
Robin W
ModeratorThe code is included in 2.6 alpha
/includes/extend/buddypress/notifications.php
lines 43-45
// Bail if not the notification action we are looking for if ( 'bbp_new_reply' !== $action ) { return $action; }August 1, 2016 at 5:04 am #176752Topic: Keeping 2.6-alpha updated
in forum Installationcluciftias
ParticipantHi,
I’m using bbPress 2.6-alpha on one site and I was wandering what was a recommended way of keeping that installation up to date with the latest 2.6 code? WP doesn’t report any updates but I guess important updates are made on code and they end up in that ZIP on Download page, right?
July 31, 2016 at 9:09 pm #176742In reply to: Missing – else return $action
junglejim620
ParticipantHi Robin,
In the dashboard page it displayed this message that how i find out about it. So appearently 2.6.1.1 doesn’t have it, otherwise this message link wouldn’t displayed on admin page?
Attention: bbpress-bug: If you use bbpress < 2.6 please apply the changes described there: https://bbpress.trac.wordpress.org/ticket/2779 to get the notifications working
I even opened the notifications.php in notepad and even did a search for “else return $action;” , looked from top to bottom many times, no phase like that?
Not sure if I have to change the whole bunch of code or what from the 5512 link above.
This is a another language I have no idea what I’m suppose to do?If all I need is to put this “else return $action;” , please show me how and where to put it? I put very bottom “else return $action;” ?> and getting a white page? Please help..
Show how bbPress 2.6.1.1 don’t have it? Perhaps is there’s a page I can go download this notifications.php ?
Please help,help. Thanks
July 31, 2016 at 4:42 pm #176738In reply to: “Start Discussion” page plugin available?
Robin W
Moderator1. create a page
2. put one of these two shortcodes in it[bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with. [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.3. add the page to your menu
July 31, 2016 at 11:57 am #176734In reply to: Parsing of CM Tooltip glossary terms in forum
Robin W
ModeratorI’ve been mulling this over…
I don’t think the following will work, but it’s worth an initial try – add this to your functions file
function bsp_breadcrumbs ($args) { $pre_current_text = $args['current_text'] ; $args['current_text'] = '[glossary_exclude]'.$pre_current_text.'[/glossary_exclude]' ; return $args ; } //add the filter add_filter('bbp_before_get_breadcrumb_parse_args', 'bsp_breadcrumbs');Let me know either way !
July 29, 2016 at 1:21 pm #176710In reply to: see email of forum user as Super-Administrator
Robin W
Moderatorwhat bbpress role does the person have? if admin, and they see the ip address in replies, you could put the email under this using
add_action ('bbp_theme_after_reply_author_admin_details', 'rew_show_email') ; function rew_show_email () { $user_id_rew = bbp_get_reply_author_id () ; $user_info_rew = get_userdata($user_id_rew); $email = $user_info_rew->user_email; echo 'Email: '.$email ; }put this in your functions file
https://codex.bbpress.org/functions-files-and-child-themes-explained/
July 29, 2016 at 12:42 pm #176708In reply to: correct way to override bbpress templates
Robin W
ModeratorIf I understand you correctly you want to amend a file in
wp-content/plugins/bbpress/templates/default/bbpress/
The easiest way is to copy the relevant file to your child theme
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress and copy the file there egwp-content/themes/%your-theme-name%/bbpress/loop-forums.php
bbPress will now use this template instead of the original
and you can amend thisYou can also add a location – for instance within a plugin I use I add a location using :
add_action( 'bbp_register_theme_packages', 'bsp_register_plugin_template1' ); //get the template path function bsp_get_template1_path() { return BSP_PLUGIN_DIR . '/templates/templates1'; } function bsp_register_plugin_template1() { bbp_register_template_stack( 'bsp_get_template1_path', 12 ); }July 29, 2016 at 10:09 am #176706In reply to: ERROR: Are you sure you wanted to do that?
smithcreate
ParticipantI solved this. The code above was already in the functions file. I removed it and all is well.
July 29, 2016 at 8:19 am #176705In reply to: ERROR: Are you sure you wanted to do that?
smithcreate
ParticipantI’m having this error on my production website.
I added the code in my functions.php file of my child theme which causes the site to not load. With the exception that I changed the return value:
add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 ); function my_bbp_verify_nonce_request_url( $requested_url ) { return 'http://www.ccghpa.com' . $_SERVER['REQUEST_URI']; }Any other fixes?
July 28, 2016 at 5:23 pm #176687In reply to: How to Integate bbPress Pages into Site Theme
Robin W
ModeratorJuly 28, 2016 at 2:21 pm #176679In reply to: How to Integate bbPress Pages into Site Theme
pcpro178
ParticipantI appreciate your willingness to help. 🙂 It’s not functionality that I want to customize at this time. Right now, I’m only really interested in getting the pages to integrate/fit well with my site. That is, I need to integrate it with my theme.
Perhaps if we look at this from the other end the problem will be easier to understand:
My plan at present is to develop a new template page within my theme to handle bbPress Topic pages. This new page will adopt elements (mostly copy/paste style) from one of the bbPress files (plugin-bbpress.php, bbpress.php, forums.php, or forum.php). I’m confused as to which of those files should be used for displaying bbPress Topcic pages (e.g.
sopearly.com/topic/welcome-to-the-sopearly-community/).If I had to guess, I would start by copying & modifying
forum.phpinto my new template. Would that be correct?July 28, 2016 at 1:36 pm #176678In reply to: Specific Forum Topic Not Arranging
Robin W
Moderatorhmm.. The only way I can immediately think of is to modify loop-topics
so
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-topics.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-topics.php
bbPress will now use this template instead of the original
and you can amend thisso in that file you will see
<?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php bbp_get_template_part( 'loop', 'single-topic' ); ?> <?php endwhile; ?>you would need to check with forum the user is in and then custom display
so something like – you’d need to write the code – this is just words !
<?php if (forum == the one you want to change) { then make an array of the ID, and then cycle through them foreach ($topics as $topic) { bbp_get_template_part( 'loop', 'single-topic' ); } } else { ?> <?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php bbp_get_template_part( 'loop', 'single-topic' ); ?> <?php endwhile; ?> <?php } ?>July 28, 2016 at 8:58 am #176668In reply to: How to Integate bbPress Pages into Site Theme
pcpro178
ParticipantYou are correct. There is no functionality missing, and I am trying to get the bbPress pages to look like they fit with the rest of my site (i.e. background and header–theme elements). My last reply (#176623) was badly mangled by the auto-populated page elements from my site (did not see that coming), and Akismet keeps blocking my posts, so I have no idea when anyone will see this. :”’ (
Please correct me if I am using the wrong approach, but what I am trying to do is figure out which of the files at
wp-content/plugins/bbpress/templates/default/bbpressthat I should be using to customize the bbPress topic page (e.g. ‘sopearly.com/topic/welcome-to-the-sopearly-community/’) and which file name I should rename it to: plugin-bbpress.php, bbpress.php, forums.php, forum.php.I realize I’m having a lot of trouble with this. Thanks so much for your help. 🙂
July 28, 2016 at 8:02 am #176666In reply to: Plugin Cost Nonsense? Is This WordPress Life?
Robkk
Moderatorit’s enough to send a prospective wordpress user running in the direction of other alternatives
bbPress has a forum import tool in Tools > Forums > Import Forums (free and open source code, so any dev can just improve the program how they want then official devs can commit changes or not).
July 28, 2016 at 1:28 am #176641In reply to: Calling a bbp user profile on a return
theredheadhenry
ParticipantShould point out, that the return at the bottom originally was like this:
return get_author_posts_url( $user->ID );July 28, 2016 at 1:00 am #176639Topic: Calling a bbp user profile on a return
in forum TroubleshootingJuly 27, 2016 at 5:02 pm #176633In reply to: Include wordpress pages in bbpress forum search
uschesch
ParticipantHi Robin,
thanks for the quick reply. Unfortunately, the code did not work. When I enter text that I know is in a wordpress page into the forum search box, I get a list of forum topics, and that list disappears. When the list disappears, I get a no post found message.
https://www.dropbox.com/s/8xv3qblzumnh16s/forumsearch.PNG?dl=0
-
AuthorSearch Results
I found this plugin that takes all the usernames that are commented on a post and makes the link go to a different page. I’m trying to make it call the bbp_user_profile_url. This way, when the link of a user is clicked on from the comments it goes to the users bbpress profile.
My PHP is a little rusty, so I deliberately coded this wrong hoping someone can see what I’m trying to accomplish. My code modifications are at the very end.