Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,076 through 8,100 (of 32,519 total)
  • Author
    Search Results
  • #165639
    Robkk
    Moderator

    I thought wp super cache was disabled, I see this in the source code of the page you linked to.

    <!-- Dynamic page generated in 1.134 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2015-08-21 00:20:54 -->
    
    <!-- super cache -->

    You most likely need to flush the cache to see everything correctly and up to date.

    #165634
    Robkk
    Moderator

    Also know instead of placing code in your child theme you could paste any custom CSS in the many custom css plugins or the custom CSS module in Jetpack for example, and PHP code functions into a plugin like functionality.

    https://wordpress.org/plugins/functionality/

    #165633
    gptxffa
    Participant

    I see, thanks for the advice.

    I will try to see what I can accomplish with the code above and let you know 😀

    Thanks

    #165630
    Robkk
    Moderator

    Alright just so you know I can’t really do Admin access type stuff anymore, I am following some guide from the WordPress.org codex about moderators not needing to gain admin access because they will be going too far, its something like that. I also got a talking to, to stop doing it by some people on this site to, I mostly helped with commercial products because I could find the issue faster if I am more hands on and find a bbPress/theme/plugin bug faster, than telling the users to just ask the theme/plugin author. Plus in this case I do not really need to have an admin account, so you can delete that account you created for me again.

    From what I can see the downloaded theme is Jolene and you can just edit the Biker theme since it is already a child theme. If the Biker theme is frequently being updated (which it really shouldn’t), then I guess creating a grandchild theme like what you are doing would be the best approach.

    #165625
    Robkk
    Moderator

    Go to Settings > Forums and change the forum root to show Topics by Freshness.

    Then add this function to your child themes functions.php or into a functionality plugin.

    function recent_bbpress_topics() { 
     echo do_shortcode("[bbp-forum-index]");
    }
    
    add_action('bbp_template_after_topics_index','recent_bbpress_topics');

    Plus I swear I helped you on the forum avatar being too huge issue.

    #165617
    Robkk
    Moderator

    Troubleshooting is always the first answer to most questions on here.

    Troubleshooting

    #165606
    Robkk
    Moderator

    @mei-ling

    Well I did mess up the code anyway, you can copy the code I edited above to see if it works again if you want.

    -Don’t Drink and Code.

    #165605
    Robkk
    Moderator

    @arikg

    Those shortcodes really weren’t designed for situations like that. It wasn’t meant for a 1 page app for your forum, it doesn’t use something like Iframe, or anything like that.

    But if you want to say create a page about a plugin, and you have a certain forum for a plugin. You can create that page and below all the content you can place the single forum shortcode to display any support posts about this specific plugin.

    #165603
    Robkk
    Moderator

    I cannot reproduce on my wampserver with the permalinks with ID plugin so it is not that.

    I did find information about this though, the #038; should be &which makes sense.

    If you search for this kind of error in google, you will see countless posts of themes, plugins, and WordPress itself having the issue, So maybe make sure you have everything up to date.

    There are some fixes online too, but they are mostly saying edit WordPress core files to fix it

    #165594
    AntonHoelstad
    Participant

    Now I’ve tried again from the very beginning, with all the original files for the plugin etc. It has the exact same issue – which means that the problem must be in one of the following files coding – since these are the only ones with the “bbp-search-request” and/or “bbp_search” in it.

    Can you see any problems or issues with these files?

    templates/default/bbpress/form-search.php

    https://gist.github.com/anonymous/496fd16abe6f4188e4a0

    includes/search/functions.php

    https://gist.github.com/anonymous/bdb60f2e51201ffb2cf5

    includes/core/actions.php

    https://gist.github.com/anonymous/7eed8ef36becd703a5a7

    bbpress.php

    https://gist.github.com/anonymous/626d687f57dfaaa257ca

    templates/default/bbpress/loop-search.php

    https://gist.github.com/anonymous/83570d171156e157fb3d

    includes/core/options.php

    https://gist.github.com/anonymous/10fe8cfcaa4518241184

    includes/admin/settings.php

    https://gist.github.com/anonymous/bad7e43a34fe3e9a7428

    includes/common/shortcodes.php

    https://gist.github.com/anonymous/daa4af269bcf8613a871

    includes/core/template-functions.php

    https://gist.github.com/anonymous/94e2f94a2e0cca8f18f4

    includes/search/template.php

    https://gist.github.com/anonymous/25e84781cab341c71496

    #165592
    arikg
    Participant

    I use the https://codex.bbpress.org/features/shortcodes/
    to embed a forum in a page [bbp-single-forum id=$forum_id]
    it works great, but when the user clicks on a thread it opens in the usual bbPress slug and not within the page. I want the forum to be fully embedded in the page and also that the links from e-mail about replies will direct people to this page and not the default forum.

    #165579
    gptxffa
    Participant

    Hello,

    Obviously everyone knows what the default Forum index page looks like
    default forum index

    However I would rather be able to have the most recent topics displayed above the index like this page setup using the short codes:
    desired forum indexdesired forum index

    I cant figure out how to actually change the appearance of the forums index. I have the page in the picture above up and running, however when someone clicks on the breadcrum “forum” link, it takes them back to the default forum index, not the page i created with the recent topics listed above.

    Thanks for the help 😀 Preston

    #165585
    Robkk
    Moderator

    Try some troubleshooting. I am thinking a possible plugin issue with the menu items. The forums only being visible to Admin is the tricky one I can’t really pinpoint.

    Troubleshooting

    #165580
    Robkk
    Moderator

    I have been changing a bit of translations in the code – that’s why you might find a mistake here. What I don’t understand is, that when I upload all the original files, it still does the same mistake.

    Can’t you tell me if there’s some specific files that I should re-upload as original, in case I’ve changed something in them?

    What files did you edit, if you did edit any files?? I hope you did not edit the bbPress plugin files in the plugin directory of your site??

    I’ve never used child themes before, so I’m not sure how to do this.

    This will help you learn about creating a child theme.

    https://codex.wordpress.org/Child_Themes

    After creating the child theme just copy the bbPress templates to your child theme in a folder called bbpress.

    Or second option: Could you rewrite the htaccess hack so it might work? 🙂

    You really shouldn’t need an htaccess hack at all, that is why I said don’t use it yet.

    #165577
    benklocek
    Participant

    I’ve updated the filter code to make it work for BBPress 2.5.7+

    https://gist.github.com/benklocek/433713bceb83eec6984f

    The Keymaster title changed from “Key Master” to “Keymaster” at some point, and the filter only accepts 2 variables now.

    I would be hesitant to use @robkk’s code, as it is replacing a core function, instead of simply filtering.

    #165570
    Robkk
    Moderator

    I have been changing a bit of translations in the code – that’s why you might find a mistake here.

    You haven’t been editing core files right?? There are other ways you can translate bbPress, unless you are just editing the templates that you can copy into your child theme?

    There might be another thing you could do if you haven’t already, place all the bbPress templates in a child theme of theme in a folder called bbpress.

    Theme Compatibility

    Also remove the htaccess hack since it seems not to work. I don’t want it causing issues.

    #165566
    Robkk
    Moderator

    @mei-ling

    Did you copy and edit the bbPress templates in your child theme heavily?? Removing the hook @kachan64 pointed out, can make the code not work.

    Also does the picture save correctly in the WordPress backend?? If you could link to a forum that should has a topic with a featured image, I can check to see if there is a CSS problem.

    #165562

    In reply to: bbPress Shortcode

    Acs-Yt
    Participant

    OMG, it’s Full Width! This code resolved the problem:

    .bbpress .col-md-8 {
        width: 100% !important;
     }
    
     .bbpress .col-md-4 {
        width: 0 !important;
        display: none !important;
     }

    Thank you for helping me!

    #165561
    strategeek
    Participant

    FINAL CODE HERE.
    FOR CHECK BOXES.
    (Difference from the upper one: fixed issue with tags with more than 1 word)

    
    function displayTagElements($selectedTags, /* $userRole, */ $task){
       $html= array();
    $tags = get_categories(array('hide_empty' => 0, 'taxonomy' => 'topic-tag'));
    $selectedTagsArray = explode(',', $selectedTags);
    if($userRole != 'bbp_participant' || $task != 'edit') {
        $html[] = "";
        foreach($tags as $tag) {
            $selected = '';
            if (in_array($tag->name, $selectedTagsArray)) {
                $selected = 'checked';
            }
            $html[] = "<input type='checkbox' name='bbp_topic_tags[]'".$selected." value='". $tag->name ."'>". $tag->name ."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
        }
    } else {
        $html[] = $selectedTags;
    }
    
    return implode('', $html);
    #165559
    kachan64
    Participant
    	    if ( has_post_thumbnail($post->ID) )
    	    	echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon'));
    	 }

    This is the styling for the featured image.

    bbp_theme_before_topic_title
    This part of the code determents where should featured image goes. You will need to check your code.

    #165558
    Mei Ling
    Participant

    Hi Robkk,

    I have tested your code. Well I can select in the admin panel “edit topic” or “new topic” “featured image”, I select the picture…when I turn back to the topic, no picture. It doesn’t remain selected.
    I use the latest WordPress: 4.30.

    Could you help me?

    I thank you in advance

    Mei Ling

    #165557
    kachan64
    Participant

    Thanks, the code from github is running outside of a forum loop and works on a localhost test site. They used the code in loop-forum.php

    				<?php if (($has_replies = (strstr(bbp_get_forum_freshness_link(), '<a')))): ?>
    					
    					<?php bbp_topic_title(array( 'post_id' => bbp_get_forum_id() ) ); ?>,&nbsp;<?php _ex('by ', 'bbPress Freshness Author', 'bunyad'); ?>
    					<?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 45 ) ); ?></span>
    					
    				<?php endif; ?>

    This is my code running inside a loop in loop-single-forum.php and didn’t work, will just output my forum title for some strange reason if I post to that forum’s sub-forum.

    #165555
    project_subdomain
    Participant

    @robkk I’m not sure why it’s not working proplerly (showing all divs in all forums). Could you give me a hint how the code has to look like, when I’d like to have
    forum id 1 echo div 1
    forum id 2 echo div 2
    forum id 3 echo div 3

    unforrtunately I’m not familiar with ternary operators which may be a option.

    #165554
    AntonHoelstad
    Participant

    I have been changing a bit of translations in the code – that’s why you might find a mistake here. What I don’t understand is, that when I upload all the original files, it still does the same mistake.

    Is there one or a few of the files that determine this part with the URL? Because then I could show you those, and we could see if something was wrong here?

    #165553
    AntonHoelstad
    Participant

    Good suggestions I must say! But unfortunately none of these worked either. Let me go trough them one by one:

    1. I set the permalink structure back to default. The only change here is, that when you search now, and land on the URL string “search?action=bbp-search-request&bbp_search=adwords” – you now see the frontpage for some weird reason?
    2. I have no trailing slash in the settings part of the forum
    3. I did try the htaccess hack – but this did no change? I still see the frontpage now when I try to search.

    Something weird is going on. Would it help you if I send you the code for some of the files for my plugin?

Viewing 25 results - 8,076 through 8,100 (of 32,519 total)
Skip to toolbar