Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,551 through 14,575 (of 32,522 total)
  • Author
    Search Results
  • #129831
    Debely
    Participant

    Hi everyone

    I’ve bee banging my head for a couple of days with my bbpress forum. There is a problem with the sidebar on the forum page as you can see here http://tricksforaffiliates.com/?post_type=forum . The sidebar location is before the main page instead of next to it. It works ok everywhere else.

    I’ve tried to find where the problem lies. At first I called the forum via a page with the link to option and could remove the sidebar from page.php but of course that made it disappear everywhere else too. I checked the bbpress php files and usually appears before the footer call not after header. I don’t know if that tells me anything.

    I also tried finding something with firebug but to no avail. I am able to remove the dash and the page looks ok, but the problem is cause I can’t figure out which document the code refers to and don’t know where to search for a problem.

    Any help would be greatly appreciated.

    Wordpress version: 3.5.1
    bbPress version: 2.2.4
    Site: tricksforaffiliates.com

    #128796
    talkingD0G
    Participant

    WordPress version: 3.5.1
    bbpress version: 2.2.4
    http://cchfh.org/test

    I created a user role called Board using “members” plugin and assigned all roles shown here for participant (http://codex.bbpress.org/bbpress-user-roles-and-capabilities/#participant)

    I set the WordPress General settings, New User Default Role, to Board.

    I set the Default role for the Forum to Participant.

    I created a test user account which is set to Board and Participant. When I login with that account and go to the test page the forum doesn’t show up. But it does show up with my Admin role account.

    What am I doing wrong?

    AllenPayne
    Participant

    Well here’s what i’m trying to do..

    I want to show an images below usernames in my bbpress forums, based on the WordPress role of each forum poster.

    Here’s what i figured out so far:

    – I found out that i need to edit loop-single-reply.php to show something under username.
    – I figured out (i think :P) that bp_get_reply_author_id() is the string that gets the details of the bbpress poster.

    Now here’s what i got so far:

    global $current_user;
    bp_get_reply_author_id();
    switch (true) {
    case ( user_can( $current_user, “subscriber”) ):
    echo ‘image’;
    break;
    case ( user_can( $current_user, “contributor”) ):
    echo ‘image’;
    break;
    case ( user_can( $current_user, “administrator”) ):
    echo ‘image’;
    break;
    }

    My code doesn’t work. I cannot get it to show an image based on the WP role (not bbpress) of the user. Can anyone help?

    wpmhweb
    Participant

    Thanks, but what I was trying to say is: if I want to add a banner or a piece of code to the bbPress theme, in which file can I paste the code so it shows in the whole forum’s site? So I don’t have to repeat the code over and over.

    Thank you 🙂

    #128272
    Pippin Williamson
    Participant

    You can use the following three filters:

    bbp_get_forum_class
    bbp_get_topic_class
    bbp_get_reply_class

    Each of them function exactly like the core WordPress post_class filter: https://codex.wordpress.org/Function_Reference/post_class

    wpmhweb
    Participant

    Hello,

    I would like to add, let’s say a link, at the top of all bbPress pages. In which file can I do this so I don’t have to be adding the same piece of code in every file manually, and only in the bbpress, not throughout the actual site.

    Thanks,

    #128238
    AllenPayne
    Participant

    Alright so i came up with this function:

    /* Allowed Tags */

    add_action(‘init’, ‘my_html_tags_code’, 10);
    function my_html_tags_code() {
    define(‘CUSTOM_TAGS’, true);
    global $allowedtags;
    $allowedtags = array(
    ‘address’ => array(),
    ‘a’ => array(
    ‘class’ => true,
    ‘href’ => true,
    ‘id’ => true,
    ‘title’ => true,
    ‘rel’ => true,
    ‘rev’ => true,
    ‘name’ => true,
    ‘target’ => true,
    ),
    ‘abbr’ => array(
    ‘class’ => true,
    ‘title’ => true,
    ),
    ‘acronym’ => array(
    ‘title’ => true,
    ),
    ‘article’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘aside’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘b’ => array(),
    ‘big’ => array(),
    ‘blockquote’ => array(
    ‘id’ => true,
    ‘cite’ => true,
    ‘class’ => true,
    ‘lang’ => true,
    ‘xml:lang’ => true,
    ),
    ‘br’ => array (
    ‘class’ => true,
    ),
    ‘button’ => array(
    ‘disabled’ => true,
    ‘name’ => true,
    ‘type’ => true,
    ‘value’ => true,
    ),
    ‘caption’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ),
    ‘cite’ => array (
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘title’ => true,
    ),
    ‘code’ => array (
    ‘style’ => true,
    ),
    ‘col’ => array(
    ‘align’ => true,
    ‘char’ => true,
    ‘charoff’ => true,
    ‘span’ => true,
    ‘dir’ => true,
    ‘style’ => true,
    ‘valign’ => true,
    ‘width’ => true,
    ),
    ‘del’ => array(
    ‘datetime’ => true,
    ),
    ‘dd’ => array(),
    ‘details’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘open’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘div’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘dl’ => array(),
    ‘dt’ => array(),
    ’em’ => array(),
    ‘fieldset’ => array(),
    ‘figure’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘figcaption’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘font’ => array(
    ‘color’ => true,
    ‘face’ => true,
    ‘size’ => true,
    ),
    ‘footer’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘form’ => array(
    ‘action’ => true,
    ‘accept’ => true,
    ‘accept-charset’ => true,
    ‘enctype’ => true,
    ‘method’ => true,
    ‘name’ => true,
    ‘target’ => true,
    ),
    ‘h1’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘id’ => true,
    ‘style’ => true,
    ),
    ‘h2’ => array (
    ‘align’ => true,
    ‘class’ => true,
    ‘id’ => true,
    ‘style’ => true,
    ),
    ‘h3’ => array (
    ‘align’ => true,
    ‘class’ => true,
    ‘id’ => true,
    ‘style’ => true,
    ),
    ‘h4’ => array (
    ‘align’ => true,
    ‘class’ => true,
    ‘id’ => true,
    ‘style’ => true,
    ),
    ‘h5’ => array (
    ‘align’ => true,
    ‘class’ => true,
    ‘id’ => true,
    ‘style’ => true,
    ),
    ‘h6’ => array (
    ‘align’ => true,
    ‘class’ => true,
    ‘id’ => true,
    ‘style’ => true,
    ),
    ‘header’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘hgroup’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘hr’ => array (
    ‘align’ => true,
    ‘class’ => true,
    ‘noshade’ => true,
    ‘size’ => true,
    ‘width’ => true,
    ),
    ‘i’ => array(),
    ‘img’ => array(
    ‘alt’ => true,
    ‘align’ => true,
    ‘border’ => true,
    ‘class’ => true,
    ‘height’ => true,
    ‘hspace’ => true,
    ‘longdesc’ => true,
    ‘vspace’ => true,
    ‘src’ => true,
    ‘style’ => true,
    ‘width’ => true,
    ),
    ‘ins’ => array(
    ‘datetime’ => true,
    ‘cite’ => true,
    ),
    ‘kbd’ => array(),
    ‘label’ => array(
    ‘for’ => true,
    ),
    ‘legend’ => array(
    ‘align’ => true,
    ),
    ‘li’ => array (
    ‘align’ => true,
    ‘class’ => true,
    ),
    ‘menu’ => array (
    ‘class’ => true,
    ‘style’ => true,
    ‘type’ => true,
    ),
    ‘nav’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘p’ => array(
    ‘class’ => true,
    ‘align’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘pre’ => array(
    ‘style’ => true,
    ‘width’ => true,
    ),
    ‘q’ => array(
    ‘cite’ => true,
    ),
    ‘s’ => array(),
    ‘span’ => array (
    ‘class’ => true,
    ‘dir’ => true,
    ‘align’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘title’ => true,
    ‘xml:lang’ => true,
    ),
    ‘section’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘strike’ => array(),
    ‘strong’ => array(),
    ‘sub’ => array(),
    ‘summary’ => array(
    ‘align’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘lang’ => true,
    ‘style’ => true,
    ‘xml:lang’ => true,
    ),
    ‘sup’ => array(),
    ‘table’ => array(
    ‘align’ => true,
    ‘bgcolor’ => true,
    ‘border’ => true,
    ‘cellpadding’ => true,
    ‘cellspacing’ => true,
    ‘class’ => true,
    ‘dir’ => true,
    ‘id’ => true,
    ‘rules’ => true,
    ‘style’ => true,
    ‘summary’ => true,
    ‘width’ => true,
    ),
    ‘tbody’ => array(
    ‘align’ => true,
    ‘char’ => true,
    ‘charoff’ => true,
    ‘valign’ => true,
    ),
    ‘td’ => array(
    ‘abbr’ => true,
    ‘align’ => true,
    ‘axis’ => true,
    ‘bgcolor’ => true,
    ‘char’ => true,
    ‘charoff’ => true,
    ‘class’ => true,
    ‘colspan’ => true,
    ‘dir’ => true,
    ‘headers’ => true,
    ‘height’ => true,
    ‘nowrap’ => true,
    ‘rowspan’ => true,
    ‘scope’ => true,
    ‘style’ => true,
    ‘valign’ => true,
    ‘width’ => true,
    ),
    ‘textarea’ => array(
    ‘cols’ => true,
    ‘rows’ => true,
    ‘disabled’ => true,
    ‘name’ => true,
    ‘readonly’ => true,
    ),
    ‘tfoot’ => array(
    ‘align’ => true,
    ‘char’ => true,
    ‘class’ => true,
    ‘charoff’ => true,
    ‘valign’ => true,
    ),
    ‘th’ => array(
    ‘abbr’ => true,
    ‘align’ => true,
    ‘axis’ => true,
    ‘bgcolor’ => true,
    ‘char’ => true,
    ‘charoff’ => true,
    ‘class’ => true,
    ‘colspan’ => true,
    ‘headers’ => true,
    ‘height’ => true,
    ‘nowrap’ => true,
    ‘rowspan’ => true,
    ‘scope’ => true,
    ‘valign’ => true,
    ‘width’ => true,
    ),
    ‘thead’ => array(
    ‘align’ => true,
    ‘char’ => true,
    ‘charoff’ => true,
    ‘class’ => true,
    ‘valign’ => true,
    ),
    ‘title’ => array(),
    ‘tr’ => array(
    ‘align’ => true,
    ‘bgcolor’ => true,
    ‘char’ => true,
    ‘charoff’ => true,
    ‘class’ => true,
    ‘style’ => true,
    ‘valign’ => true,
    ),
    ‘tt’ => array(),
    ‘u’ => array(),
    ‘ul’ => array (
    ‘class’ => true,
    ‘style’ => true,
    ‘type’ => true,
    ),
    ‘ol’ => array (
    ‘class’ => true,
    ‘start’ => true,
    ‘style’ => true,
    ‘type’ => true,
    ),
    ‘var’ => array(),
    );

    }

    Is there anything i should take out? For security reasons?

    #128237
    prokoudine
    Participant

    Well I’m just thinking that you may have had an error in the code since you got 500. That’s all.

    Um, I’m just not that experienced 🙂

    Should the code be appended to the end? Does its position matter at all?

    #128236
    AllenPayne
    Participant

    I found a way to make it work without disabling filtering completely. I placed this in functions.php:

    add_action(‘init’, ‘my_html_tags_code’, 10);
    function my_html_tags_code() {
    global $allowedposttags, $allowedtags;
    //$allowedposttags[“ol”] = array();
    //$allowedposttags[“ul”] = array();
    $allowedtags[“ol”] = array();
    $allowedtags[“ul”] = array();
    $allowedtags[“li”] = array();
    $allowedtags[“span”] = array( “style” => array() );
    }

    Now i have another problem. I use the Ultimate TinyMCE plugin and i have many other buttons on my editor that don’t work (i.e. Add Images, Add Video, …etc)

    How can i know what tags they are using so i can put them in the function above?

    #128234
    Inzman
    Participant

    Well I’m just thinking that you may have had an error in the code since you got 500. That’s all.

    #128064
    AllenPayne
    Participant

    @synergywp1 I can’t get this to work…Can you post the whole code on PasteBin.com and share it? I would really appreciate it.

    #127975
    Yakir Gottesman
    Participant

    It is very easy. You just don’t need this HTML code!

    This text box should use the defaults of the WordPress installation or the theme basic css instructions. The problem is that you specify the DIR in the html code, so there is no way around it using css.

    If it is really important for some reason, you can use css: direction=”ltr”. We could walk around it using the rtl.css or using !important or something.

    #127956

    In reply to: Full Size Forum

    @mercime
    Moderator

    @supernaturalbrews Glad it worked out well for you. Sure, raincheck on the beer in KC! 🙂


    @plasterius
    no need and please don’t give credentials to people you just “met” in forums. I gather by your response that the theme has proprietary code within. I will suggest that you contact theme author and ask which template or ask for a template that will render full-width layout.

    #127917

    In reply to: Sorting Topics

    Stephen Edgar
    Keymaster

    It is built in… bbp_has_topics can be set using orderby to any of ‘author’, ‘date’, ‘title’, ‘modified’, ‘parent’ or ‘random’

    https://bbpress.trac.wordpress.org/browser/trunk/includes/topics/template-tags.php#L84

    #127912
    Stephen Edgar
    Keymaster

    See this to get started with using custom templates https://codex.bbpress.org/theme-compatibility/

    #127909
    Stephen Edgar
    Keymaster

    bbPress 2.x is a plugin for WordPress just like any ‘other’ WordPress plugin and is no longer a ‘stand alone’ web app needing a bb-config.php. Everything is stored in the main WP database primarily using ‘Custom Post Types’ for the forum bits and all user bits are just WP users.

    About

    Features

    Installation

    https://codex.bbpress.org/getting-started-with-bbpress/

    (Beware of any ‘legacy’ and/or posts ~2 years old in regard to bbPress as these typically refer to the old ‘Stand Alone’ version)

    #127903
    faeleena
    Participant

    My goal is to share one DB between wp and bbpress, one registration, seamless for users. The process of accomplishing this seems to have changed.

    There’s all sorts of documentation on this topic and I’ve spent the last five hours trying to find my answer before bothering the good people of the internet, so I would greatly appreciate a hand now. It would appear that in recent changes, bb-config.php no longer exists? Installation process where you can fill out DB details in an easy form process seems to be gone?

    Integrating with WordPress

    So the settings must be in a config file somewhere! This infamous “WordPress Integration” section must be somewhere!

    I’m using WordPress 3.5.1 and BBpress 2.2.4

    Thanks.

    #127895

    In reply to: pdf embed

    Sam Rohn
    Participant

    you need to use something like GD bbPress Tools to enable shortcodes for bbpress

    https://wordpress.org/extend/plugins/gd-bbpress-tools/

    sam

    #127893
    sambedingfield
    Participant

    @rewindcaz I actually disabled all of the default avatar systems that WordPress provides and created my own with a few small functions. I needed a custom made plugin because each avatar on the site is unlocked when you receive a new card to your collection.  Users can also customize their chosen avatar with nine alternative colours, which helps provide individuality.

    As I’ve received a ton of feedback from the Rats Clan bbPress forum I’m going to start blogging about my code – I’ll make sure this is one of my posts! 🙂

    #127889
    graftedin
    Participant

    Has anyone figured out how to sort topics, discussions, or replies? I would think that would be some basic functionality that would be built in. Or at least easy enough to find in the code to change.

    I need to sort topics by topic name. Using version 2.2.4.

    Gökay
    Participant

    Hello all.

    I’ve just deleted Simple Press, because I couldn’t import editor except plain editor.

    I’ve installed this bbpress forum and I have no information about change or basic development.

    For example I have a page that was installed simple press upon it. http://www.oyundragon.com/forum

    And it is full-width. That’s why I want to use that page to show bbpress forum. Inserted shortcoded, good, it works But what a pity there is a bbpress forum page as you know http://www.oyundragon.com/forums

    What should I do ?

    Secondly how can I change “forum” title in the top of every forum sections in the content ?

    #127876
    #127871
    Yakir Gottesman
    Participant

    http://www.may81.com/forums/forum/may81/

    Again, you shouldn’t put the dir=”ltr” in the code. It is better to be inherited from the defaults of the website.

    #127869
    vanmanuel83
    Participant

    Hi all, is there a way or snipped, or a type of code to send an email to admin (or or a specific email) everytime a user open a new discussion in a forum.

    I think it’s something to add in a function.php file on eventi post_publish.

    Thanks!

    #127860
    jcangler
    Participant

    Hi, I apologize in advance because it seems like this would be a commonly asked question (and one with a straight-forward solution), but I just can’t seem to find an answer.

    How do I grant forum participants permission to use IMG tags? I don’t need to allow users to upload images inline, I just want to give them the same ability as the Administrator has to embed images using the IMG tags.

    Unless I’m a total idiot, there doesn’t seem to be a built in UI to adjust this user permissions. Is there a simple line of code I can add in somewhere, or does this require a plugin? I prefer a non-plugin solution if possible.

    I am using the User Role Plugin, but not sure how I could use this to enable the permission I’m looking for.

Viewing 25 results - 14,551 through 14,575 (of 32,522 total)
Skip to toolbar