Search Results for 'code'
-
AuthorSearch Results
-
February 17, 2016 at 4:15 pm #171865
In reply to: Excluding Forums from Recent Topics Widget
Pascal Casier
ModeratorHi,
Is this want you are looking for : http://www.rewweb.co.uk/bbpress-additional-shortcodes/ from @robin-w
It’s INcluding, not EXcluding …
Pascal.
February 17, 2016 at 3:42 pm #171861In reply to: Where to register?
Pascal Casier
ModeratorHi,
Can this help ? https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#6-automatic-vs-manual-registration
Pascal.February 17, 2016 at 4:47 am #171835In reply to: Change Breadcrumb url link
Adri Oosterwijk
ParticipantHi all,
I think I got it worked out together with Otto and Tia over at WPML.
You can have a look at it at those two topics:https://wpml.org/forums/topic/multiple-site-languages-but-just-a-bbpress-forum-in-english/
https://wpml.org/forums/topic/bbpress-breadcrumbs-how-to-localize-and-point-to-the-right-page/BTW I hide the language switcher(s) on the topics pages by adding this piece of code in my header file
<?php if (!is_bbpress()) { do_action('icl_language_selector'); } ?>and this in my footer.php
<?php if (!is_bbpress()) {
do_action(‘wpml_footer_language_selector’);
} ?>I hope it helps you as well.
Regards,
Adri
February 17, 2016 at 4:10 am #171834In reply to: Change type root forums page
Pascal Casier
ModeratorHi,
I suppose you mean that you want to change the default page that you get when going on /forums ?
If so, just create a page in WordPress and change the slug to ‘forums’, then put anything you want in that page.The standard page shown when going on /forums is content-archive-forum.php.
You can customize all templates if you want, just read some pages of the bbPress Codex: https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
Pascal.
February 17, 2016 at 2:01 am #171825In reply to: add a "Featured Image" to a forum
pazzaglia
ParticipantHow can I vary this code to include a default image for topics? I post new forum topics to facebook and at the moment they’re showing a TERRIBLE giant picture – when there are no profile pics or attachments to display. I don’t even know where it’s being pulled from.
http://www.hippressurecooking.com/forum/
Thanks!
LFebruary 16, 2016 at 5:35 pm #171812In reply to: bbPress Sidebar – DIsappears on topic/post pages
Robin W
ModeratorThe problem is that wordpress was designed to work with templates that were different for each type eg template for page with sidebar, another template for page without sidebar.
The trouble is that theme authors are getting too clever ,and nowadays write a single big page template that bbpress cannot easily react with.
So your theme displays one template for the main page, but then bbpress can’t work with it for the other sub pages, as it doesn’t know how the theme is using the template.
Ok, so that’s the explanation, but probably doesn’t help you at all.
If you know some wp stuff then this might help
February 16, 2016 at 4:34 pm #171811Topic: bbPress Sidebar – DIsappears on topic/post pages
in forum Troubleshootingstewmills
ParticipantSorry if this is a duplicate…seemed to get an odd behavior when attempting to submit previously.
Facts:
– WordPress 4.2.2
– bbPress 2.5.8
– Theme – Karma 3.0.3I have created the following forum on my site (currently hidden from the top menu but accessible via links provided): http://www.cytoviva.com/forum/
In the above link I get the forum login and other options in the right sidebar as I prefer.
However, when you get one layer deeper into the forums, topics, posts, etc. the sidebar is not visible as seen here: http://www.cytoviva.com/forums/forum/registration-instructions-and-forum-guidelines/
I want the sidebar to be visible on all pages/posts/etc. so someone reading a post can login from that page or request new access from that page and as well logged in users will always have the sidebar details and option to logout from any page within the forum.
Initially the sidebar was not visible at all and I finally realized that my forum page (using the shortcode [bbp-forum-index] on my “forum” page to display the forum) was using the right template and when I changed it to ‘Right Sidebar’ and selected the option at the bottom to display my newly created sidebar (User Forum Login Sidebar) I started seeing what I wanted to see on the main forums page.
However, when I go to my individual forums in the WP control panel and make sure they are also set under the ‘Right Sidebar’ page template and as well have the option checked to display my sidebar, it seems to do nothing.
I have read a host of other posts here today and it seems that the answers to getting the sidebar to display as I want vary per person/situation hence my additional post. I don’t want to have to create a new .css file as currently I don’t have access to our host and FTP to create new files so I was hoping to find a solution that is simple as me not having a button checked somewhere or something trivial.
I am somewhat new to WP and bbPress so the more fundamental the advice the better. My goal is to try and solve this with a little troubleshooting versus new child .php pages, etc.
Thanks in advance!
February 16, 2016 at 3:45 pm #171808In reply to: Styling search bar & forum title
Pascal Casier
ModeratorTo remove the ‘Forums’ title, you could do some CSS:
.forum-archive h1 { display: none; }Pascal.
February 16, 2016 at 3:15 pm #171806In reply to: Confirmation of comments and topics
Pascal Casier
ModeratorHi,
Forum moderation is being reviewed and improved a lot for future versions of bbPress. For now there is standard moderation and blacklisting as described here: https://codex.bbpress.org/moderation-and-blacklisting/
The above mentioned plugin is the only one that I found when I looked at it in the last months. Please note that it has a small bug with saving topic subscriptions from user before their post is approved, so the user might have to re-subscribe from the checkbox during the reply.
Pascal.
February 16, 2016 at 9:40 am #171791In reply to: Cant see Forum Settings
Pascal Casier
ModeratorAs Robin indicated, this is somewhere a conflict with a plugin or a theme.
But I see your forums: http://www.finalfantasyrpg.com.br/forums/
So I suppose that you found/wp-admin/edit.php?post_type=forum?Pascal.
February 16, 2016 at 9:27 am #171790In reply to: Oh bother! feedback-no-replies
Pascal Casier
ModeratorOkay, maybe this then:
CSS:
.bbp-search-form { display:none !important; }Also check the option called ‘Search’ in your dashboard: ‘Settings > Forums > Forum Features’
Pascal.
February 16, 2016 at 8:16 am #171780In reply to: Oh bother! feedback-no-replies
Pascal Casier
ModeratorHi,
Never edit bbpress templates directly in the bbpress folder, otherwise you will loose your changes when bbPress updates.
There are several ways that I know of, but the most easy one would probably be by installing my ‘bbP Toolkit’ plugin.Or you play with CSS yourself:
.bbp-template-notice { display: none; } .bbp-template-notice.info, .bbp-template-notice.error, .bbp-template-notice.important, .bbp-template-notice.warning { display: block; }Not that also other similar messages will disappear with the above.
And if you want to modify bbPress files, please check the codex (https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/) and/or create a child theme
Pascal.February 16, 2016 at 4:19 am #171766Jeff McNeill
ParticipantHahaha tags “sleeping pill store” tag should be a signal that someone is asleep at the tiller. Really folks, this place is asleep, and all Robin W. does is state that it is free software and you should be durned grateful, and not try and wake anybody up.
Development is tediously slow, regardless of some $50k that was raised a few years ago. 2.6 should supposedly fix the issue with not being able to replace posts with forum discussions. Surely that is also why the plugin that actual does that hasn’t been updated in two years. And 2.6 was 4 months late in May 2014. So when will it ever be released?
This is simply too long! Obviously this project is coasting on the coattails of integration (and requirement of use) in BuddyPress and that it is an anointed project of WordPress.org. Anything less would have near zero users already.
So much functionality is needed to be reasonable. There appears to be a single active developer committing to the code: https://www.openhub.net/p/bbpress/commits/summary
But really, this was a complaint over a year and a half ago, and it ain’t changed. Very sad as the potential is quite big. How else do you explain 16,000+ downloads of that plugin that has been abandoned: https://wordpress.org/plugins/bbpress-post-topics/
February 15, 2016 at 10:12 pm #171760tech55541
ParticipantHello,
Would it be possible to take the code that adds this functionality in with BuddyPress, create a separate plugin, and then make it work for BBPress? I can’t believe a forum software does not have this built in.Thanks 🙂
February 15, 2016 at 3:47 pm #171748In reply to: PHP in Topics
rbarron
Participant<?php bbp_user_profile_url(bbp_get_current_user_id());?>">Complete your profile</a> and upload a profile photo.February 15, 2016 at 3:39 pm #171747Topic: PHP in Topics
in forum Troubleshootingrbarron
ParticipantHow do I create a link in a topic to allow users to edit their profile? Something like:
<?php bbp_user_profile_url(bbp_get_current_user_id());?>“>Complete your profile and upload a profile photo.
>
Thank you.
February 15, 2016 at 12:18 pm #171739In reply to: Custom Query to display sticky posts only
_az_
ParticipantThere is a function: bbp_get_super_stickies() which is used inside the function bbp_has_topics(). This function basically returns a list of Post IDs from the wp_options table from a row with the key: “_bbp_super_sticky_topics” or “_bbp_sticky_topics”
So one approach could be: override default args
bbp_has_topics(array('show_stickies' => false);Extra loop for stickys (not tested, just a sketch)
$query = new WP_Query(array('inlucde' => bbp_get_super_stickies());Though i recommend looking into the function bbp_has_topics to be aware of all possible cases.
February 15, 2016 at 9:33 am #171728In reply to: Meta Title for Profile Pages w/ Yoast SEO
Erik Molenaar
ParticipantHallo Manuel,
Just to let you know, I ended up with removing the functionality of a public profile page for my bbpress users by:
1. Removing the author links (so Google won’t find them anymore):
/*-----------------------------------------------------------------------------------*/ /* Remove all author links from bbpress pages /*-----------------------------------------------------------------------------------*/ add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2); add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2); add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2); function remove_author_links($author_link, $args) { $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link); return $author_link; }2. Placing a noindex meta tag in my bbpress user templates (so the already indexed profile links will disappear from Google):
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW" />Thanks again for your prompt replies and I hope this is of use to you 🙂
February 15, 2016 at 8:14 am #171726In reply to: Cleaning Up Forum Sub-Forum
Pascal Casier
ModeratorOn your dashboard, go to ‘Tools > bbP Toolkit’
Under the ‘bbPress Information’ button you can tick
Do not show the counters next to the subforums on the forum index page (v1.0.5)
And then put the
Change the separator between the subforums on the forum index page to:
to ‘newline’Pascal.
February 15, 2016 at 8:07 am #171725In reply to: Topic answer – proble with font alingment
Pascal Casier
ModeratorKalimera,
Strange, mostly width 100% is needed, but it’s because of the width 100% that you have this issue 🙂
Try to add the following CSS:
#bbpress-forums div.reply { width: auto; }Pascal.
February 15, 2016 at 2:51 am #171712In reply to: Converter for Dizkus Forums
DL
ParticipantThanks! I appreciate your help, I’m desperate to update these sites on old versions of Zikula. I can’t even update the PHP on the server past 5.3 because because Zikula 1.2x won’t work on anything later.
The issues you noted.
Categories
aren’t used much, so yes, they can be ignored, it doesn’t seem like it’s difficult to assign forums to categories in bbPress if needed.Subscriptions
The table prefix is causing me confusion as I switch between databases. Some of my forums have databases using nuke_ for prefix and some have zk_ , this is an artifact from many years of using Postnuke/Zikula and based on when the original database was created.in the dizkus schema the (prefix)_dizkus_subscription table contains which forums a user is subscribed to.
The (prefix)_dizkus_topic_subscription table contains which topics a user is subscribed to.
Topic Author IP
This isn’t necessary to move to bbPress as far as I’m concerned. Only used when I’m investigating a possible spam post. Someone else might need to have it though, so put it on the “nice to have” list.Topic Content
None of the conversion attempts have been successful enough to see yet. So far have always errored out because of failed sql statements.I attempted to do a join because the title of a new topic is stored in (prefix)_dizkus_topics along with the topic post time, views, num. replies, last post ID, forum ID, and sticky status (0 or 1). But the content of the first post in a topic is stored in the (prefix)_dizkus_posts table.
There is no “first post in topic” post ID in either table, as it looks like phpBB had so I tried to adapt this.
// Topic content. // Note: We join the 'posts' table because 'topics' does not include topic content. $this->field_map[] = array( 'from_tablename' => 'posts', 'from_fieldname' => 'post_text', 'join_tablename' => 'topics', 'join_type' => 'INNER', 'join_expression' => 'USING (topic_id) WHERE posts.post_id = topics.topic_first_post_id', 'to_type' => 'topic', 'to_fieldname' => 'post_content', 'callback_method' => 'callback_html' );Topic Favorites
Dizkus doesn’t have topic favorites, only forum.Passwords
Since Dizkus doesn’t store passwords, they would have to taken from (prefix)_users table, but thinking about it I’m not sure that this script needs to deal with passwords at all. I will still need to migrate ALL the users from the Zikula installs, not just the ones that have posted in the forums. I’m planning on using WP All Import Pro for that job and migrating other data like converting news items to news and bringing over static pages.Worst case, if the passwords get screwed up everyone would have to use the “lost password” system to set a new one.
Just tried the version of dizkusZK in Github after merging your changes and got this error.
Repair any missing information: Continue WordPress database error: [Unknown column 'zk_users.pn_uname' in 'field list'] SELECT convert(zk_dizkus_users.user_id USING "utf8mb4") AS user_id,convert(zk_users.pn_uname USING "utf8mb4") AS pn_uname,convert(zk_users.pn_email USING "utf8mb4") AS pn_email,convert(zk_users.pn_url USING "utf8mb4") AS pn_url,convert(zk_users.pn_user_regdate USING "utf8mb4") AS pn_user_regdate,convert(zk_users.pn_user_avatar USING "utf8mb4") AS pn_user_avatar FROM zk_dizkus_users AS zk_dizkus_users LIMIT 0, 100 No users to convertNo data to cleanStarting ConversionFebruary 14, 2016 at 11:27 pm #171706In reply to: Converter for Dizkus Forums
Stephen Edgar
KeymasterFirstly, awesome job at what you’ve done so far 🙂
I just sent through a pull request with some basic/minor changes
These are the things I noticed when comparing the DB schema to the importer:
Categories:
• This will be tricky as they are in a different tablenuke_dizkus_categories, can you manually create these and add the forums to them later after import etc?Forum subscriptions:
• Your schema suggestsnuke_dizkus_subscriptionrather than thiszk_dizkus_forum_subscriptionTopic Author IP:
• With some juggling of the phpBB query this should be possible I thinkTopic content:
• This doesn’t quite look right, have you had issues with multiple same topics imported when you run the import at the moment?Topic favorites:
• It looks like there are no topic favorites, though I do see forum favorites innuke_dizkus_forum_favorites, unless the value stored inuser_favoritesstored in thenuke_dizkus_userstable is for user favorites maybePasswords:
• Passwords are hard 🙁Password verify class:
• If password importing works this field should match the importer class namedizkusZKFebruary 14, 2016 at 9:57 pm #171701In reply to: Converter for Dizkus Forums
Stephen Edgar
KeymasterI did spend several hours trying to modify the phpBB converter to work with the Dizkus database tables before coming here. Was able to get it partly working but was losing meta data like poster name, post time, and it seemed the posts (replies) weren’t always assigned to the right topic.
If you still have the code for what you did here could you also upload that please, will save me some time and help me out quite a bit if you could 🙂
February 14, 2016 at 9:47 pm #171700In reply to: Converter for Dizkus Forums
DL
ParticipantThe sites I have using Dizkus are on Zikula 1.2.10 and using Dizkus 3.1.
The Github you linked is a newer version that was supposed to get ready for the new Bootstrap version of Zikula, schema would be completely different. I doubt if anyone is actually using that version because Zikula 1.2.10 and Dizkus 3.1 were the last backward compatible and widely used versions.
Because of the break in development I don’t think the code for those versions are online anywhere.
I’ve uploaded a structure dump from the biggest site to.
http://linkpro.net/files/zikula-1210-nuke-prefix.sqlThanks for any help or tips you can provide. If a full dump of the database would help I can package one up but would need a more secure way to share it with you.
February 14, 2016 at 8:17 pm #171698In reply to: Converter for Dizkus Forums
Stephen Edgar
KeymasterIs the latest version of Dizkus v1.3?
Does this look like the source code? https://github.com/paustian/Dizkus
The partial work that you did could you post the source code to GitHub please and I’ll take a look https://gist.github.com/
-
AuthorSearch Results