Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,751 through 13,775 (of 32,522 total)
  • Author
    Search Results
  • #137330

    Topic: Topic Formats

    in forum Plugins
    Topher
    Participant

    I’m looking fo something that will give me Topic Formats, like Post Formats. I’d like a topic post to be Image, or Audio, etc.

    I’ve hunted around and didn’t find anything, is there something I’m missing?

    Else, where would I look to code this in?

    #137307
    matt_peapod
    Participant

    Hey,

    I found the same issue. In my case I patched bbPress to bail if the page isn’t a bbpress page. so in bbpress/includes/common/template.php line 2504 (include bbp_title() function, bbpress 2.4):

    if (!is_bbpress()) {
      return $title;
    }

    This must be a bug. Where can I submit a patch for this, or check if it’s a known bug?

    Thanks,
    Matt

    #137290

    In reply to: Conditionals

    Stephen Edgar
    Keymaster

    Cool… One day we will get a codex page ourselves 🙂

    #137285
    Xevo
    Participant

    You’d have to adjust the standard loop output, you can do this in your bbpress theme.

    Line 32 of content-single-topic contains:
    bbp_has_replies()
    Turn it into:
    bbp_has_replies('order=DESC')
    Havent tried this though, but it should work.

    #137284
    Xevo
    Participant

    You can change it in your bbpress theme.

    Line 29 of form-reply.php: <legend><?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?></legend>

    #137280

    Topic: Hey guys!

    in forum Troubleshooting
    bluesage
    Participant

    New guy here, done the research yesterday and today but I’m at a loss. I did the workaround where you add in the bbpress code to a page and make it your home page but if you wouldn’t mind taking a look at my homepage: http://www.lakexeno.com you’ll notice there’s just a big white box on top of the forum coding?

    Any help would be *greatly* appreciated.

    Thanks so much!

    #137275

    In reply to: Duplicate Page Titles

    FreeWPress
    Participant

    I have a solution… thi is a correct code.. it work fine…

    function bbpress_title_duplicates($title, $sep, $seplocation){
    	$usrurl = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    	if (false !== strpos($usrurl,'users')) {
    		if (false !== strpos($usrurl,'topics')) {
        		$title = str_replace('Il profilo di', 'Argomenti aperti da', $title);
    		} elseif (false !== strpos($usrurl,'replies')) {
        		$title = str_replace('Il profilo di', 'Risposte create da', $title);
    		} elseif (false !== strpos($usrurl,'subscriptions')) {
        		$title = str_replace('Il profilo di', 'Discussioni sottoscritte da', $title);
    		} elseif (false !== strpos($usrurl,'favorites')) {
        		$title = str_replace('Il profilo di', 'Topic preferiti da', $title);
    		} else {
        	$title = str_replace('Il profilo di', 'Il Profilo di', $title);
    		}
        }
        return $title;
    }
    add_filter('bbp_title', 'bbpress_title_duplicates');
    #137274

    In reply to: Duplicate Page Titles

    Todd – WireFlare
    Participant

    FreeWPress,

    My sincere apologies. I forgot one line of code on the blog post. I’ve added it and corrected the blog post to reflect the forgotten line.

    Above all of the code that you have add this:

    add_filter('wp_title', 'bbpress_title_duplicates', 20, 3 );

    Again, my apologies for the oversight.

    #137273

    In reply to: Duplicate Page Titles

    FreeWPress
    Participant

    This is a print screen of my code:
    <title> Il profilo di sole38</title>

    I have written exactly this in function and not working!! Incredible!!

    Is too sensitive.. eheheheh…..

    #137270

    In reply to: Duplicate Page Titles

    FreeWPress
    Participant
    function bbpress_title_duplicates($title, $sep, $seplocation){
    	$usrurl = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    	if (false !== strpos($usrurl,'users')) {
    		if (false !== strpos($usrurl,'topics')) {
        		$title = str_replace('il profilo di', 'Argomenti aperti - test', $title);
    		} elseif (false !== strpos($usrurl,'replies')) {
        		$title = str_replace('il profilo di', 'Risposte create - test', $title);
    		} elseif (false !== strpos($usrurl,'subscriptions')) {
        		$title = str_replace('il profilo di', 'Discussioni sottoscritte - test', $title);
    		} elseif (false !== strpos($usrurl,'favorites')) {
        		$title = str_replace('il profilo di', 'Topic preferiti - test', $title);
    		} else {
        	$title = str_replace('il profilo di', 'Profilo - p', $title);
    		}
        }
        return $title;
    }

    Nothing changed… show only: “Il profilo di nickname” Do not replace nothing.. This is impossible! :/

    #137264

    In reply to: Duplicate Page Titles

    Todd – WireFlare
    Participant

    FreeWPress,

    What using this assumes:

    1 – That you are using BBPress version 2.4
    2 – That you don’t have anything else modifying these titles
    3 – That you haven’t changed the structure of the titles via the core files.
    4 – Your user slugs are as follows:
    User Base :users
    Topics Started :topics
    Replies Created :replies
    Favorite Topics :favorites
    Topic Subscriptions :subscriptions

    Following the above I have no clue why you would see “Profile Of”. The way that BBPress generates this Title is clearly shown on line 2563 of /wp-content/plugins/bbpress/includes/common/template.php which shows:

    	} elseif ( bbp_is_single_user() ) {
    
    		// Current users profile
    		if ( bbp_is_user_home() ) {
    			$new_title['text'] = esc_attr__( 'Your Profile', 'bbpress' );
    
    		// Other users profile
    		} else {
    			$new_title['text']   = get_userdata( bbp_get_user_id() )->display_name;
    			$new_title['format'] = esc_attr__( "%s's Profile", 'bbpress' );
    		}

    (Note that your file may contain $title in lieu of $new_title, this is because we are using a forked version, but that doesn’t change anything.)

    Therefore, the output of this should be either “Your Profile” or “Username’s ($s’s) Profile”. No where in that is “Profile of”. If you click on your profile here on bbpress.org you’ll see that it says “Your Profile” as well.

    Please check that everything in 1-4 is correct. This is the default way that BBPress is setup.

    Hope that helps. I have also added these requirements to my blog post to help clarify.

    #137258

    In reply to: Duplicate Page Titles

    FreeWPress
    Participant

    Yes i understand this problem, in effect, user title for, favorite, reply created and topic started is egual… Now i have put your code:

    function bbpress_title_duplicates($title, $sep, $seplocation){
    	$usrurl = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    	if (false !== strpos($usrurl,'users')) {
    		if (false !== strpos($usrurl,'topics')) {
        		$title = str_replace('Profile', 'Topics Started - TSCADFX', $title);
    		} elseif (false !== strpos($usrurl,'replies')) {
        		$title = str_replace('Profile', 'Replies Created - TSCADFX', $title);
    		} elseif (false !== strpos($usrurl,'subscriptions')) {
        		$title = str_replace('Profile', 'Subscribed Threads - TSCADFX', $title);
    		} elseif (false !== strpos($usrurl,'favorites')) {
        		$title = str_replace('Profile', 'Favorite Threads - TSCADFX', $title);
    		} else {
        	$title = str_replace('Profile', 'Profile - TSCADFX', $title);
    		}
        }
        return $title;
    }

    But don’t change title page, it only sho profile of… and nothing.. 🙁

    #137243
    CC-Cailin
    Participant

    Hi, I want to edit the way the subforums on the homepage is displayed, so that it looks sort of like an ipb/phpbb forum. I have been able to edit the css and move the code around. But I want to know, is there a way to get the subforum’s description & freshness displayed on the homepage?

    I’ve googled A LOT and seems like everyone is looking for this. I found this post, but the solution on there doesn’t seem to be working anymore…
    http://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/page/2/#post-137229

    #137234

    Topic: LIST FORUMS

    in forum Plugins
    Caboni
    Participant

    Recommend a plugin?
    Hi, I’m using the latest Buddypress 1.8 & BBpress 2.4 with usergroups & sitewide forums setup. Everything seems great but is it possible to keep sitewide forums separated from group forums; like displaying them on different pages. Also how to view only 10 forums per page. Im not that BP or BBpress code savy so it would be a great help if someone gives me clear instructions. Struggling for a long time and I seem to be hitting a dead end. Any help would be much appreciated.

    #137233

    Topic: LIST FORUMS

    in forum Plugins
    Caboni
    Participant

    Recommend a plugin?
    Hi, I’m using the latest Buddypress 1.8 & BBpress 2.4 with usergroups & sitewide forums setup. Everything seems great but is it possible to keep sitewide forums separated from group forums; like displaying them on different pages. Also how to view only 10 forums per page. Im not that BP or BBpress code savy so it would be a great help if someone gives me clear instructions. Struggling for a long time and I seem to be hitting a dead end. Any help would be much appreciated.

    #137231
    Caboni
    Participant

    Hi, I’m using the latest Buddypress 1.8 & BBpress 2.4 with usergroups & sitewide forums setup. Everything seems great but is it possible to keep sitewide forums separated from group forums; like displaying them on different pages. Also how to view only 10 forums per page. Im not that BP or BBpress code savy so it would be a great help if someone gives me clear instructions. Struggling for a long time and I seem to be hitting a dead end. Any help would be much appreciated. PJ

    #137217
    Stephen Edgar
    Keymaster

    I just had a quick read of those links you mentioned and I like what I read.

    I wondered if there was a setup of this using Vagrant as I have been playing with this recently.

    I had a read of this and then cloned this GitHub repo to my local machine.

    Copied the Vagrantfile.redis file to Vagrantfile. and made a couple of network chances to the Vagrantfile to suit my local setup.

    Ran Vagrant Up from the console and made a coffee.

    Configured WordPress’ 5 minute install and everything was up and running in under 10 minutes 🙂

    Sadly I’ve hit a brick wall trying to install bbPress (or any plugin for that matter) that I will most definitely look further into tomorrow.

    #137209
    jbuesking
    Participant

    Thanks for you reply.

    I am not getting the following error:

    WordPress database error: [Table 'insomnia_tccjoomla.tvc4d_user' doesn't exist]
    SELECT convert(user.userid USING "utf8") AS userid,convert(user.password USING "utf8") AS password,convert(user.salt USING "utf8") AS salt,convert(user.username USING "utf8") AS username,convert(user.email USING "utf8") AS email,convert(user.homepage USING "utf8") AS homepage,convert(user.joindate USING "utf8") AS joindate,convert(user.aim USING "utf8") AS aim,convert(user.yahoo USING "utf8") AS yahoo,convert(user.icq USING "utf8") AS icq,convert(user.msn USING "utf8") AS msn,convert(user.skype USING "utf8") AS skype FROM tvc4d_user AS user LIMIT 0, 100

    I believe the table it should be looking for is: tccjoomla.tvc4d_users not user

    #137200
    Nykess
    Participant

    Yes, that’s already the code I’m using, but I am looking now to add two columns. Please look through thread.

    Thank you.

    #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
Viewing 25 results - 13,751 through 13,775 (of 32,522 total)
Skip to toolbar