Search Results for 'code'
-
AuthorSearch Results
-
December 7, 2015 at 4:26 am #169680
In reply to: move Forum Subscribe link/button to right
Pascal Casier
ModeratorHi,
1. Just read item 17 on https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/ . Or use a plugin like ‘bbP Toolkit’ or other to do it for you.
2. hmmm, I see a complicated way in programming this, but maybe somebody comes with an easy solution
Pascal.December 7, 2015 at 2:42 am #169673In reply to: [Resolved] Breadcrumbs Missing
gburak
ParticipantThanks for your reply, but I’m not sure I quite understand your instructions… I’m versed in css but not so much so with php.
I replace the “back to discussions” code with <?php bbp_breadcrumb(); ?> – ok.
But where do I find the “back to discussions” code? And its just the one line <?php bbp_breadcrumb(); ?> I replace it with?
thanks!
December 7, 2015 at 2:07 am #169670Topic: remove voices column
in forum Troubleshootingdaoist
ParticipantI want to remove the voices column, it never updates when I want it to, and I am getting tired of trying to figure it out.
Can someone help me remove this in a neat way – ive tried editing the following:
} li.bbp-forum-topic-count, li.bbp-topic-voice-count, li.bbp-forum-reply-count, li.bbp-topic-reply-count { float: left; text-align: center; width: 10%;but it just removes the posts column as well. and I dont want that.
December 6, 2015 at 2:43 pm #169661In reply to: Remove NoFollow from BBPress Posts
Robkk
ModeratorI talked to the devs awhile back on this, and as long as you insert the links manually with html or with the link quicktag button, your links shouldn’t have a rel=”nofollow”.
Just add this to your functions.php file your child theme instead of commenting out the code.
remove_filter( 'bbp_get_reply_content', 'bbp_rel_nofollow', 50 ); remove_filter( 'bbp_get_topic_content', 'bbp_rel_nofollow', 50 );December 5, 2015 at 12:55 pm #169647In reply to: Making Forum Width 100% in point
meriadoc84
ParticipantI tried the code anyway and it worked after I realised that the bbpress forum pages were linking to the primary theme (iFeaturepro5) rather than the child version I have created. I really don’t understand that at all because the Child theme was the one activated at the time. The main thing is the side bar has gone.
Anyway, thanks for the help. A final touch would be to be able to reduce the size across the screen a little. Is it possible to change from full width to a percentage; say 80%?December 5, 2015 at 11:10 am #169644In reply to: visual editor showing html in posts
Robkk
ModeratorI just tested out the code and it seems to work fine. Make sure that you copied over the whole bit of code and did not miss anything. I put the code on a gist file so maybe it will be easier to copy over.
https://gist.github.com/robkk/b24443ad53ece6d2b7c9
I tried Tiny MCE Advanced and it caused alot of issues – half of an individual post showed up in my black background – half in the “white” text area
Maybe this is a CSS issue?? Not sure really.
still did not allow proper showing of the above formatting (showed code when published)
The code fixes it whenever you make a new post, it might not work for existing posts that have not parsed everything, it might need to be republished on the old posts.
really a mess so I went back to WP Edit
I have come across an issue that was present using WP Edit.
Also – all buttons are working fine in my other areas (like Sabai directory) for front end users – just BBPress?
bbPress tries to be secure for frontend posting for users, so that they do not post harmful javascript. It might be a little too secure.
December 5, 2015 at 9:53 am #169643In reply to: Removing buttons from HTML toolbar
Robkk
Moderator@drewamca using this PHP code snippet will also work too. Add this function to your child themes functions.php file or add it to a seperate plugin like functionality.
function filter_bbp_get_quicktags_settings( $settings ) { $buttons_array = explode( ',', $settings['buttons'] ); $buttons = array_diff( $buttons_array, array( 'del','ul','ol','li','close' ) ); $settings['buttons'] = implode( ',', $buttons ); return $settings; }; add_filter( 'bbp_get_quicktags_settings', 'filter_bbp_get_quicktags_settings', 10, 1 );Here is a list of the default buttons you can add to the function.
strong, em, link, block, del, img, ul, ol, li, code, closeDecember 5, 2015 at 9:41 am #169640In reply to: Recent topic widget
jeroenkosterr
ParticipantHello Pascal,
I am not getting the recent topics if i indicate the id of a subforum. It seems like it only works when you are in the root. If i put in ‘any’ in the Parent Forum ID field every topic is shown. My answer is still not answered. I don’t know which code to edit.
Thanks for your help.
December 5, 2015 at 9:36 am #169639In reply to: Add information to [bbp-register]
Robkk
ModeratorYou should be able to add information to the page you added the registration shortcode to. YOu can also copy the form-user-register.php file into a child theme in a folder called bbpress and edit it and add another notice or a description surround in paragraph tags. You can also create/edit a page-user-register.php file and put that in the root of your theme, and make sure to select the template for your register page.
I cannot really replicate the issue.
I am kind of thinking that possibly you may have BuddyPress activated and do not know that the plugin also has a frontend registration form that is created on yoursite.com/register.
December 5, 2015 at 8:52 am #169636Topic: Single Replys are not conneceted to the Topics
in forum TroubleshootingEmineminero
ParticipantHi, i enabled topics and replys in the search with custom code that i was given here, the thing is that when search something and finds a reply, when i click that reply it redirects me to that individual reply, not the whole topic so i cant see the context of the reply.
What can i do?December 5, 2015 at 8:46 am #169634In reply to: Making Forum Width 100% in point
Robkk
ModeratorIt is specific to Point.
It would require a similar process to create the file/and the code in the file though.
I am sort of following this guide.
December 5, 2015 at 8:22 am #169629In reply to: Display forum as list not working
Robkk
ModeratorYour subforums are for some strange reason not wrapped in a list structure like this.
<ul class="bbp-forums-list"> <li class="bbp-forum"> <a href="http://link" class="bbp-forum-link">Forum 1</a> </li> <li class="bbp-forum"> <a href="http://link" class="bbp-forum-link">Forum 2</a> </li> </ul>But instead it is just links.
Try this CSS instead to have the same layout.
.bbp-forum-info a.bbp-forum-link { display: block; }December 5, 2015 at 7:54 am #169626In reply to: How To Add “New Topic” button
Robkk
Moderatorcopy loop-forums.php or any other templates you want to edit to a child theme into a folder called bbpress and you should be fine.
December 5, 2015 at 7:52 am #169625In reply to: [Resolved] Breadcrumbs Missing
Robkk
ModeratorSince I am sure your theme is using custom templates to have the edit/or replace the back to disscussions code with
<?php bbp_breadcrumb(); ?>. It would be preferred if you copied the file you would need to edit to your child theme in a folder called bbpress.December 4, 2015 at 1:45 pm #169612In reply to: How To Add “New Topic” button
erich199
Participant@robkk,
I thought the exact same thing when they sent the code. Hopefully we see this as a core feature in the future updates of bbpress.One can make the button visible to logged in users only by using the
<?php if ( is_user_logged_in() ) : ?> button code here <?php endif; ?>I’m not sure, I’ll have to do some testing on my site to see if it will work with forums.
December 4, 2015 at 1:44 pm #169611In reply to: Display forum as list not working
o.m.j
Participanthello…I had this working when I 1st setup my site, I just noticed it has reverted back…
I was using the following css code in my child theme:
#bbpress-forums .bbp-forums-list li {
display: block;
}I just tried switching to the filter in functions but it’s not working either…
any idea why this would stop working? thx!
December 3, 2015 at 3:03 pm #169592In reply to: vBulletin 3.8 > bbpress = dashes
Alex Seidanis
ParticipantCurrently at 67K and going.
Some assistance please; this query:
SELECT DISTINCT 'post_author' FROM 'wp_posts' AS t1 LEFT JOIN 'wp_users' AS t2 ON t2.ID = t1.post_author WHERE t2.ID IS NULL AND t1.post_type = 'reply' ORDER BY 't1'.'post_author' ASCreturns 306 results. This one:
SELECT COUNT(*) FROM 'wp_posts' AS t1 LEFT JOIN 'wp_users' AS t2 ON t2.ID = t1.post_author WHERE t2.ID IS NULL AND t1.post_type = 'reply'returns the number 29547.
So, there are 29547 replies attributed to 306 users that don’t exist in the user table. Will that get fixed by the repair tools or should I stop the process and try something else?
December 3, 2015 at 11:04 am #169587In reply to: Featured slider
galiulinr
ParticipantThe question is outdated, but I also needed a slider. Today I use “Yet Another Related Posts Plugin” + “Related Posts Slider“. It works for me.I added a shortcode in a page template forum. Maybe it will help someone.
December 3, 2015 at 8:40 am #169582In reply to: Theme update broken forum
dave1900
ParticipantI have the same issue with my total theme, but your solution doesn’t work 🙁 Do you have another solution? … maybe I have to set some <?php … ?> before and after the code?
December 3, 2015 at 8:13 am #169581Topic: Add information to [bbp-register]
in forum TroubleshootingWebsitesbyMark
ParticipantI want to add additional infomation and help test to the regsiter page.
I have added [bbp-register] to my register page but it does not show the additional content outside the shortcode.
With the latest version of BBPpress how do I do that? (if its adding a file to my theme what do I use as a basis and what file structure does it need to sit in my theme? (i.e does it sit in the theme folder or does it need to match the structure of the defualt theme)
December 2, 2015 at 7:19 pm #169572In reply to: vBulletin 3.8 > bbpress = dashes
Stephen Edgar
KeymasterThe above was spam 😉
It theoretically continue to run at the same speed at reply 1-100 or 90,000 – 90,100.
A recent case of similar behaviour was due to another plugin being active and hooking into
pre_get_posts(), this caused every single post being imported to be run through this and was the cause of the slowness.Check what other plugins are running to see if this is the cause.
And no, *all* bbPress data is stored in the standard WordPress db tables, bbPress does not create any tables of it’s own.
December 2, 2015 at 1:16 pm #169550In reply to: Shortcodes and Menus
bpakclac2015
ParticipantAlright…It appears that setting the type of topics, as in; Normal, Sticky or Super Sticky, changes the behavior of the shortcode [bbp-single-forum id=].
I made all test topics’ type in both forums, to Normal and the problem disappeared. Same behavior with Sticky.
To wrap-up, a type Super-Sticky, will get these forums show up, no matter that you specify an exact one with the [bbp-single-forum id=] shortcode.
December 2, 2015 at 1:00 pm #169548In reply to: Removing buttons from HTML toolbar
drewamca
ParticipantI tried to put this code to my theme’s bbpress.css file but it didn’t work. Also I tried buddypress plugin’s bbpress.css but it didn’t work either.
December 2, 2015 at 11:33 am #169547In reply to: visual editor showing html in posts
Momshof
ParticipantAny ideas why this happens? Still can not get the
align left
align center
align right
font family
font size
underline
text color
background color (for text)to work for front end users.
I tried Tiny MCE Advanced and it caused alot of issues – half of an individual post showed up in my black background – half in the “white” text area – still did not allow proper showing of the above formatting (showed code when published) – really a mess so I went back to WP Edit.
Also – all buttons are working fine in my other areas (like Sabai directory) for front end users – just BBPress?
December 2, 2015 at 4:16 am #169541In reply to: vBulletin 3.8 > bbpress = dashes
Alex Seidanis
ParticipantUpdate (and info for the developers):
I have the import process running in one tab, and a random admin page in another, which I keep re-loading to maintain the session alive. Meanwhile, I also occasionally run this query on the database to keep an eye on things:SELECT COUNT(*) FROM 'wp_posts' WHERE 'post_type'='reply'Here’s what I noticed:
Although the import process tab states that it’s
Converting Replies (51700 – 51799)
the actual total replies imported at any given time are in the next range, eg. between 51800 and 51899 (resulted by the MySQL query above).
Whenever it stalls without outputting dashes, it’s always on a round figure, eg. 51600, and re-starting the import process starts at 51601 OK.
Also, at one occasion, the session expired. I logged back in at the second tab, then returned to the importing tab and as soon as I closed the login modal, the import pane started outputting dashes.
I’ll keep this topic updated with any further info until the import completes. Hope this proves useful to someone.
-
AuthorSearch Results