Search Results for 'code'
-
AuthorSearch Results
-
August 7, 2014 at 1:12 am #150422
In reply to: Text Color and Font
Robkk
Moderator@desiamerican26 your suppose to edit the function , add more html tags to make them unrestricted to users.
it looks like just add the tag , and attributes that are allowed
for example if i have this
<a href="http://example.com" title="this is an example" target="_blank"></a>with these allowed attributes
// Links
‘a’ => array(
‘class’ => true,
‘href’ => true,
‘title’ => true,
‘rel’ => true,
‘class’ => true,
‘target’ => true,
),everything would show up fine.
but if i have
<a href="http://example.com" title="this is an example2" target="_blank"></a>with these allowed attributes
// Links
‘a’ => array(
‘class’ => true,
‘href’ => true,
),the link would not have a title , and not open in new window anymore to users
August 7, 2014 at 12:41 am #150417Topic: Emoticon not quoted correctly.
in forum Themesgogitossj34
ParticipantHi, I’m currently using WP 3.9.1 and bbpress 2.x
My site is at mmo4teen.com
I’m using the Stargazer theme. I installed the gd bbpress tools for quoting.
Here’s the problem. When I quote a comment that have emoticon ( using wp-monalisa ), I can see them normally on visual editor and see their code on text editor but when I post it, I can only see the code.
If anyone wanna try it. Login with:
user: 55
pass: 123123
Thanks in advance.August 6, 2014 at 6:22 pm #150410In reply to: Full Width Forum Help
xplusboy
Participantyou should be remove *template Name : ….*
its not a page template, should be have some code like this in start file :<?php /** * The template for displaying bbPress content. * * @package WordPress * @subpackage BuddyBoss * @since BuddyBoss 3.0 */ get_header(); ?> <!-- if widgets are loaded in the Forums sidebar, display it --> <?php if ( is_active_sidebar('forums') ) : ?> <div class="page-right-sidebar"> <!-- if not, hide the sidebar --> <?php else: ?> <div class="page-full-width"> <?php endif; ?> <!-- bbPress template content --> <div id="primary" class="site-content"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar('bbpress'); ?> </div><!-- closing div --> <?php get_footer(); ?>August 6, 2014 at 6:35 am #150377In reply to: bbpress widget shortcode
jetfalcon
ParticipantSorry!
The login widget, including register and lost password links.
I know there are shortcodes for each of them, but I want it to look like the login widget.
Thanks!
August 6, 2014 at 6:18 am #150376In reply to: Only Register to forum ?
Robin W
ModeratorFirst one :
add this code to your functions file//disable toolbar for non-admins if (!current_user_can('manage_options')) { show_admin_bar(false); }see
Second one
use my pluginhttps://wordpress.org/plugins/bbp-private-groups/
This will let you set exactly who can see forums
August 6, 2014 at 5:52 am #150374Topic: bbpress widget shortcode
in forum Troubleshootingjetfalcon
ParticipantI have found a couple of similar forums posts about this, but they have not been resolved.
Is there a shortcode for the bbpress widget? It is not listed in the shortcode page.
If not, is there a way to implement the widget on a page without a sidebar? I do have a sidebar on the forum page, but I would like the widget implemented in the front page as well.
August 6, 2014 at 3:08 am #150367In reply to: Text Color and Font
Robin W
ModeratorPlease let me know where I can insert this code
Into your functions file see
August 5, 2014 at 10:09 pm #150356In reply to: Large Forum Import Hangs ( Vbulletin 3 )
Stephen Edgar
KeymasterI am expecting this will be a reply in the source database has some weird content.
To quote @JohnJamesJacoby here:
These types of faults are typically due to some encoding issue in that post. Sometimes this is from an encoding conversion to UTF8 that was done at some point. Whatever it is, it’s nearly impossible to detect without setting a time limit on queries and bisecting the difference until we can narrow down the offending entry, and skip it. Because queries could naturally take a long time, and because it results in missed data, I’m not comfortable with this approach.
The workaround is to find and delete the offending reply which is time consuming and tricky but the only way at this stage.
Here’s how I do debug this and find the offending topics/replies:
- Once the import hangs, click stop, take a note of where it was up to, e.g. Converting 11,299 – 11,300
- Click start again and the import will continue from where it left off
- If it hangs again, take note of where it was up to again
- Once finished make a fresh copy of the source database
- Now drop all the rows in the database that are not in the range of rows that failed during import
- Perform a fresh import using this database with the “Rows Limit” setting set to
1 - The import should hang on the offending topic/reply
- Again, take note of the topic/reply it was up to
- Click stop, click start again to continue on
- Once you have your list of offenders and the import has finished delete these rows from this database and test again to make sure it completes without hanging
- Now back in your full database (presumably a copy of the original) delete these same rows from the database and run the import again
August 5, 2014 at 9:43 pm #150355In reply to: Random Topic Link
Stephen Edgar
KeymasterLet me think about the menu solution for a bit….
e.g. To include forum ID’s
2,5,12and14add thepost_parent__inif ( bbp_has_topics( array( 'orderby' => 'rand', 'posts_per_page' => 1, 'post_parent__in' => array( 3, 5, 12, 14 ) ) ) ) {e.g. To exclude forum ID’s
7,11,19and21add thepost_parent__not_inif ( bbp_has_topics( array( 'orderby' => 'rand', 'posts_per_page' => 1, 'post_parent__not_in' => array( 7, 9, 11, 19 ) ) ) ) {August 5, 2014 at 7:45 pm #150345In reply to: Text Color and Font
desiamerican26
ParticipantAaahh That hurts….this close to fix it and this major issue….. 🙁
let me try that code….but where do I have to insert it? In function.php or which one….?? I can give this a shot….if not, then I will create another thread to get help…..cuz I just need for users to have those Color and some other tags…. 🙁
Please let me know where I can insert this code?
Thank You
August 5, 2014 at 4:44 pm #150338In reply to: Css Issue?
xplusboy
Participantits for css conflict.
use this code in your theme style.css file to fixing that :#main-content #bbpress-forums ul ul li, #main-content #bbpress-forums ul li { margin: 0px; list-style: none outside none; }August 5, 2014 at 3:24 pm #150332Topic: 0 Voices 1 Posts?
in forum TroubleshootingXaveus
ParticipantI have installed bbpress on multiple wordpress sites and seem to always have the same issue. On the main forum index page it says 0 voices and 1 posts no matter how many posts you create this never changes. Being that this has occurred on every site that I have included bbpress and being different themes and installs I can only conclude that I must be missing something when I set it up.
If anyone can help I would appreciate it….because you cannot run a forum that says there is only 1 post in it 🙁
Also I use no shortcodes, I just install bbpress then go to http://www.example.com/forums and start posting.
August 5, 2014 at 3:09 pm #150331In reply to: Text Color and Font
Robkk
Moderatorbut then the emoticon don’t show up. Well, emoticon is the least of the worries….please help me figure out how to get normal users HTML access so that they won’t get this issue.
i dont have any clue what could cause a problem with your emoticons, maybe your other emoticon plugin is causing issues, deactivate it see if it fixes that.
Yes sir, it do look like it’s restricted to to normal users. I just posted from the admin side and it works well
ok now your going to have to allow certain html tags, other than just allowing html to everyone. people might abuse that and add something malicious to your site.
heres a good topic to read about this. https://bbpress.org/forums/topic/allow-html-from-users/
heres a function that allows the common html tags already in bbpress.
you can take it from here , or until someone else helps you on this, i have no idea how to do this haha .
add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' ); function ntwb_bbpress_custom_kses_allowed_tags() { return array( // Links 'a' => array( 'class' => true, 'href' => true, 'title' => true, 'rel' => true, 'class' => true, 'target' => true, ), // Quotes 'blockquote' => array( 'cite' => true, ), // Span 'span' => array( 'class' => true, ), // Code 'code' => array(), 'pre' => array( 'class' => true, ), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'class' => true, 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ), // Tables 'table' => array( 'align' => true, 'bgcolor' => true, 'border' => true, ), 'tbody' => array( 'align' => true, 'valign' => true, ), 'td' => array( 'align' => true, 'valign' => true, ), 'tfoot' => array( 'align' => true, 'valign' => true, ), 'th' => array( 'align' => true, 'valign' => true, ), 'thead' => array( 'align' => true, 'valign' => true, ), 'tr' => array( 'align' => true, 'valign' => true, ) ); }August 5, 2014 at 2:15 pm #150329In reply to: Text Color and Font
Robkk
ModeratorThis is the Image of forum. Right above the emoticons there is a letter “p”. I am not too sure what that is for:
i dont really know either, but i think it indicates what heading style you are on , you see that list box that says paragraph click Heading 2 , now your p symbol should show h2
This is the image of what user posted on the forum and ended up with all the codes showing up:
it might be because participants cant post any other html tags than what bbpress allows, im not for sure though.
easy way to test it is for keymaster to post using span style, if it works then its allowing participants to use restricted html.
The user just replied that once he highlight any part of the content, that’s when it shows with all the codes.
how??
link me to your site ,give me some demo login details and ill sign up and try it out??
August 5, 2014 at 1:01 pm #150322In reply to: Text Color and Font
desiamerican26
ParticipantThe user just replied that once he highlight any part of the content, that’s when it shows with all the codes.
August 5, 2014 at 12:47 pm #150320In reply to: Text Color and Font
desiamerican26
ParticipantHello @robkk,
All the buttons I needed is showing up as it is.
For the Media ones, I will contact the Author and ask them about it if anything can be done or else I will find another way to show video as per your suggestion.I just received a message from one of the user that he encountered a problem while posting on Forums.
Please see the Links below and let me know the solution:This is the setting section of TinyMCE Advanced of how I have it:
http://www.mediafire.com/view/5ycbdzwtx4yddp9/Untitled8.pngThis is the Image of forum. Right above the emoticons there is a letter “p”. I am not too sure what that is for:
http://www.mediafire.com/view/bx36jo5qjyf1y02/Untitled9.pngThis is the image of what user posted on the forum and ended up with all the codes showing up:
http://www.mediafire.com/view/7c9p4c0oa4fjqnf/Untitled10.pngHow can I resolve this issue?
Thanks you again for your time and help….
August 5, 2014 at 12:44 pm #150319Robin W
Moderatoryes, just change it !
you can then do one of two things
1. just make a note, so that each time I upgrade this plugin, you’ll need to go back and change the code again
2. rename the plugin in line 4 – say to
Plugin Name: bbP shortcodes robkkand then change the directory the plugin sits in to something else
Worpdress will then tell you that you have a plugin installed but not activated called bbP shortcodes robkk, and that the plugin bbp shortcodes no longer exists, and you can then delete it.
August 5, 2014 at 9:43 am #150304Robkk
Moderator@robin-w is there a filter i could use to output a different template
i dont want certain items to be seen when i add this shortcode somewhere, and the easiest is copying a template and renaming it and just removing the unwanted code.
i want to basically just edit this
// Output template bbp_get_template_part( 'content', 'archive-topic' );is there a way to change it to
// Output template bbp_get_template_part( 'content', 'archive-topicno' );August 5, 2014 at 8:00 am #150298In reply to: Profile page link hook
Robkk
Moderatorbecause otherwise you can just make a custom bbpress theme
August 5, 2014 at 8:00 am #150297In reply to: Menu link to Profile
Robin W
Moderator@netweb thanks for posting that, thought there would be but couldn’t find it offhand.
@mathijs-lemmers ok so try<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/">August 5, 2014 at 7:17 am #150287In reply to: Finding .css style file
Robkk
Moderatoryehhhh your theme is acting weird..
make sure you added it correctly, other than that try this css code
div.bbp-template-notice.info { display: none; }August 5, 2014 at 7:01 am #150284In reply to: Finding .css style file
Robkk
Moderatorplace this inside your child themes functions.php
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' ); add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' ); function ja_return_blank() { return ''; }August 5, 2014 at 6:43 am #150280In reply to: Finding .css style file
Robkk
Moderatormann your bbpress is acting weird….
try
span.bbp-topic-freshness-author img { width:20px; height:20px; }August 5, 2014 at 6:39 am #150279In reply to: Finding .css style file
tonydes
ParticipantIt does show 14. I replaced it, but it didn’t change. Do I need to add any code to the CSS editor?
August 5, 2014 at 6:35 am #150278In reply to: Finding .css style file
Robkk
Moderatorokay on loop-single-topic.php in your child theme
look for
<span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>does it show 14 on your theme??, to remove it replace with this
<span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id()) ); ?></span>did it work??
-
AuthorSearch Results