Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,751 through 13,775 (of 32,519 total)
  • Author
    Search Results
  • #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
    #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)

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