Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 2,401 through 2,425 (of 6,788 total)
  • Author
    Search Results
  • #160470
    Stephen Edgar
    Keymaster

    Hmmm…. I’m assuming in that case then you have no other parts (or major parts at least) missing from the DB schema you posted in the original post? e.g. No topic_title table listing the topics separately.

    If that is the case you’d now want to ignore those mappings I posted, rather remap them to the the topic and reply sections instead of the forums section.

    This is now where we add some limiting SQL expressions to separate your topics from replies.

    In the Example.php file at the end of the topics section you’ll see:

    
    // Setup any table joins needed for the topic section
    $this->field_map[] = array(
    	'from_tablename'  => 'replies_table',
    	'from_fieldname'  => 'the_topic_id',
    	'join_tablename'  => 'topics_table',
    	'join_type'       => 'INNER',
    	'join_expression' => 'USING replies_table.the_topic_id = topics_table.the_topic_id',
    	'from_expression' => 'WHERE forums_table.the_topic_id = 0',
    	'to_type'         => 'topic'
    );
    

    We’ll modify that to the following:

    
    // Setup any table joins needed for the topic section
    $this->field_map[] = array(
    	'from_tablename'  => 'forum_table',
    	'from_expression' => 'WHERE forums_table.Forum_Parent = 0',
    	'to_type'         => 'topic'
    );
    

    Similarly at the end of the replies section, we change that join expression to:

    
    // Setup any table joins needed for the topic section
    $this->field_map[] = array(
    	'from_tablename'  => 'forum_table',
    	'from_expression' => 'WHERE forums_table.Forum_Parent != 0',
    	'to_type'         => 'reply'
    );
    

    Now assuming I’ve got the logic correct in understanding your Forum_Parent/Forum_Ancestor what equals 0 and what does not equal 0 then we should be good to go 🙂

    So the topics join expression is limiting the queries for your ‘thread starter’ topics, then in the reply section expression we ignore those previously ignored topics already imported and are assuming the remaining entries in the table are replies to those topics. The Forum_Ancestor of each reply should then point to the “parent topic ID’ mapping.

    I think that’s it, one thing you’ll notice is that we also are not actually creating any forums to import the topics into, all the topics will import without being allocated to a forum, this can be bulk updated later, actually we can set a default forum for topics and relies, I’ll get back to you on that bit of code that I can’t remember of the top of my head right this second 😉

    #160467
    Robin W
    Moderator

    Donlt worry we all had to start at some stage !!

    1.

    Now, because I did that, anyone that registers registers for a WordPress account. I’m not sure if that’s correct.

    yes that is how bbpress works it uses a worpress account. As long as you set Dashbiard>settings>general default to subscriber, your user won’t be able to do anything in wordpress

    2. set the admins to hidden as per docs

    Forum visibility:

    Public – Anyone can see these forums
    Private – Only logged in registered users with a forum role can see these forums
    Hidden: Only Moderators/keymasters can see these forums

    If you want more granular access, then use

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

    3. no sorry not a ‘diary’ way- wordpress not bbpress so try their forum, but

    4.

    I am pretty sure I can do it via the forum, I just don’t know how to do it. I know it’s a permissions thing and I can make certain posts hidden.

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

    and set a forum per user, but you’ll need to do this manually as part of user set-up, so if only say one as day signing up that would be fine, but if hundreds !!

    4.

    ‘I was just told we need to also make it so that the posters are anonymous’

    No idea why, it is entirely up to you how you set you site up
    – if you want no-one to comment then set comments off in settings>discussion>default article settings.
    – if you want just registered – then also set ‘users must be registerd…’ in other comment settings

    Come back if you need further help 🙂

    nate22
    Participant

    Okay, I fixed the conflict by going to pages > trash and seeing that the “forums” page was in there so I clicked “delete permanently” and now my forums first page is back.

    But how do I get rid of this .has-right-sidebar class? It shouldn’t be there, anyway. Why is it there be default?

    #160417
    Robkk
    Moderator

    i think the 2.4 version was suppose to be bbPress.

    so it should be patched up.

    see if its something else causing the issue.

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

    #160407
    tummybos
    Participant

    Thanks very much @robkk. The link on wp user query is a great tool to solve my problem.
    Concerning the use of BuddyPress, i think the link will be a problem in the sense that the links to the profiles that will be displayed will not link to the users forum profile. I want the links to go to user’s bbPress profile page, not the default wordpress user page nor the buddypress profile.
    So I have decided to go by the Wp user query way, but please how am I going to create the php code. Am i supposed to wrote it in a page? or where should I put the code and how will i create the page?
    Thanks.

    #160406
    Robkk
    Moderator

    @gptxffa

    Showing the comment your are replying to next to the reply to: text bbPress does not do that. That sounds like some custom development go to http://jobs.wordpress.net/ and post a job.

    as for reply threading , i guess not threading??

    see if its a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

    #160372
    Robin W
    Moderator

    ok, undo that previous change by deleting that file, it was rubbish !

    Then in your function file add

    function default_reply_subscribed() {
    
    		// Get _POST data  IE is this a first post of a topic?
    		if ( bbp_is_post_request() && isset( $_POST['bbp_topic_subscription'] ) ) {
    			$topic_subscribed = (bool) $_POST['bbp_topic_subscription'];
    
    		// Get edit data  IE either the author or someone else is editing a topic or reply
    		} elseif ( bbp_is_topic_edit() || bbp_is_reply_edit() ) {
    
    			// Get current posts author
    			$post_author = bbp_get_global_post_field( 'post_author', 'raw' );
    
    			// Post author is not the current user EG a moderator is altering this. In this case we'll leave the default to blank, 
    			//as much of the time mods are correcting or moderating, their not interested in the topic itself !
    			if ( bbp_get_current_user_id() !== $post_author ) {
    				$topic_subscribed = bbp_is_user_subscribed_to_topic( $post_author );
    
    			// Post author is the current user  IE you're editing your own post, so default should be to see any replies
    			} else {
    				$topic_subscribed = true ;
    				//the next line is what it used to say instead of true
    				//bbp_is_user_subscribed_to_topic( bbp_get_current_user_id() );
    			}
    
    		// Get current status
    		} elseif ( bbp_is_single_topic() ) {
    			//the user is writing a new reply ?
    			$topic_subscribed = true ;
    			//the next line is what it used to say instead of true
    			//bbp_is_user_subscribed_to_topic( bbp_get_current_user_id() );
    
    		// No data
    		} else {
    			$topic_subscribed = true;
    			//used to say false !
    		}
    
    		// Get checked output
    		$checked = checked( $topic_subscribed, true, false );
    
    		return apply_filters( 'default_reply_subscribed', $checked, $topic_subscribed );
    	}
    	
    add_filter ('bbp_get_form_topic_subscribed', 'default_reply_subscribed') ;
    
    function default_log_edit_false() {
    
    		// Get _POST data
    		if ( bbp_is_post_request() && isset( $_POST['bbp_log_reply_edit'] ) ) {
    			$reply_revision = $_POST['bbp_log_reply_edit'];
    
    		// No data
    		} else {
    			$reply_revision = 0;
    		}
    
    		return apply_filters( 'default_log_edit_false', checked( $reply_revision, true, false ) );
    	}
    
    add_filter ('bbp_get_form_reply_log_edit', 'default_log_edit_false' ) ;

    Functions files and child themes – explained !

    that should do both topic edit and reply subscribed.

    #160361
    David13_13
    Participant

    I have changed this code too:

    `<input name=”bbp_log_reply_edit” id=”bbp_log_reply_edit” type=”checkbox” value=”0″ <?php bbp_form_reply_log_edit(); ?> tabindex=”<?php bbp_tab_index(); ?>” />

    in the form-reply.php, but the checkbox is still checked by default

    #160358
    Robin W
    Moderator

    ok thanks I can see it now.

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php
    bbPress will now use this template instead of the original

    then edit this file to change line 183

    <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" 
    

    etc.

    to

    <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="0" 
    

    etc.

    It will then be unchecked by default

    #160343
    Lisa
    Participant

    I’ve made the decision to develop my new websites using WordPress. My goal is to eventually re-write my PHP code as a WordPress plugin, but, until then I need to use what’s available, and bbPress seems like a good option. I need to import/map my current tables to work with bbPRess, but not sure how?

    Here is the existing schema along with one parent record, and one child record:

    Forum_1962 (
    Forum mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
    Forum_Title varchar(200) NOT NULL DEFAULT ”,
    Forum_Author varchar(100) NOT NULL DEFAULT ”,
    Forum_Author_Email varchar(100) NOT NULL DEFAULT ”,
    Forum_Text text NOT NULL,
    Forum_Parent mediumint(8) unsigned NOT NULL DEFAULT ‘0’,
    Forum_Ancestor mediumint(8) unsigned NOT NULL DEFAULT ‘0’,
    Forum_Category smallint(5) unsigned NOT NULL DEFAULT ‘0’,
    Forum_Approved enum(‘0′,’1’) NOT NULL DEFAULT ‘1’,
    Forum_Entered_by varchar(10) NOT NULL DEFAULT ‘0’,
    Forum_Date_Created datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
    Forum_Last_Changed timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    PRIMARY KEY (Forum),
    KEY Forum_Parent (Forum_Parent),
    KEY Forum_Category (Forum_Category),
    KEY Forum_Approved (Forum_Approved),
    FULLTEXT KEY Forum_Title (Forum_Title),
    FULLTEXT KEY Forum_Text (Forum_Text)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

    Parent thread
    =============
    (19261, ‘Can I rent an RV?’, ‘BillB’, ‘bill@web-crafter.net’, ‘I\’d like to give RVing a try, but there\’s no way I\’m going to plunk down thousands of $$ to buy an RV. Is it possible to rent an RV like you\’d a car?’, 0, 19261, 1962, ‘1’, ‘rvcn’, ‘2002-12-12 13:52:29’, ‘2002-12-12 13:53:25’);

    Ancestor thread
    ===============
    (19262, ‘Re: Can I rent an RV?’, ‘Mark’, ‘mark@ittelligent.com’, ‘No problem. Just check your yellow pages for a rental agency in your area. I know there are a few national outfits too. Cruise America and El Monte come to mind off the top of my head.’, 19261, 19261, 1962, ‘1’, ”, ‘2002-12-12 13:59:42’, ‘2002-12-12 13:59:42’);

    You’ll notice that there are fields for both parent and ancestor, which allows for infinite sub-topic threads (those replies to replies under one parent). Also, I the author name and email are also stored in this table, and not tied to a separate user table (so will need to address that). Each MySQL dump is between 1MB and 3MB.

    Need any more information? Please advise.

    My goal is one of two options:

    1. Import/Map existing table dumps in several websites to WordPress and bbPress using above forum schema as source, OR
    2. Convert my existing PHP forum code to be compatible with WordPress and forget about bbPress altogether if I can’t easily map the table (I don’t know WordPress enough to even think about doing this myself, even though the code is simple and fast, and will ne advice on someone who can)

    I am doing this so I can better control the mobile templates and have a more robust way of controlling my websites. I need to do this for about 6 websites, and would like the method to do this myself after the first time.

    Thanks in advance,

    Lisa

    #160337
    David13_13
    Participant

    Hello to all

    The checkbox for “Keep a log of this edit” is marked by default. Is there a way to have it unchecked by default?

    Thanks a lot!

    #160335

    In reply to: Login fails for Chrome

    Robin W
    Moderator

    if you’ve tried a default theme, them possibly a plugin conflict

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    the come back

    #160321
    screenwavemedia
    Participant

    content-search.php is just the “inner” part of the search. It seems it is defaulting to page.php. However, I’m not seeing anything to differentiate a search page from any other page. It is also interesting to note that the “post type” of the search results page is just a blank value.

    #160320

    Check in bbpress/templates/default/bbpress/content-search.php

    bbPress employs some “theme compatibility” magic to insert itself into your existing WordPress theme, and that directory is where those template parts live to try and fill in the gaps

    #160314
    screenwavemedia
    Participant

    I’m extending an existing WordPress theme with bbpress functionality. I’ve gotten everything up and running except I can’t seem to find the base template for search results to customize everything AROUND the BBPress search results code. It looks like by default it’s pulling from page.php or single.php, but I would like to use a more specific template for it. I’m not seeing anything in Extras that fits the bill.

    #160286
    alanr1954
    Participant

    Thanks to JJJ’s excellent plugin, I can now do what the basic bbPress said it would do, so that ‘spectators’ can read but not post to private forums. However, is there any way that I can set this as the default option, so that I don’t have to carefully edit the permission on every single user who subscribes?
    Thanks
    Alan

    #160251
    MFSAM
    Participant

    Hi,

    I have bbpress installed on a multisite (network activated) but for some reason the CSS and JS is not being linked to properly. When looking for them the site is looking in http://roobla.com/var/sites/etc/etc/etc/public_html/wp-content/plugins/bbpress/templates/default/js/editor.js and /css/bbpress.css.

    You can visit any page on my website (roobla.com) to see the JS like this in practice. I had to deregister and reregister the CSS but I’d prefer to not have to.

    The network’s primary domain is cultiplex.com and Roobla is a subdomain.

    Can anyone shed any light on what could be causing this, please?

    Thank you for your help,
    Sam

    #160207
    andrew55
    Participant

    I’ve been searching, and there seems to be no solution for creating a unique topic icon for each individual forum (i.e – to be displayed to the left of each forum title/description). There is a plugin which pulls the image from the first topic, but that want work for many such as myself.

    I’m no coder by any means, but my idea was to insert some simple php (if statement) in the template file, maybe right after “bbp-forum-info” in loop-forums.php

    Something such as this:


    <?php
    global $post;
    if ( is_single('17', $post->ID) ) {
    echo '<div class="forum_pic1"></div>';
    } elseif ( is_single('19', $post->ID) ) {
    echo '<div class="forum_pic2"></div>';
    } elseif ( is_single('18', $post->ID) ) {
    echo '<div class="forum_pic3"></div>';
    } else {
    echo '<div class="forum_pic_default"></div>';
    }
    ?>

    The topic numbers would equal the forum topics. This would allow a unique topic icon to be shown for each unique forum. The “forum_pic” divs could be used to display a background image or even a font-awesome font (using css background property).

    Anyone have any suggestions for this? Will the idea (with proper code) work? Anybody with some php under their belt willing to take a shot?

    Or, is there another completely different method to accomplish this, which is easier?

    Thanks for any suggestions.

    FlyFishersCorner
    Participant

    Thanks for the reply!

    The duplicate text I’m talking about that I want to remove is the bbpress default post count text (which counts posts in a specific topic). I only want it to show the text from bbp topic count.

    An example can be seen at: http://flyfisherscorner.com/topic/lets-get-the-conversation-going-where-are-you-from/

    I want to remove the “Post Count: 1” generated by default and keep the “Total Posts: #”

    Thanks again!

    #160148
    Robkk
    Moderator

    are you expecting an advanced search that would be similar to goole

    like say i search this

    shark + attack – sharkweek ??

    you might need to use a search plugin to make the default search more advanced if you want it that way.

    #160144

    In reply to: Tittle

    Robkk
    Moderator

    if your talking about the category layout that default phpbb usually has.

    Then use this file

    https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout

    download the zip.

    take the loop-forums.php file and put it into your child theme in a folder called bbpress

    https://wordpress.org/plugins/bbp-style-pack/

    also has a file like this but i think you have to manually install this too.

    #160142
    Robkk
    Moderator

    bbpress user profiles are like this usually , example.com/forums/profile/name

    i think you are using BuddyPress hence the default members slug.

    you should contact them on figuring out how to change them.

    https://buddypress.org/support/

    notifications section sounds like BuddyPress too, so follow that link and contact them.

    #160130
    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

    #160129

    In reply to: bbP signatures

    Robin W
    Moderator

    1. sorry I don’t understand what you mean by ‘site wide forums’ – by default forums are site wide. Can you come back and explain a bit more

    2. The plugin adds exactly that to the bbpress profile. It doesn’t to the toolbar profile, which is possibly what you mean. Toolbars are really for admins, they detract from the site theme.

    #160126
    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then come back

Viewing 25 results - 2,401 through 2,425 (of 6,788 total)
Skip to toolbar