Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 1,076 through 1,100 (of 1,687 total)
  • Author
    Search Results
  • timatooth
    Participant

    Thanks Lynq! I should have stated clearer that I’m looking for more bbPress actions/hooks/filters pages. Are there pages like this for bbPress the page on Actions only describes 10 actions.

    https://codex.bbpress.org/ seems to have articles about some functions and shortcodes but not hooks and filters.

    It would be nice to see a table which contains every action/hook/filter/callback with the argument descriptions or what parameters the callbacks get. Currently Ive been trying to decipher the inline documentation of the core files. 😀

    #122610
    Darren1981
    Participant

    Hey all,

    Since there is no support for “Categories” so to speak.. what i would like to do is create a custom main forum page and insert the forums manually… Now i know this can be done with shortcodes in posts and pages like as follows:

    [bbp-single-forum id=32]

    But what i am wondering is how would one go about inserting single forums into the BBpress .php template files.. for example the template content-archive-forum.php has the following php code which displays all forums:

    I would like to edit this file and insert forums manually.. is there a php version / code like the shortcodes to insert single forums ?

    Regards, Darren

    #122496

    The thing that makes inline images tough is non-admin users cannot use the tag and shortcodes are not an option.

    Currently there is an issue on trac (#1916) that would make it where img tags do not get filtered out. Once that’s done it would open the gate for plugins to handle inline images pretty easily.

    mamasaywhat
    Participant

    Thanks guys – what ended up working was putting BOTH of those codes in the css. One or the other alone didn’t do anything. CSS is weird haha. Anyway, problem solved, looking forward to the next update!

    bruceleebee
    Participant

    I’m having the exact same problem. And like ffalder I can’t code, but usually Google my way out of a problem. But this time no luck.

    From my research it seems lots of people are having the same problem.

    I think the main issue here is the breadcrumbs.

    1) You create a custom ‘forum home page’ using short codes (or whatever means you like) to be your default page that users see as the homepage of your forum.

    2) A user try’s to get back to the ‘forum home page’ using the breadcrumbs by clicking the text “forums” in the breadcrumbs.

    3) Unfortunately it just redirects to the forum slug chosen in Settings, not your actual ‘forum home page’. And that forum slug is always defaulted to an archives page.

    4) So setting that slug to the same as your ‘forum home page’ does not work, because woprdpress overrides your ‘forum home page’ created in step 1 and defaults it to an archives page.

    Sorry for re-hashing this, but it’s sometimes better to make it a little clearer. At least in my own head anyway.

    I don’t know how simple this is or not, but one solution that comes to mind is to have an option in Settings that lets you decide where the ‘forums’ text link in the breadcrumbs will point to. If you can choose to have it point to your ‘forum home page’ then all would be solved right?

    This person suggested changing the breadcrumbs in the core of the plugin, but obviously it’s not very desirable since it’s changes to the core. And I also cannot find the file that they edited. Think it might have been a mod to an old version: http://mysitemyway.com/support/topic/infocus-bbpress-20-root-slug

    #121409
    LabSecrets
    Participant

    You have several issues going on here, but they are directly related to your theme. As is very common, it appears to me that your theme has a conditional statement in the template file that builds archive pages. As such, it’s treating the content for bbPress forums as excerpts, as well as applying some unwanted styling.

    Have you tried to build a page using the shortcode method? If so, what was the result? If you found it worked properly, then the issue as suggested above, and you could try to modify your theme or child-theme files to add a similar conditional that looks for bbPress and forces it to use the_content() instead of the_excerpt(). See: https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/

    If this page is being built with shortcodes (I don’t think it is from what I see) then what is the result if you try the default forum index method? We outline both methods in our step by step video here: http://labzip.com/the-definitive-guide-to-buddypress-bbpress-configuration/

    We’ll get you there… 😉

     

     

    #121383
    #121369
    Stephen Edgar
    Keymaster

    What about using the ‘Login Widget’ https://codex.bbpress.org/widgets/

    Or one of the ‘account’ shortcodes? https://codex.bbpress.org/shortcodes/

    #121366

    In reply to: Custom loop

    Shane Gowland
    Participant

    Couldn’t you achieve this using bbPress’ shortcodes? Namely; [bbp-forum-index]

    #121287
    Todd – WireFlare
    Participant

    I’m looking for the correct method to dequeue bbpress css from the plugin directory and also that of the css folder within the theme.

    The entire site is much larger than just the forum and I really don’t want to call the css for every page as most people don’t have a need to access the forums. I’ll then enqueue the css with is_bbpress combined with is_page(array for the 2 pages that contain shortcodes.

    I need to make sure that it dequeues from both locations as there is a custom css being used.

    Thanks in advance for the help!

    #121263
    LabSecrets
    Participant

    1) Create a new page
    2) Add the bbPress ShortCode for forum index: https://codex.bbpress.org/shortcodes/  which is [bbp-forum-index]
    3) Save the page
    4) Go to Settings/Reading and choose this new page as the default home page (instead of your blog).

    This will get you a bbPress Forum index on your home page.

    To make a “mix” of your bbPress and blog posts, you need to modify your home page template file. This differs per theme, but may be called home.php or index.php (it’s in your theme folder). You would add the bbPress shortcode above the WP loop that displays blog posts. Use the do_shortcode method shown here: https://codex.wordpress.org/Function_Reference/do_shortcode

    so it would be (within php tags): do_shortcode('[bbp-forum-index]')

    If you do this, then you won’t need to  create a page and modify your Settings/Reading as elaborated in steps 1 to 4 above.

    Good luck!

    #121172

    Just be aware that activating shortcodes in bbPress can open up a whole can of worms, which is why its disabled by default.

    If they are enabled there is nothing stopping someone from using bbPress shortcodes in a reply/topic, eg [bbp_login].

    Polls in 2.x is definitely something that is needed. However it’s really plugin territory, and so far no one has written one!

    #121167
    Sam Rohn
    Participant

    this one is working for me

    https://wordpress.org/extend/plugins/cardoza-wordpress-poll/

    you may also need to install something like GD BBPress Tools to activate shortcodes in forum topics and replies if you want to embed a poll in a forum post

    https://wordpress.org/extend/plugins/gd-bbpress-tools/

    sam

    #121074
    Zookey90
    Participant

    I have one more question. Do I need all the time to add shortcodes?

    I mean, if I create 5 new forums, do I need to put this shortcode [bbp-single-forum id=$forum_id]?

    How I could know which is id of forums?

    #121058
    LabSecrets
    Participant

    Zdravo!!

    Ok, that helps.

    First suggestion:

    What happens if you use shortcodes to create a forum index?  https://codex.bbpress.org/shortcodes/

    Take the shortcode of: [bbp-forum-index] and add it to a blank page.

    Does that create a visible forum index?

    If so, then  your problem imho is that your theme is hijacking the content area in a way that prevents the new bbPress code from working. As such, the solution would be found most likely in your theme’s page.php or similar, where the default archive pages are created. I don’t have access to the Gonzo theme since it is on ThemeForest ;-(

    but you can see in my recent post, we fixed a similar solution for Canvas 5 from WooThemes. https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/

    If not, then please share the link to the page where you posted the shortcode so I can see the underlying output.

    Hvala!

    Spence

     

    #121014
    Stephen Edgar
    Keymaster

    Hope these help:

    ‘Widgets’ go in ‘Sidebars’ https://codex.bbpress.org/widgets/
    ‘Shortcodes’ go on ‘Pages’ https://codex.bbpress.org/shortcodes/

    Stephen Edgar
    Keymaster
    #120794
    Halo Diehard
    Participant

    Well, I’ve created a page and am using the shortcode and it seems to bypass the issue. For anybody having this layout trouble, the shortcodes can be found here:

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

    #120790
    Michael
    Participant

    Hi John James — thanks for responding, much appreciated.

    Regarding get_the_ID() not working on an archive page, I understanding your point — there isn’t a page associated with it.

    The only issue I have is that the Forum Archive page is associated (“partnered” to use the documentation phrase) with a real page, and essentially it is just a regular page with embedded shortcodes.

    In my case, the partnered page has content and embedded shortcodes, and it has a real page ID (#1296 in my case).  That’s what I wanted to find so I can extract information specific to that partnered page.

    What am I doing with all this?  Well, the short story is that certain specific pages on my website have some special header images attached above the_content(), and I have created a custom Template in my child theme to handle it.  Information about the slug is extracted, which is used to lookup random images in a database of images.

    I’m trying to keep a consistent approach with all pages, hence the use of a custom Template that I set as a page attribute in the editor.

    None of this is fatal for my needs, but if a page is partnered with the Forum or Topic Archive pages, it seems like the selected Template for displaying those pages should come from the Template page attribute associated with it.  Hence the need for post ID of the partnered page.

    Cheers.

    Michael

    #120765
    Stephen Edgar
    Keymaster

    Use the [bbp-forum-index] shortcode https://codex.bbpress.org/shortcodes/

    #120735
    Pippin Williamson
    Participant

    Did you setup the home page of the forums using the short codes? If so, switch to the HTML view of your page editor and you will be able to see the PRE tags.

    #120594
    bbuser12345
    Participant

    I’m confident you’ll figure it out.

    I wish I was as confident…

    It’s fine to be frustrated, but your tone towards the volunteers trying to help you is pretty crappy.

    My tone is one of exasperation (maybe desperation). I have been using BBPress for 5 years, and stuck with it through “the dark years”. I have read all the help pages, and I know my way around a command line, yet this converter, built ostensibly to help non-experts, does not work and I cannot find help. I have a message board that is falling apart, and being overrun by spam, and I have spent countless hours trying to migrate the database using the converter. Which is just the first step in migrating the forum.

    If you don’t like the documentation, change it. It’s a WordPress site where everyone is an Editor, and you can be part of the solution just like every other volunteer, or you can be upset because the amazing free software you’re using isn’t as polished as we all know it could be. If only we had more volunteers… Paradox.

    I am not sure whether to laugh or cry. If I knew what was wrong with the documentation, I would change it. Of course if I knew what was wrong with the documentation I would likely not have a problem in the first place and would never have sought out the documentation. There is your paradox. People who seek out documentation are by definition having trouble and are likely not expert users. They are the last people who are qualified to improve the documentation.

    We brought the old bbConverter into bbPress in 2.1. bbConverter development stopped, and I took it over and brought it into bbPress core along with several much needed fixes. Trying to use software that you know is abandoned and others have not succeeded with is generally a bad idea.

    Thats great information!! Why does it not appear either on the bbconverter plug-in page or on the https://codex.bbpress.org/import-forums/ page?

    I should note that I don’t see any way for me to add this information to the documentation of either the old deprecated plug-in (which gets downloaded and installed many times a day apparently) or on the codex page for the converter.

    The connection failure doesn’t provide the feedback you’re wishing for. There is no “your password was incorrect but the username is okay” level of feedback, so you’re on your own. Based on how capable and experienced you are, let’s assume it’s correct anyway.

    Wait! You said connection failure… how do you know it is a connection failure? Is there something in the message (or that is not in the message) that tells you that? If so why does the console not report:

    “You have failed to connect to the server. At least one of these three things is wrong: The Old Database’s Server Name, The Database’s User Name or the old Database’s User Password. Unfortunately, this converter cannot tell you which one or more of these things is wrong”

    Instead the error I get is one I would expect if I had the name of a table in my database wrong in a query.

    Look, I know that you cannot pass on information to the user that the server does not report. But when I access mySQL databases and servers the wrong way with a mySQL client or R or python or myPHP I get error messages with error codes. Things like “#1045 Cannot log in to the MySQL server”. This lets me know what I have screwed up so I can fix it. Is it a missing table or the wrong database name? Or am I not even connecting to the server at all? Again if for some reason you are not getting these messages then I guess I am “on my own”.

    So… you’ll have the best luck if your bbPress 1.1 tables are in the same database as your current WordPress installation. Maybe try exporting those tables out of the other database, and importing them into the current one, and give it another shot.

    Even more good information! Thank you. I would edit the documentation to let others know about this, but every time I try to log in to the codex site for BBpress, I get taken to the buddypress site.

    =======================================================================
    For what it is worth:

    My tone is also one of frustration. BBPress is an awesome bit of code and you guys have spent a great deal of time making it do really awesome things, but as is the case with many opensource projects, no one seems to care if anyone can actually use the awesome product.

    I am a part of a pretty big opensource community, and bad documentation is a systematic problem. People make amazing things then fail to help users actually use the code. I write lots of code that I end up releasing to that community. I spend a good bit of time making my documentation work for people who are newbies to using the program. I assume they picked up the program just to use my package/functionality and I write my help with that in mind. Why?, because I want them to use my code, I want them to learn about the program, and I eventually hope they will become a part of the community and contribute.

    #120576
    Stephen Edgar
    Keymaster

    Profile Shortcode? No such thing? https://codex.bbpress.org/shortcodes/ Maybe there should be?

    #120544
    Shane Gowland
    Participant

    An even easier way to call shortcodes is with the do_shortcode() method.

    You can programmatically call the bbp-forum-index shortcode like this:

    <?php echo do_shortcode(‘[bbp-forum-index]‘) ?>

    #120529

    Topic: Custom login Page

    in forum Themes
Viewing 25 results - 1,076 through 1,100 (of 1,687 total)
Skip to toolbar