Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 20 replies - 1 through 20 (of 20 total)
  • Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Yes :D On your home page, which is usually the index.php unless you’re using a static page, you can replace the code with, for example, this:

    `php get_header(); ?>
    php locate_template( array( ‘activity/index.php’ ), true ); ?>
    php get_sidebar( ); ?>
    php get_footer( ); ?>`

    Note: Add <? to the front of each php get_

    You might also want to check out the BP codex here: http://codex.buddypress.org/developer/developer-docs/loops-reference/the-activity-stream-loop/ And make sure to always make a back up of the original file before editing anything.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    @rayela I downloaded and installed the Easy Invitation Codes plugin for BuddyPress here: http://wordpress.org/extend/plugins/baw-invitation-codes/developers/ (Under the “Other Versions” section) and to avoid the false update (which updates to the WordPress version) I changed the version number, found in the baw-invitation-codes/bp-eic.php, from version 1.0 to 1.0.4

    It’s actually easier than you think to find that file and edit the version number. Simply go to Plugins > Installed Plugins, find “BP Easy Invitation Codes” in the plugin list and click “Edit”. It’ll take you right to the file you need. It looks like this:

    /*
    Plugin Name: BP Easy Invitation Codes
    Plugin URI: http://mediatricks.com
    Description: BP Visitors have to enter an invitation code to register on your site. The easy way!
    Version: 1.0
    Author: Mediatricks
    Author URI: http://mediatricks.com
    License: GPLv2
    */

    Just add a .4 to the end of the version number and remember to check the Developer section of the plugin for updates, instead of updating automatically. Hopefully they’ll separate the two plugins soon so that we can update automatically. I’ve mentioned it in the support forum.

    Once you’re set up, all you have to do is create an invitation code, which can be whatever you want, and email it to your friends. Check out the screenshots section for the plugin: http://wordpress.org/extend/plugins/baw-invitation-codes/screenshots/ It’ll give you a better idea of how it works.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Aha! You’re a genius! I didn’t realize there were so many filter files. I was only looking in the functions.php xD

    Instead of removing the filters completely, I decided to go with a replace because some people freak out when their em-dashes don’t look how they should :P In case anyone else ever has this problem, here’s what I did to resolve it:

    `function removesmartquotes($content) {
    $content = str_replace(‘&# 8220;’, ‘& quot;’, $content);
    $content = str_replace(‘&# 8221;’, ‘& quot;’, $content);
    $content = str_replace(‘&# 8216;’, ‘&# 39;’, $content);
    $content = str_replace(‘&# 8217;’, ‘&# 39;’, $content);

    return $content;
    }

    add_filter(‘the_content’, ‘removesmartquotes’);
    add_filter( ‘bp_get_activity_action’, ‘removesmartquotes’);
    add_filter( ‘bp_get_activity_content_body’, ‘removesmartquotes’);
    add_filter( ‘bp_get_activity_content’, ‘removesmartquotes’);
    add_filter( ‘bp_get_activity_parent_content’, ‘removesmartquotes’);
    add_filter( ‘bp_get_activity_latest_update’, ‘removesmartquotes’);
    add_filter( ‘bp_get_activity_latest_update_excerpt’, ‘removesmartquotes’);
    add_filter( ‘bp_get_message_notice_subject’, ‘removesmartquotes’);
    add_filter( ‘bp_get_message_notice_text’, ‘removesmartquotes’);
    add_filter( ‘bp_get_message_thread_subject’, ‘removesmartquotes’);
    add_filter( ‘bp_get_message_thread_excerpt’, ‘removesmartquotes’);
    add_filter( ‘bp_get_the_thread_message_content’, ‘removesmartquotes’);`

    Important: I added a space between the &# and 8220/21 as well as & quot because they were turning into real quotes in the final post :( So if anyone uses this, make sure to remove the spaces.

    Thanks a bunch to the both of you. I wouldn’t have figured it out with your help.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    I’m not sure if it was a problem with WangGuard on its own. It seemed to have a conflict with another plugin, but I never determined which one it was because I decided to make the website invites-only.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    You have made the pages, right? For BuddyPress to work, you need to create some new pages in WordPress, like “Members”, “Activity”, “Activate”, et cetera. Once you’ve created those pages, you go back to the BuddyPress section and the “Pages” tab and assign the pages you just created to the new sections.

    If you’re still having problems, perhaps a walk-through of the BuddyPresss Installation and Setup will help: http://codex.buddypress.org/user/setting-up-a-new-installation/ It helped me when I first started :)

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Cool! Back in the Dashboard, pick settings again and find “Permalinks” in the list. In the permalinks options, choose a link setting other than the default. I prefer the “Post-name” one, myself. After you save your changes you should be set.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    You’re welcome. Glad you got it sorted.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Hi Lynn, that’s great that you got it sorted out :D Thanks for letting us know.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    I had problems with WangGuard as well. If you’re site is for a invites-only, you could always try using the “Easy Invitation Codes” plugin. There’s a nice BP-compatible version in the developer section: http://wordpress.org/extend/plugins/baw-invitation-codes/developers/ (The link just under “Other Versions”.) It works great and is simple to set up.

    After installation, all you’d have to do is create a code and send it to the people you want to join. When they register, all they’d need to do is add the invite code, like “ARTROCKSSPAMSUCKS”, into an added field and you’re set.

    There is one tiny glitch – but don’t panic! The altered plugin still connects to the regular WordPress plugin, so it will tell you that an upgrade is available after installation. It’s a lie! I did a cheat-fix to get rid of that notification by opening the bp-eic.php file and changing the version number from 1.0 to 1.0.4. And, while writing this message, I decided to try and alert the author of the conflict.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    In your dashboard, go to settings and select “BuddyPress”. You’ll be brought to the BuddyPress options page. Select the tab titled “Pages”. From there it will help you create the needed pages and associate those pages with the BuddyPress components :D

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Have you spoken to your theme developer to see if a filter was placed in your functions.php to hide the bar from guests and subscribers?

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    The content: \”Testing quotes again\”
    The action: “Son Of Rambow” (2007)

    Guess I was right initially. The activity header is without smart quotes :D

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Also, here’s an image that will show you what you’re looking for: http://i.imgur.com/baPYq.png

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Yes, all of the quotes within the activity header are straight quotes. However, the quotes within the activity body are smart quotes.

    *edit*

    Correction, the activity header’s quotes are smart quotes and are still being parsed correctly. They render both the 8820 and 8821 on either side of the quote. However, in the activity’s body it’s spitting out two 8821s…

    That’s kind of messed up.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Ummm, well in that case you shouldn’t have to edit anything. Try this: In your Dashboard, go to: Settings > Reading and look for the option that says “For each article in a feed, show:” and gives you two options: “Full text” and “Summary”. Make sure it’s switched to “Summary”, if not then change it and check your page.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Yup, that was one of the first things I checked. It’s set to ‘en’, charset is “utf-8″

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Have you tried disabling the user role plugin to see if that helps? It would also be beneficial if you provided a link, or the exact title, of the user role plugin you’re using. It sounds like it’s a permission problem, but without knowing what the plugin is it’ll be hard to help you.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Find out what template you’re using for that page and then go into your template editor: dashboard > appearance > editor and find the template.

    Switch: the_content();
    to: the_excerpt();

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Unfortunately, the image isn’t much help. I created a temp account, which you can delete later (username: JRCDyer).

    In your bp.css, go to line 590, where it says:

    .standard-form div.submit {
    clear: both;
    padding: 15px 0px 0px;
    }

    And switch it to:

    .standard-form div.submit {
    clear: both;
    padding: 0;
    }

    Or remove the ‘padding: 15px 0px 0px;’ line completely. The padding of 15px is pushing your button down to the lower corner. By removing it, the button will remain centred within the ‘div.submit’ selector.

    Of course, if you wanted the box surrounding the button to be larger you could switch the padding to: padding: 15px;

    Hope this helps.

    Avatar of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Hi there,

    Just a thought, but couldn’t you send him a private message in the ‘messages’ section?

Viewing 20 replies - 1 through 20 (of 20 total)