Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,876 through 5,900 (of 32,519 total)
  • Author
    Search Results
  • #178426
    james8181
    Participant

    I just put your code snipets in and saved it but unfortunately it is not taking effect still.

    View post on imgur.com

    I cleared cache and tried a difference browser too but not showing up

    #178424
    james8181
    Participant

    Hi Robin,

    I re-enabled bbpress and the style pack and it seems stable now.

    Your 2 code snippets are saved but not taking effect:

    .entry-content fieldset legend {
    color: #fff !important;
    }

    #bbpress-forums p.bbp-topic-content, #bbpress-forums p.bbp-reply-content {
    color: #1e73be !important;
    }

    A snipet i made myself to style the background of the reply form is taking effect so this customer code area for css in the beaver theme seems to work for bbpress:

    .bbp-form{
    background-color:rgba(250, 236, 113, 0.90);
    }

    Here is a screenshot of what i still need to style. If you could take a look when you get the chance that would be great. http://imgur.com/a/tKRoc

    Many thanks

    #178420
    james8181
    Participant

    No worries. I appreciate your help with this Robin.

    I am using the beaver builder page builder and their beaver child theme. I am entering it into the Appearance > customizer area. There is an area for code snippets in there. I usually put CSS in their global CSS area but have been advised from beaver builder that CSS that needs to affect dynamically generated pages (ie, not pagesi have created in the wordpress UI) need to be put in here.

    #178402

    In reply to: Multiple Forums

    Robin W
    Moderator

    depends

    if you are just talking about having two forums, then if you want you use shortcodes

    single forum [bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]

    and have

    page 1

    [bbp-single-forum id=32]

    Page 2

    [bbp-single-forum id=35]

    #178397
    Robin W
    Moderator

    Ow!! Sorry – believe it or not, that is the first time anyone has tried that !!

    I’ve coded a fix for the next release that will stop that happening in future.

    Can you tell me where you are adding those snippets? I’m more dubious on the first, but the second should work.

    #178378
    Robin W
    Moderator

    ok, I think the first is your theme, but try adding this to the custom css

    #bbpress-forums p.bbp-topic-content, #bbpress-forums p.bbp-reply-content {
        color: #1e73be !important;
    }

    and also add this for the Reply to :

    .entry-content fieldset legend {
        color: #fff !important;
        }
    #178369
    james8181
    Participant

    Hi Robin,

    I have been trying to persevere with this but i am having problems styling this still. I used the parts from the codex to style the background as below, and that is working nicely.

    /*1 Forum Header and Footer*/
    /*2 Reply header*/
    /*3. Template notice info*/
    (also manually changed the background color of the reply form)

    Everything past that up to 8 does not take effect. I would like to just have all of the text in the forum as black as it is currently white on white. My theme settings for text are set to black so i am not sure why it does not inherit this.

    I have tried manually changing each element on there but nothing takes effect (tried prefixing them all with #bbpress-forums like your snippets too). IF you could spare a moment could you take a look at the page (I’ve changed it to show when not logged in) and advise me on what i am doing wrong. Below are all of the areas of text i need as black which i am just appending with { color:#000000;}

    A) On the list of all forums page:

    bbp-forum-info
    bbp-forum-topic-count
    bbp-forum-reply-count
    bbp-forum-freshness

    B) on any topic page with create a new topic option:

    bbp-forum-description
    bbp-topic-permalink
    bbp-author-name
    bbp-topic-freshness

    (The following bit of text are just showing as “label” in chrome inspect so not sure how to target them)
    Topic Title (Maximum Length: 80):
    Notify me of follow-up replies via email
    Attachments:
    No file chosen

    C) within a topic with reply option

    bbp-reply-content
    bbp-topic-description

    (The following bit of text are just showing as “label” in chrome inspect so not sure how to target them)
    Topic Title (Maximum Length: 80):
    Notify me of follow-up replies via email
    Attachments:
    No file chosen

    2)

    I have noticed a seperate issue:

    http://clashingbeavers.com/beaver-forums/
    If i enter any forum and then navigate back by clicking on the Home > Forums link within bbpress UI it will take me to a diffrerent url

    http://clashingbeavers.com/forums/

    and this one looks different. How to stop it taking users to this other url?

    Sorry this went on a bit and your advice is much appreciated!
    Many thanks

    #178367
    james8181
    Participant

    Actually, i will just use change the css using this very informative article:

    bbPress Styling Crib

    I was being lazy not to have done this originally!
    cheers!

    #178360
    james8181
    Participant

    Hello,

    When any user posts in any forum the following error messages appear, however the message DOES actually post. Anyone know what is causing this problem? and how to fix it. I am not a programmer so the code does not mean much to me

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘BBP_Admin_Replies’ does not have a method ‘update_reply’ in /home/clashing/public_html/wp-includes/plugin.php on line 524

    Warning: Cannot modify header information – headers already sent by (output started at /home/clashing/public_html/wp-includes/plugin.php:524) in /home/clashing/public_html/wp-includes/pluggable.php on line 1174

    WordPress 4.6.1
    bbpress Version 2.5.10
    Beaver Builder Child ThemeVersion: 1.0
    http://clashingbeavers.com/beaver-forums/ (although the forums are hidden when not logged in)

    Thanks for you help

    #178352
    Stephen Edgar
    Keymaster

    Yes, you sure can, either way you mention would work, another option is multisite.

    That said, for either way you mention you’d utilise “shared user tables”

    See this codex doc on setting that up: https://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables

    #178327
    Fourmi
    Participant

    Sorry my message was lacking one useful info! I’m using it from a theme file’s code, using
    echo do_shortcode('[bbp-single-tag id=19]');
    (19 is a correct topic tag id)

    It’s printing the same content that’s in the page I’m looking at (ex: in a forum I see the topics of the forum instead of the topics with the tag). It’s working if I update the query before calling the shortcode:

    $wp_query = new WP_Query(array('post_type' => 'topic'));

    I thought it should be working without having to add this but now it works so I’m happy!

    Thanks for your help!

    #178316
    Robkk
    Moderator

    It works fine for me, remember to use a topic tags id instead of a name.

    [bbp-single-tag id=$tag_id] – Display a list of all topics associated with a specific tag. eg. [bbp-single-tag id=64]

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

    To find a topic tags id, you can go to Topics > Topic Tags in the WordPress backend, then edit a topic tag and look at the url. You should see something like this. You can also hover over each edit link and look at the bottom left and see the same url appear. You will see tag_ID=(number).

    yoursite.com/wp-admin/term.php?taxonomy=topic-tag&tag_ID=4&post_type=topic&…

    To make it easier to find an ID of a post, tag, user, you can also install the Reveal IDs plugins to add a column to tables that show the ID.

    #178314
    Fourmi
    Participant

    I’m trying to use this shortcode and it’s not working. I saw this issue was reported several times by the past and it seemed to be resolved but it’s still not working for me.
    I think this was the original ticket: https://bbpress.trac.wordpress.org/ticket/1948

    I want to achieve the same comportment – get a list of topics classified under a specific topic tag. Is there a way I can get the shortcode to work OR could you help me code a workaround?

    Thanks in advance!

    #178307
    Robkk
    Moderator
    #178304
    pawankumarr
    Participant

    $user = get_userdata( $user_id );
    $registerdate = $user->user_registered;
    echo date(“Y-m-d”, strtotime($registerdate));

    in this code please provide full code with bbpress user id

    there we can print actual date

    #178299
    Stephen Edgar
    Keymaster

    You’d need to first get the Discourse database converted to MySQL (I think it’s Postgres?)

    Once that’s taken care of a custom importer script could be created

    Custom Import

    I don’t know of anyone that has tried the above, but that method should work

    #178294
    traypup
    Participant

    Thanks @robkk — oddly, that didn’t do anything at all to the buttons. But, I added an !important and that did the trick. Thanks again!

    #178275
    Jon Fergus
    Participant

    Hi Robkk. I’m interested in allowing unrestricted html for certain known and approved members. I was able to use a User Role editor to allow specific users to post unrestricted html using the unfiltered_html capability, and when I log in with a test member (participant level), I can see the warning “Your account has the ability to post unrestricted HTML content” but when I make a reply with that member the reply doesn’t show up (after I click “submit” the page reloads but there’s no new reply). Seems like it’s being blocked from posting or something. Do you know what else I need to do in order to allow this member to reply with unrestricted html and have it actually work?

    p.s. I tried this https://gist.github.com/ntwb/7797990 but it didn’t solve the problem of regular members not being able to copy/paste from other programs (like Word) without the code showing up in the reply. See here: example of posting before and after adding code to functions.php to enable html formatting

    #178273
    Jon Fergus
    Participant

    When someone makes a reply to one of our topics, the automatic emails sent to subscribers of the topic contains style formatting that makes it very difficult to read.

    This is an example from a recent reply:

    <p class="MsoNormal">“The two schools of Buddha's doctrine, the esoteric and the exoteric, are respectively called the ‘Heart’ and the ‘Eye’ Doctrine. Bodhidharma called them in China — from whence the names reached Tibet — the <span style="font-family: 'Calibri','sans-serif';">Tsung-men</span> (esoteric) and <span style="font-family: 'Calibri','sans-serif';">Kiau-men</span> (exoteric school). It is so named, because it is the teaching which emanated from Gautama Buddha's <span style="font-family: 'Calibri','sans-serif';">heart</span>, whereas the ‘Eye’ Doctrine was the work of his head or brain. The ‘Heart Doctrine’ is also called ‘the seal of truth’ or the ‘true seal, a symbol found on the heading of almost all esoteric works.</p>
    <p class="MsoNormal">"Secret Heart" is the esoteric doctrine.</p>
    <p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; line-height: normal; mso-outline-level: 5;"><b><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';">H. P. Blavatsky, The Voice</span><i><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"> of the Silence</span></i></b><b><span style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';">, Fragment 11. The Two Paths. </span></b></p>
    <p class="MsoNormal">http://www.theosociety.org/pasadena/voice/voice2.htm#nn1</p>
    
    Post Link: http://nexus.universaltheosophy.com/groups/art-of-living-study-group/forum/topic/weekly-theme-for-contemplation-the-law-of-love/#post-3548

    This happens when people copy/paste into their reply from another program (i.e. Word, etc.). How can we strip this formatting in the emails?

    Details: we’re using the TinyMCE editor for replies, with “Text” and “Visual” field options. If members paste into the “text” field and then switch to the “visual” field before posting, there’s no issue, as wordpress cleans the content itself. But if people paste into the visual field, the formatting remains and gets sent as part of the auto email.
    Also, we’re currently running bbpress 2.5.10 and WordPress 4.6.1.

    #178256
    Scopique
    Participant

    I am trying to get bbPress to work with a theme that doesn’t have support for/within bbPress, and can fake it using custom Admin-created pages and shortcodes, and would also like to know this.

    #178249
    Robkk
    Moderator

    It could be a somewhat common CSS related issue where buttons have white text color in a theme.

    Try this custom css to see if it fixes it. Place the custom css in a custom css plugin or in a child themes style.css file.

    This is just an example and you might need additional css if the button background color changes on hover to something dark as well.

    #bbpress-forums .wp-editor-container .button {
      color: black;
    }
    #178247
    Robkk
    Moderator

    I personally do not need login info, because I think I know exactly what you are talking about. I am not sure who redacted your info, but know that it was to protect your site from untrusted users.

    What you are looking for is already part of bbPress, its just that the js code that it uses doesn’t quite work for all browsers, and only in IE.

    To fix the issue, you can create or copy the existing reply.js file in a folder called js that should be in the root of your child theme that consists of the new code that is in a trac ticket that fixes this issue.

    This guide will help with what you would need to do with the js file.

    Basically you create a folder called js in your child theme. And just place the new reply.js file.

    https://codex.bbpress.org/themes/theme-compatibility/

    Here is the code for the file. You can also just download the file.

    https://gist.github.com/robkk/e193a869a627f955b427440c13493fa6

    #178235
    Stephen Edgar
    Keymaster

    Ideally you should be using a child theme for your custom bbPress templates. That way you don’t have to worry about this issue 🙂

    Take a look on the docs codex for some help with getting started with custom templates:

    https://codex.bbpress.org/?s=child+theme

    With that said though, here is a link showing the changes from 2.5.9 to 2.5.10, it’s a single change to includes/users/template.php, and is quite important you upgrade your templates with this change.

    #178232
    Stephen Edgar
    Keymaster

    Hopefully some of the links on our codex docs page will help get you started:

    Codex

    #178231
    Robkk
    Moderator

    There are a few guides in the codex that might help.

    Are there any specific things you want to know how to customize??

    Customize is such a broad term, and relating to bbPress it can go from creating code snippets, installing plugins, to styling, to adjusting the bbPress theme to your needs in a child theme, or just creating a custom theme/theme package all together.

Viewing 25 results - 5,876 through 5,900 (of 32,519 total)
Skip to toolbar