Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,251 through 15,275 (of 32,519 total)
  • Author
    Search Results
  • Justin Frydman
    Participant

    Add this to functions.php: it will filter the bbpress function that shows the avatar to switch it to using full.


    function fix_forum_avatar($author_avatar = false, $reply_id = false, $size = false) {
    echo str_replace('-bpthumb', '-bpfull', $author_avatar );
    }
    add_filter('bbp_get_reply_author_avatar', 'fix_forum_avatar');

    #119528
    rolandrnl
    Participant

    Im using fresh bbpress installed and i didnt modified the files. I use shortcode for registration.

    http://dev.codenamegta.hu/regisztracio please help to solve this problem

    #119518
    Stephen Edgar
    Keymaster

    I had been down this path before and now have a patch and the key to it indeed was as you mentioned the before_link and after_link.

    The patch is here with example code that should help you out rather that that ^^^ up there 😉

    #119517
    Stephen Edgar
    Keymaster

    I’m not sure why it is doing that, have you modified or using custom bbPress templates with your theme?

    > How can I disable the redirection after the registration? It’s very
    > annoying if the user the a login registration form with different
    > design.
    What about using the bbPress shortcodes for Login/Register? https://codex.bbpress.org/shortcodes

    #119506
    rolandrnl
    Participant

    Hello,

    I have a dev version of my website so sorry but you have to enter the password and the username: dev/dev1234

    My problem is with the profile page, if you check it you can see the header with the AMS name not fits perfectly. So I want to change. If I change it the header is change every post page.

    If you check the css classes you can see the following: post-1693 post type-post status-publish format-standard hentry category-vice-city tag-evfordulo tag-focimdal

    I don’t know why but the profile page get the latest posts css classes. Why?

    The posts url: http://dev.codenamegta.hu/2012/majamihiroz-vice-city-focimdala/

    The profile url: http://dev.codenamegta.hu/forumok/tagok/ams/

    How can I disable the redirection after the registration? It’s very annoying if the user the a login registration form with different design.

    Thank you very much!

    #119487

    In reply to: Lead Topic

    Stephen Edgar
    Keymaster

    It actually was already in the Codex here: https://codex.bbpress.org/bbp_show_lead_topic/

    It had the incorrect details though, I have just put a quick update up now.

    #119466
    Shmoo
    Participant

    Just reporting a problem..

    After i activated the Topic Lead option i can’t use the Edit button anymore.


    add_filter( 'bbp_show_lead_topic', '__return_true' );

    Replies i can still edit front-end, but not the Lead Topic anymore.

    #119455
    Shmoo
    Participant

    Create a new page and use the [ shortcodes ]

    https://codex.bbpress.org/shortcodes/
    (bottom)

    #119454
    Shmoo
    Participant

    Step 4:

    The code is a bit messy.
    Here is the code in Pastebin.

    http://pastebin.com/0iA4ReV9

    Change the default to the NEW and you’re done.

    #119453
    Shmoo
    Participant

    Alright guys i’ve got a solution,

    Please note, i have ZERO PHP skills so this probably isn’t the best solution on earth but i think it’s a good work-around to get the job done ‘easy’..

    If some PHP developer reads this topic and thinks, damn this guy is going crazy with all his copy-/pasting stuff please feel free to modify this code..

    What did i do:
    First i opened up the Core template file of bbPress where the Breadcrumbs function is made.
    I have copied the code and pasted inside a new PHP document, made some simple HTML changes before and after the urls and called this new template file inside my Theme’s functions.php

    Last i called my custom Breadcrumb PHP code just to make sure my code is loaded and not the default bbPress code..

    Here you go.
    When your done it should look like this structure..
    http://i46.tinypic.com/33z93lg.png

    Nothing too fancy but the only difference, it’s made by a HTML List , like it should be in 2012 because a Breadcrumbs is a navigation and not just 5 URLs behind each other.
    http://twitter.github.com/bootstrap/components.html#breadcrumbs

    Step 1:
    Paste all this code into a new empty PHP document and call it breadcrumbs.php
    When your done drop this file into your Themes include folder.
    wp-content / themes / [ your-theme-name ] / inc / * here *
    http://pastebin.com/bWdPEXa5

    Step 2:
    Open your theme functions.php file and add this code to it.
    http://pastebin.com/nJ9pZinq

    Step 3:
    Open the bbPress or WordPress stylesheet and add those few lines of CSS to it.
    http://pastebin.com/KyPuknTw

    Step 4:
    Inside the bbPress template files you often find this line of PHP code, it calls the default Breadcrumb function:

    Change that line to this one and your done..

    __( '', 'bbpress' ), ) ); ?.>

    • without the dots before and after the -> .?.

    Hope this helps..

    #119448
    Shmoo
    Participant

    What can i do to overwrite a bbPress Core function and develop my own function..

    Let say i want to overwrite the default bbPress breadcrumb tag.

    I found the Core code inside a Core-template and i pasted this code inside a new PHP document changed all the bbp_ names of all functions to bbp_shmoo_ > Saved it.

    Loaded this new file from the inc. folder into my themes functions.php with the require_once tag..

    Change the PHP code inside my forum template from bbp_breadcrumb(); to bbp_shmoo_breadcrumb(); but this doesn’t work, why does it break my theme ?

    I need a before_link and after_link array.

    This is what a breadcrumb looks like, by default made with a List because it’s a navigation.
    http://twitter.github.com/bootstrap/components.html

    #119447
    Shmoo
    Participant

    @JJJ

    Please do the people on bbPress.org a huge favor and delete all the fancy stuff in this comment-form, just load the default wordpress.ORG comment-form it’s huge and only support a few needed options. This is getting ridicules. People have to be an acrobat to post some code on this forums.

    I can’t copy-/paste @mattsimo code because of this forum-software.

    Safari + Firefox it doesn’t copy the the selected code i needed.

    #119445

    In reply to: Lead Topic

    Shmoo
    Participant

    Maybe a little bit late..

    The Lead Topic ( content-single-topic-lead.php ) is a very powerful but super simple function that can be used to style the Topic Authors different from the Repliers..

    It’s also very useful if you want to add some ads or a simple note to your readers after the first message ( from the topic author)

    Bummer this is nowhere to be found in the Codex.
    But you can activate this option by adding this line of code to your WordPress theme functions.php template file.
    Note i say functions.php and not bbpress-functions.php because you if you would add it to the bbpress-functions.php this code will be overwritten when the bbPress plugin updates in the future.

    add_filter( 'bbp_show_lead_topic', '__return_true' );
    

    Hope that helps..

    fuzzybee
    Participant

    Hi Zaerl,

    Thanks so much.
    I have found the answer for myself actally.

    Yes, I love the fact that bbPress is not obtrusive!
    It almost doesn’t matter at all how I am trying integrate BuddyPress here.

    So this narrow downs to customise bbPress template when installed as a plugin to WordPress.
    The answer is here: https://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ 🙂

    It appears strange to me though.
    Why does this guide belong “legacy” documetation?

    #119425
    dwbroad
    Participant

    I have created a forum and can register a new user and log in using the short codes. I can also go to the forum page and post new topics, etc.

    http://www.davidbroad.co.uk/flac/forums/forum/forum/

    My only problem is when the user is logged in and on their Dashboard page when they click ‘Topics’ or ‘Reply’ in the ‘Right Now in Forums’ box they get this message:

    You do not have sufficient permissions to access this page. apart from this it seems to be working, but this is obliviously going to confuse some users..

    I’m using WordPress 3.4.2 and bbpress 2.1.2

    Thanks,

    David

    • This topic was modified 13 years, 8 months ago by dwbroad.
    • This topic was modified 13 years, 8 months ago by dwbroad.
    #119422
    cloner
    Participant

    Anyone have any idea how to fix the problem that generated this error message:

    bbPress database error: [INSERT command denied to user ‘dbo251638404’@’74.208.16.147’ for table ‘bb_posts’]

    INSERT INTO bb_posts (topic_id,post_text,post_time,poster_id,poster_ip,post_status,post_position,forum_id) VALUES (‘14733′,’

    how about now?

    ‘,’2012-10-31 18:51:07′,’521′,’184.174.187.66′,’0′,’6′,’7’)

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/14/d230503101/htdocs/mh900e/parlare/bb-includes/db-mysql.php:130) in /homepages/14/d230503101/htdocs/mh900e/parlare/bb-includes/pluggable.php on line 232

    The site address is http://www.mh900e.org/parlare/

    Thanks in advance.

    #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, 8 months ago by zeaks.
    • This topic was modified 13 years, 8 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, 8 months ago by Shmoo.
    • This reply was modified 13 years, 8 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, 8 months ago by noski2009.
    • This reply was modified 13 years, 8 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, 8 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 🙁

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