Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,576 through 12,600 (of 14,141 total)
  • In reply to: Simple Layout

    @robin-w

    Moderator

    Not quite sure what you are after

    Do you just want a list of topics?

    you url followed by /topics will get you to a list of topics, but will include freshness

    eg

    http://www.mysite.com/topics

    come back with a more detailed description of what you want and we’ll try to help

    In reply to: Theming Question

    @robin-w

    Moderator

    @robin-w

    Moderator

    no it’s not difficult, but would take a bit of coding

    You’ll need to either create a copy function and use that or amend the topics widget and risk it being overwritten by updates.

    There’s no simple, filter I can see.

    so go into

    bbpress/includes/common/widgets.php

    and on line 807 you’ll see the author-link being created

    the correct solution would be to create a fresh version of this widget, by say copying it to your functions file and renaming it.

    If you just edit the core file, it will be overwritten by updates, but as long as you note what you’ve changed and accept that risk !…

    so you’d need to look up the last reply for that topic, and then do another author link for that reply.

    Sorry, I really busy at the moment earing a living or I so the coding .. so unless someone else steps in, see how far you can get 🙂

    @robin-w

    Moderator

    you shouldn’t be changing directly !

    can you come back and post your code for 2, you’ve just missed a “‘” somewhere I expect.

    In reply to: Fullwidth question

    @robin-w

    Moderator

    great – glad you’re fixed

    @robin-w

    Moderator

    great – glad you’re fixed

    @robin-w

    Moderator

    can you post your solution to help others ?

    @robin-w

    Moderator

    @robin-w

    Moderator

    I presume the forums are currently private?

    What code are you using to display the latest 4 topics

    @robin-w

    Moderator

    if it’s not working try

    color: #404040 !important;

    if bbpress loads after your theme, then it’ll overwrite changes made in your css, ie revert them back

    In reply to: Topic Index Shortcode

    @robin-w

    Moderator

    yes, I’ve started a plugin that does some different shortcodes, and at the moment one that does just that is all that’s in there

    bbp additional shortcodes

    @robin-w

    Moderator

    sorry I’m getting confused

    aren’t you using

    bbp_topic_admin_links

    and then filtering this to just display bbp_get_topic_reply_link
    ????

    @robin-w

    Moderator

    try changing

    bbp_is_topic( $r[‘id’])

    to

    bbp_is_topic()

    the template already knows what the id is

    @robin-w

    Moderator

    where are you putting this code – is it in a bbpress template?

    @robin-w

    Moderator

    ok thanks for that, I’ll see what’s needed.

    The original bbpress will group together things, you child theme can then pick and change individuals.

    So for instance if you were describing your family in a style.css you might have

    mother, daughter 1, daughter 2 {
    wearing : dress
    }
    father, son {
    wearing : jeans
    }

    Say you decided that daughter 2 should have tshirt and jeans, so in your child theme you’d put

    daughter 2 {
    Wearing : tshirt&jeans ;
    }

    This will leave mother and daughter 1 as they were and only change daughter 2

    silly example, but hopefully explains !

    @robin-w

    Moderator

    the example is based on you having a page template in your theme that doesn’t display bbpress well, but works for other pages.

    In that example you could use a different class for bbpress pages to get them to render how you would like. So you would have the if/else.

    the article explains the other way, which is to rename a template to bbpress.php or forums.php, and then simply alter that for whatever bbpress display you want.

    Finally if it’s only bbpress display that you want to alter, you can simply change the bbpress styles in your theme style folder.

    Lots more in documentation, if you are trying to achieve something specific come back and detail it, and I’ll try and help

    @robin-w

    Moderator

    great, glad you’ve got most of it working.

    ok, on that last bit

    tried using this function to post a single admin link for a topic
    and also just by replacing return with echo
    but I cant seem to get that to work

    Can you explain a bit more about what you’re trying to do and where?

    @robin-w

    Moderator
    if (is_bbpress()) :
     div class=”abc”
    else :
     div class=”xyz”
    endif;

    translates to

    if you are on a bbpress screen/page/display [as opposed to a wordpress blog post or page, a home page or anything that isn’t bbpress]

    the use div class abc

    if you are on any other type of page use class xyz.

    Many themes use if statements checking against ‘conditional tags’ to style areas for instance the conditional tag is_home() checks whether this is the home or index page.

    @robin-w

    Moderator

    Hey never apologise for posting interim solutions – great to see your workings and thinking.

    Any plugin that works is good enough to be published, my first was very basic !

    Can you post your final css please, it can be wrapped into the plugin so that it becomes a package.

    In reply to: Remove Private Tag

    @robin-w

    Moderator

    yes put this code in your functions file

    add_filter('protected_title_format', 'ntwb_remove_protected_title');
    function ntwb_remove_protected_title($title) {
    	return '%s';
    }
     
    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }

    for information on functions files see

    Functions files and child themes – explained !

    @robin-w

    Moderator

    @peter-Hamilton – great, knew someone who is better at css would come along !

    @robin-w

    Moderator

    ok,

    the dots are coming from your style.css line 118

    ul {
    list-style: disc outside none;
    }

    change to

    ul {
    list-style: none outside none;
    }

    although you may need to make this forum specific.

    @robin-w

    Moderator

    great – glad you’re fixed !

    In reply to: bbbPress performance

    @robin-w

    Moderator

    Can you just say what happens if you disable the plugin, does it just return to as before?

    @robin-w

    Moderator

    If you’ve cracked the code for the submenu, then groups are a buddypress thing, so their forum might be better.

    But from total ignorance try….

    If you’ve phpmyadmin access, you could set up a user for a group, and see what changes in the usermeta, and then use this to create your filter

    eg
    if say you found that buddypress_group was what was used for groups, you could set the group using

    $current_user = wp_get_current_user();
    $group=get_user_meta( $current_user , 'buddypress_group', true);
    

    then dependant on group

    if ($group==22) then...
    if ($group==23) then....
    
Viewing 25 replies - 12,576 through 12,600 (of 14,141 total)