Search Results for 'code'
-
AuthorSearch Results
-
June 26, 2015 at 1:33 pm #163495
In reply to: bbpress comments toolbar for blog comments?
Robkk
ModeratorIt is just the quicktags api from WordPress. You see the same button when entering the html mode when creating a blog post.
See if this post helps, it says tinymce but there is also quicktags code in there.
Add TinyMCE and Quicktags visual editors to WordPress comments form
you can also use the basic comment quicktags plugin
June 26, 2015 at 12:28 pm #163480In reply to: ‘Blocked’ on blank page on login
Robkk
ModeratorThis could be from some security/spam plugin.
Go through these troubleshooting steps
June 26, 2015 at 10:44 am #163475In reply to: Change the default Forums page
Robkk
ModeratorYou also modify the main template that bbPress uses but this would also require FTP data.
You should contact your host to find the FTP data you have.
June 26, 2015 at 10:34 am #163474In reply to: Plugin v. built-in
Robkk
ModeratorRead this , This is a frequently asked question so I added it on to here.
June 26, 2015 at 10:32 am #163473In reply to: Visible indicator of new posts
Robkk
Moderatorsearch for unread/read posts plugins for bbPress.
They are listed in here too.
June 26, 2015 at 10:24 am #163470In reply to: Can’t access Forum Page
Robkk
Moderatorthis might be coming from some other plugin you are using.
Try the plugin troubleshooting steps here
you can also try theme too if you have some really advanced theme or something.
June 26, 2015 at 10:15 am #163468In reply to: Style bbpress content pages, remove padding
Robkk
ModeratorIs this what you are looking for??
#bbpress-forums .entry { margin-bottom: 40px; padding: 50px 0px; }June 26, 2015 at 10:08 am #163466Robkk
Moderatori have to create a new widget for own customization work and where i have to place that file
If you know what you are doing , you can place it in a child themes functions.php , or just place it in a new file like says widgets.php to better organize your content then include the file using something like this in your functions.php
require get_template_directory() . '/inc/widgets.php';You can also place the code in a custom plugin too.
You shouldnt place any customizations in the bbPress plugins folder, because you will lose the changes next update.
And You dont need to place the customized widget funcitons in the bbpress folder in your child theme either.
June 25, 2015 at 7:38 pm #163455In reply to: Not able to add a Topic in front end…
lilmisskatie
ParticipantI’m discovering it is a theme issue…I have squarecode and have contacted them to see if it is a known issue. However what do can I do if they can not resolve this issue? It seems like it would be a simple fix being it’s only the topic text field that does not work. I’ve also tried to do the tool repair forums and also changed the permalinks and did nothing. I really like this forum but feel I may have to go else where…
June 25, 2015 at 4:18 pm #163450In reply to: Menu link to Profile
crzyhrse
ParticipantThanks Robin,
It is a very. very nice plugin that you have created… But it won’t do for my needs in these regards… It puts the Edit Profile link into the main menu as a primary menu item, with no ability to change where it is or do anything else with it… It is there in the primary main site menu or nothing…
If your plugin put the Edit Profile link into the Menu section of Admin, with the same ability to use it however, in the same way that pages, posts, forums, CPTs and all the rest are there to be used as needed or not, then it would be very helpful, even perfect for my needs… Where the link goes TO is perfect…
I don’t need the rest of what your plugin does, as I have done some very extensive modifications of bbPress via my child theme over the last couple years…
But anyone starting out or in early stages with bbPress should find your plugin very helpful indeed…
So, still wondering what you think about getting some code similar to what this thread is discussing to work via one of the PHP plugins I mention above…? I want to be able to just have a discrete but clear little (page/post) link that I can place in a specific place in a specific sidebar, like I have done with other links, that lets logged in folks who are using the forums directly link to their particular Forums profile page and make changes… Basically accomplish the same thing that I can accomplish for the main WP profile page with this link: http://www.yourwebsite.com/wp-admin/profile.php… If someone not logged in clicks this link they are taken to a WP login page…
Thanks for all the hard work you are doing for a while now to make bbPress better and better and better…
Kind regards…
June 25, 2015 at 11:13 am #163438In reply to: Menu link to Profile
crzyhrse
ParticipantHi Robin,
This thread is a bit old, but hoping it is still a place to pursue this..
The WP Exec PHP plugin that was suggested above to enable this has not been updated in over two years, but in trying to use two different current well reviewed plugins that enable placing php in pages via shortcodes, Shortcode Exec PHP and PHP Code For Posts, I get the following same error with your last offered php snippet above…
Parse error: syntax error, unexpected ‘<‘ in /home/spirawake/public_html/wp-content/plugins/shortcode-exec-php/shortcode-exec-php-class.php(895) : eval()’d code on line 1
In both cases I created the shortcode using this, as per above;
<meta http-equiv="refresh" content="0;URL=http://mysite.com/forums/users/<?php global $current_user; get_currentuserinfo(); echo sanitize_file_name($current_user->user_login). ""; ?>/edit/">I’ve often used shortcodes in other ways, and am hoping that maybe there is something that needs to be changed in this code because it is being inserted into the page via a shortcode…?
Kind regards…
June 24, 2015 at 6:13 pm #163411In reply to: Remove avatar and navigation from user pages
project_subdomain
Participantgot it to work with some messy beginners’ change of content-single-user.php right after
<div id="bbp-user-wrapper">with:<?php if ( bbp_is_single_user_profile() ) bbp_get_template_part( 'user', 'details'); ?> <?php if ( bbp_is_single_user_profile() ) bbp_get_template_part('user', 'profile'); ?> <?php bbp_get_template_part( 'user'); ?> <div id="bbp-user-body"> <?php if ( bbp_is_favorites() ) bbp_get_template_part( 'user', 'favorites' ); ?> <?php if ( bbp_is_subscriptions() ) bbp_get_template_part( 'user', 'subscriptions' ); ?> <?php if ( bbp_is_single_user_topics() ) bbp_get_template_part( 'user', 'topics-created' ); ?> <?php if ( bbp_is_single_user_replies() ) bbp_get_template_part( 'user', 'replies-created' ); ?> <?php if ( bbp_is_single_user_edit() ) bbp_get_template_part( 'form', 'user-edit' ); ?> </div> </div> </div>may need new css-styling.
Could anyone tell me, how to improve the coding part to avoid the repetition of
<?php if ( bbp_is_single_user_profile() ) bbp_get_template_part('user', '?June 24, 2015 at 2:22 pm #163407In reply to: Plugin v. built-in
mycon
ParticipantThanks @Robkk
I have a couple more regarding registration and login. In both instances, how can I control the page the user goes to after successful login?
I am using WordPress 4.2.2 running Jupiter theme and using bbpress login shortcode on a page.
(currently it stays on same login page with a successful login message)Any assistance is greatly appreciated.
Thanks
June 24, 2015 at 2:19 pm #163406In reply to: Change the default Forums page
Robkk
ModeratorTwenty Fifteen had something similar to that issue.
The resolution to the issue in Twenty Fifteen was to follow to copy all the bbPress templates from the plugin to your child theme in a folder called bbpress.
June 24, 2015 at 11:52 am #163401In reply to: How to: registration and login
mycon
ParticipantI have these exact questions, so thank you Robin!
I have a couple more regarding registration and login. In both instances, how can I control the page the user goes to after successful login?
I am using WordPress 4.2.2 running Jupiter theme and using bbpress login shortcode on a page.
(currently it stays on same login page with a successful login message)Any assistance is greatly appreciated.
Thanks
June 24, 2015 at 1:56 am #163389Topic: remove bbpress notifications, buddypress
in forum Troubleshootingdaniel84uk
ParticipantUsing latest version of all plugins.
So i am wanted to disable all forum notifications, as i get endless new reply notifications.
I have removed all code from the file
/bbpress/includes/extend/buddypress/notifications.php
leaving only <?php
Which after testing seems to do what i want.
I realise this isnt the correct method, can anyone point advise me on the proper way to do this, do i use a series of remove_actions ?
Thank you 🙂
June 23, 2015 at 8:34 pm #163382In reply to: Topics isn’t ordering by freshness
Robkk
Moderatortry these troubleshooting steps.
June 23, 2015 at 8:27 pm #163379In reply to: Forum does not send registration mail
Robkk
ModeratorI see you are using something different from the default bbPress registration shortcode.
Did your own issue??
June 23, 2015 at 8:25 pm #163378In reply to: Edit Page is showing no interaction
Robkk
ModeratorIn some themes this may be just tossing the bbPress templates in a folder called bbpress in a child theme to fix this.
https://codex.bbpress.org/theme-compatibility/
You might also have to modify the main bbPress template .
June 23, 2015 at 7:57 pm #163372In reply to: BBpress Index Does Not Show All Forums
Robkk
ModeratorThis is a common issue
Your theme may think that the bbPress forum pages are a blog post and displays it in excerpt form.
This guide usually helps users fix this.
Need any help with this reply back.
If you can think of any improvement for the guide, then tell me some suggestions on how to improve it.
June 23, 2015 at 7:00 pm #163370In reply to: Plugin v. built-in
Robkk
ModeratorIf you want to develop it manually you can use any of these conditional tags for bbPress and WordPress.
https://codex.wordpress.org/Conditional_Tagsor you can use a plugin like
- Restrict Widgets
- Widget Logic
June 23, 2015 at 6:51 pm #163369In reply to: Forum Page not displaying properly
Robkk
ModeratorWell there might be other ways , but it would be more complicated.
The guide just says
Find the file bbPress is using (use What the File)
Copy and rename the file to bbpress.php (use FTP)
Edit the file to your liking. (use a code editor like notepad++)The edit the file part may seem complicated but it is really quite easy , and I would help you out on this part.
If you want find the file bbPress is using and copy the content in the file to a gist.
After that I will post a link to a gist to help you out.
June 23, 2015 at 6:46 pm #163368In reply to: Something Wrong
Robkk
ModeratorThat guide was for earlier version of bbPress ,it might be archived later for a new guide to take its place.
The following is written for version 2.2 of the bbPress WordPress plugin. Information in this tutorial may not be applicable to earlier or subsequent versions of the plugin.
See if the creating a theme section would help you.
Right now there is really just some placeholder links and text that I just wrote up real quick , so this guide might be improved in some later days.
It should help you create a child theme, understand what is usually in a theme. and how to customize it to your needs.
June 23, 2015 at 12:42 pm #163360In reply to: View Posts if NOT Logged In
Robkk
ModeratorIt should do this by default , if you haven’t already try these troubleshooting steps especially the plugin issue steps.
If nothing works contact your theme author
June 23, 2015 at 11:43 am #163353In reply to: bbPress Moderation -> deactivate topic subscriptions
BBIndikator
ParticipantIt’s really strange. After the post is submitted (and as long as status is pending), the topic is included in the users subscriptions: (var_dump on wp_footer)
bbp_get_user_subscribed_topic_ids( $reply_author_id );bbPress Moderation uses the hook “pending_to_publish” to send an Info to all subscribed users that this new reply is published:
function pending_to_publish( $post ) { ... bbp_notify_topic_subscribers( $reply_id, $topic_id, $forum_id ); }If I add this:
bbp_get_user_subscribed_topic_ids( $reply_author_id );into this function before or below “bbp_notify_topic_subscribers” and write a var_dump to a separate file, the topic-id is still inside the topic-id-array during the publish process ( {old}_to_{new} ).
But if I var_dump this array directly afterwards (frontpage: page reload –> wp_footer ), the id isn’t still in there (email fails if I post with another user).
It seems that anything erase this specific topic-id for this specific reply-author between publish and the next page load. All other topic-ids are still in this array..?
To add it manually to the hook ‘publish_reply’ with this bbp-function doesn’t work:
bbp_add_user_topic_subscription( $reply_author_id, $topic_id );Has anybody an idea why this can happen?
As long as the reply isn’t publish, everything works right with the subscription. It’s also possible to manually add this user to this specific topic after the reply is published. But if this user send a new post for this topic, the topic-id is erased inside the subscription array after publishing..
No caching is active…
-
AuthorSearch Results