Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 338 total)
  • @lph2005

    Participant

    @mercime – Yes. I’ve seen the simple press way and use it on a site. It’s very easy to use but something that can elevate a forum topic post to a front page blog post would make life easier for some of my students.

    @djpaul – Maybe the blog post should just be an excerpt with closed comments and a link to the original forum post. It could be done manually with copy/paste but an admin ‘check mark’ option to elevate the forum topic would make things easier.

    @lph2005

    Participant

    Just bumping this thread because the subgroup feature would be a nice addition.

    @lph2005

    Participant

    Wow. It turns out that the plugin is initialized using bp_init
    `add_action( ‘bp_init’, ‘bp_forum_attachments_init’ );`

    If this is changed to:
    `add_action( ‘init’, ‘bp_forum_attachments_init’ );`

    Then the test function fires.

    But, the add_action for the bb_attachment form does not fire.

    `add_action( ‘question_after’, ‘bb_attachments_upload_form’ );`

    @lph2005

    Participant

    @boonebgorges

    This problem is narrowed to the firing of the add_action within forum-attachments-for-buddypress-bp-functions.php.

    A simple function / add_action is loaded in the theme functions.php then it fires on that question.php template. If that sample function/add_action is placed in the forum-attachments-for-buddypress-bp-functions.php file then it does not fire.

    This is the test function placed in the themes functions.php that works. Also added to plugin functions file and it fails.

    `// Test question.php form hook
    function question_fire() {
    echo “Testing the hook”;
    }
    add_action(‘question_after’, ‘question_fire’);`

    I’m about ready to give up. Google searches are not leading me to an answer. And my knowledge is limited.

    Update I hope that didn’t seem negative. I’m at my limit and stretching :)

    OK. So, I know the forum attachment plugin is Boone’s bane … and I love that plugin .. so … press forward.

    I tried my test function in another active plugin (akismet) and it worked AND interestingly the test function works in forum-attachments-for-buddypress.php.

    @lph2005

    Participant

    hnla – I’m sorry your response wasn’t seen earlier. Thank you for the information. I don’t quite understand your answer because css is a cut/paste for me :) — But I’ll do some Google searches and try to figure out more.

    @lph2005

    Participant

    OK. I found duplicate lines of add_action in the forum-attachments-for-buddypress-bp-functions.php.

    I kept these lines (starting around 183) and removed the ones that I apparently added at the top of the php file.

    `add_action(‘groups_forum_new_topic_after’,’bb_attachments_upload_form’);
    add_action(‘groups_forum_new_reply_after’, ‘bb_attachments_upload_form’);
    add_action(‘groups_forum_edit_post_after’, ‘bb_attachments_upload_form’);
    add_action(‘bp_after_group_forum_post_new’, ‘bb_attachments_upload_form’);
    add_action(‘bp_group_after_edit_forum_post’, ‘bb_attachments_upload_form’);
    add_action(‘bp_group_after_edit_forum_topic’, ‘bb_attachments_upload_form’);`

    Now the hooks (do_action) are added to the template file question.php and the page loads properly. Unfortunately – the hook isn’t working – and the file upload function is not being presented.

    Oh – even closer :)

    @lph2005

    Participant

    OK ! It’s working with the exception of the file attachments (because I removed the do_action lines) but the page now posts to the proper forum. :)

    Here is the code:

    `<?php
    /*
    Template Name: Question
    */
    ?>

    IMPORTANT: This form does not work yet.

    Please do not use this form.

    How To Ask A Great Question And Get It Answered

    Maybe you are stuck on a homework problem or do not understand a particular concept. Don’t panic. TheChemBook.com is a great place to ask your questions.
    First search to see if someone else has asked about the problem. Next, search The Chemistry Text by reading the section on the topic.
    If none of this helps, start a new topic by completing the form below.
    Start with a great headline. Avoid saying, “I’m lost” or “how do I do problem 12?”
    A great headline might be “Determining Significant Figures – Captured Zeros”
    Next, type as much detail as possible, for example, add the exact wording of the problem you are trying to answer.
    Finally, explain the problem and what you have tried.
    The more details you add then the faster someone can help you.
    Teachers are available at irregular intervals, therefore, make sure that you help others with their questions, too.


    —-

    <option value="”>

    <input type="submit" name="submit_topic" id="submit" value="” />
    <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="” />

    <?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not create a new group? Once you have joined or created the group you can post your topic in that group’s forum.”, ‘buddypress’ ), site_url( BP_GROUPS_SLUG . ‘/create/’ ) ) ?>

    You need to <a href="”>log in or <?php printf( __( ' ‘, ‘buddypress’ ), site_url( BP_REGISTER_SLUG . ‘/’ ) ) ?> to participate in the tutoring area.

    `

    If you see a way to enhance this template then please let me know. The file attachment plugin isn’t working with this page (nor edit a topic) so something obvious is probably missing.

    Hope this helps someone else trying to get a page with a form to post to the forums ….

    @lph2005

    Participant

    Update:

    If I remove, “ and ` ` then the header loads properly, the submit buttons show

    BUT nothing posts to the forums. This is due to form action being incorrect. What should it be?

    Oh so close!

    Update to the update:

    It turns out that the file attachments portion of buddypress plugin aren’t present either. :(

    @lph2005

    Participant

    Ugh. I feel like I’m so close to getting this to work.

    Rather than try to create a BP page, a WP page was created with a template. The template contains the following code:

    `<?php
    /*
    Template Name: Question
    */
    ?>

    How To Ask A Great Question And Get It Answered

    Maybe you are stuck on a homework problem or do not understand a particular concept. Don’t panic. TheChemBook.com is a great place to ask your questions.
    First search to see if someone else has asked about the problem. Next, search The Chemistry Text by reading the section on the topic.
    If none of this helps, start a new topic by completing the form below.
    Start with a great headline. Avoid saying, “I’m lost” or “how do I do problem 12?”
    A great headline might be “Determining Significant Figures – Captured Zeros”
    Next, type as much detail as possible, for example, add the exact wording of the problem you are trying to answer.
    Finally, explain the problem and what you have tried.
    The more details you add then the faster someone can help you.
    Teachers are available at irregular intervals, therefore, make sure that you help others with their questions, too.


    —-

    <option value="”>

    <input type="submit" name="submit_topic" id="submit" value="” />
    <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="” />

    <?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not create a new group? Once you have joined or created the group you can post your topic in that group’s forum.”, ‘buddypress’ ), site_url( BP_GROUPS_SLUG . ‘/create/’ ) ) ?>

    `

    Now – the header has gone wild on the whole site, the buttons at the top right disappear on the WP page for ask-a-question, and NO submit button is showing when logged into the site.

    Link: http://www.thechembook.com/ask-a-question/

    Any thoughts on what is wrong with the code?

    Update: Looking at the source after the page loads – the form is not completing; that is, no `` is being served.

    @lph2005

    Participant

    @lph2005

    Participant

    I’m willing to have it added to the codex. Others on here helped develop it last summer (I believe). Unfortunately I cannot get the Ask a question button to work in a sidebar (I posted this in another thread the other day)….

    @lph2005

    Participant

    In wp_config.php

    `define ( ‘BP_FORUMS_PARENT_FORUM_ID’, $forum_id );`

    OR

    Modify the /forum/index.php and loop so that the forums show on one page.

    `

    <form action="” method=”post” id=”forum-topic-form” class=”standard-form” enctype=”multipart/form-data”>


    <option value="”>

    <input class="submit" type="submit" name="submit_topic" id="submit" value="” />
    <input class="submit" type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="” />

    <?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not create a new group? Once you have joined or created the group you can post your topic in that group’s forum.”, ‘buddypress’ ), site_url( BP_GROUPS_SLUG . ‘/create/’ ) ) ?>


    <tr class="”>

    <a class="topic-title" href="” title=” – “>

    <a href="”>

    <a class="button" href="forum/#post-new” title=””>Start New Topic <a class="button" href="forum” title=””>More Topics

    `

    You’ll end up with something like this: http://www.thechembook.com/tutoring/

    @lph2005

    Participant

    It works !

    There were 5 places without semicolons and one place with a ) rather than } ….

    The code now loads with your suggestion and I’ll add in the css code to make the gradient now but wanted to thank you again for the help.

    I’ll have to dissect your last response over time :)

    @lph2005

    Participant

    Thank you for the suggestions. I’ll be working on that page in a couple hours and will go through the custom.css style sheet that was created by copying the style.css and adding in the new css for customization.

    I believe that the minify is done by cloudflare – so that is a setting that I can change.

    Again – thank you for the advice and help. You are the best.

    Quick update: I looked at the custom.css file and there are tons of places without the spacing. I’ll add those in quickly … but I noticed this … what is this?

    `.nav li ul ul li a { }
    .nav li ul li ul li a { }`

    Weird

    @lph2005

    Participant

    @hnla – as always – you are the champion of css. I totally misunderstood the custom.css file and was adding the css into the dialog box on the Sealight control panel labeled custom css: “Quickly add some CSS to your theme by adding it to this block.” Without even looking, I just figured it was building that custom.css file. Plus, if I didn’t add it into that box then the styling wouldn’t work. Silly me.

    Now, in terms of the activity-inner styling … I’ve now added it all to the custom.css and still can’t get activity-inner to work. Sigh. I’ve left that code in the custom.css and it doesn’t show in firebug either.

    http://www.thechembook.com/chemistrycircle

    I was going to work on getting the styling of the bubble like I did here: http://www.thechembook.com/groups/advanced-placement-chemistry-learners/forum/topic/the-atom-fast-facts-a-summary-sheet/

    @lph2005

    Participant

    Correct. activity-inner was not even being applied. The theme allows the customization to occur through the control panel – rather than modifying a theme file. Therefore, the activity-inner was not being added ;because I wasn’t sure what css to apply

    I’ll try the code you suggest and see what happens.

    Thanks!

    Update: Well, drats. That didn’t work. I added that to the theme and the css didn’t load. Firebug still doesn’t show the css activity.

    @lph2005

    Participant

    Here is one way:
    —-
    Register a widget on a template page of your theme. Set that page to the front.

    http://www.techtipsgeek.com/how-to-add-extra-widget-section-wordpress-blog/781/

    Next, use the RSS widget (or another plugin) to show the blog post.

    Here is more information:

    https://buddypress.org/community/groups/creating-extending/forum/topic/widgets-on-main-home-page/#post-77292

    @lph2005

    Participant

    @lph2005

    Participant

    Work continues on getting the theme working well with BP.

    This is the page I’m struggling with. I was able to adjust the avatar margin-top and the form#whatisnew … but can’t get activity-inner to adjust.

    http://www.thechembook.com/chemistrycircle

    The bp.css from the template pack is loading but I want to be able to adjust

    `

    `

    All of the css I’ve tried is not making any adjustments. FF firebug isn’t giving any clues (or I’m not understanding the clues given).

    The bubble that I created on this page is what I’m after …
    http://www.thechembook.com/groups/advanced-placement-chemistry-learners/forum/topic/the-atom-fast-facts-a-summary-sheet/

    Does anyone have any suggestions on how to modify the css for activity-inner on the activity stream page?

    @lph2005

    Participant

    I haven’t played with 3.2 but in looking at the line 144 – and reading the code notes – the parent::WPDB is the issue..

    ` function BPDB( $dbuser, $dbpassword, $dbname, $dbhost ) {
    parent::WPDB( $dbuser, $dbpassword, $dbname, $dbhost );

    $args = func_get_args();
    $args = call_user_func_array( array( &$this, ‘_init’ ), $args );

    if ( $args )
    $this->db_servers = $args;
    }`

    Have you tried to globalize that function?

    https://codex.wordpress.org/Function_Reference/wpdb_Class

    In other words, add `global $wpdb;`

    @lph2005

    Participant

    I’d recommend TigerTech and CloudFlare for free CDN and enhanced security. Gee, I feel like I’m an ad. No, I don’t work for them but started using CloudFlare the other day (used TigerTech for a long time). CF cut out thousands of spammers on my site and stopped many threats (hundreds).

    @lph2005

    Participant

    You might be interested in CloudFlare. This will help with security as well as CDN. In the meantime, there is a plugin for wordpress that will help you analyze load times:

    https://wordpress.org/extend/plugins/wptuner/

    @lph2005

    Participant

    Based on the testimonials, cloudflare might help with spam problems, too. Let us know.

    @lph2005

    Participant

    The answer depends on your site’s goals and visitors. An option is to consider the bbpress plugin that will be released soon (https://trac.bbpress.org/browser#branches/plugin).

    @lph2005

    Participant
Viewing 25 replies - 26 through 50 (of 338 total)
Skip to toolbar