Search Results for '"wordpress'
-
AuthorSearch Results
-
July 15, 2014 at 2:54 pm #149165
Topic: Forum subscription not sending emails
in forum Troubleshootingrobert_k
ParticipantWe just finished migrating a client’s site to use bbPress, and hit our first snag. Thread/topic subscription appears to work correctly. But subscribing to a forum does not result in any notification emails.
I’d post a link to the site, but all forums are marked as private because it’s being used as part of an intranet.
Versions:
WordPress 3.6.1
bbPress 2.5.4I can list the other plugins if someone suspects a conflict, but it’s a fairly long list.
July 15, 2014 at 2:14 pm #149161In reply to: Favorites and subscription count
Robin W
Moderatorwhat are you planning to count, topics, forums or both?
and if you count a forum as subscribed, do you want to count all the topics within that forum as subscribed?
the list of forums/topics subscribed to is held in usermeta under WP__bbp_subscriptions and an example would look like
5682,13255,13098,13394,13456,13497,13550,13575,13636,13652,13669,13705,13750,13769,13620,14017,14222,14375,14469
so it would count a forum and a topic each as 1.
you could add a check to see which were topics and which forums and display separately.
You’d access it using a function like
$user_id = wp_get_current_user()->ID; $check=get_user_meta( $user_id, 'WP__bbp_subscriptions' ,false); some if statement here in case it's blank then set a counter to zero foreach ( $check as $count ) { increment the counter in here maybe one count if it's a topic and another if its a reply? } then carry on to a displayFavorites are held in ‘WP__bbp_favorites’
If you want some code to display the results, look at my topic count plugin
https://wordpress.org/plugins/bbp-topic-count/
Hope that’s sufficient to get you going to a solution, come back if you need more help
July 15, 2014 at 1:55 pm #149160In reply to: bbpress SQL Injection
Robin W
ModeratorYou need to start working your way through these resources:
https://codex.wordpress.org/FAQ_My_site_was_hacked
https://wordpress.org/support/topic/268083#post-1065779
http://ottopress.com/2009/hacked-wordpress-backdoors/Anything less will probably result in the hacker walking straight back into your site again.
Additional Resources:
Hardening WordPress
http://sitecheck.sucuri.net/scanner/
http://www.unmaskparasites.com/
http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.htmlJuly 15, 2014 at 8:58 am #149144In reply to: Possible issue untrashing topics
slayne76
ParticipantHi Stephen,
thanks for the reply. I looked at the trac but it’s not strictly related, since it refers to the spam/trash/admin links on the front end.
What I noticed instead, (and you can test yourself and let me know) is simply as this: in the backend (wordpress admin area) when a topic is in the trashcan, and you click untrash (the same thing you would do with posts, pages, custom post types when you put the in the trashcan) you get the default nonce wordpress error. You simply “CAN’T” untrash something directly inside wordpress.
I was hoping that anyone else could try the same and give me confirmation that the issue exists (in the code i posted I was able to indentify the problem as well)If you, or anyone else, can confirm there is this issue, I (or you, or whoever wants to) can open a ticket in the trac so it gets fixed asap π
July 15, 2014 at 6:43 am #149139In reply to: WordPress and bbpress search
Robin W
ModeratorThe issue is getting wordpress search to display the results in a meaningful way (ie bpress style)
This plugin which is old claims to do this, but there is a warning that it shows private forum results, is unless all your forums are open I wouldn’t use it.
https://wordpress.org/plugins/search-bbpress/
Try it and see if it works
July 15, 2014 at 5:08 am #149133Topic: WordPress and bbpress search
in forum Troubleshootingacornale
ParticipantAt the moment, I have a standard WordPress search box on the top of my page. It seems to return posts and pages but not bbpress forums or topics.
I can use the bbpress shortcodes to display a forum search but I don’t want two search boxes.
Is there a way to extend the native wordpress search so it returns posts, pages, topics and forums?
At the moment, it seems I can search bbpress OR search wordpress posts / pages. I want to search both?
July 15, 2014 at 4:25 am #149131In reply to: bbPress redirects users when logged in?
Pavle123
ParticipantSo this is the plugin I use https://wordpress.org/plugins/genesis-simple-sidebars/
But these sidebars are not being used for bbPress forum.
For bbPress I use this setup by Genesis Theme.

And not sure about conditionals (sorry) but here is the setup.
Not sure what is causing these “login expires” thing. Would really love to solve it, as its a bit annoying to non admins (Note for admins login does not expire).
July 14, 2014 at 9:23 am #149112In reply to: How to make similar bbpress forum to QuicSprout one?
Robkk
ModeratorThanks so much. I am not an expert in this, so I will wait until Sunday.
haha im no expert , im just some guy helping out people on here the best i can
-Login/Register buttons above the forum
quicksprout has ajax login and its also in a popup window
so if you want that install wp-modal-login
after that copy your content-archive-forum.php to your child theme
and make sure that is has this code inside of it , heres a snippet
<?php do_action( 'bbp_template_before_forums_index' ); ?> <?php if ( bbp_has_forums() ) : ?> <?php if ( is_user_logged_in() ) { } else { ?> <div class="bbp-modal-login"> <?php add_modal_login_button( $login_text = 'Login', $logout_text = 'Logout', $logout_url = 'http://sitename', $show_admin = true ); ?> </div> <?php }; ?> <?php bbp_get_template_part( 'loop', 'forums' ); ?> <?php else : ?> <?php bbp_get_template_part( 'feedback', 'no-forums' ); ?> <?php endif; ?>style the link to whatever you want with custom css
here is a template.bbp-modal-login a.login.wpml-btn.login-window { float: left; padding:5px; color:#fff; background:#333; text-decoration:none; text-transform:uppercase; }and like i said you could also do the shortcode version too
nice round images of members
i saw your site , and see you already have this
images for read/unread posts
if you want the images here
the whole functionality of the unread posts on their forums is like 2 unread posts plugins from the wordpress plugin respository mixed together
https://wordpress.org/plugins/bbpress-mark-as-read/
https://wordpress.org/plugins/bbpress-unread-posts/i cant really help on this
statistics at the bottom
this should be the bottom of your content-archive-forum.php
<?php do_action( 'bbp_template_after_forums_index' ); ?> </div> <?php echo do_shortcode("[bbp-stats]"); ?>to style the bbpress statistics shortcode put content-statistics.php into your child theme
this should be your entire content-statistics.php
<?php /** * Statistics Content Part * * @package bbPress * @subpackage Theme */ // Get the statistics $stats = bbp_get_statistics(); ?> <?php do_action( 'bbp_before_statistics' ); ?> <div class="bbp-stats"> <ul class="bbp_stats"> <li> <?php _e( 'Users', 'bbpress' ); ?></dt> <strong><?php echo esc_html( $stats['user_count'] ); ?></strong></li> <li> <?php _e( 'Topics', 'bbpress' ); ?></dt> <strong><?php echo esc_html( $stats['topic_count'] ); ?></strong></li> <li> <?php _e( 'Replies', 'bbpress' ); ?></dt> <strong><?php echo esc_html( $stats['reply_count'] ); ?></strong></li> </ul> </div> <?php do_action( 'bbp_after_statistics' ); ?> </dl> <?php unset( $stats );add this for custom css
.bbp-stats .bbp_stats { list-style-type: none; display: block; text-align: center; margin-left: 0px; float: none; } .bbp-stats .bbp_stats li { margin: 0; display: inline-block; padding: 5px; }βNew Thread button”
this is just a drop link , example of a drop link would be to put #new-post at the end of the url of this topic and you will see that you will end up at the new topic/reply form
copy content-archive-topic.php into your child theme right now then
ILL tell you the rest when im done , because right now im having some trouble
July 12, 2014 at 5:58 pm #149087In reply to: Crayon Syntax Highlighter not working / tags issue
Stephen Edgar
KeymasterI just added a patch for this, so unless someone comes with a reason to not include this it will be included in bbPress 2.6.
July 12, 2014 at 6:45 am #149062In reply to: BBPress advise wanted
Stephen Edgar
KeymasterCool, most of things you mention can be done, some are ready to go, others need a few tweaks and custom PHP code to achieve the results.
1. create login in the wp home page for BBpress
Create a WordPress page, set that as your home page, add the bbPress login/register shortcodes
2. allow only offline registered members to be registered as BBpress users
Not quite sure what you mean here, you can set your forums to ‘private’ so only logged in registered members can see or use the forums.
3. enable/disable users, and hence their profiles
This is more of a WordPress question than bbPress, if the member has an active and valid WordPress account then they can login. If you want to remove the user and their associated profile then you’d delete the actual WordPress user which inherently flows down to bbPress.
4. allow users to create profiles with their filmography and perhaps a vimeo embed or two
With a few minor tweaks/customisations you could achieve this, you may also want to take a look at BuddyPress’ Extended profiles which will let you do this also.
5. can users have simple URLs for their profiles, like perhaps example.com/username?
Yep, this is built in, here’s yours here on bbpress.org https://bbpress.org/forums/profile/parambyte/
July 12, 2014 at 6:28 am #149059In reply to: Allow HTML tags in Post for All Users
Stephen Edgar
KeymasterClick the ‘download gist’ link, it will download a zip archive, unzip it and use FTP to upload the plugin to your WordPress plugins folder, typically
/wp-cntent/pluginsEdit: Or go to ‘Plugins’ -> ‘Add new’ -> ‘Upload’ and you can then upload it directly.
July 12, 2014 at 6:24 am #149056In reply to: Possible issue untrashing topics
Stephen Edgar
KeymasterI haven’t looked at what you have above closely, nor have I looked closely at the changes @jjj made recently but we just changed some of the logic behind trash, untrash, spam and unspam for topics and replies.
Details and links to changesets are in the following ticket if you want to take a look as it appears I have not really looked at anything π
https://bbpress.trac.wordpress.org/ticket/2494
If you don’t see anything in that ticket or related to what your looking for please create a new ticket and I promise I will look π
July 12, 2014 at 6:10 am #149053In reply to: Deep integration (old bbpress) and empty wp_head
Stephen Edgar
KeymasterI have hardly dug into bbPress 1.x and am not familiar with the code base at all.
How about grab the latest bbPress v1.2 and create a test/demo site on your local PC with a backup your database, things should theoretically work though you ‘d have to make sure the database upgrade routine was triggered of course.
That should then give you a working version with your database to then start comparing the base code of your test site vs your live site.
That said, what is stopping you from upgrading? I am presuming here that there is something stopping you from installing WordPress and upgrading bbPress 1.x to the v2.x plugin?
July 12, 2014 at 4:02 am #149038In reply to: phpBB Import Error(s)
Stephen Edgar
KeymasterI added support for the anonymous/deleted phpBB user topics and replies, just finalizing all of this for the any other forums that also have this feature, SMF, Drupal, Vanilla.
For the redirects I need to find a workaround to have WordPress correctly verify that
viewtopic.php?f=3&t=9is a valid URL, if we can do that then redirects could be included for imported forums and that would be awesome.July 12, 2014 at 3:06 am #149033In reply to: Long Query Error
Stephen Edgar
KeymasterThis is just a warning notice, not so much a functional error, due to the amount of roles you have which is combined by WordPress, bbPress, Shop and S2 Member the query is over 1540 charatacters in length (1547 to be exact)
You should contact your webhost for the best advice guidance on what MySQL settings they have configured for your hosting setup, they may have an option to increase this number for you.
(Apologies, your topic was originally caught by Akismet as spam)
July 12, 2014 at 2:45 am #149032In reply to: Unique member names
Robin W
Moderatorare you using automatic registration?
If so wordpress should prevent duplicate usernames.
or maybe you using a membership plugin that overrides this?
July 12, 2014 at 2:35 am #149027In reply to: 404 for logged in users (not admin)
Robin W
Moderatorok there are two parameters
wordpress – has subscriber, author, admin etc.
bbpress has – participant, moderator, keymaster etc.you’ll see the bbpress roles when you do into
dashboard>settings>users>all users and go into edit users. Look at the bottom of the screen and you’ll see forum role.
If you are manually registering your users, then have set up a user, you’ll need to go back into edit to add the role.
If your users are automatically registered as part of a process, then you’ll need to set Dashboard>settings>forums and change/tick automatically assign users the participant role (if that’s the role you want them to have).
In automatic mode, the user is assigned the bbpress role on first login. However if you are using third party registration processes (eg plugins to do that) then some override that, and that part of the process doesn’t work, so you’ll need to check that rthe process is happening.
Come back if you need further help.
July 11, 2014 at 1:47 pm #148994Robin W
Moderatordo you simply want the forum to be hidden from non-logged in users?
If so private does what it says on the tin. So set the forum, and all posts under it will be private as well.
If you need only some users to see if private, then
https://wordpress.org/plugins/bbp-private-groups/
is what you need.
July 11, 2014 at 3:20 am #148973In reply to: Simple Layout
Robin W
Moderatorok, several ways you could do this, the best I know is
https://wordpress.org/plugins/display-posts-shortcode/
just create a page called anything and put the code on it.
you’ll be looking for a custom post type of topic.
see https://github.com/billerickson/display-posts-shortcode/wiki for the arguments you can use
you can then determine exactly what you display
but something like
[display-posts post_type=”topic” posts_per_page=”15″]
would give a simple list of 15 clickable topic titles per page.
July 10, 2014 at 6:59 pm #148961In reply to: Troubleshooting a WordPress page titled 'forums'
Stephen Edgar
KeymasterOoops, missed the 2.3.2 π
I should have said in my previous reply, any conflicting permalinks ‘except’ a page titled
forums, indeed using a page titledforumswith a shortcode should work just fine.As you have changed the slug on that conflicting page now could you try creating a new page
forumsand adding whatever shortcode your using to it, what happens?Note: I’m splitting this topic to it’s own also as this is a different issue from the original topic.
July 10, 2014 at 6:16 pm #148958In reply to: Troubleshooting a WordPress page titled 'forums'
Paul
ParticipantHi Stephen, my upgrade was 2.3.2 to 2.5.4 not 2.5.3 to 2.5.3.
You were correct, thank you. The problem was caused by a permalink conflict. The page I am using the shortcode had the slug
forums. Changing the slug to something else so it was not the same as the slug used by Forum Root (or visa versa) resolved the issue.The question remains though, why is this a problem with this version of bbpress over the older version I was using?
July 10, 2014 at 7:27 am #148925In reply to: phpBB Import Error(s)
Tom Dyer
Participant@netweb – I’m happy to give it a try, but the problem(s) I think I’ll face are:
1) The ID’s for the Forums, Topics and Replies are all different now that I’ve imported them into bbPress. This is because we’ve had to migrate a whole site over too which meant that around 5000 ID’s were already taken by other posts.
2) The migrated data for bbPress has 68 Forums, 71,006 Topics, and 564,453 Replies so it’s going to be a big job to set up redirects for these individually.
What I was thinking of doing, was grabbing the migration helper data, and writing a PHP script that would look up these old forum and topic ID’s and redirect to the correct place without me having to input any manual redirects.
You mention that if there is no ‘wp_bbp_converter_translator’ table, then it uses the built in WordPress tables – do you know which ones I should be looking in? I’d presume it to be wp_postmeta or something for these particular bits?
July 10, 2014 at 2:55 am #148914In reply to: Troubleshooting a WordPress page titled 'forums'
Stephen Edgar
Keymaster@pplumridge I can’t see how any of the differences in code from 2.5.3 to 2.5.4 could have broken this.
Any chance it’s a permalink conflict? Do you have any posts, pages, maybe even forums or topics using
forumsas the slug? (Also check the ‘trash’ folders to make sure the post/page isn’t there)July 9, 2014 at 4:54 pm #148900Topic: Need help changing text color in posts
in forum Troubleshootingiblifefordummies
ParticipantCurrently, the font color is nearly the same as the background, making it extremely hard to see. I don’t know CSS well enough to be able to change it myself, so I could and would appreciate some help!
Wordpress version: Latest
BBPress version: 2.5.4
Link to where it shows the problem:http://www.iblifefordummies.com/forum/ib-life-for-dummies/news-and-announcements/
and
http://www.iblifefordummies.com/topic/welcome-to-the-iblfd-forums/
July 9, 2014 at 6:59 am #148892Jerry
ParticipantHi Robin. I made another improvement and added some comments. I noticed that, no matter where I inserted the shortcode, the topics displayed at the top of the content. After some searching I learned why – functions need to return a string. So I found an easy wordpress solution. I also simplified the shortcode, and removed the add_action line at the bottom as it was not doing anything. Here is the updated code:
add_shortcode( 'recent-bbpress-topics', 'recent_bbpress_topics' ); // Add Recent Topics to BBPress from separate site within WP Multisite function recent_bbpress_topics($attr) { //Switch to the blog where the bbpress topics are located switch_to_blog($attr['id']); //this, along with $response variable below, allows for display within content - without these, shortcode will display topics at top of content ob_start(); if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 9 ) ) ) { ?> <?php bbp_get_template_part( 'bbpress/loop', 'topics' ); //restore the current blog to maintain formatting restore_current_blog(); } //this, along with ob_start(); above, allows for display within content, instead of at the top of the content/page $response = ob_get_contents(); ob_end_clean(); return $response; } -
AuthorSearch Results
