WordPress.org

Ready to get started?Download WordPress

Forums

CubePoints
(& BuddyPress Integration) Custom Point/Points Name MOD (4 posts)

  1. hexdotms
    Member
    Posted 2 years ago #

    I’ve spent some time modifying the PHP files for the CubePoints system that runs the custom points ♥Hearts♥ subsystems in order to allow a custom singular and plural name for Points. So instead of seeing “Points” almost everywhere and “♥Hearts♥” in only a few places, any site using this mod can quickly customize the words to use instead of “Point” or “Points”. You can use mixed case, include special characters, or use custom brackets. Here are some ideas to get you thinking, see below for my modified files of the first full version.

    Plural
    Single
    Example

    Dollars
    Dollar
    You received $100 Dollars as a gift!

    €uros
    €uro
    You received €100 €uros as a gift!

    [Silver Moons]
    [Silver Moon]
    You received 100 [Silver Moons] as a gift!

    ♥Hearts♥
    ♥Heart♥
    You received ♥100♥ ♥Hearts♥ as a gift!

    -+=[HEX]=+-
    -+=[hex]=+-
    You received -+=[100]=+- -+=[HEX]=+- as a gift!

    Although I admit the last one looks rather silly, you’d need an awesome font to pull that off.

    I am happy enough with the results and final fixes I put in place to release this for Alpha testing. Seriously, back everything up before testing! Do not use on a Production site! I hacked this together into the complicated codebase by hand mostly, making decision after decision on how to properly integrate the new option. I have fixed countless issues and there will be more, participation from coders is welcome. I’d like to see this option in the official codebase eventually!

    In these ZIPs I have only put the changed files, except for the GPL license file which I left intact. Otherwise non-modified files are NOT included, meaning you need to have CubePoints (and CubePoints Buddypress if desired) installed and working before you upload these MOD files.

    The only database changes are two new entries for cp_name_single and cp_name_plural for storing your text strings. If you revert to an older version it will most likely just ignore the extra config entries, as the original code does not reference them at all.

    Please do not spread the files or hot link to them, instead link to my site; if there are major issues I’d rather new and returning users get the latest files and info. Note: there is no adult content on my site yet despite the warning that comes up, there will be NSFW items there eventually however.

    http://hex.xxx/archive/2011/12/22/hex/internet/web/wordpress-web/cubepoints-custom-pointpoints-name-mod-by-hex

    Questions comments, etc welcome!

    HEX

    http://wordpress.org/extend/plugins/cubepoints/

  2. hexdotms
    Member
    Posted 2 years ago #

    Notes for 20111223 Release:

    Added Widget %avatar% support based on Avatar Hook by davidbishop

    Includes new default widget strings and support for specifying avatar size in the widget!

    http://hex.xxx/archive/2011/12/22/hex/internet/web/wordpress-web/cubepoints-custom-pointpoints-name-mod-by-hex

  3. hexdotms
    Member
    Posted 2 years ago #

    Sorry had to completely reinstall my site due to issues switching to Genesis, and the permalink has changed:
    http://www.hex.xxx/2011/12/cubepoints-custom-pointpoints-name-mod-by-hex/

  4. hexdotms
    Member
    Posted 2 years ago #

    NOTE: I am no longer maintaining this as I'm not currently using CubePoints or the CP BuddyPress integration. If/When I install them back into the site I'll update them as needed or someone else can run with it.

    It should work fine for CubePoints which hasn't been updated since before I created this MOD. The CubePoints BuddyPress plugin HAS been updated however, so that might not work YMMV.

    If you would like the modified files I am going to put them back online in the post this weekend. Not sure why I'm suddenly getting hits on this on my site but I'm sorry that I didn't check and make sure they were available when I redid my website when changing hosting providers and permalinks changed once again.

    http://www.hex.xxx/cubepoints-custom-pointpoints-name-mod-by-hex/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic