Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,301 through 17,325 (of 32,506 total)
  • Author
    Search Results
  • #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

    AWJunkies
    Member

    Joe thank you so much for your info pasted above to help assist people. I just want to let everyone know I have a new version 1.2 coming out probably tomorrow which will speed up everything IF your mysql account for WP has access to add tables. It will also fix issues with non UTF8 WP tables. Also fixes cleaning to be faster.

    Now onto smf my advise is to look at invision and other examples in the convert folder that showing the tags grab which uses the join tables code.

    If you give me the two names OR dump me a database for SMF I can do the convert file or tell you what to put within minutes. These convert files I can create within 30min. It is the testing that is more time consuming. Once I release the next update I will start creating more convert files. Sorry again for the delays. I am ALWAYS available on skype and other messengers for immediate help.

    Erlend
    Participant

    Thank you kindly for your input Joe. In fact, your conversion process is identical to ours; we’re currently running a BP forum that was previously converted from SMF, using that same plugin (which one of our developers, Normen, actually programmed for that exact purpose. Maybe he could work his magic again, but our own software needs some lovin’ too).

    I’ve got some questions that I hope fall under the requirements of your disclaimer:

    – Did you ever experience any issues with memory loss / timeouts? If so, how did you bypass them?

    – After the successful conversion, did you have a new forum for each individual group? (i.e. Are the group forums all technically a single forum behind the scenes?)

    – What exactly is the date & time issue? It’s a rather critical fix in my opinion.

    I have not yet tackled the issue of getting rid of all the groups and group forums that the other plugin created.

    You mean cleaning out the existing groups & group forums in BuddyPress, created by using the “Site wide forum” option? I would expect that to have a wizard or at least a doc page for it, but I’ve not found any post, doc or code relevant to it yet.

    #107096

    In reply to: bbPress 2.0 & BBCode

    antonchanz
    Member

    Version 0.2 is out, more stable now. Much improvements over the bOingball version, even if you don’t have bbpress installed. The

    Quote:
    tag now supports

    name wrote:
    format in such a way that if name is the login name of a user on the system, it displays as their display name instead. Also if buddypress is installed, the display name becomes a link to their profile page. If buddypress isn’t installed but bbpress is, it links to their forum user page. I’ve also added css style classes to the html output, allowing for some interesting theme options…
    #108839

    Yes, thank you for your response dominornovus. I had just now figured out and corrected number one myself. I had Buddypress’s forums active and it was conflicting with bbpress.

    The second one, well I only use the databases for WordPress and obviously Buddypress and bbpress. I just need to know if bbpress is using my mysql database for storing of the forums ( posts and such ) and if it is is there a way to use multiple databases’s with it, as I’m sure I’m not the only one using GoDaddy or the only one with this 1Gig database restriction. Or even if the 1Gig is going to be a problem. If it’s not do to some functionality by the software such as autogenerating a second database or whatever then I just need to know that.

    And the third one I’ve already code for the css for the bar I want when I try including it it does nothing. The bar I’ve looked at his hooks are actually different than mine, now that might be from the css. I need to know what stylesheet to modify, I guess. I use Suffusion as my Theme and I tried adding a stylesheet into it’s backend to modify the admin bar but, as I said it did nothing.

    #109956
    dominornovus
    Member

    First and foremost, have you validated your code?:

    http://validator.w3.org/

    http://jigsaw.w3.org/css-validator/

    Based on pages source code, the following is appended to the end of your page within the body tags:

    <ul>

    <li class="page_item page-item-1156">
    <a href="http://fruitcity.co.uk/about-2/" title="About">About</a>
    </li>

    [...]

    </ul>

    I was expecting it to be a misplaced widget but the list does not have a class, id or typical parent div.

    I can’t tell you why it’s occurring but I can tell you how to figure out why it’s occurring.

    Sequentially disable blocks of code pertinent to that page and theme. e.g. style.css, functions.php and custom templates.

    By process of elimination you’ll stumble upon the root of the issue. i.e. when the list no longer appears.

    I’m ruling out that it’s a setting in the admin panel because the list doesn’t have an id or class.

    It might be wise to run the validation checks I suggested. It could be something rudimentary like an element requiring a closing tag.

    I’d tell you more if I could right click the page and use Chrome’s version of Firebug for property inspection.

    #109949

    In reply to: "Ago" in topic widget.

    Anonymous User 8347663
    Inactive

    Thanks a bunch Rivaldo07! That fixed it! :)

    #109948

    In reply to: "Ago" in topic widget.

    Rivaldo07
    Participant

    bbpress/bbp-includes/bbp-core-widgets.php, line 567 :)

    #108891
    Dan Milward
    Member

    That does make any sense to me in this context :P

    #39902

    Okay so yeah I’m new to all of this WordPress stuff, but I think I’m doing pretty well with it. I have three questions, and I have searched them here and came up empty so here goes…

    Firstly, in my “Forums” section, that I am choosing to call “Discussions” because I do not like the word “Forum”, I have all the stuff setup so that you now go to http://www.yoursite.com/discussions and the forums page loads but that’s the issue… It still reads Forums. I’m unable to figure out which file I need to edit to alter this to read “Discussions”.

    Secondly, my Hosting Provider allows for unlimited Database’s but each one can only be one Gig in size so I’m wondering if there is a way to set up the Forums to use one database for each Forum. Or what other options I may have here. I know that a gig is a bit but if I was to handle several hundred users, I’m not so sure 1 gig is going to sustain a forums section. Unless the forums aren’t using my mysql database, I’m not really sure about that. A bit of clarification would be great!

    Thirdly, is there a way to Mod the Admin Bar to be more of what I want it to be? I mean I know there is because I’ve seen a really nice one on another site already. I’m just curious as to which files I need to edit to manipulate it and also if there’s a guide somewhere to do that ( or a Plugin ).

    So, yeah those are basically the three issues I’m having right now. Any help would be greatly appreciated! And, if you like you can check out what I’m talking about at http://www.goodintoday.com/discussions ( for the Forum question ), the other two I don’t think you need a site to answer. Thanks again!

    Andrew Parris :)

    djoep
    Member

    woot! Got it working… now just need to start from scratch and do it cleanly.

    One thing I found quite frustrating was that somewhere or other, a post count is kept after using bbconverter. I did not find it sufficient to clean and start over. I ended up having to muck about with the post_metadata table the posts table, and others. Even after going on multiple search and destroy missions into the database, I still could not get the post count to start where i though it should. Hence the strong recommendation to make db backups along the way.

    So, I managed to get SMF users and posts over to WordPress and bbPress 2.0 plugin respectively. Here’s the basics of how I did it:

    Words of caution!!! BACK UP YOUR WORDPRESS DATA BASE! Make a backup before you install bbpress. make another before you install bbconverter.

    Keep the backups because you may need to revert back to them.

    Assumption here is that both WordPress and SMF are on the same server, but not the same database.

    WARNING! This is just from memory,and it only worked once, and there was a lot of DB manipulation done to get to the end. You should NOT attempt this unless you are very comfortable with SQL, phpmyadmin, and wordpress! If you are even a little concerned, contact the plugin author and tell him how much you are willing to pay for the SMF conversion capability!

    1) Install wordpress

    2) Install buddypress

    3) Install BuddyPress SMF Import plugin

    4) Follow the BuddyPress SMF Import directions. You should end up with a number of tables in your WB database that look like wpv_bb_blahblah. Make sure you go through the Upgrade Database step but Do not go beyond that. with this plugin. Please note that this plugin creates new groups for each original forum and all the topics for that forum are associated with the new group. If this is what you want, you can stop here. If like me, you wanted a site-wide forum with the old SMF content, keep going.

    5) Deactivate the SMF Import plugin (but keep the SMF Compatibility plugin… you’ll use that for user login later)

    6) Using phpmyadmin (or similar) go into the wpv_bb_forums table and make sure that the forum_parent field is set to 0 for all top level forums and set to the appropriate forum_id for any subordinate forums.

    7) Through Buddypress, install “site wide forum” which will install bbPress 2.0 plugin.

    8) Make another database backup NOW! Don’t overwrite the ones you made before because you may have to go back further than this if things don’t work!

    9) Install bbPress Converter plugin.

    10) Go to tools and recount everything.

    11) follow the directions for the “Standalonebbress” conversion using the WP database user and password and wpv_bb_ as the db prefix (or whatever the SMF Importer left you with). Do NOT select the transfer user option… the other plugin already did that.

    12) If you have a large forum, the conversion takes a while!

    That’s about it. If you have set wordpress up to be able to display the plugin forum (not group forums), with any luck, you’ll see your forums populated.

    I have not yet tackled the issue of getting rid of all the groups and group forums that the other plugin created.

    The resulting forums and posts seem to have wrong dates & times and I have not looked into this.

    If I had it to do over again, I probably would have spent the same amount of time figuring out how the converter works and building an SMF converter directly, avoiding the SMF Import plugin altogether.

    I beg you to not use this thread to ask questions about this process or any of the plugins or applications other than bbConverter.

    joe

    #40320
    Anonymous User 8347663
    Inactive

    Hi there forum!

    Thanks for the extensive help last time.

    My new issue is that i have translated bbPress to danish (the frontend stuff). And a single word cannot be found in the language file, so it is still in english. I want to know how to change this single word (ago) to danish. I already changed the

    %s ago

    to

    %s siden

    But it does not work.

    Here is a screenshot: http://min.us/lldwdq8bs97xS

    As you can see it is translated from “days” to “dage”. And then the english word “ago” comes in, wich should have been “siden”.

    Can you help me, please? D:

    #109939
    dominornovus
    Member

    I’ve figured out how to change the bread crumb separator:

    <br /><br />
    // Change bbPress bread crumb separator.
    function filter_bbPress_breadcrumb_separator() {
    //$sep = ' &raquo; ';
    $sep = is_rtl() ? __( ' &laquo; ', 'bbpress' ) : __( ' &raquo; ', 'bbpress' );
    return $sep;
    }
    
    add_filter('bbp_breadcrumb_separator', 'filter_bbPress_breadcrumb_separator');

    I have not yet figured out how to add “You are here: ” at the start of the bread crumbs:

    I’ve tried this…

    <br /><br />
    function my_breadcrumb_trail_args( $trail ) {<br /><br />
    $args = '<div class="bbp-breadcrumb"><p>You are here: ';<br /><br />
    return $args;<br /><br />
    };<br /><br />
    add_filter( 'breadcrumb_trail_args', 'my_breadcrumb_trail_args' );<br /><br />
    

    …and this…

    <br /><br />
    function test($defaults) {<br /><br />
    $defaults = array(<br /><br />
    'before' => '<div class="bbp-breadcrumb"><p>You are here: ',<br /><br />
    );<br /><br />
    return $defaults;<br /><br />
    }<br /><br />
    add_filter('bbp_breadcrumb','test_args');<br /><br />
    

    Neither work.

    For now I’ve taken the hacky approach and just edited my bbPress files directly. You can see it in action here: http://www.directsponsor.org/forums/

    Any assistance with the filter would be greatly appreciated.

    #109886
    spicynodes
    Member

    Just checking in again…

    Are there options for short code [bbp-topic-index]?

    e.g.

    [bbp-topic-index max=7 pagination=off breadcrumbs=off]

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