Shmoo (@macpresss)

Forum Replies Created

Viewing 25 replies - 101 through 125 (of 125 total)

  • Shmoo
    Participant

    @macpresss

    Alright guys i’ve got a solution,

    Please note, i have ZERO PHP skills so this probably isn’t the best solution on earth but i think it’s a good work-around to get the job done ‘easy’..

    If some PHP developer reads this topic and thinks, damn this guy is going crazy with all his copy-/pasting stuff please feel free to modify this code..

    What did i do:
    First i opened up the Core template file of bbPress where the Breadcrumbs function is made.
    I have copied the code and pasted inside a new PHP document, made some simple HTML changes before and after the urls and called this new template file inside my Theme’s functions.php

    Last i called my custom Breadcrumb PHP code just to make sure my code is loaded and not the default bbPress code..

    Here you go.
    When your done it should look like this structure..
    http://i46.tinypic.com/33z93lg.png

    Nothing too fancy but the only difference, it’s made by a HTML List , like it should be in 2012 because a Breadcrumbs is a navigation and not just 5 URLs behind each other.
    http://twitter.github.com/bootstrap/components.html#breadcrumbs

    Step 1:
    Paste all this code into a new empty PHP document and call it breadcrumbs.php
    When your done drop this file into your Themes include folder.
    wp-content / themes / [ your-theme-name ] / inc / * here *
    http://pastebin.com/bWdPEXa5

    Step 2:
    Open your theme functions.php file and add this code to it.
    http://pastebin.com/nJ9pZinq

    Step 3:
    Open the bbPress or WordPress stylesheet and add those few lines of CSS to it.
    http://pastebin.com/KyPuknTw

    Step 4:
    Inside the bbPress template files you often find this line of PHP code, it calls the default Breadcrumb function:

    Change that line to this one and your done..

    __( '', 'bbpress' ), ) ); ?.>

    • without the dots before and after the -> .?.

    Hope this helps..


    Shmoo
    Participant

    @macpresss

    Active the option inside WordPress > settings

    There is somewhere a checkbox that says ” allow people to register on your site ” * something like that.

    If you activate that checkbox people can register to your WP site and reply and create topics.


    Shmoo
    Participant

    @macpresss

    @JJJ

    Please do the people on bbPress.org a huge favor and delete all the fancy stuff in this comment-form, just load the default wordpress.ORG comment-form it’s huge and only support a few needed options. This is getting ridicules. People have to be an acrobat to post some code on this forums.

    I can’t copy-/paste @mattsimo code because of this forum-software.

    Safari + Firefox it doesn’t copy the the selected code i needed.

    In reply to: Lead Topic

    Shmoo
    Participant

    @macpresss

    Oops,

    *Topic Authors -> should be Topic Creators or Starters.

    In reply to: Lead Topic

    Shmoo
    Participant

    @macpresss

    Maybe a little bit late..

    The Lead Topic ( content-single-topic-lead.php ) is a very powerful but super simple function that can be used to style the Topic Authors different from the Repliers..

    It’s also very useful if you want to add some ads or a simple note to your readers after the first message ( from the topic author)

    Bummer this is nowhere to be found in the Codex.
    But you can activate this option by adding this line of code to your WordPress theme functions.php template file.
    Note i say functions.php and not bbpress-functions.php because you if you would add it to the bbpress-functions.php this code will be overwritten when the bbPress plugin updates in the future.

    add_filter( 'bbp_show_lead_topic', '__return_true' );
    

    Hope that helps..

    In reply to: 'Before' pagination?

    Shmoo
    Participant

    @macpresss

    I’ve got almost the same problem as @Anointed here, no before and after option..

    Sorry to say but this is typically WordPress development they output Page navigations in < .a href's.. just one after the other and you can only hope there is enough classes to list and style them properly.

    I found this problem with WordPress the first time when i tried to apply Twitter's Bootstrap Page navigation to a WordPress theme.
    This is how a page-navigation should look like anno 2012 in default HTML. http://twitter.github.com/bootstrap/components.html#pagination

    not like this..

            <a href="#">page 1</a>
            <a href="#">page 2</a>
            <a href="#">page 3</a>
    

    • This reply was modified 12 years ago by Shmoo.
    • This reply was modified 12 years ago by Shmoo.
    In reply to: Shortcode not working

    Shmoo
    Participant

    @macpresss

    Looks like single-topic-tag ID isn’t a supported short code.

    It’s [bbp-single-tag id=12] or [bbp-topic-tag id=12]

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


    Shmoo
    Participant

    @macpresss

    First you don’t need to create a new page.

    When you install -/activate bbPress you get the slugs forums and topics by default look at the settings.

    When you type just forums behind your url (as it would be a page) you go straight to the forums index page.
    And if you would like to edit the layout of the page you should copy the archive-forums.php file from the plugins folder to your theme folder and make some changes.

    In reply to: No Results Found

    Shmoo
    Participant

    @macpresss

    It’s hard to tell what is costing you this error.

    First try to Save your Permalinks structure again inside your Dashboard > settings.

    After that deactivate all plugins you use for security and stuff like that.


    Shmoo
    Participant

    @macpresss

    Just go to your forum settings page inside your WP Dashboard.

    And look at the slug for forums and topics field.

    By default it looks like this:
    forums
    topics

    If you put both names behind your url (as a it would be a page) you will find the url to the forums and last topics.

    You don’t need to do anything with files at this point.
    Just vist the forums page and copy the browser url > go back into your WP Dashboard > Menu’s and creat a new Menu + custom menu link. > Save

    Done
    People can now visit your forums page from the menu-bar of your website..

    In reply to: metadata for forums

    Shmoo
    Participant

    @macpresss

    Metadata for search engines?

    Use a plugin maybe SEO by Yoast.

    Else use Custom Fields.
    https://codex.wordpress.org/Custom_Fields

    In reply to: spam

    Shmoo
    Participant

    @macpresss

    Use plugins…

    Block IP’s or entire countries like China , Russia and Nigeria if you run a website for a local flower shop in France.

    Just search around on the internet en WordPress website there is so much stuff you can do.


    Shmoo
    Participant

    @macpresss

    I think what he’s trying to say that somebody is working on it.

    This means somebody outside WordPress is making a replica because i can’t believe WordPress giving away the code to the same sites they own. Normally nobody would do so.

    But usual it’s not problem to recreate them and make them look the same, it’s just somebody has to do it in there free time so it takes a little time to complete.

    But maybe i’am mistaken and WordPress is giving you this layout by default inside bbPress.
    Maybe instead of the Twenty Ten option.

    And last, bbPress.org is running on WordPress + bbPress version 2.2 this version hasn’t been released yet and don’t know why the team would do so or tell people that they do. It’s against WordPress ‘thinking’ they never tell people to use development software (code) on Live websites. Always test it on local websites.

    You can find stuff about bbPress version 2.2 and up on this website.

    https://bbpress.trac.wordpress.org/roadmap


    Shmoo
    Participant

    @macpresss

    I think the WordPress Adminbar is now been called the Toolbar.

    https://codex.wordpress.org/Administration_Screens#Toolbar

    Read and searsh a bit i think it’s very easy to add a link and remove stuff from this Toolbar.
    there are filters i believe you can add to your functions.php to make this happen.

    • There is also a plugin for locking members from going to your back-end made by @jjj
    In reply to: page.php as template

    Shmoo
    Participant

    @macpresss

    That’s very strange looks like the WP Loop is going somewhere through the sidebar.php file.

    Make sure nowhere in the file is this code also look in the footer or other files that will be used.

    ( without the * )

    But why would you copy stuff form the archive-forum.php template to the page.php template ?
    page.php is used to generate a default WordPress page.

    bbPress has it’s own Custom Templates
    https://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Those can be found in the extra’s folder. For example if you copy page-front-forums.php from the extras folder to your WordPress theme folder you can find it while adding a new Page inside the WordPresss Dashboard.

    Just: Add New Page and in the sidebar on the right side you can find an option the select a different Page Template.
    Pick the new bbPress page template and name your page like Support of whatever the title or (url) of this page has to be and Save it.
    Visit the Page and all the forums will show on that new page.

    Now if you like to add some WordPress (blog) stuff to that page copy it from whatever WordPress template inside the page-front-forums.php

    Make sure you delete the sidebar() code that i showed above out of that template.
    Thats the logic way of working i believe. Don’t touch the page.php because it’s a default WordPress template for making new pages on your website.

    In reply to: page.php as template

    Shmoo
    Participant

    @macpresss

    If you use the bbp-theme-compat theme you can copy some template files from the plugin directory to your theme directory.

    This way bbPress can get updates in the future while your custom edits will not disappear because of the updates to the plugin.

    https://codex.bbpress.org/theme-compatibility/
    (read the last part.)

    Only thing is, there is a template file that’s named like this: page-front-forums.php everybody thinks this is the default template that will be shown when you have an url like this.
    http://example.com/forums/

    But that’s not true, this template is only used when you use bbPress (the forum index page) as a homepage for your WordPress site.
    If you use the forums (index) page as a separated page like my ‘example.com’ url above bbPress uses the archive-forum.php template.

    What you can do very easy is copy-/paste the archive-forum.php template from the wp-content > plugins > bbpress > bbp-theme-compat > extras > directory to your theme’s directory.
    wp-content > themes > your-theme-name > and edit that template file.

    Now bbPress wil not use page.php but the archive-forum.php template instead and you can edit this page to all your needs.


    Shmoo
    Participant

    @macpresss

    Search on the Codecanyon website inside the WordPress plugins there is a guy who has made a plugin that works with bbPress.


    Shmoo
    Participant

    @macpresss

    Thanks,

    I’ve been searching inside the ‘includes’ folder to see if i could understand whats possible with some tags.


    Shmoo
    Participant

    @macpresss

    Sorry this forum doesn’t except the starting and closing PHP tags.

    bbp_topic_author_avatar( array( ‘size’ => ’80’ ));

    and

    bbp_topic_author_avatar( array( ‘size’ => 80 ));

    Both don’t work..


    Shmoo
    Participant

    @macpresss

    @zaerl,

    Thank you so much for your help!
    You’re right, the forums page is an archive not a page.

    so it handles archive-forums.php not page-forums.php

    Problem solved.
    Thanks,


    Shmoo
    Participant

    @macpresss

    @zaerl,

    Thanks for your help,
    I’m going to test it.. just a few minutes.


    Shmoo
    Participant

    @macpresss

    Another update:

    Switching the page.php template with the code of the page-front-forums.php doesn’t work either..

    It will output all forums twice.
    I really hope @JJJ or somebody else would comment on this because i can’t believe this is default bbPress and WordPress stuff.

    It has to be a bug.


    Shmoo
    Participant

    @macpresss

    Hi Tom,

    Well i don’t know much about Artisteer because WordPress is not like iWeb or RappidWeaver where you can drag&drop to make your lay-out, If you would like to build or customize your lay-out you need some understanding of HTML , CSS and a bit PHP.
    I’ve helped lots of people at the Dutch WordPress forums and most of them often had trouble with Artisteer because the software often didn’t supported some simple WordPress Codex.
    https://nl.forums.wordpress.org/profile/macpresss


    Shmoo
    Participant

    @macpresss


    Shmoo
    Participant

    @macpresss

    Update:

    I think it’s very strange we can’t touch the defaul $slug with a custom page template!
    This is totally not WordPress like.

    Now i have to offer my page.php (default page template) to bbPress and make sure when i draft a new page inside my Dashboard i use a different (custom) page template to prevent my lay-out from breaking..

    img default slug

    I tested to following:
    Dashboard > New Page > Name it HELP > pick my custom Page Template with the bbPress forums index inside it > Saved it and it works 100%.

    I don’t know if it’s a bug or glitch but this is totally not the way to do so, because the default slug keeps showing up in the breadcrumbs.

    Hope somebody reads this..
    Thanks,

Viewing 25 replies - 101 through 125 (of 125 total)