Search Results for 'code'
-
AuthorSearch Results
-
January 12, 2015 at 5:40 pm #156824
In reply to: How do I remove the yellow notices?
Robkk
Moderatorthe bbcodes one i think you can deactivate the message in gd bbpress tools settings.
go to the bbcodes section find BBCodes New Topic/Reply Notice and deactivate that.
the unrestricted HTML content message shows up for only keymasters so its not really worth messing with since you are the only one seeing it.
January 12, 2015 at 3:57 pm #156814Topic: How do I remove the yellow notices?
in forum TroubleshootingNekurahn
ParticipantThese are two notices I get when I’m logged in and about to post on the forums.
Is there any way to remove them?
“You can use BBCodes to format your content.”
“Your account has the ability to post unrestricted HTML content.”
Thank you for your time!
January 12, 2015 at 1:20 pm #156799Robin W
Moderatorok, lets break this down
A)
I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page
and
However all the pages which I embedded the private forums via shortcode are still working
Can you explain further where you can and cannot see forums?
1. Are they visible from the backend
Dashboard>forums>all Forums and then ‘view’ a forum
2. On the ‘the pages which I embedded the private forums via shortcode are still working ‘ – so you can view here – yes?
3. when is the 404 page occurring – is it just the forum root page, and if so are these being listed but going to 404 when you click.
B) I presume you are logged on, at what level and can you try different levels eg participant, moderator and keymaster and tell us if this is different or the same.
c) You don’ tell us what trouble you were having with the theme, so it would be good to eliminate this and plugins so
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
January 12, 2015 at 10:43 am #156797In reply to: Group Forum Permalink Wrong
Sparkey
ParticipantThank you Robkk for the help. I deactivated all the plugins a couple weeks ago and checked that, no help at all.
I had forgotten about the theme thing, I did as you suggested this morning and changed to 2012, no help, I clicked on the hardcoded sidebar link and it redirected it to a bad ugly link. Which it wouldn’t do if I uncheck the “group forums” check box at bbpress settings.
Bummed
January 12, 2015 at 6:55 am #156794stevebradley1
ParticipantHi there,
I was having trouble with a theme so I deactivated and reactivated bb press, since then all my “private” forums take me to a 404 page and when I view the forum root page, it doesn’t show the private forums listed.
However all the pages which I embedded the private forums via shortcode are still working and all the posts are there?
Eeek! Please help!
January 12, 2015 at 5:03 am #156793Topic: Cannot create topic (No data received)
in forum Troubleshootingpydun
ParticipantHi everyone,
I installed bbpress on my company’s website, and when i tried to create new topic like what i am doing here, the brower will return “no data received” error, and if i click more information, i found the error code “ERR_EMPTY_RESPONSE”.
I’ve tried to deactivate most of the plugin except bbpress, and the problem remains.
And if I type something short, like “test”, it can be created.
Does this has to do with the usage of server space? Because I used about 80% of it.
Thank you in advance for your help. Please let me know if you need more information
January 11, 2015 at 10:05 pm #156787Topic: Custom Sidebar Problem
in forum Troubleshootingshootingtime
ParticipantWhile redesigning my website, I can not get the custom sidebar to work in the bbPress forum.
Plugins I have installed:
-Custom Sidebars
-bbPress WP Tweaks
Theme: Smart Mag
Forum URL: http://shootingtime.com/test2/archery-bowhunting-forum/This is how I got to where I’m at:
Attempt #1
1. I assigned bbPress to use the forum root slug /archery-bowhunting-forum/
2. I created a page with the url slug /archery-bowhunting-forum/
3. With the ‘Custom Sidebars’ plugin, I created a sidebar called ‘forums sidebar’.
4. I checked the box entitled ‘Allow this sidebar to be replaced’ on the sidebar named “main sidebar”
5. I went to the forum page (with the url slug /archery-bowhunting-forum/) and selected the ‘forums sidebar’ from the custom sidebar options
This did not work. I tried it with another individual page and it did work so I assume it’s a bbPress specific problem.
Attempt #2
1. I installed bbPress WP Tweaks
2. bbPress WP Tweaks gave me a widget called “bbPress sidebar” so I customized it.
It didn’t work.
I went to the forum page and selected “bbPress sidebar” in the option field. This didn’t work either.
There is one way I did get the forum index page and the custom sidebar to show up at the same time. It happened when the url slug was different the the bbPress forum slug and I used the bbPress shortcode for the forum to show up. When I clicked on a subforum, the custom sidebar disappeared though.
Please someone HELP!!!!!!!
Thanks
January 11, 2015 at 9:09 pm #156785In reply to: Topics remain hidden from members
renzoster
ParticipantHi!
I found some solution for this problem. Only you need to put this code on functions.php of your active theme:
function custom_bbp_show_lead_topic( $show_lead ) { if(!current_user_can('manage_options')){ $show_lead[] = 'true'; } return $show_lead; } add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );January 11, 2015 at 10:21 am #156772In reply to: Multiple forum titles
Robin W
ModeratorI’ve just added a shortcode to one of my plugins that lets you custom list forums
[display-forum-index forum= ‘2932, 2921′ breadcrumb=’no’ search=’no’] Displays the selected forum indexes – see the site for details
January 11, 2015 at 9:57 am #156767In reply to: Remove Forum text and search bar
Robkk
Moderatoryou can disable the search form in settings>forums in the backend dashboard of WordPress so that you wont have to use the CSS anymore.
and unless you already did you could remove the code that renders the title in your bbpress.php file.
if you haven’t created a bbpress.php you should
if you still need help copy the first half of the bbpress.php file you have in a reply here.
January 11, 2015 at 9:48 am #156766In reply to: bbp_setup_current_user was called incorrectly.
Robin W
ModeratorAs you no doubt already know, this is just a warning message, and bbpress say it is an issue with wordpress, and are waiting for wordpress to fix. Also as you know (but for others reading this), turning off debug fixes this.
If you want it to disappear whilst you are developing (and so need debug on), then go to
wp-content/plugins/bbpress/includes/core/sub-actions.php
and comment out/change line 147
_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );to
//_doing_it_wrong( __FUNCTION__, __( 'The current user is being initialized without using $wp->init().', 'bbpress' ), '2.3' );and change back after developing as well as turning debug off for the production environment
January 11, 2015 at 9:25 am #156762In reply to: bbPress 2.0 shortcode whitelist and bbcode plugins
Robkk
Moderatoruse this plugin instead and see if it works
January 10, 2015 at 3:03 pm #156743In reply to: Add Text Above Forum on Main Page
Robin W
Moderator@cbsy lots of ways to achieve this – two below
1. Look in
Dashboard>settings>forums>Forum Root slug, and see what ‘forum root’ is set to
The create a page with this name on it – so title the page this
The in that page write whatever intro you want, and then put
[bbp-forum-index] at the bottom of the content
bbpress will then use this page as your forum root.
2.
Add the following to your functions file
add_action ('bbp_template_before_forums_index' , 'my_intro' ) ; Function my_intro () { Echo '<div class="entry-content"> Here is my intro text. This is lots of writing to introduce the forums and make people read this stuff </div>' ; }If you hit prolems or need further help, just come back !
January 10, 2015 at 2:34 pm #156740In reply to: Edit the bbPress login widget
Robin W
ModeratorTry the following
//adds login/logout to menu //filter to add login/logout to menu add_filter( 'wp_nav_menu_items', 'my_nav_menu_login_link' ); function my_nav_menu_login_link($menu) { //uncomment the next line if you only want login on bbpress pages //if(is_bbpress()) { if (is_user_logged_in()) { //set the $url on the next line to the page you want users to go back to when they logout $url = 'http://www.mysite.com/forums' ; $url2=wp_logout_url($url) ; $loginlink = '<li><a title="Logout" href="'.$url2.'">Logout</a></li>'; } else { $current_user = wp_get_current_user(); $user=$current_user->user_login ; //set $page on the next line = the permalink for your login page $page='login' ; $loginlink = '<li><a href="/'.$page.'/">Login</a></li>'; } //uncomment out the next lines if you only want login on bbpress pages // } // else { // $loginlink="" ; // } $menu = $menu . $loginlink; return $menu; }January 10, 2015 at 1:37 pm #156737dingzj
ParticipantI have bbpress properly set up, and it worked well, except when clicking the user’s profile page, there is no sidebar with logged-in widget.
Actually the sidebar was under user’s profile page. See this image.
https://c4.staticflickr.com/8/7549/16059375738_d3e7dc8e1c_z.jpgHow to fix this?
I checked the source code, looks like the user profile page don’t have a ‘.et_right_sidebar’ class for its ‘left-area’, seems I need to change its template page? How?I am still a beginner to understand template code. Any good resources to better understand WP codebase?
However, other forum page or topic page are fine with sidebar, like this.
https://c2.staticflickr.com/8/7498/16245113651_341d810976_z.jpgJanuary 9, 2015 at 7:40 pm #156725In reply to: Change Breadcrumb url link
se7en1216
ParticipantSo earlier, someone suggested doing the following:
// Add the breadcrumb // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>'; $crumbs[] = '<a href="/forum/">Forum</a>';Can I make a duplicate of the template.php to drop into my theme somewhere to make a similar change? This works, but I don’t like the idea of altering the main bbpress files.
January 9, 2015 at 4:59 pm #156572Robin W
Moderatoreasiest way would be to uncode my shortcode
or just use the do_shortcode function within your code
January 9, 2015 at 4:40 pm #156708In reply to: User registration on multisite
Nicolas Korobochkin
ParticipantI’m sorry for few days of silence. My love in the USA, and I’m in Russia without the visa.
@jeffacubed thank you for “спасибо”. I can publish the code. Also I can give you access to my private repo on Bitbucket.wp_signup_location – it’s the filter which returns the sign up page location (url) and WordPress redirect to this addres. So this address not using in wp-signup.php because you already on the signup page. Your example of grep result shows that this filter using in wp-login.php (this page have the signup link).
My code
All of this files a part of my mu-plugins for this project.Require necessary files — gist.github.com/korobochkin/06780b88118e35c3bfd1
wp-signup.php — gist.github.com/korobochkin/9e4f9cd6502c4252d902 I use selena_network_signup_main function from this file on page-signup.php template in child theme.
wp-activate.php — gist.github.com/korobochkin/765d0a5d4e028dc3001a I use selena_network_activation_page function from this file on page-activate.php template.
And finally gist.github.com/korobochkin/a161718855b7784bfb10 file which sends notifications after you create an account and disable default WordPress notifications (return false at the end of the function). If you return true at the end of this function then user get 2 emails with different activation links:
site.com/wp-activate.php?key=HASH
site.com/activate/?key=HASHP. S. can’t post this reply with links (bbPress doesn’t allow post replies with links).
January 9, 2015 at 4:39 pm #156707In reply to: User registration on multisite
Nicolas Korobochkin
ParticipantI’m sorry for few days of silence. My love in the USA, and I’m in Russia without the visa.
@jeffacubed thank you for “спасибо”. I can publish the code. Also I can give you access to my private repo on Bitbucket.wp_signup_location – it’s the filter which returns the sign up page location (url) and WordPress redirect to this addres. So this address not using in wp-signup.php because you already on the signup page. Your example of grep result shows that this filter using in wp-login.php (this page have the signup link).
Require necessary files https://gist.github.com/korobochkin/06780b88118e35c3bfd1
wp-signup.php — https://gist.github.com/korobochkin/9e4f9cd6502c4252d902 I use selena_network_signup_main function from this file on page-signup.php template in child theme.
wp-activate.php — https://gist.github.com/korobochkin/765d0a5d4e028dc3001a I use selena_network_activation_page function from this file on page-activate.php template.
And finally https://gist.github.com/korobochkin/a161718855b7784bfb10 file which sends notifications after you create an account and disable default WordPress notifications (return false at the end of the function). If you return true and the end of this function then user get 2 emails with different activation links:
site.com/wp-activate.php?key=HASH
site.com/activate/?key=HASHJanuary 9, 2015 at 3:43 pm #156705In reply to: Edit the bbPress login widget
supremor
ParticipantAll the code can be viewed there.
January 9, 2015 at 3:30 pm #156699In reply to: Change Breadcrumb url link
se7en1216
ParticipantThis page is currently written as just a simple WordPress page with several shortcodes as listed below:
General Discussions [bbp-single-forum id=3926] Guild Discussions [bbp-single-forum id=3924] Group Forums [bbp-single-forum id=10169]When changing the Settings to have /forums as the forum root page, it changes all of the above listed shortcodes visually to look like it was just duplicated over and over from the current /forums-root page. It loses all of the current forum IDs and they all turn into a general forum-index.
This is why I can’t just swap it in the Setting menu for the forums, and the reason I want the current Forum breadcrumb to direct to /forums and not /forums-root.
If you would like, take a look at the way it looks now, and I’ll switch it after so you can see what it is doing.
January 9, 2015 at 3:19 pm #156696In reply to: Change Breadcrumb url link
Robin W
ModeratorI’m sorry but I don’t understand what you mean.
What shortcodes – where?
You will need to either provide examples or explain further.
Sorry, but I am trying to help you, but there are hundreds of ways to set up wordpress/bbpress so need clear issues to resolve eg it looks like this, it needs to look like this
January 9, 2015 at 3:11 pm #156695In reply to: Change Breadcrumb url link
se7en1216
ParticipantIf I change the page as you mentioned, all shortcodes for the http://forgebreaker.net/forums/ page are overwritten, and you end up with several copies of the forum-index shortcode instead.
January 9, 2015 at 2:05 pm #156688In reply to: Latest and Popular topics
supremor
ParticipantThe changelog says this:
Don’t always put tags around titles, as this affects the title bar, too. If you want bolded titles on topics with unread posts, use gtf_topic_title()
Would I just add this code to the css or php file?
January 9, 2015 at 1:46 pm #156683In reply to: WordPress dashboard
-
AuthorSearch Results