Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,226 through 15,250 (of 32,503 total)
  • Author
    Search Results
  • #119624

    In reply to: Is this possible?

    lwyndham
    Participant

    Thank you for the responding to me query Anoited!

    I feared that I would get this response, I hoped that perhaps there was a plugin or someone previously may have wanted the same functionality.

    Basically what we want is a forum where people can posts training requests, and the logged in training providers could respond, but we need the responses to be hidden to each other so that rival training providers do not get into a bidding war (so to speak).

    Perhaps there is a way of editing the plugin so that the code used to display the responses has a conditional statement that will only allow the topic originator and admins to view the responses – not sure how difficult this will be to implement if at all possible.

    #119616
    Anointed
    Participant

    There is not currently a shortcode capable of doing this.

    HOWEVER!!
    There is a way of accomplishing this and so much more with a plugin.
    https://wordpress.org/extend/plugins/network-latest-posts/

    If you have ever had to deal with multisite and switch_to_blog() before, then this plugin is going to blow your mind away. Hands down my #1 rated plugin of the year 🙂

    #119607

    In reply to: disabling breadcrumbs

    kristinachilds
    Participant

    argh! the code posting on this forum is so jinky…

    #119602

    In reply to: disabling breadcrumbs

    kristinachilds
    Participant

    I’ve removed all the breadcrumb calls in every template file but they still show up. I can’t use the filter because I have the call in header.php. Any idea why this isn’t working? For now I just solved it with CSS, but would like to know where the hook is.

    #bbpress-forums .bbp-breadcrumb-home, 
    # bbpress-forums .bbp-breadcrumb-root,
    # bbpress-forums .bbp-breadcrumb-separator,
    # bbpress-forums .bbp-breadcrumb-current { display: none; }
    
    #119594
    kristinachilds
    Participant

    I have tried a new approach – using conditional statements in header.php (where my breadcrumbs live) to serve different content for different pages. This won’t let me post PHP code (really??) so here’s a pastebin link http://pastebin.com/PYmw4eL6

    It works! a little clunky but it gets the job done

    #119593
    Keith Kelly
    Participant

    I was thinking the shortcode could include the site id. Something like this:

    [bbp-single-forum siteid=2 id=32]

    I am not sure if that is possible.

    #119588
    glimmerguy
    Participant

    I have the same issue. The sidebar is cutting off all the RH text of people’s forum posts plus hiding the all-important Submit button. What were once very robust forums in Drupal are now dead in the water in WordPress due to this issue.

    I want all the forum pages and posts to be full-width, like the main forums page where I placed the short code. I’m willing to pay someone to help resolve this, since I don’t know how to do coding or create child themes, and can’t use the Genesis plugin since I’m not using a Genesis framework. Any links anyone can point to for help? Thanks. (By the way I now see that this very forum suffers a bit from the same issue—the message box is cut off on the right and the green Submit button is partially cut off—but at least people can see it.)

    kristinachilds
    Participant

    We are adding forums to an existing site rather than having a site that is 100% forums. I already have a breadcrumb set up for the main site but the forums don’t show up in them. Since the bbPress breadcrumb functions are significantly more complex than the simple breadcrumbs I currently use I decided to use bbPress’ crumbs in place of the main one. I have successfully modified the function to include category and single page data in the crumbs (without having “forums” as the base) but the blog root disappears. Help? Here’s what I added to ** Current Text **

    // Category Page
    if (is_category() || is_single()) {
        the_category(' » ');
        if (is_single()) {
            echo " » ";
            the_title();
        }
    

    That omitted the blog root from the crumbs, so I tried this, which didn’t work either.

    if (is_category() || is_single()) {
        $pre_current_text[] = '<a href="' . trailingslashit( home_url() ) . '">Front Row</a>' . the_category(' &raquo; ');
        if (is_single()) {
            echo " &raquo; ";
            the_title();
        }
    

    I’m not really sure what I’m doing here. I’m no function whiz.

    #119562
    Keith Kelly
    Participant

    Is there any shortcode that would allow me to display a forum from one of my other sites on a multisite installation?

    I was hoping to display the latest topics of a forum from site “X” on site “Y” because they share interests. I am hoping to do that with shortcode and not a theme change because I am using the same theme across all of my sites.

    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, 3 months ago by dwbroad.
    • This topic was modified 13 years, 3 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.

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