Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,301 through 17,325 (of 32,519 total)
  • Author
    Search Results
  • #108842

    Regarding setting bbPress up and changing the “Forums” title to “Discussion” simply make a page in WordPress titled Discussion with the slug as ‘discussion’ and make sure your forum index is set to ‘discussion’ in your forum settings. Done. :)

    #108841

    bbPress 2.0 uses the same database and tables as your WordPress blog. Do not scale to plan, plan to scale. I.E. don’t worry about how big you think your forums will be, worry about how big they need to be. 1gig is plenty huge for a DB, and will be difficult to manage without a dedicated sysadmin. At which point, it’s no longer your issue to labor over. :)

    #108638

    Don’t modify the core function. Makes a plugin and make your own Shortcodes instead. You’ll need to look into how switch_to_blog works. You’ll also need to see how my Switch Site Rewrite plugin reloads the permalinks for each switch. The reason this isn’t in core is its a labor intensive set of requests for the server to pull off, particularly across multiple servers or data centers in large installations.

    #109986
    selise
    Participant

    you can use short codes listed here:

    https://bbpress.org/forums/topic/bbpress-20-shortcodes

    but even easier, if you are ok with the default layout, is to just use the template, “bbPress – Forums (Index)” for the blank forum page you’ve created (under page attributes on the edit page).

    #40360
    simtic
    Member

    Hello bbpress gurus,

    First, thanks a lot for this wonderful plugin :)

    Now please forgive my French looking English…

    I’m using bbpress on a site where I’d like to show up on some template page a list of recent posts in the forum. get_posts is my friend and that’s ok.

    But I’d also like to show a nice picture of the categories in which those recent posts where posted. Well, “regular” posts on WP now can have a “Featured Image”. And I looked to add this to my forums as well.

    And I think I made it

    But not sure ^^

    Anyway

    I added this line in bbp-admin/bbp-forums.php :

    add_meta_box(‘postimagediv’, __(‘Featured Image’), ‘post_thumbnail_meta_box’, $this->post_type, ‘side’, ‘low’);

    in function attributes_metabox() (~ l.190)

    And it seems to be working.

    But as far as I can tell, there’s maybe 50% luck this code not doing some very bad things in the same time ^^

    PLease advice, if there is a better way to achieve this…

    #40342
    Martin Ting
    Member

    Hi, Im a newbie, actually have no insight on coding.

    I have made a forum throogh bbpress. Right now Im only using the ‘tventy ten’ theme.

    The forum, categories, recent posts, and so on keep standing in the sidebar. I cant move it to the content area.

    Any ideas? would probably save me a week if I compare the problem with my processing speed the last days :)

    #108637
    Trobee
    Member

    Well, I am currently modifying the bbp-forum-index shortcdde so that it will take a site id as an optional parameter.

    This is the method I have so far, but I am not sure how to call the bbp_has_forums() on the other site, as I do not know a huge amount of php

    Any help would be appreciated

    public function display_forum_index( $attr, $content = '' ) {
    global $bbp;

    if ( !empty( $content ) || !is_numeric( $attr['id'] ) ) )
    return $content;

    if ( empty( $attr['id'] )
    {
    $current_site = get_current_site();
    $site_id = $current_site->id;
    }
    else
    {
    $site_id = $attr['id'];
    }
    // Unset globals
    $this->unset_globals();

    // Start output buffer
    $this->start( 'bbp_forum_archive' );

    // Breadcrumb
    bbp_breadcrumb();

    // Before forums index
    do_action( 'bbp_template_before_forums_index' );

    // Load the forums index
    if ( bbp_has_forums() )
    bbp_get_template_part( 'bbpress/loop', 'forums' );

    // No forums
    else
    bbp_get_template_part( 'bbpress/feedback', 'no-forums' );

    // After forums index
    do_action( 'bbp_template_after_forums_index' );

    // Return contents of output buffer
    return $this->end();
    }

    #40357
    cmceezee
    Member

    Is there a shortcode like, [bbPress] or should my installation have created a “Forums” page?

    It seems ridiculus that I’d have to create a separate page, with hyperlinks to each of the seperate forums. Can anyone help? Sorry for being slow at this but I have been wasting time, searching forums and watching horrible YouTube.com videos just to get my users access to your Forum. I heard it was the “best ever” and “simple” so I’m worried maybe that something didn’t install right.

    Would love help! Thanks in advance!!

    #109858
    thetbasket
    Member

    By the way, Travis, after implementing the code the way you said it rather than the way I read it it worked for what it was intended, so thank you.

    This still does not solve the sidebar issue I have been having, but it does solve an issue I would have had to acknowledge afterword, so it’s a great help.

    I still need to work on getting this 100% with the sidebars, and it will certainly require some alterations of the theme. Well, I may be back to ask some more questions, but thank you for clearing up how I completely misread your original post on this.

    BTW, where in the bbpress code does it refer to the page template it is using to make it’s decisions? Right now with the buddypress install I cannot work with within the WP framework to use an alternate template. My theme creator – Artisteer – does not create a full page option, but I could create it. The problem is that I do not see where to point to, say, page-full.php within the bbpress code.

    I’m a bit of a hack-beginner at this. As previously stated, I am a content creator more than a programmer, so perhaps it’s a stupid question. But I cannot figure it out.

    Best,

    James

    #109857
    PureRover
    Member

    Could not have put it any more professional than illustrated by ‘thebasket’. That is the frustration I was having with bbpress. Pushing my deadlines up against the wall until I finally had to look toward alternatives.

    PLEASE ADD A SHORTCODE THAT WILL ENABLE THE PLUGIN TO WORK WITHIN A FULL-WIDTH PAGE JUST LIKE SIMPLE PRESS.

    #109856
    thetbasket
    Member

    Hi Travis,

    Thanks for the response. My theme was different, as you had suggested, and I am working on it. Although I’m now in a little bit more of a complicated predicament because I am trying to use bbpress through buddypress, and on the buddypress install the forums options is not pointing the indicated page to the bbpress forums.

    Anyway, I did misread or misunderstand your first suggestion – sorry about that. As far as creating a full-width template, I am nearly positive I did so (I created a template specifically for that page to be full width), but nevertheless I will double check next time.

    I don’t want to get too deeply into this, but the fact that we use the word “blog” and “forum” already indicates that they are different even though they are both CMS’s. The issue is not that one is a CMS and the other is not, it is a matter of how the content is managed and it’s purpose.

    A blog is a blog because, generally, one user is contributing the content that a multiplicity of users is commenting on. So a standard blog Write-and-Respond system works nicely, and works nicely even in a narrow space because it usually contains one article with comments on the article.

    A forum, on the other hand, is a multiplicity of users creating multiple threads all scaffolded by an overarching structure of the forum and subforums. The way forums have been built thus far has been usually in a wide content format so users can see 1) The Thread title 2) The amount of replies 3) The last user that replied etc. etc. In other words, it is build upon a more horizontal management format, whereas the blog can get away with a more vertical format.

    Of course now and into the future there will be all sorts of variations on this. But for the end user, I want a forum that is a forum, not a forum that is a blog. In other words, wide-formatted with the expected information that forums have traditionally contained up to this point.

    The strong point of bbpress is its integration and especially it’s style integration. Anyone who has attempted to create themes for phpBB knows what a nightmare it can be. However, if you try to smush a phpBB forum in-between two or even besides one sidebar, see what happens. Not only that, but those sidebars from the blog are almost inherently irrelevant to the function of the forum. In other words — useless screen real estate being taken from what otherwise would be a smoothly functioning, articulated forum.

    And I can understand that WordPress vanilla functions fine, and being opensource one could reprogram it into Duke-Nukem 3D, almost. As a user of wordpress, the most frustrating thing consistently is that I feel like I am hacking CSS and PHP files more than I am creating content, and perhaps this is because I am a bit persnickety and want a particular look, but a full width forum from a forum plugin? To me things like this (and there are enough) are just plain flaws in development. I shouldn’t need to hack anything to get a forum to operate in full width because that is how forums best operate according to contemporary standards. Perhaps you should need to hack to get something to operate somehow unique and fascinating, but hacking code to get something to perform as you would expect it to – from your hours and hours and hours of forum experience? To me this is on the development teams shoulders.

    Again, thank you so much for taking the time to reply. I may be back after I have a chance to try what you had suggested.

    By the way, after installing buddypress all of the groups, member pages, activity pages, etc. were ALL operating on full width. The only part of the entire install that persists in operating between my sidebars is bbpress, and it is the only one I am dissatisfied with. So now I have to go through hours of who knows what to get something working the way it always has worked.

    Again, bravo for bbpress, it’s a great project with a great future, and there is a lot to be said for it. But that doesn’t excuse it from what needs work, and for those of us who want to deliver content, we would much rather spend our time on managing the delivery of content than on managing the content management system.

    I’d rather be spending this time developing the forum, not on developing the forum development software.

    #109976

    I’ve actually just noticed that if I changed the author tag on blog posts on wordpress to:

    <?php the_author() ?>

    It doesn’t display there either. I guess its not a BBP problem after all, but leaves me even more confused.

    #109873
    master5o1
    Participant

    First one isn’t ready to view yet :(

    #109946
    dominornovus
    Member

    I’ve had a look at bbp-includebpp-reply-template-php here:

    http://etivite.com/api-hooks/bbpress/path/bbp-includesbbp-reply-template-php/

    I looked through the following:

    bbp_get_reply_author_url

    bbp_get_reply_author_link

    bbp_get_reply_author_id

    bbp_get_reply_author_email

    bbp_get_reply_author_display_name

    bbp_get_reply_author_avatar

    bbp_get_reply_author

    It seems like you could use this one as a base for getting the role:

    http://etivite.com/api-hooks/bbpress/trigger/apply_filters/bbp_get_reply_author/

    There’s also a specific solution suggested here:

    https://bbpress.org/forums/topic/display-reply-author-role

    function get_the_author_role() {
    global $wpdb, $wp_roles, $authordata;

    if ( !isset($wp_roles) )
    $wp_roles = new WP_Roles();

    foreach($wp_roles->role_names as $role => $Role) {
    $caps = $wpdb->prefix . 'capabilities';
    if (array_key_exists($role, $authordata->$caps))
    return $Role;
    }
    }

    function the_author_role() {
    echo get_the_author_role();
    }

    There’s another topic here that discusses various ways of styling replies based on the user role:

    https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1

    Let me know how it goes.

    #40284
    antonchanz
    Member

    I’ve noticed a lot of people looking for plugins that add bbcode to the forum in the new bbPress 2.0 version. I was also interested so I paid attention. I think someone mentioned that the way to do it would be to use wordpress shortcodes, but that before enabling these in forum topics and replies it might be best to create a whitelist of safe shortcodes that you want to allow.

    Well I waited and no-one developed this, and so I looked into doing it myself. I have now done this and added my first ever wordpress plugins into the repository! These being:

    bbpress2-shortcode-whitelist

    and bbpress2-bbcode

    Using these two together creates a safer way of including bbcode in your forum. I will expand the whitelist to include other cool but safe shortcode plugins as I become aware of them. I also plan to add an admin page that allows manual addition of shortcodes you wish to allow.

    #109855
    PureRover
    Member

    Travis,

    Thank you for responding to my earlier question eventhough it’s a mute point now since I am beta testing another forum plugin.

    Our team needs a simple forum that can be plugged right into a full-width page. The template we are using was built with that in mind.

    The only problem we found with BBPress was it’s lack of one shortcode for the entire plugin. Why implement short-codes for bits and pieces of a software package and not the whole?

    We implemented BBPress into a full-width page. Looked good until we clicked on any link inside the forum. When it was redrawn, it would leave the full-width page and revert back to a normal width page with sidebar widgets being displayed.

    Modifying our template to fit a plugin is out of the question. Our template works with every other plugin we have installed and should not have to be modified to make a plug-in work. The plugin should work, regardless. If we start modifying a template everytime we load a plugin, we would be in trouble.

    In other words, you need a short-code for the entire forum, not section.

    We are currently beta-testing simplepress which uses one shortcode for the entire plugin.

    BBPress has a lot of potential but doesn’t quite meet the requirements for a seamless forum plugin.

    -Mark

    #108636
    travis.hill
    Participant

    I don’t think this can currently be achieved, however, it wouldn’t be hard to code something to accomplish it.

    #109854
    travis.hill
    Participant

    @thetbasket, could you provide a URL, please?

    …but was a no-go for me.

    Your problem still exists because you probably have a completely different theme than that user did.

    …but the sidebars still remained.

    Are you using a Full Width Page Template? These templates do not have a sidebar. They are included with your theme. You select a template when you create a page.

    I removed the div.bbp-breadcrumb in bbpress.css as suggested…

    I didn’t suggest removing div.bbp-breadcrumb, I suggested removing the float:left from div.bbp-breadcrumb. You’ll probably want to style the breadcrumb.

    But there was no change.

    Again, this is probably because your not using a full width page template.

    …but at the same time the function of a forum does not necessarily adhere to that format or fit appropriately within it.

    Perhaps I shouldn’t have said “what WordPress is built to do”, because WordPress is nearly limitless. It’s only restriction is the ability of it’s builder. There is a solution to almost any problem within WordPress. Sure, a vanilla installation of WordPress is pretty limited, but alas, it can be extended to do very powerful things.

    A forum software is exactly what WordPress is. A Content Management System.

    A blog is a forum. A person creates a post (topic) and people comment (reply) on it.

    A forum is a blog. A person creates a topic (post) and people reply (comment) to it.

    A blog and forum are one in the same. How can it not fit appropriately?

    For me, the benefit of having such a plugin is to have a forum that operates well and lightly as a forum on a wordpress site, not necessarily a forum that works within the confines of a wordpress post or page, which is not how forums have functioned nor probably how they best function – considering the horizontal space they typically need for the post title, user that posted, number of replies, and so on, which take up quite a bit of horizontal real-estate.

    Again, I think your missing the full width page template.

    And since the typical widget that would be placed on the sidebar of a blog would be unlikely to directly apply to the forum, what you have in the end is an unnecessary utilization of space that would – for the end user – probably be better used to create a forum which is less cramped, more spacious, etc. – especially when they have the option to access the widgets and sidebars by going back to the blog – that which those widgets and sidebars were likely created for in the first place.

    The bulk of your post deals with your forum not “fitting” within a page, because of the sidebar. I understand where your coming from, so please verify that you are using a full width page template, as these typically don’t have sidebars. This should solve your sidebar issue. If you don’t have a full width page template, create one.

    WordPress Codex: Creating Your Own Page Templates

    The last resort, and not a good one, is to comment out the get_sidebar() code in your template files.

    #39796
    Trobee
    Member

    Hi all,

    I am currently running a multi-site wordpress site which has separate bbpress installations, as there are common forums, plus private ones for each sub site. As I needed multiple different private forums I though this was the best method to achieve this. I was wondering if it is possible to, using shortcode or otherwise, show a list of forums from more than one subsite on a page?

    #107954
    atiminou3
    Member

    I had the same problem with login, when I tried doing what mixlplex2 above explained.

    Tried some other options on https://codex.wordpress.org/Function_Reference/wp_logout_url

    but that seems to be the best one for now.

    #109957

    My guess is you were running an out of date install or insecure plugin or theme. You’ll want to go through your site’s code and find what was exploited.

    #109972
    djoep
    Member

    Hey Andrew,

    I took a look at bbPress Post Toolbar but it seemed to add bbcodes either by hand or by clicking a button. With “normal” wordpress, and inside the buddypress group forums, if you just enter the url as text, with no added adornment, it just shows up as embedded video. I believe the same is true for image urls but haven’t tested recently.

    Also, I’m confused. On both the WPplugin directory as well as the master501 website, it shows the latest version as being back in August, not today???

    Thanks,

    joe

    #109971

    Just today I added a Plugin called “bbPress Post Toolbar” to correct the very issue you’re referring too here. My youtube video’s were coming out as links. After installing this Plugin I didn’t even have to repost the links. They just magically became imbedded video. Hope this helps ya! :)

    #40338

    The title says it all.

    I’m running WP 3.2.1, BP 1.5 & BBP 2.0.

    I’ve installed the exact same setup on two sites, one works perfect, the other doesn’t.

    All I see in the source is:

    <a href="http://thegamersrepublic.org/members/pixel/" title="View 's profile" rel="nofollow"></a>

    Example of where its happening: http://thegamersrepublic.org/forums/topic/armageddon/

    I haven’t edited the source of BBP, and I’m not sure what causing it.

    Anyone got any ideas?

    Thanks.

    djoep
    Member

    I looked at all the files for other forum converters but the joins seemed simpler than what smf might require or more likely I just did not understand the table conversion code.

    So, here are the specifics (smf_ is the prefix).

    for the topics area.

    for the topic title conversion.

    SMF has two tables required to get whatever it is you need:

    Table = smf_topics includes:

    field = ID_TOPIC – the table index for topics.

    field = ID_FIRST_MESSAGE – the index of the first message written for the topic.

    Table = smf_messages includes:

    field = ID_MSG – table index & source of ID_FIRST_MESSAGE above.

    field = subject – the actual text for the “topic title”

    If you can give me the corresponding syntax to replace the following, I think I can probably muddle through the rest of the converter. I am very hesitant to send the entire database. BTW, this is coming from an smf 1.x install, not the newer 2.x version.

    Current converter code for topic title

    // Topic title.

    $this->field_map[] = array(

    ‘from_tablename’ => ‘thread’,

    ‘from_fieldname’ => ‘title’,

    ‘to_type’ => ‘topic’,

    ‘to_fieldname’ => ‘post_title’

    );

    Thanks very much!!

    joe

Viewing 25 results - 17,301 through 17,325 (of 32,519 total)
Skip to toolbar