Search Results for 'code'
-
AuthorSearch Results
-
June 25, 2014 at 9:52 am #148246
In reply to: Can't change forum's index meta title
tharsheblows
Participant@robinw – I just came across this too and thought exactly the same as you, that it needed that filter or something like that. I was trying to change the “Topic tags: ” (or something like that) bit of the tags archive pages.
It was picking up the default taxonomy-topic-tags.php file. This must have been picked up from the plugin default theme, not mine – it’s in /extras in my theme folder but changing it there had no effect, I had to move it out of there to the root of the theme folder. This totally makes sense from a WordPress standpoint but was non-obvious because I was looking in the bbPress folder in my theme.
ANYWAY it’s sorted now but if someone else comes across it, check for some hidden template. I couldn’t get that filter to work for anything. I tried very very hard to make it work. It didn’t.
@saulmarq – what you can do is make a new page and make the permalink your forum root. So my forum root (in settings) is forums and the page is at example.com/forums. Then use the [bbp-forum-index] shortcode. The gotcha is that this page will *only* use the bbPress template, I think – you can’t make a custom template for it. I might be misremembering that, but I do know you can’t change the default template. Someone tried to tell me this was a good thing, whatever.Doing it this way is nice because then you can write an intro like:
Hi! Welcome to our forums. Dive right in. Post a lot, whoo!
[bbp-forum-index]
June 24, 2014 at 10:28 pm #148222Stephen Edgar
KeymasterHa! I just found some replies in the spam queue đ Unspammed, those words and abbreviations you used starting with a capital
Mare very common spam words, I’m not typing them either in case it flags me as spam, anyways, restored and sorry about that đJune 24, 2014 at 7:05 pm #148207In reply to: Replies shifted and cut off
zxtonizx
ParticipantI have a slight fear of updates but I need to just back up my files and get over it. Thanks for the code, worked a treat.
June 24, 2014 at 7:02 pm #148206In reply to: Auto activate BuddyPress Group Forums
HansRuedi
ParticipantThanks Stephen! I will try to get a few lines of code in the BuddyPress forum …
June 24, 2014 at 6:22 pm #148186In reply to: bbPress – iThemes Exchange
Stephen Edgar
KeymasterTell them to set WP_DEBUG to false in their wp-config.php
define('WP_DEBUG', false);and troubleshoot what the other plugin and/or theme is causing this issue, this is not a bbPress issue per se, it is another theme or plugin doing_it_wrong.June 24, 2014 at 6:09 pm #148184In reply to: Replies shifted and cut off
Stephen Edgar
KeymasterFirstly, you should update WordPress to v3.9.1, if you have some reason you must remain using the 3.7.x version upgrade to 3.7.3.
That said line #1198 of your style.css has the following:
.hentry { border-bottom: 2px solid #f7f7f8; margin-left: 120px; padding-bottom: 15px; position: relative; }You will need to override that for your bbPress forums with a custom entry in a child themes CSS.
eg.
#bbpress-forums .hentry { margin-left: 0px; }June 24, 2014 at 2:06 pm #148166In reply to: Not seeing forum sidebar
obinyc
ParticipantSo it looks like I was finally able to get the sidebar to display properly by using the original code for displaying dynamic sidebars.
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Sidebar')): endif; ?>Once I used this, then the homepage sidebar stopped displaying and the forum-specific sidebar showed up(which I only need to allow people to login).
What do you think, Robin?
And thanks for the help!
June 24, 2014 at 1:05 pm #148163In reply to: Not seeing forum sidebar
Robin W
ModeratorGetting bbpress to work with the many very clever (too clever!) themes is not always easy
Ok, we could spend a lot of time getting a forum specific sidebar for your theme, but maybe easiest to get your sidebar working to display in bbpress
so install widget logic
https://wordpress.org/plugins/widget-logic/
Then set up whatever sidebar is being displayed on the bbpress page for all the widgets that you want it to display, both for the homepage and bbpress
Then you’ll see each widget now has a widget logic condition.
For items you want to display only on bbpress add the logic
is_bbpress()For items say only on a home page add
is_home()for items you want on all pages apart from bbpress use
!is_bbpress()Come back if anything is not clear
June 24, 2014 at 1:00 pm #148161jtabrams
ParticipantThe problem is that my search form is only returning a list of recent posts. It’s not including ANY forum information, and it’s not including any valid search results. Prior to installing BBPress, my search results were displayed on a formatted page that said “Search Results.” Now when you search, it’s saying “Latest Posts.” Somewhere with the installation, something is rerouting the code to pull from somewhere else.
In my searchform.php the code is:
<form role="search" method="get" id="searchform" class="form-search <?php if (is_404() || !have_posts()) { ?> well <?php } ?>" action="<?php echo home_url('/'); ?>"> <label class="visuallyhidden" for="s"><?php _e('Search for:', 'roots'); ?></label> <input type="text" value="" name="s" id="s" class="search-query" placeholder="<?php _e('Search', 'roots'); ?> <?php bloginfo('name'); ?>"> <input type="submit" id="searchsubmit" value="<?php _e('Search', 'roots'); ?>" class="btn"> </form>June 24, 2014 at 11:43 am #148154Robin W
ModeratorIt may well be that you’re search form is just including the forum posts.
bbpress uses custom post types of ‘topic’, ‘forum’ and ‘reply’. You site wide search may well need to exclude these types so that forums results do not get filtered into the search.
see https://codex.wordpress.org/Function_Reference/get_search_form
In particular
<input type=”hidden” value=”post” name=”post_type” id=”post_type” />
Here we submit the value post. The default value is any, meaning, posts, pages and custom post types.ie the default is any would include forum entries.
June 24, 2014 at 11:20 am #148151Robin W
Moderatorok, sounds like you need a test site
https://codex.bbpress.org/creating-a-test-site/
so that you can test things like installing bbpress prior to going live !
Anyway, back to your immediate issue, it will be very theme dependant, and sounds like your theme is doing something with search after you’ve disabled it
you say ‘our site continues to use the search functions that we setup. ‘ have you some special search function, or how is your search working?
June 24, 2014 at 10:19 am #148145In reply to: Forum subscription subscribes to all forums
Robin W
ModeratorIt could be a bbpress + buddypress + private groups issue
Buddypress filters some bbpress code, so my plugin may be overwriting a filter that buddypress is using to control either subscriptions or the info it is displaying about bbpres subs.
Did you check if subscribing to one forums ACTUALLY subscribes to them all, or whether buddypress is just saying that they are?
You could check this by unsubscribing from forum b, then subscribing to forum a, checking that buddypress says you’re subscribed to forums a & b, and then posting in forum b to see if you get an email.
June 24, 2014 at 8:14 am #148144In reply to: Full Width for bbpress forums root page
Lumartist
ParticipantSo, you want to have 100% width?
Search in your main style css, in general it is style.css, for this code-part:
.site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-contentThere you can find “max-width:”
Change it to 100%.
If you do so, it might change other parts of your site as well. To prevent this you might want to add a new part to your css, and leave the above mentioned part untouched.
.site-content .forum .entry-header, .site-content .forum .entry-content, .site-content .forum .entry-summary, .site-content .forum .entry-meta, .page-content { margin: 0 auto; max-width: 100%; }June 24, 2014 at 7:34 am #148142In reply to: Forum subscription subscribes to all forums
Lumartist
ParticipantOkay, I have to add another reply here, sorry.
Strange thing is, that I am having the same effect as with the Tehnik plugin. As soon as I add your plugin, bbp-private-groups, and I subscribe to a forum, I am subscribed to all forums. As soon as I disable the plugin everything works fine. It also happens with a standard theme like twenty fourteen.
I am not sure where this coming from. Very strange…
Here’s a list of installed plugins:
- Advanced Custom Fiels
- bbP private groups
- bbPress
- bbPress Pencil Unread
- Breadcrumb NavXT
- Buddypress
- CodeStyling Localization
- iThemes Security
- Members
- Radio Buttons for Taxonomies
- Regenerate Thumbnails
- Require Featured Image
- WP Smush.it
All Plugins are up to date!
May it be a conflict with iThemes Security or Members? But why? And why does it just happen if a plugin for forum access is used?
This is like a closed book to me, as I am a designer and css-coder, but not a php-coder, which makes it realy hard…
June 24, 2014 at 5:31 am #148129In reply to: Problem with permalinks after bbpress-update to 2.54
Stephen Edgar
KeymasterEverything here is working and is expected behaviour for bbPress.
You are correct replies no longer have a title, the slug of a reply is now the reply ID.
You would typically only notice this working in the backend by not seeing a reply title in the ‘edit reply’, yet when you look at the list of replies in the backend just like bbPress you will see all the replies have a title, this title is inherited from the topic title.
The key thing here is that when viewing a single reply on the front end it has no context without it’s parent topic. We also encourage the use of the vast majority of bbPress via the front end and not the backend, the backend is really only meant to be used if you cannot do something via the front end, we try to make everything work via both interfaces but due to other issues further upstream in WordPress Core we can’t replicate all the functionality we implement.
As you stated via @JJJ until WordPress 3.7 replies had to have a title, this imposed some limitations on what we could and could not do with replies, further to this change in bbPress there will be even further enhancements coming to bbPress, maybe 2.6, if not 2.7 due to this new found freedom and functionality we have with our replies.
As I continue reading the previous page I knew this was coming đ
Why do I want this?
1. permalink without reply-title, but only with reply-ID is not good for search engines.Neither is duplicated content, previously if your topic URL was
/topic/topic-title, then your replies would be/reply/topic-title-1,/reply/topic-title-2etc, similar content but not the same content, now each reply has a unique URL.2. if I open a reply-post in the admin area, there is no title âreply to: âŚ. (topic title) âŚâ (the title bar is empty) and I do not know to which post this reply refers. This is not good for handling the forum in practice.
This is one of those things I just mentioned above, about working via the frontend vs the backend and until the updates upstream flow from WordPress Core this field will remain empty until we can actually hide it completely. You should be editing replies via the frontend, moderators and users all use the frontend to perform all the tasks required. I’m only a moderator here on bbPress.org and can perform any task bbPress needs just fine, it is the preferred experience as just because you can do something in the backend does not always mean you should.
Apologies that I only saw this this morning, crazy week last week.
June 24, 2014 at 3:54 am #148128In reply to: Forum subscription subscribes to all forums
Lumartist
ParticipantPresume this doesnât happen when you switch to a default theme?
Actually, the strange thing is, that it also does happen with a standard theme, like twenty fourteen. I didn’t test it before, as I thought it would be a problem with my custom theme, but now I see, that it happens also with other themes.
Also test whether it is actually subscribing to all forums, or just saying that it is.
Well, if I visit the subscription list with subscribed forums and topics, I do see the whole forum list, with categories and forums, no matter which forum I did subscribe to. It’s the same with the source code, I do see all the forums.
I should add, that it is working wth topics. If I subscribe to a topic, only that topic appears in the subscribed topics list.
June 24, 2014 at 2:35 am #148125In reply to: Topics and Replies Not Showing Up
Robin W
ModeratorOk so sorry it looks like a theme issue.
I don’t thin k it will help, but just might, so try
June 24, 2014 at 2:31 am #148124In reply to: Not seeing forum sidebar
Robin W
Moderatorok, with the code in, try the following
Deactivate bbpress tweaks
Dashboard>plugins>bbpress tweaks>deactivateGo into widgets
Dashboard>appearance>widgetsAnd look at the bottom of the left hand side. Youâll see an âinactive sidebarâ, with your entries on
Below this is an âinactive widgetsâ
Drag all the entries from the inactive sidebar to the inactive widgets area.
This then allows wordpress to delete the sidebar
I normally log out and in again at this stage â probably not needed, but Iâve never bothered to check
Then basically reverse the above
Re-enable bbpress tweaks
You see the bbpress sidebar returns
Drag the entries back from the inactive widgets area to the sidebarJune 23, 2014 at 5:34 pm #148121In reply to: Not seeing forum sidebar
obinyc
ParticipantHey Robin,
Thanks for the reply. A little while ago, I removed the line that would have included the sidebar but I just added in yours and what I am seeing is the sidebar from the homepage for some reason. This is one of the issues I was having before and the reason I removed the code in the first place.
Do you have any idea why this might be happening? Please assist, buddy.
Thanks
June 23, 2014 at 9:27 am #148106Robkk
Moderatorok, ignore the code (it is confusing me)
i understand
So you have a topic started and this displays in the âpost authorâ part an avatar, the topic author name, but no role
it should just display the topic author name with a certain color
Next someone replies and this displays in the âpost authorâ part an avatar, and the reply author name, but nothing else
yes exactly
Next is a reply by the original author, and in the âpost authorâ part this display an avatar, and their name in say a green block (and nothing else)
yes
Is that what you want?
just in case heres a picture, zoom with the scroll wheel
https://drive.google.com/file/d/0B_Ue9ryY5cmYTHhlRkg0a3k4T1U/edit?usp=sharing
i used a blue because it was the color i had when photoshop was last used
June 23, 2014 at 8:21 am #148102Robin W
Moderatorok, ignore the code (it is confusing me)
So you have a topic started and this displays in the ‘post author’ part an avatar, the topic author name, but no role
Next someone replies and this displays in the ‘post author’ part an avatar, and the reply author name, but nothing else
Next is a reply by the original author, and in the ‘post author’ part this display an avatar, and their name in say a green block (and nothing else)
Is that what you want?
June 23, 2014 at 8:12 am #148101In reply to: login fails and no html formatting options
Robin W
ModeratorThough dashboard access is restricted and allows only to edit the profile page, I donât want that to happen. How to prevent that from happening?
add the following to your functions file
//disable toolbar for non-admins if (!current_user_can('manage_options')) { show_admin_bar(false); }June 23, 2014 at 5:36 am #148099totorche
ParticipantThanks a lot !! Has been really userfull !
I also had a problem with the login form. When I used the login form, it always redirected me on the main page of the forum but always in the main language.
Te solve this problem, just modify another line in bbpress/includes/common/template.php on line 1181 :
On line 1181, replace:
$redirect_to = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];with:
$redirect_to = qtrans_convertURL(( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);June 23, 2014 at 4:02 am #148094Topic: Forum subscription subscribes to all forums
in forum TroubleshootingLumartist
ParticipantHello everyone,
right now I am working on my own theme, and I am having a “small” problem. After I subscribe to a certain forum and check my subscribed forums on the buddypress profile page, I am subscribed to alle available forums, and not the one I actualy subscribed to in the first place.
I did check all of my template files, like content-single-forum.php and loop-singleforum.php, or user-subscriptions.php, but I couldn’t find anything unusual. The link, generated with the subscription link seems to be okay too, compared with other forums.
http://www.website.net/forum/forum-category/forumname/?action=bbp_subscribe&forum_id=9&_wpnonce=c557e237e8I did even compare my files to other forum styles.
I am not quite sure where this is coming from. Maybe someone had a similar problem before? Any ideas?
Thanks for your help in advance!
June 23, 2014 at 3:11 am #148092In reply to: Capability needed for subscription notification
Robin W
ModeratorIf a user who has capability âparticipateâ subscribes to a forum and then is demoted to capability âspectateâ, will the user continue to receive notifications?
Yes, spectators can subscribe to forums, and this is against the user, not their access level.
It is certainly possible to code to prevent this, you be looking at filtering the functions
bbp_get_topic_subscribe_link
bbp_get_forum_subscribe_linkBut whilst I’d love to, I have too much on at the moment to code it – sorry đ
-
AuthorSearch Results