Search Results for 'code'
-
AuthorSearch Results
-
November 12, 2014 at 6:40 pm #154465
In reply to: Custom link in profile page
akyboy
ParticipantAH,…
user-details.php is file im looking for
So if i can add that custom link below:
<a href="<?php bbp_user_profile_edit_url(); ?>" title="<?php printf( esc_attr__( "Edit %s's Profile", 'bbpress' ), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'Edit', 'bbpress' ); ?></a>So need link to http://wotlabs.net/na/player/%s i guess? 🙂
November 12, 2014 at 6:26 pm #154464In reply to: b-quote to show above post
akyboy
ParticipantLove you more and more! :PPP
Thanks sooooo much sir!!
Also noticed padding
fixi had it top, bottom, right, left 🙂November 12, 2014 at 6:14 pm #154463In reply to: b-quote to show above post
Robkk
Moderatorchange the width from
400pxtoautolike this
blockquote { font-family: Open Sans,sans-serif; font-size: 14px; font-style: italic !important; background-color: #212123; border: 0.5px solid #CCC; border-radius: 6px; box-shadow: 0.5px 0.5px 0.5px #CCC; padding: 15px; width: auto; }November 12, 2014 at 12:57 pm #154455biscuitier0
ParticipantHi Robin
Sorry for disappearing on this. I was so busy with the rest of the site, I had to leave the forum to one side.
Anyway, thanks for your suggestions above. I tried them out and have unfortunately hit a couple of snags
1) I’m finding that once I login using the BBP login form, I’m left with a blue box that says ‘You are already logged in’. Is it possible to make this disappear, once logged in. Or if not, have you redirected to a different page once successfully logged in?
2) Is it possible to say exactly where in the menu the ‘Edit Profile’ goes? I would prefer it not to be a top level menu item and to go into the dropdown menu instead
3) Is the intention that I put the [bbp-forum-index] shortcode underneath the [BBP-login] shortcode? I want people to be taken straight to the forum once they have succesfully logged in. At the moment when I put those two shortcodes on a page together, I am getting a php error along the lines of
Warning: Cannot modify header information - headers already sent by...I think this might be to do with me using the Genesis framework?
I have alreday installed the Genesis Extend BBpress plugin
November 12, 2014 at 12:21 pm #154452In reply to: Topics not appearing in forum
Themes de France
ParticipantHey guys,
As a theme developper I wanted to bring bbPress support and I was facing the same issue.The plugin that @robin-w brought was working but I know something was wrong with my theme.
I managed to make it work without the plugin by deleting this snippet from functions.php :
https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Exclude_Pages_from_Search_ResultsThe intent of this snippet is to exclude pages from search results and I guess this was conflicting with WP4.
If you have this problem with your theme, look for “pre_get_posts” actions and if the search query is updated.
Hope that can helps 🙂
November 12, 2014 at 8:21 am #154443Preston
ParticipantThanks, that did the trick. Looking back, I probably should have noticed that was the problem! It was obvious in the error message.
Setting up the role worked, but if I set “spectate” to false, the role can’t see the forum at all to even post.
After searching some more, I found there was a bbPress setting to allow “anonymous” posting without an account. With that enabled, and the forum set to public, I used the following code to hide the list of topics from users who aren’t logged in (I believe they always come back with an ID of 0).
This is in the “loop-single-topic.php” file. I’ll probably also need to add this code to template files that display single topics, in case any sneaky people figure out the URL structure. The concept remains the same, however.
<?php $currentUserID = bbp_get_current_user_id(); if($currentUserID == '0'){ //Display stuff if user's ID is 0 (they aren't logged in) } else { //Put all the topic loop code here, it will display if the user is logged in (has an ID other than 0 } ?>This seems like a pretty secure way to do it, none of the topic information is displaying in the source code or anything like that. I’ll add any other relevant information I find tomorrow. For now, it’s time to sleep.
**EDIT**
I’ll definitely need to set something up with regards to the single topic templates. Creating a new topic as an anonymous user still redirects you to that topic. I’ll have something tomorrow.November 11, 2014 at 6:23 pm #154433Topic: toolbar & buttons not showing in my firefox
in forum Troubleshootingatfpodcast
ParticipantI deactivated these plugins that added bbcode. They worked at first. I did this on a fresh install of wordpress for a new site. It works for ie, chrome etc I have debugging on. What would be the cause? The plugin author says its plugin i dont know… So I thought I would use the bbpress defaults and those dont work.
November 11, 2014 at 5:48 pm #154432In reply to: Adding bbcode like image, you tube etc…
atfpodcast
ParticipantI deactivated the bbcode and white ilst and the default took bar is not showing in firefox. I will open another thread. Why this so hard? blah
November 11, 2014 at 2:50 pm #154431In reply to: Language – Help me please
Nicolas Korobochkin
ParticipantAt https://translate.wordpress.org/projects/bbpress/2.5.x I see 99% translated 🙂 You can translate some missing phrases. After that at the bottom of the page choose
all currentandMachine Object Message Catalog (.mo). Click theExportlink. You download the file with translations.
After that rename downloaded file tobbpress-pt_BR.moand put it in/wp-content/plugins/bbpress/languages/and you done.November 11, 2014 at 1:15 pm #154427In reply to: Adding bbcode like image, you tube etc…
Robkk
Moderator@atfpodcast
i just checked on my side with the latest raindrops theme ,i checked to see if all of the quicktag buttons worked
they did.i checked if some of the bbcodes from gdbbpress and bbpress2 bbcode didnt just process the bbcode out well
they did.i didnt run bbpress2 bbcode with bbpress direct quotes while gdbbpress tools activated at the same time, because i mean they do the same thing.
if you feel like the quicktags toolbar is really causing the problem and you have some error logs to post or images of error logs or any other info you can get while debugging is on, make a new topic with all the information in it.
November 11, 2014 at 8:57 am #154421Robin W
Moderatorsorry, there is a very minor error, a missing _
add_filter( 'bbp_get_dynamic_roles', 'add_new roles', 1 );should read
add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );I’ll update the codex!
November 11, 2014 at 5:28 am #154420Preston
ParticipantI’m just using the code copied right off the page at the moment: http://pastebin.com/qVFx300V
Originally, I edited it to suit my needs, but I thought the error came about because of my editing.
November 11, 2014 at 5:00 am #154419In reply to: How does it choose the files to use
Robin W
ModeratorThe template you choose in the page only applies to that page, you need to set up the file as bbpress.php to get it used throughout (I don’t write bbpress so can’t tell you why!)
November 11, 2014 at 4:55 am #154417Robin W
Moderatorfunctions file should be fine.
Can you post the exact code you put in the file.
November 10, 2014 at 11:11 pm #154412In reply to: Custom Fields not displaying when editing post
Preston
ParticipantOne last follow up for anyone who comes across this later on.
For the select drop downs on the edit page, I decided to “cheat” with jQuery to make sure the correct value is still selected.
This is the code in my functions.php file that creates the select input:
$play_os = get_post_meta( $topic_id, 'bbp_app_character_playos', true); echo '<br><label for="bbp_app_character_playos">Select Input Label</label><br>'; echo '<select id="bbp_app_character_playos" name="bbp_app_character_playos" data-value="' . $play_os . '"> <option value="Yes" class="os-yes">Yes</option> <option value="No" class="os-no">No</option> </select>';I’m displaying the current value in the data-value attribute so I can use it in the jQuery below:
function appEditValues(){ var playOsVal = jQuery('.topic-edit #bbp_app_character_playos').attr('data-value'); if(playOsVal == "Yes"){ jQuery('.topic-edit #bbp_app_character_playos').find('.os-yes').attr('selected','selected'); } else if (playOsVal == "No"){ jQuery('.topic-edit #bbp_app_character_playos').find('.os-no').attr('selected','selected'); } }The jQuery code adds the “selected” attribute to the appropriate option on the edit page, which of course causes that value to be selected and save correctly again when you finish editing.
November 10, 2014 at 11:04 pm #154411Preston
ParticipantI think that might get me to where I want to be. Assuming if I remove the “spectate” ability they can’t view any topics, but still post a topic.
When I implement the second set of code (for Creating New Roles) from this page: https://codex.bbpress.org/custom-capabilities/. I get the following error in the admin area:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_new roles’ not found or invalid function name in /wp-includes/plugin.php on line 214I thought it might be a conflict with the plugins I had installed, but disabling them didn’t solve anything. I assume the code is supposed to go into my functions.php file? That’s where I tried it anyway.
Thanks for the help.
November 10, 2014 at 8:26 pm #154406Topic: html entities in notification email
in forum Requests & Feedbackroysmyth
ParticipantbbPress forums play an important part in an outdoor recreation club site I administer. Members make heavy use of notification emails to be informed of changes in scheduled events.
Html entities in notification emails annoy the members. The members are non-technical. They don’t understand why characters such as & ‘ and – are replaced with strange codes in email.
The fix is trivial, apply html_entity_decode() to the subject and message body before sending. I don’t see any security risk in this. (Someone please let me know if there is a risk; I’m using this fix on the site.)
Can this be added to bbPress?
November 10, 2014 at 2:40 pm #154404In reply to: Adding bbcode like image, you tube etc…
Robkk
ModeratorPerhaps it is related to the toolbar in bbPress?
what do you mean??
the toolbar just puts out basic html, i dont have an idea why it would be causing the problem.
if you think adding a bbcode plugin will make that bbpress quicktags toolbar use the bbcode instead that wont happen you need some custom functions.
and just in case you didnt know to use the bbcode you have to manually write something like this
[youtube] https://www.youtube.com/watch?v=lwW_WrAk4Kk [/youtube]November 10, 2014 at 2:07 pm #154399Topic: Can't Format the Lead Topic in CSS
in forum Troubleshootingreadwriteandedit
ParticipantI’m trying to format the background and the border for the lead topic, just as you’ve done here in the bbPress forum. I used Firebug to see your code, which is
#bbpress-forums ul.bbp-lead-topic li.bbp-body { border: 1px solid #dd6; } #bbpress-forums ul.bbp-lead-topic li.bbp-body div.topic { background-color: #0099FF; }But when I add this to my child theme’s CSS (where I’ve successfully made other bbPress changes), nothing changes.
I don’t know if something else I’ve changed is preventing this from changing or maybe if you have something in the setup that I don’t have, something that allows you to style this in CSS when I can’t.
Any suggestions? The forum is private, but I can get you in temporarily, if that would help. Or I could paste into a comment all the changes to bbPress I made in my CSS.
(Note: I changed your color for testing purposes)
Thanks for any help you can give me.
Beth
November 10, 2014 at 2:05 pm #154398In reply to: Parabola theme – profile bug
Robkk
Moderator@pilxy i can see on my mobile device but not really on desktop
and you should just revert any changes you made that involves this issue ,and just wait until your theme author updates the theme.
like i said the main problem is that the
divclass that they used for the reply link in the comments section is just.replyand to make sure it doesnt have conflicts with bbPress it should be just like.comment-replyor any other class besides.reply.And when they use
.reply athey could have just used.comment-reply-linksince thats theaclassthere is some css that needs to be fixed that uses
.reply, in the style.css and some in the rtl.cssand there is also probably some css in the mobile stylesheet
there is a function that uses
.reply aand.reply a:hoverin the custom-styles.php file.all these things and probably more if i missed something need to be changed
November 10, 2014 at 11:08 am #154392In reply to: Split page?
dxlwebs
Participantthank you so much for your support with that link in the end i ported the code from an original wp theme(stock with the install) into a file called bbpress.php and inserted that file into the custom theme im using, i also removed the edit function from the original code as its not required on that page.
my next question if i can is that that page shows its name in the tab as kixeyeunion.uk/forums instead of saying Forums is there anyway to change that?
November 10, 2014 at 8:47 am #154388Robin W
Moderatorsee
https://codex.bbpress.org/bbpress-user-roles-and-capabilities/
and
you need to play with setting up some new roles probably one that has topic capabilities but not reply capabilities, and setting that to the default.
November 10, 2014 at 7:48 am #154385In reply to: Custom Fields not displaying when editing post
Preston
ParticipantThanks, I got it figured out as far as text fields keeping content when editing.
I changed the start of my bbp_applications_fields to the following (in case anyone comes accross this thread):
function bbp_application_fields() { $forum_id = bbp_get_forum_id(); $application_forum_id = 34; $topic_id = bbp_get_topic_id(); $topic_edit_id = bbp_get_topic_forum_id( $topic_id ); if( $forum_id == $application_forum_id || $topic_edit_id == $application_forum_id ) {My select fields still don’t retain their content when editing, but I suspect that’s due to some jQuery I’m using to show/hide certain options based on other select boxes.
**EDIT**
It looks like none of the select fields come back with their saved value, just whatever the starter value is. I’ll keep playing around with it.November 10, 2014 at 6:05 am #154382In reply to: Forum Page Not Found
aniaorome
ParticipantSolved it!
For future reference, try commenting everything in your custom theme functions.php file.
In my case, the problem came from a custom
pre_get_postsaction hook.Good luck!
November 10, 2014 at 3:02 am #154359In reply to: Split page?
Robkk
Moderatorsee if creating a bbpress.php would help
-
AuthorSearch Results