Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,751 through 13,775 (of 32,503 total)
  • Author
    Search Results
  • #137198
    palmdoc
    Participant

    Gosh the fix sounds complicated. I’ll wait for the official bug fix 🙂

    #137194
    Fredriks
    Participant

    Hello,

    I have searched a lot and digged in the code on how to remove the “Reply To:” in the freshness block for forum. Take a look at this example: where you eg can se “Reply To: 80’s dresses”.

    So how, do I remove this?

    #137192
    alien13
    Participant

    I want to display in WordPress search results page – 10 or less found results from BBPress (plugin) forums. I know that BBPress use custom post types (forum, topic, reply) but I don’t know how to do it. I try with WP Query, but it didn’t show nothing. I don’t want to override BBPress search page and functions, I just want to show some results in WordPress search page. Is this possible?

    Thank you all in advance.

    Here is the query I try:

    <?php 
        // The Query
        $the_query = new WP_Query( array (
            'post_type' => array('topic', 'reply'),
            'posts_per_page' => 10,
            's'=> $s
        ));
    
        // The Loop
        if ( $the_query->have_posts() ) {
            while ( $the_query->have_posts() ) { $the_query->the_post();
                echo '<li>' . get_the_title() . '</li>';
            }
        } else {
        // no posts found
        }
        /* Restore original Post Data */
        wp_reset_postdata();
    ?>
    Simpas81
    Participant

    Hello,

    if a problem. If a group is Private and a visitor press FORUM tab is redirected to the ADMIN login.
    I need to avoid this.
    Please try to go here ->
    http://fashionbleeker.com/groups/fashion-pioneers/ and press FORUM under avatar.

    Do you know the name of file and the exact code that I need to change to avoid this redirect for NON logged users?

    Thanks
    Simone

    #137179

    In reply to: Conditionals

    Stephen Edgar
    Keymaster

    There is no codex page for bbPress conditionals at this stage but take a look at this and see if any bbp_is_ meet your requirements.

    http://phpdoc.ftwr.co.uk/bbpress-plugin/

    #137162
    #137159
    tiktak007
    Participant

    Wrote this:

    add_rewrite_tag( '%custom%', '([1]{1,})' );
    add_rewrite_rule( 'users'. '/([^/]+)/custom/&$', 'index.php?' . 'bbp_user' . '=$matches[1]&custom=1', 'top');

    But when you go to the page user/admin/custom, 404 page is displayed

    #137157
    oligou
    Participant

    Hello,

    WP version : 3.6.1
    bbpress : 2.4

    Please, is there someone to clarify these :

    I want to have a “new topic button” on top of each forum. I found some info here, I created a page with shortcode [bbp-topic-form].

    And now ?

    How can I have this link on the top of my forum ?
    I’m not a develloper.

    Thank you

    #137154
    inspirationally
    Participant

    Wow, great work!! Thank you so much!
    Baby sleeping, big one sent to kindergarden, so I have a bit of time, too.

    Little changes in your version:

    replaced

    			'from_tablename'  => 'forum',
    

    with

    			'from_tablename'  => 'wbb1_1_board',
    

    at forum status and forum board

    (Btw. everyone may use another board ID!!!) I have 1, some may also have wbb2_1_board and wcf2_ or even wbb1_2_board (if they have a second board – you can install two baords in one WCF – Community Framework – this is to change individually. The same goes for the language IDs. There may be more/different languages.

    Signature import works (will have to see how to implement that later for buddypress maybe), just special characters don’t convert: “there’s Johnny.— – but that’s just a mini error,
    languages work, too (I just have to see how to implement it),
    I have whole topics with all their answers (what I did not have yesterday – instead a headache).
    Categories work quite perfect, too!
    Closed forums -> no idea, because I don’t have any. But it sounds correct.
    BBCodes have been converted, too, besides a few like [align=center]

    The sortOrder does NOT work. Simply, because that field exists in wbb1_1_board, but it is empty.
    This is saved in wbb1_1_board_structure with the fields parentID boardID and position.
    I tried a table join here again and probably destroyed your clean coding once again. But it works, I just tested!!
    See the updated wbb.txt from the top!!

    The author thing is bad,
    It’d be great if they even were anonymous and not ME. Actually there are some pretty silly posts there, and I keep replying to myself this way. Hmmm…
    But I can solve it with manually replacing User ID 1 with 0 where it is a topic or reply for now to MAKE it anonymous.

    I tried – because of the smilies not working and the special chars in the signature – an import with uncommenting the last lines (see wbb.txt)
    Some Special Characters still wrong, but who cares for the few? as long as ä ö ü ß from German language work, everything is fine.
    Smilies started to work. Great!!

    So the only thing left is the author and the passwords.
    I tried to implement parts of a paid plugin WBB Bridge here, but even that didn’t work (plus we cannot simply use it because of the license)

    #137145

    In reply to: Multiple Forums

    Stephen Edgar
    Keymaster

    Sure is possible 🙂

    Take a read of this to help you on your way https://codex.bbpress.org/getting-started-with-bbpress/

    Make a category (forum) called ‘Fruits’ and then make your sub forums ‘Apples’, ‘Oranges’ etc
    Make another category (forum) called ‘Vegetables’ and sub forums ‘Potatoe’, ‘Carrots’ etc

    Create a WordPress page for each of your categories ‘Fruits’ and ‘Vegetables’

    Use the [bbp-single-forum id=$forum_id] bbPress shortcode on each of these pages with the forum_id of each category.

    #137132
    Stephen Edgar
    Keymaster

    I haven’t got much else to add except I think you have tried everything to find ‘spot the difference’ 😉

    I am glad it is sorted though.

    If you have SSH access to your host go on a code hunt 😉

    grep -i -r 'bbp_list_forums' * and/or grep -i -r 'bbp-forums-list' *

    This will find any reference to the term ‘bbp_list_forums’, there might be some rogue hiding spot where this is being used as a custom function somewhere.

    #137129
    Stephen Edgar
    Keymaster

    Forum Section

    • Added Forum Display Order using wbb1_1_board.sortOrder
    • Added wbb1_1_board.boardType and callback method callback_forum_type where category =1 & forum = 0
    • wbb1_1_board.isClosed & callback method callback_forum_status where closed =1 & open = 0
    • (Are the above values correct for these DB fields? I have guessed these ;))

    Topic Section

    • Changed callback method for Topic Language from callback_topic_reply_count to callback_topic_language
    • Added topic author ip
    • Your SQL join for the topic content looks good

    Reply Section

    • Fixed ‘Reply parent forum id’ (we need the ‘parent forum’ here not the first ‘post id’, the inline docs were not very clear here)
    • Removed ‘Reply Unregistered Author name’ (See #2347for more info)

    User Section

    • Added ‘User Signature’ wcf1_user.signature

    Generally cleaned up the code and inline docs to match the other importers.

    The updated version here: https://gist.github.com/ntwb/41b8bb57df78d1a1bd01
    The differences between versions here: https://gist.github.com/ntwb/41b8bb57df78d1a1bd01/revisions

    #137122
    Kaliceos
    Participant

    As you can see on line 478 from the code you pasted, the <br /> is here, but I guess it’s not interpreted because it’s just at the end of the < li > element, which is displayed inline. These CSS properties are not easy to use. Maybe a plugin added a css that caused the issue.

    But your problem is solved, that’s the main thing 🙂

    #137118
    inspirationally
    Participant

    I’m too silly, damn. This is over my intelligence.
    I have the problem, that the posts have the wrong post_parent, so that two topics are merged curiously.

    For example Post ID 9257 from the WBB board is attached to Thread ID 9257 from the old board, and I cannot see what I have to change. Please please help!
    This took me now over 2 hours changing things and I haven’t found it. I guess it is this part, but I have no idea what to change:

    // Parent Post ID.
    		// Note: We join the posts table because this needs to be the fist post of a topic.
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_1_thread',
    			'from_fieldname'  => 'firstPostID',
    			'join_tablename'  => 'wbb1_1_post',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (threadID) WHERE wbb1_1_thread.threadID = wbb1_1_post.threadID',
    			'to_type'         => 'reply',
    			'to_fieldname'    => 'post_parent',
    		);
    		

    I updated the wbb.txt above (where I also linked the WBB database structure).

    #137116
    inspirationally
    Participant

    Hmm…unfortunately, all the posts written by unregistered users are assigned to ME (UserID = 1) automatically. Is there any possibility to give them the user ID 0 (=Anonymous) and in that case also save the username in postmeta?

    // Reply unregistered author name (stored in postmeta)
    		$this->field_map[] = array(
    			'from_tablename'  => 'wbb1_1_post',
    			'from_fieldname'  => 'username',
    			'to_type'         => 'reply',
    			'to_fieldname'    => '_bbp_anonymous_name',
    		);
    		
    jenseo
    Participant

    Ok, I have partly found the problem!

    I’m relying on Google’s jQuery-packs since these load much faster. I’m having the following code in my functions.php file:

    	// Load jQuery
    	if ( !is_admin() ) {
    	   wp_deregister_script('jquery');
    	   wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"), false);
    	   wp_enqueue_script('jquery');
    	}

    When removing this line, it suddenly works. The problem is that I would like to keep using Googles libraries…

    Any suggestions?

    // Jens.

    #137105
    Kaliceos
    Participant

    I went to clan.wolflan.com and your source code looks like some paragraphs were added by your editor as I see some <p> and </p> in weird places. What software did you use to edit loop-single-forum.php or your functions.php ?

    I was not able to check because some of your forums are private, but what’s the html source code for the list of subforums ? (I mean in the browser) Is there a <br /> between the list of subforums ? Because, when I watch your screenshot, subforums are not separated by a comma, so I guess the function did his job, but your code may be broken because you used WordPress editor or an other editor that deleted the <br />.

    Anyway, in your case, the simplest solution may be using some CSS. And as you said, simple stuff first ! You wouldn’t need to change any php template. You may try something like that in your style.css or Custom CSS if you use Jetpack :

    #bbpress-forums .bbp-forums-list li {
      display: block;
    }

    If it works, I don’t know what was the problem with the bbp_list_forums() function, but you will not need to use it and you can delete the custom loop-single-forum.php that you copied to your theme’s directory if you had not made other edits.

    #137103
    palmdoc
    Participant

    I am pleased to report I managed to successfully upgrade to bbPress from legacy forums
    The proper code to put in the Forums page is:
    [bbp-topic-index]

    #137098
    Erlend
    Participant

    Thank you very much for chiming in Beau. Your points make sense, except the first one has me a bit confused. o2 is going to be a plugin, like bbPress. So isn’t “WordPress.com runs WordPress, not o2” just as true?

    the code will be open source, so you’re welcome to take pieces and apply it to bbPress as well.

    I sincerely hope that will be feasible. Excitedly looking forward to seeing o2 in action!

    #137097
    Beau Lebens
    Participant

    I suppose there are a few reasons for this, but the most immediate are:

    • Our primary goal is replacing our own internal communications platform (P2). That runs on WordPress.com, which runs WordPress, not bbPress (this is probably the biggest one).
    • We (the team working on it) are more natively WordPress developers than bbPress specifically.
    • Quite simply, we didn’t really think about it until we were already well along the way building it for WordPress.

    There are no plans to do anything related to bbPress, but the code will be open source, so you’re welcome to take pieces and apply it to bbPress as well.

    #137093
    Hansaplastique
    Participant

    Or is there an option to disable this feature?

    #137092
    Hansaplastique
    Participant

    I’m running 2.4 and WP 3.6.1.
    It seems that bbPress converts backticks to code tags …

    Can anyone please explain to me how I can post code that has backticks in it?
    I mean: the backticks are part of the actual code I’m trying to post in my forum? So they should NOT be converted.

    #137091
    Travis S.
    Participant

    My goal is to make multiple forums (around 10 when its all said and done). Each forum will be for different subjects but all related with each on a different page.

    Per example… one forum will be on a specific fruit. So apple, oranges, etc. but would all fall under the umbrella Fruit (not my actual plans, but this was easier to explain).

    Is this possible?

    I’m currently running one bbpress install on the twenty-13 theme. I know there is a shortcode to show specific topics on a page, but I want each forum to show on just one page.

    Note: ive been on wordpress.com for a little while and started over on the .org. So I’m completely knew to screwing around with php files. Not asking you to hold my hand through it all, but clear directions would be great. Sorry if this question is a repost and/or very basic and im just over thinking it.

    Thanks in advance,

    #137089

    In reply to: Allow HTML from users

    Amin
    Participant

    I’m using this, and it works fine:

    if ( !function_exists( 'ja_filter_bbpress_allowed_tags' ) ) {
    function ja_filter_bbpress_allowed_tags() {
    return array(
     
    // Links
    'a' => array(
    'href' => array(),
    'title' => array(),
    'rel' => array()
    ),
     
    // Quotes
    'blockquote' => array(
    'cite' => array()
    ),
     
    // Code
    'code' => array(),
    'pre' => array(),
     
    // Formatting
    'em' => array(),
    'strong' => array(),
    'del' => array(
    'datetime' => true,
    ),
    'span' => array(
    'lang' => array(),
    'style' => array()
    ),
    'p' => array(
    'dir' => array(),
    'style' => array()
    ),
    'div' => array(
    'class' => array()
    ),
    // Lists
    'ul' => array(),
    'ol' => array(
    'start' => true,
    ),
    'li' => array(),
     
    // Images
    'img' => array(
    'src' => true,
    'border' => true,
    'alt' => true,
    'height' => true,
    'width' => true,
    )
    );
    }
    }
    add_filter( 'bbp_kses_allowed_tags', 'ja_filter_bbpress_allowed_tags' );
    #137083
    jbuesking
    Participant

    When I run the script with the convert users option checked it throws the following error:

    WordPress database error: [Unknown column 'users.userid' in 'field list']
    SELECT convert(users.userid USING "utf8") AS userid,convert(users.password USING "utf8") AS password,convert(users.username USING "utf8") AS username,convert(users.email USING "utf8") AS email,convert(users.registerDate USING "utf8") AS registerDate FROM tvc4d_users AS users LIMIT 0, 100

    It appears to work if I don’t try to convert the users. I’ll dig into this later this evening but wanted to see if it’s something obvious?

Viewing 25 results - 13,751 through 13,775 (of 32,503 total)
Skip to toolbar