Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,251 through 15,275 (of 32,503 total)
  • Author
    Search Results
  • #119419
    GSmith84
    Participant

    Hello bbPress experts,

    I have searched through the forums to find some means of restricting user access to content and it looks like some of the solutions revolve around a Membership plugin that exists.

    The issue with that is several things, we’re not using User Roles. We’re trying to integrate with the MemberMouse premium plugin and users created via MemberMouse are not assigned roles in wordpress. This makes it useless to restrict access via User Roles. We’re also developing it on Thesis which seems to have a plethora of issues with bbPress regardless (so we have setup the compatibility plugin).

    However, MemberMouse does have user levels and tags to call them via wordpress functions. We can restrict other types of content with means like

    is_user_logged_in() && mm_isMembershipLevel(2)
    

    So we were looking for a means to hook into the forums to create conditional statements like this.

    For the time being we are hooking in the meta box and assigning an ID whether its public or restricted. Unfortunately we couldn’t find any solution letting us hook into the meta box and create restricts using traditional methods like described.

    As such, we are injecting javascript to rewrite html elements for users that do not pass restriction, which is occurring after the page loads. We’ve spent a lot of time on this and would be interested to find out from bbPress veterans if there might be a hook or init function we can connect to, in order to make restrictions not role based but member based using the means provided by the MemberMouse plugin.

    #119415
    tobwithu
    Participant

    Hello, I am newbie to bbpress. I want to setup software manual page like http://codex.bbpress.org/. It has owner, contributors on right side. How can I do it?

    #119404
    zeaks
    Participant

    Wondering if it’s possible to change what the “Code” button outputs on the bbpress editor (html and visual). I want it to use [code] instead of < code .

    Either that or is there a way to add a new button to the editor?

    • This topic was modified 13 years, 3 months ago by zeaks.
    • This topic was modified 13 years, 3 months ago by zeaks.
    #119398

    In reply to: 'Before' pagination?

    Shmoo
    Participant

    I’ve got almost the same problem as @Anointed here, no before and after option..

    Sorry to say but this is typically WordPress development they output Page navigations in < .a href's.. just one after the other and you can only hope there is enough classes to list and style them properly.

    I found this problem with WordPress the first time when i tried to apply Twitter's Bootstrap Page navigation to a WordPress theme.
    This is how a page-navigation should look like anno 2012 in default HTML. http://twitter.github.com/bootstrap/components.html#pagination

    not like this..

            <a href="#">page 1</a>
            <a href="#">page 2</a>
            <a href="#">page 3</a>
    

    • This reply was modified 13 years, 3 months ago by Shmoo.
    • This reply was modified 13 years, 3 months ago by Shmoo.
    #119394

    In reply to: Can't change themes

    noski2009
    Participant

    For some rease the code doesn’t appear here? but it was the php bb_new_topic_forum_dropdown code that I was taking about.

    • This reply was modified 13 years, 3 months ago by noski2009.
    • This reply was modified 13 years, 3 months ago by noski2009.
    #119392
    noski2009
    Participant

    Hi, I’ve been having trouble with bbPress, first I couldn’t post a new topic without getting referred to “This Topic Has Been Closed”. So I thought it might be a theme problem so I changed theme and now it’s stuck to that theme and wont let me go back! I haven’t touched the following or any code for that matter, does anyone have any ideas, really need help with this! Thanks,

    • This topic was modified 13 years, 3 months ago by noski2009.
    #119391
    Mimma
    Participant

    Yes I am sure, it contains eg. tag_ID=10, right?
    i write [bbp-single-topic-tag id=10] but it still shows the empty page

    #119390
    zaerl
    Participant

    Are you sure you selected the right ID from the admin page? The shortcode accept a numeric ID, not the slug.

    #119389
    Mimma
    Participant

    Yes, i mean shortcode that display all topics which have tag N.
    i still doesn’t work and result empty page 🙁

    #119383
    zaerl
    Participant

    Maybe the email has been catalogued as spam. It is a common problem especially if you are using a shared host or something similar. The admin can activate the user in the admin area at http://example.com/wp-admin/users.php

    The activation codes are unique.

    #119382
    zaerl
    Participant

    > how about shortcode single topic tag?

    Do you mean a shortcode that display all topics which have tag N? [bbp-single-topic-tag id=N]

    #119380
    boatkorachal
    Participant

    dddd

    > sdfasdf

    ds![asdf][1]
    
    #119379
    Mimma
    Participant

    how about shortcode single topic tag? I have tried this [bbp-single-topic-tag id=10] and [bbp-single-tag id=10], but it result empty page on my website, can anyone help me ?

    #119378

    In reply to: Shortcode not working

    Mimma
    Participant

    i have try this one too, but it still doesn’t work :'(
    [bbp-single-tag id=12] or [bbp-topic-tag id=12]

    #119370
    chromancer
    Participant

    Hey folks, I had the same problem as you all. With no solution forthcoming, I dug down into the code and used a bunch of debug_zval_dump() statements to see the actual SQL.

    The problem is that the code is producing this query to find out whether or not you have subforums:

    SELECT ID FROM wp_posts WHERE post_parent = 31 AND post_status IN ( 'publish' ) AND post_type = 'forum' ORDER BY ID DESC
    

    But the status for your private subforums is ‘private’. You want to see this:

    SELECT ID FROM wp_posts WHERE post_parent = 31 AND post_status IN ( 'publish','private' ) AND post_type = 'forum' ORDER BY ID DESC
    

    I found this on line 1287 of bb-common-functions.php:

        $post_status = array( bbp_get_public_status_id() );
    

    That line of code is what puts the ( ‘publish’) list in the SQL. I changed it to:

        $post_status = array( bbp_get_public_status_id(), bbp_get_private_status_id() );
    

    Now my subforums are showing up correctly. To see if this fix would have any adverse affects, I created a public forum, added a private subforum and logged out. The private subforum was not visible. Seems like this fix worked for me.

    If you don’t have access to the actual source code, I’m afraid you won’t be able to do what I did, but I wanted to share that for those who do. Perhaps somebody can make some sort of plugin to help everyone else. I’m actually not a PHP guy and hardly know what I’m doing at all and I’m new to bbpress as well. If anybody comes up with anything better, I’d love to see it!

    #119365

    In reply to: Shortcode not working

    Shmoo
    Participant

    Looks like single-topic-tag ID isn’t a supported short code.

    It’s [bbp-single-tag id=12] or [bbp-topic-tag id=12]

    https://codex.bbpress.org/shortcodes/

    #119361

    In reply to: Shortcode not working

    Mimma
    Participant

    i have the same issue ..
    how to fix this problem? Anyone know?
    i have try any shortcode and it still doesn’t work ..
    Thx

    #119327
    JoanBotella
    Participant

    Hi everyone.

    I’m developing a web site with multilingual support, using WordPress 3.4.2 and the Polylang plugin 0.9.4 . I’d love to add a forum to the site, so I downloaded, installed and activated bbPress 2.1.2 .

    The first problem was that bbPress didn’t switch from one language to another, always keeping the default WordPress language. I solved this calling again bbpress()->load_textdomain() before loading the header template:

    function cbp_bbPressTranslate(){
    bpress()-&gt;load_textdomain();
    }
    add_action('get_header','cbp_bbPressTranslate');
    

    This worked great, but soon other problem appeared. If topics and replies doesn’t have translations, they doesn’t show up. I can add translation posts for they from the admin panel, but of course my users can’t. I’ve isolated the problem to the Polylang plugin: switching back to Twenty Eleven theme and deactivating all plugins but Polylang didn’t do anything. Deactivating Polylang showed the topics again.

    I’ve tried other multilingual plugins like xili-language, which works great with bbPress, but lacks of customizing menus panel, wich I need on my site.

    Anyone can help me? Encouraging words will be welcomed too! 😀

    #119315
    #119289

    In reply to: metadata for forums

    Shmoo
    Participant

    Metadata for search engines?

    Use a plugin maybe SEO by Yoast.

    Else use Custom Fields.
    https://codex.wordpress.org/Custom_Fields

    #119287
    Shmoo
    Participant

    I think what he’s trying to say that somebody is working on it.

    This means somebody outside WordPress is making a replica because i can’t believe WordPress giving away the code to the same sites they own. Normally nobody would do so.

    But usual it’s not problem to recreate them and make them look the same, it’s just somebody has to do it in there free time so it takes a little time to complete.

    But maybe i’am mistaken and WordPress is giving you this layout by default inside bbPress.
    Maybe instead of the Twenty Ten option.

    And last, bbPress.org is running on WordPress + bbPress version 2.2 this version hasn’t been released yet and don’t know why the team would do so or tell people that they do. It’s against WordPress ‘thinking’ they never tell people to use development software (code) on Live websites. Always test it on local websites.

    You can find stuff about bbPress version 2.2 and up on this website.

    https://bbpress.trac.wordpress.org/roadmap

    #119285
    Shmoo
    Participant

    I think the WordPress Adminbar is now been called the Toolbar.

    https://codex.wordpress.org/Administration_Screens#Toolbar

    Read and searsh a bit i think it’s very easy to add a link and remove stuff from this Toolbar.
    there are filters i believe you can add to your functions.php to make this happen.

    • There is also a plugin for locking members from going to your back-end made by @jjj
    #119284

    In reply to: page.php as template

    Shmoo
    Participant

    That’s very strange looks like the WP Loop is going somewhere through the sidebar.php file.

    Make sure nowhere in the file is this code also look in the footer or other files that will be used.

    ( without the * )

    But why would you copy stuff form the archive-forum.php template to the page.php template ?
    page.php is used to generate a default WordPress page.

    bbPress has it’s own Custom Templates
    https://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Those can be found in the extra’s folder. For example if you copy page-front-forums.php from the extras folder to your WordPress theme folder you can find it while adding a new Page inside the WordPresss Dashboard.

    Just: Add New Page and in the sidebar on the right side you can find an option the select a different Page Template.
    Pick the new bbPress page template and name your page like Support of whatever the title or (url) of this page has to be and Save it.
    Visit the Page and all the forums will show on that new page.

    Now if you like to add some WordPress (blog) stuff to that page copy it from whatever WordPress template inside the page-front-forums.php

    Make sure you delete the sidebar() code that i showed above out of that template.
    Thats the logic way of working i believe. Don’t touch the page.php because it’s a default WordPress template for making new pages on your website.

    #119276
    Phill
    Participant

    I, like most people using BBpress, have had an issue removing the sidebar from my new BBpress forums. I tried editing template files, adding files into my theme’s root, commenting our sidebar commands and whatever else has been recommended on these forums. Not to say those don’t work – I just couldn’t figure them out which is most likely due to my complete lack of php knowledge. I’m posting this for those of you like me, who have no idea how to do those fancy things.

    Here’s how I removed my sidebar:

    First, I copied over the CSS folder from my BBpress plugin folder /bbp-theme-compat to my theme’s root folder. (From your server root it should be wp-content/plugins/bbpress/bbp-theme-compat/)

    Then, I found the CSS class my theme was using to design the main content of my wordpress blog (should be a style.css file in your theme’s folder). Mine happened to be #main_content. Next, I found the the sidebar CSS in my theme’s style.css file which was simply #sidebar.

    Note: I found the CSS class by right clicking the main content area of my website (where posts show) and selecting “Inspect Element”.

    After finding those I created BBpress specific classes and pasted those into the bbpress.css file now located at {you_theme’s_root}/CSS/bbpress.css.

    Here’s what I pasted in:

    .bbPress #sidebar { 
    width: 0px;
    display:none; }
    
    .bbPress #main-content { width: 940px; !important } 
    

    Most likely you won’t need the sidebar’s width attribute but I added it in just in case.

    And finally, after hours of trying to figure this out I went to my BBress forums page to discover that the forums fit perfectly into my theme without any sign of a sidebar.

    I hope this helps!

    #119273

    In reply to: WordPress comments

    Callum Macdonald
    Participant

    Has anyone found a working solution to this? I’m considering migrating my WordPress plugin support from comments on a WP post / page onto a bbPress forum (so the history is searchable). If such a thing doesn’t exist, I’d need to create it, because the history is what’s really valuable.

    I had a quick look at the basic format and it doesn’t look all that complicated. Each forum, topic, or reply becomes a new entry in wp_posts with some extra metadata stored in wp_postmeta for things like the commenter’s name, email, url, and IP. I reckon the core logic would be pretty straightforward, my biggest question is how to kick off the import process.

    Anyone with development experience interested in collaborating? Or got any existing code to share?

Viewing 25 results - 15,251 through 15,275 (of 32,503 total)
Skip to toolbar