Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,976 through 12,000 (of 32,504 total)
  • Author
    Search Results
  • #145777
    laternastudio
    Participant

    Hi there,

    I’ve spent a while searching the forums/web regarding custom views, but am a little bit stumped at the moment. Some of the only reference that I’ve found is a bit outdated (though it still seems to work) and incomplete.

    I’d like to create 2 custom views:

    • Display a particular user’s favorites (let’s say user_id is hard-coded to 2)
    • Display a particular user’s subscribed topics (again, let’s say user_id is hard-coded to 2)

    Any points in the right direction? Ideas for resources on the topic of custom views?

    #145774
    laternastudio
    Participant

    Sorry, that wasn’t clear in my first post. They’ll regardless of which user is logged in, they’ll need to go here:

    http://www.example.com/profile

    The session data will determine which information to display.

    #145761
    #145757

    In reply to: Freshness for Category

    Robin W
    Moderator

    Chill, we’ll hopefully work it out.

    you might (should) want to create a test site. Whilst that may seem daunting, it is quite easy to do, and once done a great way to test stuff without risking the live site.

    see

    https://codex.bbpress.org/creating-a-test-site/

    Couple of questons when you are ready

    1. The page you are linking to – this is just a members page, not a link to the forum pages?
    2. What is your forum slug called (go into dashboard>settings>forums and look for forum slug.

    #145756
    Robin W
    Moderator

    Please don’t apologise for inexperience, we’re were all there once !

    Just double checked it and the code is fine.

    Probably an issue with you either not copying across fully, or a paste error.

    Delete the code, copy across again and retry

    if it still fails, come back with the bit of code that is on the line it falls at (and the line before please!)

    and I’ll look further

    #145752

    In reply to: Freshness for Category

    mcleandesign
    Participant

    Boy do I feel like a fish out of water here…sheesh. I’ve been designing for 30+ years and just now moving into this new medium, it’s challenging me for sure. I’m pretty insecure about messing with the code on my own, but have some folks I can draw in to help me with this. But before I do any of that I’ll just throw a few more thoughts into the ring just to clarify. First, yes, this is a paid theme from themeforest as well as the pro version of S2, which is what my suspect is causing the conflict (due to other things I’ve read online. I’ve sent a query to S2 to see what their thoughts are as well).

    I guess what I’m unsure about in your reply above is about the page templates. The only thing I’ve done is install bbPress, click the activate button, and then the sidebar widget disappears. To test this isn’t template related I created a new page, not based on any theme, just added a full width panel and my set the page to show my left sidebar with custom widget.

    I previewed the page, which looked accurate, then activated the bbPress plug in and as suspected, the left sidebar widget disappeared. The theme still show the left sidebar space, but no widget is present.

    So, here I am scratching my head… feeling like a dummy. My first thought is, get another cup of coffee. Second thought is hire you to fix it for me <grin>. #2 sounds like it has much better success. Although, it doesn’t teach me how to overcome my challenge, so, I guess in the long run that is self defeating.

    Ideally, I’d like the forum to function within the space to the right of our sidebar, but haven’t even begun to think about how to even set up the forum yet, still trying to figure out why it’s messing up what I’ve already created.

    While you’re reading this (and probably laughing at my inexperience…which is OK, I laugh at myself all the time) I’ll see if I can decipher the step-by-step instructions. And, truly, if you want to jump in and do some private consultation I’d be happy to give you my phone number and we can talk personally. Don’t know if that breaks rules or what..but just thought I’d throw it on the table.

    Thanks for your help Robin.. I appreciate it more than you know…truly. Also, I’m going to be out of the office most of the day, so we may have to continue this conversation on Monday.

    d

    #145743
    koendb
    Participant

    I had to read better. It was in the Codex is_page() function reference.

    Had to reset the query after the loop:
    wp_reset_query(); // and after that:
    if(is_page()){ // etc.

    Mike
    Participant

    Thanks, but I finished and moved on. I tried and failed with several different approaches like this, but copying and altering 2 functions took less than 2 minutes as the //comments were clear about how to disable the AJAX.

    I took me almost 2 weeks part-time to customise the bbpress forum. I spent a lot of time messing with IDs and classes to target CSS changes and trying to figure out the proper code to modify defaults.

    For example finding the code to return just an “edit” for replies was a matter of great googling and some luck.

    #145740

    In reply to: Freshness for Category

    Robin W
    Moderator

    ok, I presume that bbpress is deactivated on the live site at the moment.

    I suspect that bbpress is using the wrong page template probably the one that the page “what the hinge” is using.

    Given that this is a paid theme from themeforest, so may have very complicated page templates, can you look and see what page templates are available that bbpress might be using

    see

    Step by step guide to setting up a bbPress forum – Part 1

    and come back

    #145738
    Robin W
    Moderator

    add the following to your functions file, and the sub forum descriptions will display

    //This function adds descriptions to the sub forums
    function custom_list_forums( $args = '' ) {
    
    	// Define used variables
    	$output = $sub_forums = $topic_count = $reply_count = $counts = '';
    	$i = 0;
    	$count = array();
    
    	// Parse arguments against default values
    	$r = bbp_parse_args( $args, array(
    		'before'            => '<ul class="bbp-forums-list">',
    		'after'             => '</ul>',
    		'link_before'       => '<li class="bbp-forum">',
    		'link_after'        => '</li>',
    		'count_before'      => ' (',
    		'count_after'       => ')',
    		'count_sep'         => ', ',
    		'separator'         => ', ',
    		'forum_id'          => '',
    		'show_topic_count'  => true,
    		'show_reply_count'  => true,
    	), 'list_forums' );
    
    	// Loop through forums and create a list
    	$sub_forums = bbp_forum_get_subforums( $r['forum_id'] );
    	if ( !empty( $sub_forums ) ) {
    
    		// Total count (for separator)
    		$total_subs = count( $sub_forums );
    		foreach ( $sub_forums as $sub_forum ) {
    			$i++; // Separator count
    
    			// Get forum details
    			$count     = array();
    			$show_sep  = $total_subs > $i ? $r['separator'] : '';
    			$permalink = bbp_get_forum_permalink( $sub_forum->ID );
    			$title     = bbp_get_forum_title( $sub_forum->ID );
    			$content = bbp_get_forum_content($sub_forum->ID) ;
    
    			// Show topic count
    			if ( !empty( $r['show_topic_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    				$count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );
    			}
    
    			// Show reply count
    			if ( !empty( $r['show_reply_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    				$count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );
    			}
    
    			// Counts to show
    			if ( !empty( $count ) ) {
    				$counts = $r['count_before'] . implode( $r['count_sep'], $count ) . $r['count_after'];
    			}
    
    			// Build this sub forums link
    			$output .= $r['before'].$r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'].'<div class="bbp-forum-content">'.$content.'</div>'.$r['after'];
    		}
    
    		// Output the list
    		return $output ;
    	}
    }
    
    add_filter('bbp_list_forums', 'custom_list_forums' );
    tharsheblows
    Participant

    Hi Mike – to filter the ajax call try this :

    function hide_before2 ($args = array() ) {
    $args['before'] = '&nbsp';
    $args['subscribe'] = '<i class="genericon genericon-subscribe"></i>Subscribe';  
    $args['unsubscribe'] = '<i class="genericon genericon-unsubscribe"></i>Unsubscribe'; // or whatever
     
     return $args;
    } 
    
    add_filter('bbp_before_get_user_subscribe_link_parse_args', 'hide_before2');

    <can people see edits? I’m just wondering if anyone can see my stupid errors>

    Anyway, you should, I think, be able to use the above *instead* of your copied functions as it will work with the initial ones too not just after the ajax call.

    #145734
    tharsheblows
    Participant

    I am totally guessing with this – but I think you’ll be using this on a single topic right? So maybe try bbp_is_single_topic() . Here is the list of conditional tags I looked at: https://codex.bbpress.org/bbpress-conditional-tags/

    #145712
    Robin W
    Moderator

    1) have you set up your email address in dashboard>settings>general?

    2) If registration is automatic, then they’ll be sent a password. They can change this in their bbpress profile – they can just click on their avatar, or you can add this to wdigets or the menu – see

    Layout and functionality – Examples you can use

    #145702
    Stephen Edgar
    Keymaster

    A clean install breaks it again. I’m not sure what it is that out-of-the-box would break it like that, but it appears there is a conflict between BuddyPress 2.0 and bbPress 2.5.3.

    This is extremely rare, not saying it can’t happen, the fact that BuddyPress uses bbPress for forums 99% of the time the BuddyPress developers will have bbPress enabled. I have BuddyPress enabled for ~75% of the time and typically only deactivate it when working on bbPress profiles. In short we usually catch any conflicts ourselves before releasing a new version of either plugin.

    Also the fact that I have both plugins activated now using the same slugs you are trying to use and don’t get that error eliminates the plugins having a conflict as the issue in this case.

    Can you spin up an entirely fresh WordPress install with just bbPress and BuddyPress and use the Twenty Fourteen theme and see if the issue still occurs.

    I just went trawling through the raw database options for WordPress in wp_options trying to find something that may cause the conflict and couldn’t find anything of interest.

    #145696
    Stephen Edgar
    Keymaster

    Throughout WordPress and bbPress and BuddyPress included having posts, pages, terms can NOT have the same slug, most likely you have something else either titled or using the slug discuss and this includes any items in trash as even though they are in the trash they still reserve that slug and it is not released until the item is removed from the trash.

    I cant seem to find an error for the term “Possible BuddyPress Conflict”, where are you seeing this error?

    #145694
    Stephen Edgar
    Keymaster

    Doing so breaks the page. It creates a conflict by attempting to dynamically generate a forum root, using the same url as the wordpress page which is using the shortcode.

    This works fine for me and is part of the backend philosophy of how bbPress works allowing a page with the same name as the forum root to take precedence.

    * Created a page titled discuss and added the shortcode [bbp-forum-index]
    * Changed the bbPress setting ‘Forum Root Slug -> Forum Root’ to discuss

    So now for the site http://example.com/
    – A forum list at http://example.com/discuss/
    – A topic at http://example.com/discuss/topic/exammple-topic/
    – A forum at http://example.com/discuss/forum/example-forum/

    #145693
    Stephen Edgar
    Keymaster

    After 1 day importet from e107 forum tu bbpress! Alleluia!

    Excellent šŸ™‚

    old code for video youtube not fix

    I’ll take a look at the BBCode’s and see what I can find and add some conversions for them (if I can can)

    utf8 encoding accented words not fix

    Hmmmm, this might be a little harder, will take a look.

    Stephen for news and content from e107 to wordpress I asked a programmer who will take me some money, if he fails, can you do it?

    I’m not sure I’d be able to help, I have never used e107, I have a basic forum setup and that is it. I do everything I need for bbPress directly in the MySQL database.

    #145690

    In reply to: Allow HTML from users

    rendi edwido
    Participant

    Seen your problem was solved.
    You are so nice to make the guest allow Html code.
    Cheers for you mate

    #145689
    Pasquale Galasso
    Participant

    Hi Stehpen!

    Utenti registrati
    2.169
    Forum
    10
    Discussioni
    4.221
    Repliche
    148.749

    After 1 day importet from e107 forum tu bbpress! Alleluia!

    Error:
    old code for video youtube not fix
    utf8 encoding accented words not fix

    nothing serious!
    Alleluia!

    Stephen for news and content from e107 to wordpress I asked a programmer who will take me some money, if he fails, can you do it?

    Sorry sorry for my english.

    #145684
    Robin W
    Moderator

    on styling, yes all can be changed.

    see

    bbPress Styling Crib

    for lots of help.

    On your page http://atlantacraftbeer.com/beer-exchange/ – what is this page? In theory if it is a normal page with a sidebar, and you put the [bbp-forum-index] shortcode on it it should work.
    How is this page set up?

    #145683
    dustinarmstrong
    Participant

    Doing so breaks the page. It creates a conflict by attempting to dynamically generate a forum root, using the same url as the wordpress page which is using the shortcode.

    #145679
    calebbuxton
    Participant

    Hey All,

    I am new to this plugin and I am trying to adapt it to my website.

    I am trying to place the forum on this page: http://atlantacraftbeer.com/beer-exchange/

    but it is not showing up like it does on the dedicated page: http://atlantacraftbeer.com/forums/forum/atlanta-beer-exchange/

    Is there a way to update my shortcode to have it appear on the page I would like it to?

    ALSO – if you notice the colors and some of the spacing do not really work with my theme. Is there a way I can update the colors and spacing (especially for the register page) using the CSS?

    #145662
    dustinarmstrong
    Participant

    Been looking into this for a few days, and I can’t find a solution.

    By default, bbpress offers two solutions for the index of a forum page:

    • Using the default settings, and a customizable ‘forum root’ available in the settings panel
    • Using a page with a shortcode to implement the section that you want

    However, when you use the shortcode solution, there are two ‘forum root’ urls. The one that is associated with the page you want to use, and the one generated with the ‘forum root’ url.

    For example, let’s say that I created the forum using the shortcode on site.com/discuss, and I need to use custom fields to customize the appearance of that page with a header, a hero graphic, and some descriptive text. I can style it, and it looks perfect. However, the site.com/forums url is still present in the forum topic urls (site.com/forums/post, not site.com/disucss/post), and as it’s own page without the custom styling.

    While I could customize the page template for bbpress on site.com/forums, there are no methods for displaying fields defined by the client/user in the dashboard on that template, completely eliminating the purpose of using the custom page & shortcode option.

    Are there any solutions for this or am I stuck? I’ve yet to find any solutions on this.

    #145654
    qlymax
    Participant

    If you download the buddypress plugin, there will be a widget called: Who’s online ..

    That’s a easy solution for now.

    https://codex.buddypress.org/buddypress-components-and-features/buddypress-widgets/

    #145645
    Stephen Edgar
    Keymaster

    Do you think there is a limit with database size?

    No, all size constraints are upstream and relate directly to WordPress and the size you are talking about is not an issue.

    There is almost 100,000 posts and the database is bigger than 350 Mb

    That’s fine…

    Now the fine print, this will take a while to import, depending on your setup it might be a couple of hours right through to 8, 16 or 24, “how long is a piece of string” theory.

    I am not sure what tools Invision includes but optimizing and cleaning the database first is a very good idea.

    As bbPress imports the topics and replies it parses all the BBCodes ([b][i][url] etc) through a custom conversion script, if it comes across data it doesn’t like it will stop and no longer continue. Thus it is advisable to setup a local MAMP/XAMPP install and perform an import on your local machine as it gives you a good idea on how the process works, how much time it will take and the data integrity. Once your happy with all that then give it a go on your webhost.

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