Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'updated'

Viewing 25 results - 701 through 725 (of 2,090 total)
  • Author
    Search Results
  • #156632
    Robin W
    Moderator

    no problem

    copy this code into a new notepad/notepad++ page

    <?php 
    
    /*
    Plugin Name: BBPress Close Old Posts
    Description: Close BBPress 2.0+ posts that haven't been updated in X days. 
    Author: Raygun
    Version: 0.1
    Author URI: http://madebyraygun.com
    
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */ 
    
    register_activation_hook(__FILE__, 'bbpress_topic_scheduler');
    
    add_action('bbpress_daily_event', 'bbpress_close_old_topics');
    
    function bbpress_topic_scheduler() {
     wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
    }
    
    function bbpress_close_old_topics() {
    	// Auto close old topics
    	$topics_query = array(
    		'author' => 0,
    		'show_stickies' => false,
    		'parent_forum' => 'any',
    		'post_status' => 'publish',
    		'posts_per_page' => -1
    	);
    	if ( bbp_has_topics( $topics_query ) )
    		while( bbp_topics() ) {
    			bbp_the_topic();
    			$topic_id = bbp_get_topic_id();
    			$last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) );
    			if ($last_active < strtotime( '-10 days') )
    				bbp_close_topic( $topic_id );
    		}
    }
    ?>
    

    Change the -10 days right near the bottom to whatever number you want

    Save this file as ‘close_old_topics.php’

    Compress/zip this file, so you have a zipped version.

    then in worpress go to

    Dashboard>plugins>add new and click ‘upload’ and then upload the zipped file you saved above, and then activate.

    Come back if you have any issues, the code is not mine and I have not tested it, but others have used.

    #156579

    In reply to: Hidden private forum

    ttmt
    Participant

    Hi Robin

    I haven’t used your new beta version but the errors seemed to have cleared now.

    Do you think it’s best to use your updated beta version anyway ?

    #156399
    Robkk
    Moderator

    @editor-mike

    you can try it , if it doesnt work deactivate it/uninstall it.

    if it doesnt work then you might need some custom development

    post a job at http://wordpress.net

    mention that plugin though say that you just need an updated/customized to all your needs version of that plugin.

    #156135
    Robin W
    Moderator

    Like many plugins the documentation is not great, and as a humble user I have added to it as I have learnt, a good deal of the documentation is mine.

    bbpress is a complex plugin, and I sympathise that it is not great to grasp.

    With templates, all functions are written to allow you to filter what is there, this is a standard wordpress/php process, so you’re sort of expected to know about it as part of wordpress! I did try to explain it in

    Step by step guide to setting up a bbPress forum – part 5

    you can filter many bbpress functions using ‘parse args’ capability – a standard wordpress technique or just filter the whole function, you’ll see a return apply_filters in all template functions and this is the hook that you use.

    so for you you could us the code in your other post

    Display the last topic updated in the forums loop

    If you’d like to help with documentation, just find where something is poor and write what you think it needs changing to, it is newcomers like you that can really help improve what is there

    #156101
    Jake Hall
    Participant

    Can I just say, whilst bbPress is a great SSO solution for those wanting to hook up their WordPress with a forum, it is very difficult to get it going how you like it. There is virtually no decent documentation going over anything except the basics.

    I am trying to achieve something relatively simple, however have had to resort to editing the actual plugin itself in an attempt to get it working how I’d like it to be.

    What I am trying to do, is edit the freshness part of bbPress. What do I mean by that? Well, I am trying to edit the following:

    null

    So what I wanted it to do, was display the actual Topic Title. It makes sense, because as default – what has updated? What thread was last updated without having to drill into the forum?

    I also found it bizarre that the title was added within the title tag of the freshness, really? Can we just have some sort of option to allow us to change how things are layed out, or at least create some documentation on how to actually change this without editing the bbPress plugin files (which is what I have had to resort to…)

    My question is, how can I change what is displayed there? Surely there’s a better way around it that doesn’t involve hacking my way through the plugin files.

    Which bbPress file actually changes this? Like I say, absolutely no documentation on what each file does – it is just guesswork………………

    If I am missing something I apologise, but after looking for countless hours I just decided to edit the plugin source to achieve half of what I wanted – still doesn’t help as I would like to change the location of the author picture and time edited and I am not editing the plugin for those.

    Am I being stupid?

    If anyone would like the most recent topic name within the forum to display on the index, you can edit the Plugin source code directly like so:

    if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );

    Find that chunk of code within bbpress/includes/forums/template.php and change to the following:

    if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $title ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );

    All we have done here is changed the $time_since to $title. Now you need to re-add the $time_since variable in there somewhere, which is a pain because you may not want it right after the thread title (like myself…)

    #155982
    Jake Hall
    Participant

    Hi guys,

    I am trying to achieve this (a mockup through Google Dev tools) however I am unable to find where I can actually edit the code behind this, it seems to be hard coded behind a bbpress function – which I personally think is silly if I have to rewrite it just to make it how I want it…

    How I want it

    I am gunning to make my installation of bbPress hierarchical in display, however currently it only displays the “Freshness” of the forum.

    Can anyone point me into the right direction here?

    EDIT: I wasn’t super clear, what I meant to say was – I would like to instead of having “15 hours and 30 minutes ago” with the username, the topic title. I can achieve the rest

    Thanks

    #155904

    Since WordPress 4.0, this happens with any plugins that have complete and updated translations. If you modify them, WordPress won’t know about it.

    #155754
    Robkk
    Moderator

    if you were here I’d give you a big kiss.

    uhhhhhhhhhhhhhh , your welcome i guess?? haha

    about it not being updated in over a year , the plugin is very simple it basically just outputs a shortcode at the bottom of blog posts.

    and also that this functionality is going to be implemented in the future release of bbPress.

    so when the update comes and says bbPress for WordPress comments in the changelog of the plguin. you can pretty much just remove the topics for posts plugin from there on and just use bbPress.

    #155745
    dice2dice
    Participant

    It is the plugin. I had it turned off because WordPress warns that it hasn’t been updated for over a year.


    @robkk
    if you were here I’d give you a big kiss. I’ve had over 30 emails/contact form messages from website members complaining about the forums disappearing. My web designer in in the Arctic for Xmas, I couldn’t find anyone else with bbPress experience, couldn’t find any instance of a similar problem through many, many internet searches, it’s been a stressful 24 hours so thank you very kindly.

    #155634
    robertosalemi
    Participant

    Hi,
    I’m using this plugin:
    bbPress 2.5.4
    BuddyPress 2.1.1

    I have language file in /wp-content/languages/plugins
    – bbpress-it_IT.mo and bbpress-it_IT.po
    – buddypress-it_IT.mo and buddypress-it_IT.po

    I edited them about my necessity, but today when I install a plugin I read:
    “Some of the translations in need of updating. Wait a few seconds while we are updating.
    Updated translations for bbPress (it_IT) …

    Update translation performed successfully.
    Updated translations for BuddyPress (it_IT) …

    Update translation carried out with success.”

    Why?
    I can disable the update of language file o protect my language file?

    Thanks.

    bitu134
    Participant

    I am looking for a way to block Participant user level to create new topics in the Forum but allow replies on the topics.

    I tried a plugin called bbPress Protected Forums(https://wordpress.org/plugins/bbpress-protected-forums/) but it doesn’t seem to work probably because it hasn’t been updated since long.

    I will really like some quick help on this

    Wordpress version: 4.0
    bbpress version: 2.5.4

    #155295
    synergywp
    Participant

    Hello,

    I have discovered an error in recalculating forum freshness. It looks like its coming from the actual database.

    It appears that even after trying “Recalculate last activity in forum and topics” in the Repair Forums page, the main forum index is showing the date of the last forum topic. I looked in the database and saw the _bbp_last_active_time was being updated to the value of the date of the most recent forum topic.

    So, you can assume that bbp_forum_freshness_link function works as intended since its pulling the right data from the DB, just the recalculation is off.

    Also, I should add, these replies were added via the backend, not the front end.

    Anyone experiencing this same thing?

    #155201

    In reply to: Import from vBulletin

    Stephen Edgar
    Keymaster

    Indeed passwords are 100% converted and working now, I also removed that from the codex article 🙂

    With the updated importer “Buzz” will be set as a “category”, with bbPress 2.5.4 “Buzz” would have been imported as a “forum”.

    #155181

    In reply to: Import from vBulletin

    Stephen Edgar
    Keymaster

    1. Custom vBulletin BBCodes are not supported eg. [youtube] – You will have to manually change these yourself either before importing in vBulletin or after importing into bbPress using phpMyAdmin.

    Indeed this is now fixed to work with vBulletin’s default YouTube BBCodes:
    Specifically the two following BBCodes are the only ones supported (many vB forums used to use custom BBCodes and this was primarily the main issue here)

    
    // Replace '[video=youtube;$1]$2[/video]' with '$2"
    // Replace '[video=youtube_share;$1]$2[/video]' with '$2"
    

    For example [video=youtube;eOUq4Z6R7xI]http://www.youtube.com/watch?v=MfW2UJMIQvQ[/video] will be replaced with just the YouTube link http://www.youtube.com/watch?v=MfW2UJMIQvQ, bbPress (and WordPress) will automatically embed the video using the direct URL.

    2. All ‘Ordered Lists’ will be displayed as numerical lists.

    This is also fixed

    3. You may find extra page breaks <br> and paragraph <p> elements in topics and replies and is less than ideal and is from the way the BBCodes are converted during the forum import conversion. You will find these primarily around ‘blockquotes’ and ‘lists’

    This is fixed also 🙂

    #1 If I create the exact bbcodes in BBPress prior to the import, I assume this would rectify this area correct?

    Yes, modify your custom BBCodes to either a) Match the supported vBulletin BBCode above or b) completely strip the vBulletin BBCode so just the YouTube link remains 🙂

    I have updated the codex article and removed quite a few things that were listed there that are now fixed including full support to convert user passwords and the items in red in this image are fixed and/or supported 🙂

    With that said “some” of these features are not in the currently shipped bbPress 2.5.4 such as Forum and Topic subscriptions and guest/anonymous topic and reply support, I’m going to post an announcement here on the site in the coming day or two on the improvements and where and how to get this test release.

    #154984
    janedaw
    Participant

    Hi I just updated to WordPress 4.0.1. and now I can’t see any of the posts in my forum. Here is the main forum page:
    http://www.chmaonline.com/bulletin-board/
    Then when you click on the forum, you see nothing, there are supposed to b3 39 posts there.:
    http://www.chmaonline.com/forums/forum/chma-members-bulletin-board/
    I am using version 2.3.1.
    Thanks!

    #154866
    FADmark
    Participant

    Hi,

    Topics and Replies that have been edited are showing duplicate entries for each actual revision. Example (see the 3rd post): http://cancergrace.org/topic/webmaster-tests

    See the 3rd post – it should only be showing 3 revisions, but they are listed twice for some reason. Nothing has changed on my end and I don’t believe I added any hacks to this part of the code, other than some CSS.

    I’m not exactly sure when this started, but I believe it may have been when my WPMS was updated to 4.0.1, while running bbP 2.5.4-5380.

    Thanks for any tips on how I might resolve this.

    -Mark

    #155069
    petriknz
    Participant

    Thanks for that info but I’m a bit dubious about using a plugin that says

    Compatible up to: 3.5.2
    Last Updated: 2014-1-5

    #154789
    foresme
    Participant

    Hello!

    I am using the Canvas theme with bbpress. I used the above fix to solve the bbpress search issue, however now bbpress seems to have lost the ability to create line breaks.

    The line/paragraph breaks that are created when typing into the editor, disappear when the post is submitted, and all the paragraphs merge together making the post much harder to read.

    Anyone clever got any ideas? Please help!

    The problem could also be related to the new version of WP 4.0.1 which I just updated to.

    Best,

    Esme

    #154731
    lauracdd
    Participant

    Hello,

    I updated to WordPress 4.0.1 and updated my bbPress to 2.5.4. The Forum page is a complete mess, it is just a bunch of unformatted text taken from headers and links that were on the page:

    Search for: Welcome! Logout › Forums Forum Topics Posts Freshness General Member Posts Feel free to post what you like here! 1 1 2 years, 4 months ago Member News Use this to let us all know your news! 1 1 1 year, 10 months ago

    Please let me know what I need to do to get the Forum back!

    Link to the site (no spaces) http:// 4 t h s t r e e t c l u b .org/

    #154654
    Chad
    Participant

    Hi folks. Saw this page, https://codex.bbpress.org/import-forums/vbulletin/

    It hasn’t been updated in 2 years. Just wondering if there are any improvements made to this tool?

    Some of my concerns are these listed:

    1. Custom vBulletin BBCodes are not supported eg. [youtube] – You will have to manually change these yourself either before importing in vBulletin or after importing into bbPress using phpMyAdmin.

    2. All ‘Ordered Lists’

      will be displayed as numerical lists.

      3. You may find extra page breaks <br> and paragraph <p> elements in topics and replies and is less than ideal and is from the way the BBCodes are converted during the forum import conversion. You will find these primarily around ‘blockquotes’ and ‘lists’

      In regards to

      #1 If I create the exact bbocodes in BBPress prior to the import, I assume this would rectify this area correct?

      #2 This is definitely not good. I’m hoping someone knows a trick around this.
      #3 Same as above.

    #154452
    Themes de France
    Participant

    Hey guys,
    As a theme developper I wanted to bring bbPress support and I was facing the same issue.

    The plugin that @robin-w brought was working but I know something was wrong with my theme.

    I managed to make it work without the plugin by deleting this snippet from functions.php :
    https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Exclude_Pages_from_Search_Results

    The intent of this snippet is to exclude pages from search results and I guess this was conflicting with WP4.

    If you have this problem with your theme, look for “pre_get_posts” actions and if the search query is updated.

    Hope that can helps 🙂

    #154389
    wookey
    Participant

    Hi _ck_

    Do you have an updated version of your plugin that works with the latest version of bbpress?

    Here’s the only one I can find for download:
    https://plugins-svn.bbpress.org/bbpress-theme-switcher/trunk/

    Alternatively, how can I get this working without a plugin?

    Thanks for all your work!

    #154178
    dtbaker
    Participant

    I’ve updated the plugin to include a (very basic) paypal payment feature and the ability to mark topics as “accepted”. You have to manually update the topics when payments come in, I don’t have enough time to make any sort of PayPal IPN integration.

    Code has been updated here: https://github.com/dtbaker/bbPress-Support-Forums ( warning, my paypal address is hard coded into includes/bbps-vote-functions.php )

    Screenshots:

    Main forum page, it sorts topics by “funds” then “accepted” then “votes”.

    Admin topic page: you can vote, mark topic as accepted, and manually update payments.

    User topic view, can vote (when logged in) and pay:

    Live demo here: http://ultimateclientmanager.com/forums/forum/feature-requests/

    #154020

    In reply to: Help Css & Layout

    mnhfile
    Participant

    Css or php changes by sftp not updated to my wordpress site. I figured out this is not parent/ child theme problem .. I am using godaddy wordpress managed hosting and this issue occurs because of their cache layer and i don’t know how to clear it. I try to contact them but unable to reach them beacuase of voice issue in international call.

    Anyhow my tab/heading problem is solved because of loop code in this link https://raw.githubusercontent.com/robkk/better-bbpress-responsive-theme/master/bbpress/loop-forums.php

    i want some modification in tabs/heading — like in the picture arrow appears which show or hide forums../// or modification like tabs act like toggles (function).
    Image and video hosting by TinyPic

    #153765
    atfpodcast
    Participant

    The first two have not been updated in 2 years. 🙁

Viewing 25 results - 701 through 725 (of 2,090 total)
Skip to toolbar