Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,026 through 14,050 (of 32,519 total)
  • Author
    Search Results
  • #135692
    hitkid
    Participant

    Sorry I meant to say recent topics.

    #135690
    hitkid
    Participant

    Hi guys, I’m having trouble showing the shortcode for recent posts on my home page after I entered in code to get my recent blog posts to show up on my home page.

    Here is the code I used for recent posts:

    $args = array( 'numberposts' => 3 );
    $lastposts = get_posts( $args );
    foreach($lastposts as $post) : setup_postdata($post); ?>
    	<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    	<?php the_content(); ?>
    <?php endforeach; ?>

    I saw in another topic how to get 10 recent topics on your home page with shortcode, but it didn’t work after the above code. Could someone please help me with the code to get 10 recent topics to appear on my home page?

    Using the current versions of wordpress, bbpress and buddypress. Working with a buddypress default child theme. I’m also newer to php, so go easy please 🙂

    #135684
    96fauj
    Participant

    I’m an absolute novice at any form of programming at all. I don’t know any php and very slightly some css.

    The issue i’m having is that the forum isn’t showing up spread across the whole page. It’s showing only in 1 half of the page, it should be showing full like when you go into topics and such.

    It can be seen here : http://unitedhumanity.co.uk/?post_type=forum

    I’ve spent a few hours now on trying to fix this but no matter what php code I throw in, or whatever css file I copy over in the plugin to theme directories. It’s not working.

    Could someone please help me, this is 1 of the very few things left to get sorted on this blog. Would like to thank anyone who contributes in advance.

    #135674

    In reply to: bp_posts to wp_posts

    Daniel Mason
    Participant

    OK, seems the problem was that at the start of the site upgrade process, the developers upgraded bbPress. As development took 6 weeks, posts kept accruing in the old bb_ tables.

    We fixed this by going to

    
    Tools -> Forums -> Import Forums -> Selecting bbPress1 -> Purge previously imported data
                                     -> Selecting bbPress1 -> Importing
                    -> Repair Forums -> All scripts
    
    Stephen Edgar
    Keymaster

    Firstly this thread is about an old plugin that is no longer being updated, the core of this code is actually now in bbPress core.


    @jooda
    Yes phpBB import is fixed 100% in bbPress’ built in import tool


    @LevyImage
    You can take a stab at modifying the included ‘Example.php’ included with bbPress to try importing your MyBB forums just as @vogelsang did here for importing from Drupal. There are some basic instructions here on creating your own custom imports for bbPress.

    Further information on importing existing forums into be bbPress can be found here:
    https://codex.bbpress.org/import-forums

    (I’m going to close this topic now, if you have any questions regarding importing please create a new topic)

    #135658

    In reply to: Importing from drupal

    Stephen Edgar
    Keymaster

    I have just tweaked your Drupal Importer @vogelsang and updated it with a few tweaks for formatting and a couple of extra fields that you wern’t importing.

    Details are in trac here https://bbpress.trac.wordpress.org/ticket/2375
    (You can download my updated version directly from here)

    There will be an FAQ over here https://codex.bbpress.org/import-forums/drupal

    • Forum parents/hierarchy is now imported
    • Topic/Reply counts are also imported to help out bbPress counts
    • Open or Closed topic status is imported
    • Drupal users are also imported BUT passwords need to be manually reset **

    ** See the FAQ and or Trac Ticket #2375 for details on the imported user passwords issue.

    Lastly thanks a heap for doing 99% of the heavy lifting in matching the Drupal database fields, most excellent work on your behalf 🙂

    As to the problems you are having with the importer stopping on you could you try to reduce the load on your server by changing the import values for ‘Rows Limit’ and/or ‘Delay Time’ to see if it is a server resource issue or if it stops at the same point there might be some funky data being imported that the importer is getting caught on during import.

    Cheers,

    Stephen

    #135652
    mindblender
    Participant

    @fontadoni – Thanks for the info. I have tried several times and not having any luck.

    Here are somethings I have tried and still have not been successful:
    1. install bbPress 1.2 as a standalone without WP integration on a local test domain (bbpress.dev)

    2. Install WP with bbPress 2.3.2 on a local test domain (wordpress.dev) and then tried to do an import from bbPress1, using separate DB tables.

    3. installed WP and bbPress 1.2 in another local test domain (wordpressbbpress.dev), using the same DB, and selected the WP integration when I installed bbPress. Then I installed bbPress 2.3.2 and tried to do the import and no joy.

    In all the scenarios above, I get the yellow “Starting Conversion” box but then it shows:

    Conversion Complete
    No replies to convert
    
    Converting topic tags (0 - 99)
    Converting topics (0 - 99)
    No forum parents to convert
    

    Anyone have any other suggestions? I do have test data entered and forums created for testing but I don’t understand why it doesn’t find them. And yes, I did verify the prefix as bb_

    Thanks,
    Jeff

    #135651
    Stephen Edgar
    Keymaster

    bbPress includes a Vanilla Forums importer

    The basic instructions are here https://codex.bbpress.org/import-forums/

    And specific info for Vanilla here https://codex.bbpress.org/import-forums/vanilla/

    #135640
    Mailhilfe
    Participant

    Do you try to exclude the code in WordPress Minify 1.2.2?

    #135637

    In reply to: Allow HTML from users

    Rachel Biel
    Participant

    Well, when you have a forum that is image based, it is a pain to have to use image urls only. We are an art group and showing images is necessary for everything we do. It seems to me like the administrators of each forum should have the ability to decide whether to trust their users or not. I really wish that we could have the TinyMCE for all participants. I tried a couple of different plugins and some could see the editor and others couldn’t. Then, I tried RT-Media’s plugin and test each update of theirs, but it doesn’t work.

    A big problem with using image urls (if you can’t load them into wordpress as the admin) is that that image could disappear if the hosting post is deleted or if the site goes down. We are using the GD BBPress Attachments plugin for attachments, which is a nice thing to have, but it does not do well if you are explaining something and showing several images which would be best embedded inside of the text.

    I looked everywhere for an explanation of what the symbols mean in this bbpress editor and couldn’t find anything, so I did a demo for our members: http://www.tafaforum.com/user-groups/tafa-forum-help/forum/topic/text-editor-or-wysiwyg/

    It’s not intuitive and a couple of the buttons seem to be useless. Most of our members will have no clue as to what they mean and using symbols that are commonly around on text editors would have been helpful.

    Things are finally working pretty well, but it’s been quite the long road in getting this set up. I think there should be a warning in documentation on bbpress: “Non-coders beware! You will need coding experience to make this work!”

    #135635
    vfowler
    Participant

    It makes sense to show the topic title but not the forum title when in BuddyPress group forums. Plain old CSS won’t do the job of hiding just the Forum title as the same HTML is produced for both forum and topic title.

    <div id="bbpress-forums">
    <h3>forum or topic title here</h3>
    ...
    </div>
    

    I guess this might require creating child theme files of the relevant section…

    Faramarz
    Participant

    Hi,

    I am having a problem with bbpress forums and buddypress groups. I have activated bbpress and buddypress on a sub-site on my sub-domain (http://community.example.com). In bbpress settings, I selected the checkbox “Allow BuddyPress Groups to have their own forums”. Now in buddypress when I am creating a group, in step 3, I should be able to select a checkbox (Yes, I want this group to have a forum.) to enable forum feature for my group, but for some reason the checkbox is not showing up and I cannot proceed by clicking “Next Step” button. I am using the latest version of BP (1.8), bbpress 2.3.2 and WP 3.5.2. The same setting works just fine on my local XAMPP but it doesn’t work on production server.

    Here are some screenshots, this is how step 3 looks now: http://i.imgur.com/sT8jRv9.jpg

    And this is how it should be (local is fine): http://i.imgur.com/6mKn4uE.jpg

    After this error, when I click on my groups, I can see the group is created with no avatar (because I never got to step 4) and when I click on the group and go to Admin > Forum > Now I see the check box but when I enable it and then select one of my forums from the dropdown and click save, I get this error “Are you sure you want to do this? Please try again.”

    When I check my error_log file, I get this error:

    [28-Jul-2013 22:51:11] PHP Fatal error: Using $this when not in object context in /public_html/wp-content/plugins/bbpress/includes/extend/buddypress/group.php on line 461

    I followed these instructions step by step to create a sitewide forum and forum for my buddypress groups: http://codex.buddypress.org/user/setting-up-a-new-installation/installing-group-and-sitewide-forums/

    Does anyone have the same issue with buddypress?

    Thanks

    #135619
    Matt McFarland
    Participant

    I looked at template-tags.php and that looks like it is getting the user’s favorites, like it’s getting a list of their favorite stuff.

    I’m trying to replace the word “favorites” with a glyphicon – to confirm you’re saying that the get_user_fav_link code is actually the code that puts the word “Favorite” and “Favorited??”

    #135618

    I’m confused by a few things here. How can comment spam also be forum spam? To my knowledge, there’s no way a non-registered user can create topics and replies unless you have the setting enabled in Settings > Forums allowing them to do so.

    For right now, you can use the bbp_get_user_topic_count_raw and bbp_get_user_reply_count_raw functions, respectively. These will eventually be replaced with cached functions, probably using usermeta to keep the counts.

    #135614

    Not dead; just resting. A quick search should have lead you to the bbp_get_user_favorites_link function in users/template-tags.php. You can pass your own arguments into it, or you can filter bbp_after_get_user_favorites_link_parse_args to override them.

    Daniel Lemes
    Participant

    To get register date i’m using:

    echo 'Member since: '.date("Y/m/d", strtotime(get_userdata(bbp_get_reply_author_id())->user_registered));

    Still working to show post count, soon i’ll get it 😉

    #135606

    In reply to: Allow HTML from users

    Hansaplastique
    Participant

    In the code Jared so kindly offered, you’ll need to add soemthing like this to the array:

    'div' => array(
    		'class'     => array()
    ),
    Ricardo
    Participant

    Hi everyone

    Is there a way of disabling bbpress jquery and css files loading when a user visits the blog?
    upon installing bbpress the “weight/loading” of a blog page increases a bit, anyway of disabling it? Only loading when someone visits the forum?

    The following code disables the bbpress css, is there a way to disable the javascript/jquery?
    Thanks

    function mp_deregister_bbstyles() {
    if ( function_exists( 'is_bbpress' ) ) {
    if ( !is_bbpress() ) {
    wp_deregister_style( 'bbp-default-bbpress' ); 
    }
    }
    }
    add_action( 'wp_print_styles', 'mp_deregister_bbstyles', 100 );
    prikid
    Participant

    I have tried to fix this issue by replacing the code but no luck, it switched off whole website))

    I think we will have to wait until new version comes out…any updates on this?

    This is major issue for many, would be nice to have the whole that group.php fixed file or code, so we can replace it, otherwise just changing the code for the people not familiar with php is difficult(

    #135589
    stuudio
    Participant

    Same problem here.

    
    #bbpress-forums ul {
    list-style: none outside none;
    }
    #bbpress-forums li {
    list-style: none outside none;
    }

    Has absolutely no effect whatsoever. 🙁

    HEEELLLLLP!

    #135587

    Topic: Forum statistics

    in forum Plugins
    blg002
    Participant

    I’m wondering if there are any good plugins for member forum statistics out there. I’m imagining an admin page that lists members name, email, number of replies, and number of topics created. It would probably look something like the Users page. Optimally there would be an option to export and the columns could be toggle-able.

    Searching hasn’t come up with much BBPress 2.0 Analytics Plugin is the closest but looks older, and there are many mentions of mini-stats but i can’t find it’s actual code anywhere (and it doesn’t sound like what I want).

    #135581

    Hey Jason! You could try resetting the user roles, in: Tools > Forums

    You can also try this neat little tool I wrote, to check out what capabilities specific users have in your forums: https://github.com/johnjamesjacoby/bbp-capabilities/

    What you’re experiencing sounds like bbPress isn’t sure what to do with the role those users have, or doesn’t like the capabilities those users have saved in the DB. Other users have had similar issues, and have fixed them by remapping the roles with the above tool(s).

    #135580
    blg002
    Participant

    @thesnowjunkies @johnjamesjacoby @undyingearth @olivier-lettinga So here’s what I did, it looks to work but I haven’t fully put it through its paces. I’m also kind of a n00b with this PHP WordPress thing so hopefully this isn’t a terrible idea. I basically used an add filter on bbp_get_time_since and did a regex string replacement on the output removing anything from the first comma up to ‘ago’.

    function short_freshness_time( $output, $older_date, $newer_date ) {
      $output = preg_replace( '/, .*[^ago]/', ' ', $output );
      return $output;
    }
    add_filter( 'bbp_get_time_since', 'short_freshness_time' );
    
    #135565
    dvharrison
    Participant

    Hi

    I have just set up BBpress on one of our websites (not live yet) and everything seems to be working ok except for one little problem:

    I have marked the forum private as I would prefer people to register first rather than bombard the forum with spam etc. But this generates a new problem as the private forum is automatically given a prefix of “Private:”

    Please advise how I can removed the said prefix? I saw a thread for a bit of code to change this but it doesn;’t say which page it needs to be added to:

    Please any help is gratefully received.

    Thanks

Viewing 25 results - 14,026 through 14,050 (of 32,519 total)
Skip to toolbar