Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,976 through 11,000 (of 32,504 total)
  • Author
    Search Results
  • #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

    #150417
    gogitossj34
    Participant

    Hi, 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.

    #150410

    In reply to: Full Width Forum Help

    xplusboy
    Participant

    you 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(); ?>
    #150377
    jetfalcon
    Participant

    Sorry!

    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!

    #150376
    Robin W
    Moderator

    First one :

    add this code to your functions file

    //disable toolbar for non-admins
    if (!current_user_can('manage_options')) {
    show_admin_bar(false);
    }

    see

    Functions files and child themes – explained !

    Second one

    use my plugin

    https://wordpress.org/plugins/bbp-private-groups/

    This will let you set exactly who can see forums

    #150374
    jetfalcon
    Participant

    I 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.

    #150367

    In reply to: Text Color and Font

    Robin W
    Moderator

    Please let me know where I can insert this code

    Into your functions file see

    Functions files and child themes – explained !

    #150356
    Stephen Edgar
    Keymaster

    I 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
    #150355

    In reply to: Random Topic Link

    Stephen Edgar
    Keymaster

    Let me think about the menu solution for a bit….

    e.g. To include forum ID’s 2, 5, 12 and 14 add the post_parent__in

    
    if ( 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, 19 and 21add the post_parent__not_in

    
    if ( bbp_has_topics( array( 'orderby' => 'rand', 'posts_per_page' => 1, 'post_parent__not_in' => array( 7, 9, 11, 19 ) ) ) ) {
    #150345

    In reply to: Text Color and Font

    desiamerican26
    Participant

    @Robkk

    Aaahh 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

    #150338

    In reply to: Css Issue?

    xplusboy
    Participant

    its 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;
    }
    #150332
    Xaveus
    Participant

    I 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.

    #150331

    In reply to: Text Color and Font

    Robkk
    Moderator

    but 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,
    		)
    	);
    }
    
    #150329

    In reply to: Text Color and Font

    Robkk
    Moderator

    This 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??

    #150322

    In reply to: Text Color and Font

    desiamerican26
    Participant

    The user just replied that once he highlight any part of the content, that’s when it shows with all the codes.

    #150320

    In reply to: Text Color and Font

    desiamerican26
    Participant

    Hello @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.png

    This 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.png

    This 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.png

    How can I resolve this issue?

    Thanks you again for your time and help….

    Robin W
    Moderator

    yes, 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 robkk
    

    and 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.

    Robkk
    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' );
    #150298

    In reply to: Profile page link hook

    Robkk
    Moderator

    because otherwise you can just make a custom bbpress theme

    Step by step guide to setting up a bbPress forum – part 3

    #150297

    In 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/">
    
    
    #150287
    Robkk
    Moderator

    yehhhh 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;
    }
    #150284
    Robkk
    Moderator

    place 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 '';
    
    }
    #150280
    Robkk
    Moderator

    mann your bbpress is acting weird….

    try

    span.bbp-topic-freshness-author img {
    width:20px;
    height:20px;
    }
    #150279
    tonydes
    Participant

    It does show 14. I replaced it, but it didn’t change. Do I need to add any code to the CSS editor?

    #150278
    Robkk
    Moderator

    okay 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??

Viewing 25 results - 10,976 through 11,000 (of 32,504 total)
Skip to toolbar