Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,526 through 14,550 (of 32,503 total)
  • Author
    Search Results
  • #130335
    jtong80
    Participant

    I used the login shortcode, but it doesnt let me logout after signing in. Is there a logout shortcode?

    #130324
    E-SOL
    Participant

    I am a new WP (version 3.5.1) user, and I don’t know much about html and other codes. I have set up WP with help from firends, and I have managed to create a forum myself with bbPress (version 2.2.4).
    It looks good, but my problem is that when I return from a topic to my main forum page the title of the page changes to the first topic in the list.
    As a work-around I found a solution that suggested creating a new wp page and adding “[bbp-forum-index]“. This works and looks good, but when I click on Forum to go back to my main forum menu, I am returned to the bbPress main forum menu where the title is wrong. How can I return to my own WP forum page after visiting a topic?
    Is there and address or a code string I can add somewhere in the plugin program? – or perhaps it isn’t that easy? Can anyone please help me?

    #130323
    jtong80
    Participant

    Bump for any help. The URL is aeris.com/forums. I created a new page for this, but the featured image that is supposed to be in the top section gets overwritten by the default template. Is there a way to modify the php so I can put an image in the top section that works on all pages?

    Also the login button is all the way to the right using the login shortcode. How do I move it to the left?

    #129844
    #129841
    jtong80
    Participant

    Ok, I created a new page at aeris.com/aercloudforums and put in the shortcode for login and forum. As you can see with the login shortcode, the signup button ends up all the way to the right. How do I move it to the left with everything else that defaulted to the left?

    Also, when i change the url to aeris.com/forums, it then gets overwritten by bbpress to the standard forum page. How do I make it so I don’t lose the forums structure in the url, but make my new page the one that loads at aeris.com/forums?

    #129834
    Guzman
    Participant

    Hi there,

    I installed bbpress for a Service and Therapy Dog programs for certain Therapy Volunteer members to communicate with each other in this type of forum. I’m tightening up the nuts and bolt on this forum, but one of the members has point on a matter.

    This is what she (Heather a.k.a. mheather54) said,

    “.…i can go straight to the post from my email link (email notification), i still need to log in if i want to post (which is a good thing), but it would be nice if, when i log in, it redirects me back to the post i was reading, or at least to the therapy volunteer forum.  instead, it takes me all the way out to my word press profile.

    Reply link to T.V. member mheather54: http://pawsteams.org/tv-forum/forums/topic/forum-placement/#post-95

    Is there a way that I can re-direct the user back to the post when they log-in to reply to topic??? Also, I noticed that when I log-in, it sends me to my dashboard instead of the actual forum.

    What I have running under the hood of WP:

    • WP version 3.5.1
    • bbPress version 2.2.4

    WP Theme: Twenty Twelve version 1.1

    WP Plugins that are active:

    • Akismet version 2.5.7
    • bbPress version 2.2.4
    • bbPress Notify version 0.2.1
    • Captcha Code version 2.1
    • Hello Dolly version 1.6
    • Login LockDown version 1.5
    • Ultimate TinyMCE (free) version 4.1
    • WordPress Importer 0.6

    Here’s the link to the landing page: http://pawsteams.org/tv-forum/

    I would greatly appreciate your help! 🙂

    Warmest Regards,

    David G

    #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! 🙂

Viewing 25 results - 14,526 through 14,550 (of 32,503 total)
Skip to toolbar