Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,051 through 16,075 (of 32,519 total)
  • Author
    Search Results
  • #113905
    Lynq
    Participant

    It looks as though it is just grabbing the freshness from get_post_field and assigning it to $last_active and then returning the following filter:

    return apply_filters( 'bbp_get_forum_last_active', $last_active, $forum_id );

    So you might need to try and catch the data on the way into the database and manipulate it there, then save it to the database.

    Good luck!

    #45264

    Apparently everybody wants the freshness to be displayed in months, days – I, however would like it to be displayed in days only.

    I have been looking around quite a bit now and trying to change the code, but so far I managed just to mess up the page ….

    Any ideas?

    Thanx

    V.

    #45258
    tinewahl
    Member

    Hi there. I would like to show recent topics on my website homepage from my forum. I’ve accomplished this already by using the code below. What I can’t figure out is how to tweak this code so that it will display the forum name and topic title only, not the author and all the unnecessary wording (“Started by ___ in:”). What I would like it to look like is a long list with each item presented in the “Forum Name | Topic Title” fashion.

    Example:

    Italian Food | What’s Your Favorite Pasta Dish?

    Japanese Food | Good Sushi Bars in NYC

    <?php if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 8 ) ) )

    bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>

    #113889
    squalesblog
    Member

    Hi again!

    Any help would be very much appreciated.

    Does anyone know what’s wrong with the shortcode bbp-forum-index pointing to url “forum” instead of “forums”?

    Many thanks in advance.

    Patricia BT
    Participant

    Hi

    This topic is posted on 2 places :

    – bbpress.org forum

    – premium.wpmudev.org community support forum

    While working on a site to be launched on the same day (= I had to have it working ;)

    I discovered something interesting

    BBpress second level forum (= with a parent forum/category) also in the permalink, will result in page not found.

    I searched for this issue and came across a few topics, where it was advised to reapply the permalinks, then save again the BBpress settings, where we set the slugs.

    I tried everything there and still the same issue, but it was clearly an issue with rewrite.

    So I begun to deactivate every other plugin I have and after every deactivation I tried if second level forums were loading. I thought specifically about security plugins such as Wordfence, Better WPSecurity, but nope.

    Finally, it was when ******I deactivated wpmudev’s Pro Sites plugin, that the second level forums were loading.*******

    I tried another forum plugin but really I will need BBPress (big amount of subforums necessary on this website)

    now I made some tests, and to make short :

    – if Pro Sites activated :

    -> 1st level forum will work

    -> 2nd level forum will not work

    – if Pro Sites is deactivated :

    -> 1st level forum will work

    -> 2nd level forum will work and can be reached with those 2 url

    A: example.com/forums/forum/level1/level2

    B: example.com/forums/forum/level2

    (forums/forum beeing the slugs set in Forums settings page)

    is it normal we can reach with 2 different permalinks?

    ***** and as it changes automatically, is there a way to force (in BBPress code) a subforum permalink to stay 1st level even if in a sublevel? would be interesting also in the case a forum is moved to another category then it wouldn’t change url ***** (and at the same time it would solve/hide the issue with Pro Sites)

    so cleary this is a rewrite stuff that goes beyond my knowledge, for info my permalinks are set to the second option /2012/06/07/exemple-article/ and .htaccess present with necessary change in it

    I use also buddypress on that site but didn’t go until desactivate it as it worked when I deactivated Pro Site,

    the site I was working on has buddypress, but not the groups and forum elements checked, forum beeing BBpress anyway (I also tried to check/uncheck forums in buddypress settings, really not related to the issue)

    so I was thinking to install a testsite with only vanilla WP Multisite and buddypress, as I need all my tests done that way

    + for this issue : Pro Sites and BBPress

    so if there is anything you tell me to try, it will be done :)

    thank you very much in advance (anybody, eveybody :)

    #110603
    rajuctg1
    Member

    very nice

    download music Download music, movie and every things.

    #45237
    zeaks
    Participant

    This is probably a stupid question, but I can’t figure it out.

    What is the proper way to post php and html code into a bbpress 2.0 forum post? I tried using < code > but when posting some html, it’s not displayed, tried using the little like on wordpress.org but that didn’t work either.

    Thanks for your comments. :)

    I’m assuming you had a backup copy of your stylesheet? Either way, it should only have header info in at the point of copying things over. I’ve made the tutorial clearer about that, though.

    I never bother with screenshots for themes I’m making for myself, but I’m sure others do. I figured I’d leave that up to the user, but I’ve added a sentence about that.

    #113887
    squalesblog
    Member

    Hi John!

    I followed several walthroughs like trying to refresh permalinks and re-saving bbPress settings, with no luck! :'(

    Any ideas?

    Thanks ;)

    #110914
    Lynq
    Participant

    If you var_dump your $postmeta['forum_id'] does it contain a value?

    #113789

    In reply to: Register on Multisite

    Tried registering, and it does redirect me to some other weird site (which I assume is the main one on the network.)

    I bet it’s WordPress redirecting, since it expects the root site to manage all sign-ups. Could probably use some help figuring this out and fixing, since you have an installation exhibiting the issue already. :)

    #113788

    In reply to: Register on Multisite

    Are you sure it isn’t redirecting you because you are logged in?

    When I visit http://rockymtb.org/register/ I get a form asking me to register ;)

    #45217
    squalesblog
    Member

    Hi!

    I am encountering issues with a fresh install of bbPress 2.0 plugin:

    http://squales.high-bridge.fr/forums shows 404 error.

    Plugin settings are all by default. My permalinks settings are default : (i.e.: http://squales.high-bridge.fr/?p=123)

    I created a page with the shortcode [bbp-forum-index] linked in my nav bar.

    Forums show OK, but bbPress navigation link “Forums” shows a blank page.

    Any help would be appreciated ;)

    Many thanks in advance!!

    #113786

    In reply to: Register on Multisite

    I’m confused. If you create a page called /register and put that shortcode in it, what happens?

    Are you saying after they register the page redirects?

    #110601
    Shivanand Sharma
    Participant

    {A note of my research work while trying to build a template for use with Thesis.}

    So just for the record, if you want to have a full standalone theme which won’t use any of the default templates of bbPress then you need to have at least one template for each of the sections below. Should be about 10 templates if I did the math right.

    //Single User Edit
    'single-user-edit-' . $nicename . '.php', // Single User Edt nicename
    'single-user-edit-' . $user_id . '.php', // Single User Edit ID
    'single-user-edit.php', // Single User Edit
    'user-edit.php', // User Edit
    'user.php', // User

    //Single User
    'single-user-' . $nicename . '.php', // Single User nicename
    'single-user-' . $user_id . '.php', // Single User ID
    'single-user.php', // Single User
    'user.php', // User

    //Single View
    'single-view-' . $view_id . '.php', // Single View ID
    'view-' . $view_id . '.php', // View ID
    'single-view.php', // Single View
    'view.php', // View

    //Single Forum Edit
    'single-' . $post_type . '-edit.php', // Single Forum Edit
    'single-' . $post_type . '.php', // Single Forum

    //Single Forum
    'single-' . bbp_get_forum_post_type() . '.php' // Single Forum

    //Forum Archive
    'archive-' . bbp_get_forum_post_type() . '.php' // Forum Archive

    //Topic Merge
    'single-' . $post_type . '-merge.php', // Topic Merge

    //Topic Split
    'single-' . $post_type . '-split.php', // Topic Split

    //Topic Edit
    'single-' . $post_type . '-edit.php', // Single Topic Edit
    'single-' . $post_type . '.php', // Single Topic

    //Single Topic
    'single-' . bbp_get_topic_post_type() . '.php'

    //Topic Archive
    'archive-' . bbp_get_topic_post_type() . '.php' // Topic Archive

    //Reply Edit
    'single-' . $post_type . '-edit.php', // Single Reply Edit
    'single-' . $post_type . '.php', // Single Reply

    //Single reply
    'single-' . bbp_get_reply_post_type() . '.php'

    //Topic tag edit
    'taxonomy-' . bbp_get_topic_tag_slug() . '-edit.php', // Single Topic Tag Edit slug
    'taxonomy-' . bbp_get_topic_tag_tax_id() . '-edit.php', // Single Topic Tag Edit ID
    'taxonomy-' . bbp_get_topic_tag_slug() . '.php', // Single Topic Tag slug
    'taxonomy-' . bbp_get_topic_tag_tax_id() . '.php', // Single Topic Tag ID

    //Topic tag
    'taxonomy-' . bbp_get_topic_tag_slug() . '.php', // Single Topic Tag slug
    'taxonomy-' . bbp_get_topic_tag_tax_id() . '.php', // Single Topic Tag ID

    redrudolf
    Member

    Thank you for this awesome tutorial! :)

    #110911
    Lynq
    Participant
    if ( bbp_has_topics( array( 'post_parent' => $postmeta["forum_id"] ) ) )
    bbp_get_template_part( 'bbpress/loop', 'topics' );

    You see the part about $postmeta["forum_id"] you need to grab the post meta data with <?php $meta_values = get_post_meta($post_id, $key, $single); ?>

    https://codex.wordpress.org/Function_Reference/get_post_meta

    Then once you have all the post meta data in an array you can grab the forum ID and put it in the arguments.

    I’ve followed bbPress’ development off and on since it first came out (aww, when it was a wee thing). It’s made many, many functional improvements since (good job, everyone!), but it’s lacking in the documentation department, and documentation is what has always made WordPress so great and accessible. For bbPress to really become a part of WordPress, even just as a plugin, the documentation needs to be better.

    After so many years in development, I expected there to be more documentation when I gave bbPress a try this time around. Instead, there was a lot of teeth grinding and guesswork on my part, mainly because there’s so much conflicting information about how things work, not to mention all the old information that’s no longer relevant. But I did figure it out (screenshot of my work to prove it!).

    I know bbPress 2.1 is in development and (may be) coming out soon with many new bells and whistles in regard to themes, but I feel for anyone struggling to get the current version to work. As such, I wrote some documentation. Which may or may not be placed in the wrong location of the Codex because there were no instructions for it, either, that I could see. (Sorry, admins!)

    bbPress is still geared to the web-savvy at the best of times, I’d say, so I didn’t try to go into minute detail with all my instructions; rather, I tried to make it clear what should be done for the current version. I hope it helps someone!

    #113818
    DarwinsDream
    Member

    Isn’t there a way to open only one shortcode to be allowed or apply the jwplayer div attributes to my reply-content attributes. It is a shortcode issue. But merely because the shortcode calls the div

    what if i called the div for every reply-content table then if a video was playing it would use the player that was called.

    I’m also looking for another solution to use as a user interface and back end for a media sharing site. To completely replace this issue :( any suggestions? Im’m not leaving bbpress i like it a lot just it’s not working out for soundhampton.com I guess…. Can some one advise me on a solution please?

    #113817
    DarwinsDream
    Member

    Thank you Key Master :) Wish I was the damn gate keeper cause then i would understand what’s going on here. lmao!!!!

    Here is my issue at hand and then I guess I will have to decide whether or not to move forward. I am trying to make a media sharing site that is merely a “forum” of my site ( http://www.soundhampton.com/the_knowledge_forum ) to lead traffic back to my business site ( http://www.soundhampton.com ).

    I was going to use bbpress for the forum side but the more I try and implement it the deeper I get into issues that take me months to figure out. Every issue I have been able to handle except this one.

    John I totally under stand why shortcodes are not allowed. It makes complete sense. I read up on the security issue post you wrote about from day one of this media player issue and did not take your advice :P now…. here I am.

    To be honest I kind of always knew that even if I did get the shortcodes to work. I would have to make changes in the future to secure my forums from shortcodes.

    so, moving forward :)

    Can you guys suggest a proper media sharing community plugin / addition to wordpress I can even point the URL to a different folder. Now Im just rambling.

    I have no clue how to build a plugin :P

    #113815

    Shortcodes are explicitly prevented from working inside of bbPress.

    The reason is because Shortcodes do not care who uses them in what context. If you enable them, all shortcodes will work for all users. This allows all of the bbPress shortcodes to work, inside of bbPress, which enables normal users to embed forums inside of topics and replies. No good.

    You’re on your own if you want to go down this road, but I wouldn’t suggest it. Shortcodes are transparent, and a poor experience for most users (since they are completely invisible in the UI.)

    Instead, I’d recommend building something for bbPress 2.1 (still in development) and write a plugin to tap into the power of TinyMCE.

    #113810

    Try add_filter instead of add_action.

    kirby23
    Member

    I just spent about 8 frustrating hours failing to accomplish a very basic task with bbpress.

    I want my forums & their descriptions grouped grouped by category on the index page. A long jumble of forums on different topics, only ever displayed in “most recently updated” order, or alternatively without displaying the forum descriptions, is totally unusable. I don’t want people to have to hunt through subpages to find which forum is correct to post in for an issue.

    I just want an index page that shows ALL the information: Forum titles, Categories, and Descriptions, for all forums, on a page. In some sort of order that isn’t going to leave the users scratching their heads as to where to find what they want. Is that really too advanced to expect bb software to do?

    Some sort of organization, on the index page, or at least headings, is really a basic feature of, uh, every single forum I’ve ever seen. Organizing information into sensible sections been a fundamental part of information design since… the printing press? The written word? Hieroglyphics? I don’t know. But bbpress’s index page is an unfriendly, unusable mess, and the only feature you provide for grouping forums makes the situation worse, not better.

    I went with a plugin based solution because I didn’t want to sit and code a solution myself. After spending all day on this problem, I am aware that there are complicated, far-over-my-head solutions which may or may not work, telling me I must do things I don’t understand, and which sound to me like they may be wiped out and need to be re-entered every time a theme or plugin is updated.

    I can’t put any more time into this simple need. We have multiple users in my group who are going to be able to create new categories and forums, and it needs to _just_work_ , and display an index that makes sense to users, without hours upon hours of troubleshooting and administration.

    #113809
    DarwinsDream
    Member

    forgot to add this, even with all those changes it doesn’t work…. :)

    but still a little :/ lol

    #113808
    DarwinsDream
    Member

    k, I switched to twentyeleven theme and disabled all my plugins except bbpress and jwplayer for wordpress. I verified the div of the bbpress content box with firefox inspect element and put extra code in my functions.php to compensate for missed div tag code in the functions.php. here is what i put on top on functions.php as an injected php script within functions.php

    <?php

    add_action( ‘bbp_reply_content’, ‘do_shortcode’);

    add_action( ‘entry_content’, ‘do_shortcode’);

    add_action( ‘bbp-reply-content’, ‘do_shortcode’);

    add_action( ‘entry-content’, ‘do_shortcode’);

    ?>

    <?php

    /**

    * slidingdoor functions and definitions

    blah blah blah php blah blah blah

    then also a double attack at the end of fuctions.php is here

    }

    endif;

    add_action( ‘bbp_reply_content’, ‘do_shortcode’);

    add_action( ‘entry_content’, ‘do_shortcode’);

    add_action( ‘bbp-reply-content’, ‘do_shortcode’);

    add_action( ‘entry-content’, ‘do_shortcode’);

    —funtions.php ends here–

    -I see other plugins intereacting fine with short codes ie [video] in my bbpress forum but not [jwplayer] can i attach this in css ?

    -Is there a very messy way to go about this and edit every file in my bbpress plugin folder?

    -Am i better off installing bbpress as stand alone instead of plugin?

    -I’m I going about creating a media based user interactive site the wrong way when choosing wordpress w/ bbpress?

    I’ve literally spent 90% of my time just trying to get what I want to work and edit it so its all tight. This issue is a brick wall and everything is stopped until this issue is resolved. So really am i just going nuts trying to reinvent the wheel?

    Thanks guys…..

    The fix it for payment offer always stands until its fixed. That goes for everyone not you Jared :) But feel free lol

Viewing 25 results - 16,051 through 16,075 (of 32,519 total)
Skip to toolbar