myCRED - Version 1.0.5

Version Description

  • Fixed Bug #9 - Hooks are "run" too late causing some filters/actions to never fire.
  • Request #1 - Adjust plugin to lower requirements for MySQL from 5.1 to 5.0.
  • Request #2 - Add support for Jetpack Site & Comment Subscriptions.
Download this release

Release Info

Developer designbymerovingi
Plugin Icon 128x128 myCRED
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

includes/mycred-install.php CHANGED
@@ -41,8 +41,8 @@ if ( !class_exists( 'myCRED_Install' ) ) {
41
 
42
  // SQL check
43
  $sql_version = $wpdb->db_version();
44
- if ( version_compare( $sql_version, '5.1', '<' ) )
45
- $message[] = 'myCRED requires SQL 5.1 or higher. Version detected: ' . $sql_version;
46
 
47
  // Not empty $message means there are issues
48
  if ( !empty( $message ) ) {
41
 
42
  // SQL check
43
  $sql_version = $wpdb->db_version();
44
+ if ( version_compare( $sql_version, '5.0', '<' ) )
45
+ $message[] = 'myCRED requires SQL 5.0 or higher. Version detected: ' . $sql_version;
46
 
47
  // Not empty $message means there are issues
48
  if ( !empty( $message ) ) {
lang/mycred-en_US.mo CHANGED
Binary file
lang/mycred-en_US.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: myCRED v1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2013-04-22 22:52:02+0000\n"
7
  "Last-Translator: unimatrix0 <gabriel.s@merovingi.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -51,16 +51,18 @@ msgstr ""
51
  #: addons/buddypress/hooks/bp-profile.php:387
52
  #: addons/buddypress/hooks/bp-profile.php:400
53
  #: addons/buddypress/hooks/bp-profile.php:413
54
- #: modules/mycred-module-hooks.php:279
55
- #: modules/mycred-module-hooks.php:509
56
- #: modules/mycred-module-hooks.php:522
57
- #: modules/mycred-module-hooks.php:557
58
- #: modules/mycred-module-hooks.php:779
59
- #: modules/mycred-module-hooks.php:791
60
- #: modules/mycred-module-hooks.php:803
61
- #: modules/mycred-module-hooks.php:938
62
- #: modules/mycred-module-hooks.php:959
63
- #: modules/mycred-module-hooks.php:1093
 
 
64
  #@ mycred
65
  msgid "Log template"
66
  msgstr ""
@@ -402,7 +404,7 @@ msgstr ""
402
  #: includes/mycred-network.php:115
403
  #: modules/mycred-module-addons.php:227
404
  #: modules/mycred-module-general.php:35
405
- #: modules/mycred-module-hooks.php:144
406
  #: modules/mycred-module-log.php:321
407
  #: modules/mycred-module-log.php:397
408
  #@ mycred
@@ -683,7 +685,7 @@ msgstr ""
683
  #: addons/buy-creds/gateways/netbilling.php:608
684
  #: addons/buy-creds/gateways/paypal-standard.php:321
685
  #: addons/buy-creds/gateways/skrill.php:295
686
- #: addons/buy-creds/myCRED-addon-buy-creds.php:760
687
  #@ mycred
688
  msgid "Sandbox Mode"
689
  msgstr ""
@@ -765,7 +767,7 @@ msgstr ""
765
 
766
  #: addons/buy-creds/gateways/paypal-standard.php:327
767
  #: addons/buy-creds/gateways/skrill.php:301
768
- #: addons/buy-creds/myCRED-addon-buy-creds.php:751
769
  #@ mycred
770
  msgid "Currency"
771
  msgstr ""
@@ -849,7 +851,7 @@ msgid "Ask Skrill to send me a confirmation email for each successful purchase."
849
  msgstr ""
850
 
851
  #: addons/buy-creds/gateways/skrill.php:340
852
- #: addons/buy-creds/myCRED-addon-buy-creds.php:762
853
  #@ mycred
854
  msgid "Checkout Page"
855
  msgstr ""
@@ -907,7 +909,7 @@ msgid "Payment Gateways"
907
  msgstr ""
908
 
909
  #: addons/buy-creds/myCRED-addon-buy-creds.php:128
910
- #: addons/buy-creds/myCRED-addon-buy-creds.php:749
911
  #@ default
912
  #@ mycred
913
  msgid "PayPal Payments Standard"
@@ -981,7 +983,7 @@ msgstr ""
981
  #: addons/buy-creds/myCRED-addon-buy-creds.php:199
982
  #: addons/buy-creds/myCRED-addon-buy-creds.php:253
983
  #: addons/gateway/carts/mycred-woocommerce.php:79
984
- #: modules/mycred-module-hooks.php:399
985
  #@ mycred
986
  msgid "Log Template"
987
  msgstr ""
@@ -994,7 +996,7 @@ msgstr ""
994
 
995
  #: addons/buy-creds/myCRED-addon-buy-creds.php:299
996
  #: modules/mycred-module-general.php:42
997
- #: modules/mycred-module-hooks.php:151
998
  #@ mycred
999
  msgid "Settings Updated"
1000
  msgstr ""
@@ -1006,7 +1008,7 @@ msgid "Select the payment gateways you want to offer your users to buy %plural%.
1006
  msgstr ""
1007
 
1008
  #: addons/buy-creds/myCRED-addon-buy-creds.php:328
1009
- #: modules/mycred-module-hooks.php:169
1010
  #@ mycred
1011
  msgid "Enable"
1012
  msgstr ""
@@ -1029,7 +1031,6 @@ msgid "Gateway does not exist."
1029
  msgstr ""
1030
 
1031
  #: addons/buy-creds/myCRED-addon-buy-creds.php:439
1032
- #: addons/buy-creds/myCRED-addon-buy-creds.php:548
1033
  #@ mycred
1034
  msgid "Yourself"
1035
  msgstr ""
@@ -1044,43 +1045,43 @@ msgstr ""
1044
  msgid "The selected gateway is not active."
1045
  msgstr ""
1046
 
1047
- #: addons/buy-creds/myCRED-addon-buy-creds.php:557
1048
  #@ mycred
1049
  msgid "Buy with"
1050
  msgstr ""
1051
 
1052
- #: addons/buy-creds/myCRED-addon-buy-creds.php:561
1053
  #: addons/sell-content/myCRED-addon-sell-content.php:42
1054
  #@ mycred
1055
  msgid "Buy Now"
1056
  msgstr ""
1057
 
1058
- #: addons/buy-creds/myCRED-addon-buy-creds.php:595
1059
  #@ mycred
1060
  msgid "No users found"
1061
  msgstr ""
1062
 
1063
- #: addons/buy-creds/myCRED-addon-buy-creds.php:605
1064
  #@ mycred
1065
  msgid "To"
1066
  msgstr ""
1067
 
1068
- #: addons/buy-creds/myCRED-addon-buy-creds.php:622
1069
  #@ mycred
1070
  msgid "Select Amount"
1071
  msgstr ""
1072
 
1073
- #: addons/buy-creds/myCRED-addon-buy-creds.php:644
1074
  #@ mycred
1075
  msgid "Amount"
1076
  msgstr ""
1077
 
1078
- #: addons/buy-creds/myCRED-addon-buy-creds.php:646
1079
  #@ mycred
1080
  msgid "min."
1081
  msgstr ""
1082
 
1083
- #: addons/buy-creds/myCRED-addon-buy-creds.php:654
1084
  #@ mycred
1085
  msgid "Select Gateway"
1086
  msgstr ""
@@ -1803,7 +1804,7 @@ msgid "myCRED Setup"
1803
  msgstr ""
1804
 
1805
  #: includes/mycred-install.php:369
1806
- #: mycred.php:97
1807
  #@ mycred
1808
  msgid "Setup"
1809
  msgstr ""
@@ -1844,7 +1845,7 @@ msgid "Cancel"
1844
  msgstr ""
1845
 
1846
  #: includes/mycred-install.php:497
1847
- #: includes/mycred-install.php:576
1848
  #@ mycred
1849
  msgid "Next"
1850
  msgstr ""
@@ -1873,66 +1874,66 @@ msgstr ""
1873
  msgid "Suffix"
1874
  msgstr ""
1875
 
1876
- #: includes/mycred-install.php:525
1877
  #: modules/mycred-module-general.php:90
1878
  #@ mycred
1879
  msgid "Security"
1880
  msgstr ""
1881
 
1882
- #: includes/mycred-install.php:528
1883
  #@ mycred
1884
  msgid "Edit Settings Capability"
1885
  msgstr ""
1886
 
1887
- #: includes/mycred-install.php:536
1888
  #: modules/mycred-module-general.php:103
1889
  #@ mycred
1890
  msgid "Excludes"
1891
  msgstr ""
1892
 
1893
- #: includes/mycred-install.php:540
1894
  #: modules/mycred-module-general.php:107
1895
  #@ mycred
1896
  msgid "Exclude those who can \"Edit Settings\"."
1897
  msgstr ""
1898
 
1899
- #: includes/mycred-install.php:547
1900
  #: modules/mycred-module-general.php:115
1901
  #@ mycred
1902
  msgid "Exclude the following user IDs:"
1903
  msgstr ""
1904
 
1905
- #: includes/mycred-install.php:551
1906
  #: modules/mycred-module-general.php:120
1907
  #@ mycred
1908
  msgid "Rankings"
1909
  msgstr ""
1910
 
1911
- #: includes/mycred-install.php:555
1912
  #: modules/mycred-module-general.php:124
1913
  #@ mycred
1914
  msgid "Update rankings each time a users balance changes."
1915
  msgstr ""
1916
 
1917
- #: includes/mycred-install.php:559
1918
  #: modules/mycred-module-general.php:128
1919
  #@ mycred
1920
  msgid "Update rankings once a day."
1921
  msgstr ""
1922
 
1923
- #: includes/mycred-install.php:563
1924
  #: modules/mycred-module-general.php:132
1925
  #@ mycred
1926
  msgid "Update rankings once a week."
1927
  msgstr ""
1928
 
1929
- #: includes/mycred-install.php:567
1930
  #: modules/mycred-module-general.php:136
1931
  #@ mycred
1932
  msgid "Update rankings on a specific date."
1933
  msgstr ""
1934
 
1935
- #: includes/mycred-install.php:571
1936
  #: modules/mycred-module-general.php:140
1937
  #: modules/mycred-module-log.php:701
1938
  #@ mycred
@@ -1949,12 +1950,12 @@ msgstr ""
1949
  msgid "Yes"
1950
  msgstr ""
1951
 
1952
- #: includes/mycred-install.php:595
1953
  #@ mycred
1954
  msgid "Ready"
1955
  msgstr ""
1956
 
1957
- #: includes/mycred-install.php:597
1958
  #@ mycred
1959
  msgid "Install & Run"
1960
  msgstr ""
@@ -2161,7 +2162,7 @@ msgstr ""
2161
  #: modules/mycred-module-general.php:21
2162
  #: modules/mycred-module-general.php:47
2163
  #: modules/mycred-module-log.php:301
2164
- #: mycred.php:104
2165
  #@ mycred
2166
  msgid "Settings"
2167
  msgstr ""
@@ -2234,142 +2235,142 @@ msgid "Update Settings"
2234
  msgstr ""
2235
 
2236
  #: modules/mycred-module-help.php:88
2237
- #: modules/mycred-module-hooks.php:24
2238
  #: modules/mycred-module-hooks.php:25
2239
  #: modules/mycred-module-hooks.php:26
2240
- #: modules/mycred-module-hooks.php:156
 
2241
  #@ mycred
2242
  msgid "Hooks"
2243
  msgstr ""
2244
 
2245
- #: modules/mycred-module-hooks.php:84
2246
  #, php-format
2247
- #@ default
2248
  msgid "%plural% for registrations"
2249
  msgstr ""
2250
 
2251
- #: modules/mycred-module-hooks.php:85
2252
  #@ mycred
2253
  msgid "Award %_plural% for users joining your website."
2254
  msgstr ""
2255
 
2256
- #: modules/mycred-module-hooks.php:89
2257
  #, php-format
2258
- #@ default
2259
  msgid "%plural% for logins"
2260
  msgstr ""
2261
 
2262
- #: modules/mycred-module-hooks.php:90
2263
  #@ mycred
2264
  msgid "Award %_plural% for logging in to your website. You can also set an optional limit."
2265
  msgstr ""
2266
 
2267
- #: modules/mycred-module-hooks.php:94
2268
  #, php-format
2269
- #@ default
2270
  msgid "%plural% for publishing content"
2271
  msgstr ""
2272
 
2273
- #: modules/mycred-module-hooks.php:95
2274
  #@ mycred
2275
  msgid "Award %_plural% for publishing content on your website. If your custom post type is not shown bellow, make sure it is set to \"Public\"."
2276
  msgstr ""
2277
 
2278
- #: modules/mycred-module-hooks.php:99
2279
  #, php-format
2280
- #@ default
2281
  msgid "%plural% for comments"
2282
  msgstr ""
2283
 
2284
- #: modules/mycred-module-hooks.php:100
2285
  #@ mycred
2286
  msgid "Award %_plural% for making comments."
2287
  msgstr ""
2288
 
2289
- #: modules/mycred-module-hooks.php:107
2290
- #@ default
2291
  msgid "Invite Anyone Plugin"
2292
  msgstr ""
2293
 
2294
- #: modules/mycred-module-hooks.php:108
2295
  #@ mycred
2296
  msgid "Awards %_plural% for sending invitations and/or %_plural% if the invite is accepted."
2297
  msgstr ""
2298
 
2299
- #: modules/mycred-module-hooks.php:116
2300
- #@ default
2301
  msgid "Contact Form 7 Form Submissions"
2302
  msgstr ""
2303
 
2304
- #: modules/mycred-module-hooks.php:117
2305
  #@ mycred
2306
  msgid "Awards %_plural% for successful form submissions (by logged in users)."
2307
  msgstr ""
2308
 
2309
- #: modules/mycred-module-hooks.php:157
2310
  #@ mycred
2311
  msgid "Hooks are instances where %_plural% are awarded or deducted from a user, depending on their actions around your website."
2312
  msgstr ""
2313
 
2314
- #: modules/mycred-module-hooks.php:182
2315
  #@ mycred
2316
  msgid "Update Changes"
2317
  msgstr ""
2318
 
2319
- #: modules/mycred-module-hooks.php:406
2320
- #: modules/mycred-module-hooks.php:943
2321
- #: modules/mycred-module-hooks.php:964
2322
  #@ mycred
2323
  msgid "Limit"
2324
  msgstr ""
2325
 
2326
- #: modules/mycred-module-hooks.php:503
2327
  #, php-format
2328
  #@ mycred
2329
  msgid "%plural% for Posts"
2330
  msgstr ""
2331
 
2332
- #: modules/mycred-module-hooks.php:516
2333
  #, php-format
2334
  #@ mycred
2335
  msgid "%plural% for Pages"
2336
  msgstr ""
2337
 
2338
- #: modules/mycred-module-hooks.php:551
2339
  #, php-format
2340
  #@ mycred
2341
  msgid "%plural% for %s"
2342
  msgstr ""
2343
 
2344
- #: modules/mycred-module-hooks.php:931
2345
  #, php-format
2346
  #@ mycred
2347
  msgid "%plural% for Sending An Invite"
2348
  msgstr ""
2349
 
2350
- #: modules/mycred-module-hooks.php:947
2351
  #@ mycred
2352
  msgid "Maximum number of invites that grants %_plural%. User zero for unlimited."
2353
  msgstr ""
2354
 
2355
- #: modules/mycred-module-hooks.php:951
2356
  #, php-format
2357
  #@ mycred
2358
  msgid "%plural% for Accepting An Invite"
2359
  msgstr ""
2360
 
2361
- #: modules/mycred-module-hooks.php:955
2362
  #, php-format
2363
  #@ mycred
2364
  msgid "%plural% for each invited user that accepts an invitation."
2365
  msgstr ""
2366
 
2367
- #: modules/mycred-module-hooks.php:968
2368
  #@ mycred
2369
  msgid "Maximum number of accepted invitations that grants %_plural%. User zero for unlimited."
2370
  msgstr ""
2371
 
2372
- #: modules/mycred-module-hooks.php:1065
2373
  #@ mycred
2374
  msgid "No forms found."
2375
  msgstr ""
@@ -2464,7 +2465,7 @@ msgstr ""
2464
  msgid "click to close"
2465
  msgstr ""
2466
 
2467
- #: mycred.php:357
2468
  #@ mycred
2469
  msgid "My Balance: "
2470
  msgstr ""
@@ -2472,8 +2473,8 @@ msgstr ""
2472
  #: addons/gateway/carts/mycred-woocommerce.php:34
2473
  #: includes/mycred-network.php:53
2474
  #: includes/mycred-network.php:54
 
2475
  #: mycred.php:374
2476
- #: mycred.php:375
2477
  #@ mycred
2478
  msgid "myCRED"
2479
  msgstr ""
@@ -2519,7 +2520,7 @@ msgid "Disable immediate rejection of expired cards."
2519
  msgstr ""
2520
 
2521
  #: addons/buy-creds/gateways/paypal-standard.php:358
2522
- #: addons/buy-creds/myCRED-addon-buy-creds.php:754
2523
  #@ mycred
2524
  msgid "For this gateway to work, you must login to your PayPal account and under \"Profile\" > \"Selling Tools\" enable \"Instant Payment Notifications\". Make sure the \"Notification URL\" is set to the above address and that you have selected \"Receive IPN messages (Enabled)\"."
2525
  msgstr ""
@@ -2635,7 +2636,7 @@ msgstr ""
2635
  msgid "Template Tags"
2636
  msgstr ""
2637
 
2638
- #: mycred.php:117
2639
  #@ mycred
2640
  msgid "myCRED is blocked for this site. Please contact your network administrator for further details."
2641
  msgstr ""
@@ -2661,19 +2662,21 @@ msgstr ""
2661
  #: addons/buddypress/hooks/bp-profile.php:389
2662
  #: addons/buddypress/hooks/bp-profile.php:402
2663
  #: addons/buddypress/hooks/bp-profile.php:415
2664
- #: modules/mycred-module-hooks.php:403
2665
- #: modules/mycred-module-hooks.php:940
2666
- #: modules/mycred-module-hooks.php:961
 
 
2667
  #@ mycred
2668
  msgid "Available template tags: General"
2669
  msgstr ""
2670
 
2671
  #: addons/buddypress/hooks/bp-press.php:115
2672
  #: addons/buddypress/hooks/bp-press.php:128
2673
- #: modules/mycred-module-hooks.php:513
2674
- #: modules/mycred-module-hooks.php:526
2675
- #: modules/mycred-module-hooks.php:561
2676
- #: modules/mycred-module-hooks.php:1095
2677
  #@ mycred
2678
  msgid "Available template tags: General, Post"
2679
  msgstr ""
@@ -2682,7 +2685,7 @@ msgstr ""
2682
  #: addons/buddypress/hooks/bp-profile.php:363
2683
  #: addons/transfer/myCRED-addon-transfer.php:180
2684
  #: addons/transfer/myCRED-addon-transfer.php:187
2685
- #: modules/mycred-module-hooks.php:283
2686
  #@ mycred
2687
  msgid "Available template tags: General, User"
2688
  msgstr ""
@@ -2826,96 +2829,96 @@ msgstr ""
2826
  msgid "Your current balance"
2827
  msgstr ""
2828
 
2829
- #: modules/mycred-module-hooks.php:781
2830
- #: modules/mycred-module-hooks.php:793
2831
- #: modules/mycred-module-hooks.php:805
2832
  #@ mycred
2833
  msgid "Available template tags: General, Comment"
2834
  msgstr ""
2835
 
2836
- #: modules/mycred-module-hooks.php:772
2837
  #@ mycred
2838
  msgid "Approved Comment"
2839
  msgstr ""
2840
 
2841
- #: modules/mycred-module-hooks.php:784
2842
  #@ mycred
2843
  msgid "Comment Marked SPAM"
2844
  msgstr ""
2845
 
2846
- #: modules/mycred-module-hooks.php:796
2847
  #@ mycred
2848
  msgid "Trashed / Unapproved Comments"
2849
  msgstr ""
2850
 
2851
- #: addons/buy-creds/myCRED-addon-buy-creds.php:733
2852
  #@ mycred
2853
  msgid "Buy Creds"
2854
  msgstr ""
2855
 
2856
- #: addons/buy-creds/myCRED-addon-buy-creds.php:735
2857
  #@ mycred
2858
  msgid "This add-on lets your users buy %_plural% using a payment gateway."
2859
  msgstr ""
2860
 
2861
- #: addons/buy-creds/myCRED-addon-buy-creds.php:736
2862
  #@ mycred
2863
  msgid "Supported Gateways"
2864
  msgstr ""
2865
 
2866
- #: addons/buy-creds/myCRED-addon-buy-creds.php:737
2867
  #@ mycred
2868
  msgid "myCRED supports purchases though: PayPal Payments Standard, Skrill (Moneybookers) and NETbilling. Let us know if you want to add other payment gateways."
2869
  msgstr ""
2870
 
2871
- #: addons/buy-creds/myCRED-addon-buy-creds.php:738
2872
  #: addons/sell-content/myCRED-addon-sell-content.php:692
2873
  #: addons/transfer/myCRED-addon-transfer.php:469
2874
  #@ mycred
2875
  msgid "Usage"
2876
  msgstr ""
2877
 
2878
- #: addons/buy-creds/myCRED-addon-buy-creds.php:739
2879
  #@ mycred
2880
  msgid "Purchases can be made using one of the following shortcodes:"
2881
  msgstr ""
2882
 
2883
- #: addons/buy-creds/myCRED-addon-buy-creds.php:741
2884
  #@ mycred
2885
  msgid "When you want to sell a pre-set amount, sell to a specific user or use a specific gateway.<br />For more information on how to use the shortcode, please visit the"
2886
  msgstr ""
2887
 
2888
- #: addons/buy-creds/myCRED-addon-buy-creds.php:742
2889
  #@ mycred
2890
  msgid "When you want to give your users the option to select an amount, gateway or recipient.<br />For more information on how to use the shortcode, please visit the"
2891
  msgstr ""
2892
 
2893
- #: addons/buy-creds/myCRED-addon-buy-creds.php:752
2894
  #@ mycred
2895
  msgid "Make sure you select a currency that your PayPal account supports. Otherwise transactions will not be approved until you login to your PayPal account and Accept each transaction! Purchases made in a currency that is not supported will not be applied to the buyer until you have resolved the issue."
2896
  msgstr ""
2897
 
2898
- #: addons/buy-creds/myCRED-addon-buy-creds.php:753
2899
  #@ mycred
2900
  msgid "Instant Payment Notifications"
2901
  msgstr ""
2902
 
2903
- #: addons/buy-creds/myCRED-addon-buy-creds.php:758
2904
  #@ mycred
2905
  msgid "Skrill"
2906
  msgstr ""
2907
 
2908
- #: addons/buy-creds/myCRED-addon-buy-creds.php:761
2909
  #@ mycred
2910
  msgid "Transactions made while Sandbox mode is active are real transactions! Remember to use your \"Test Merchant Account\" when Sandbox mode is active!"
2911
  msgstr ""
2912
 
2913
- #: addons/buy-creds/myCRED-addon-buy-creds.php:763
2914
  #@ mycred
2915
  msgid "By default all Skrill Merchant account accept payments via Bank Transfers. When a user selects this option, no points are awarded! You will need to manually award these once the bank transfer is completed."
2916
  msgstr ""
2917
 
2918
- #: addons/buy-creds/myCRED-addon-buy-creds.php:764
2919
  #@ mycred
2920
  msgid "By default purchases made using Skrill will result in users having to signup for a Skrill account (if they do not have one already). You can contact Skrill Merchant Services and request to disable this feature."
2921
  msgstr ""
@@ -3044,20 +3047,20 @@ msgstr ""
3044
  msgid "Adjust Your Balance"
3045
  msgstr ""
3046
 
3047
- #: includes/mycred-install.php:532
3048
  #, php-format
3049
  #@ mycred
3050
  msgid "Edit Users %plural% Capability"
3051
  msgstr ""
3052
 
3053
- #: includes/mycred-install.php:544
3054
  #: modules/mycred-module-general.php:111
3055
  #, php-format
3056
  #@ mycred
3057
  msgid "Exclude those who can \"Edit Users %plural%\"."
3058
  msgstr ""
3059
 
3060
- #: includes/mycred-install.php:596
3061
  #@ mycred
3062
  msgid "Almost done! Click the button below to finish this setup."
3063
  msgstr ""
@@ -3423,3 +3426,23 @@ msgstr ""
3423
  msgid "Here you can name your installation along with setting your layout and format. You can use any name as long as you set both the singular and plural format and you can change the name at any time."
3424
  msgstr ""
3425
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: myCRED v1.0.5\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2013-05-02 09:51:00+0000\n"
7
  "Last-Translator: unimatrix0 <gabriel.s@merovingi.com>\n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
51
  #: addons/buddypress/hooks/bp-profile.php:387
52
  #: addons/buddypress/hooks/bp-profile.php:400
53
  #: addons/buddypress/hooks/bp-profile.php:413
54
+ #: modules/mycred-module-hooks.php:289
55
+ #: modules/mycred-module-hooks.php:519
56
+ #: modules/mycred-module-hooks.php:532
57
+ #: modules/mycred-module-hooks.php:567
58
+ #: modules/mycred-module-hooks.php:789
59
+ #: modules/mycred-module-hooks.php:801
60
+ #: modules/mycred-module-hooks.php:813
61
+ #: modules/mycred-module-hooks.php:948
62
+ #: modules/mycred-module-hooks.php:969
63
+ #: modules/mycred-module-hooks.php:1103
64
+ #: modules/mycred-module-subscriptions.php:489
65
+ #: modules/mycred-module-subscriptions.php:502
66
  #@ mycred
67
  msgid "Log template"
68
  msgstr ""
404
  #: includes/mycred-network.php:115
405
  #: modules/mycred-module-addons.php:227
406
  #: modules/mycred-module-general.php:35
407
+ #: modules/mycred-module-hooks.php:154
408
  #: modules/mycred-module-log.php:321
409
  #: modules/mycred-module-log.php:397
410
  #@ mycred
685
  #: addons/buy-creds/gateways/netbilling.php:608
686
  #: addons/buy-creds/gateways/paypal-standard.php:321
687
  #: addons/buy-creds/gateways/skrill.php:295
688
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:750
689
  #@ mycred
690
  msgid "Sandbox Mode"
691
  msgstr ""
767
 
768
  #: addons/buy-creds/gateways/paypal-standard.php:327
769
  #: addons/buy-creds/gateways/skrill.php:301
770
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:741
771
  #@ mycred
772
  msgid "Currency"
773
  msgstr ""
851
  msgstr ""
852
 
853
  #: addons/buy-creds/gateways/skrill.php:340
854
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:752
855
  #@ mycred
856
  msgid "Checkout Page"
857
  msgstr ""
909
  msgstr ""
910
 
911
  #: addons/buy-creds/myCRED-addon-buy-creds.php:128
912
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:739
913
  #@ default
914
  #@ mycred
915
  msgid "PayPal Payments Standard"
983
  #: addons/buy-creds/myCRED-addon-buy-creds.php:199
984
  #: addons/buy-creds/myCRED-addon-buy-creds.php:253
985
  #: addons/gateway/carts/mycred-woocommerce.php:79
986
+ #: modules/mycred-module-hooks.php:409
987
  #@ mycred
988
  msgid "Log Template"
989
  msgstr ""
996
 
997
  #: addons/buy-creds/myCRED-addon-buy-creds.php:299
998
  #: modules/mycred-module-general.php:42
999
+ #: modules/mycred-module-hooks.php:161
1000
  #@ mycred
1001
  msgid "Settings Updated"
1002
  msgstr ""
1008
  msgstr ""
1009
 
1010
  #: addons/buy-creds/myCRED-addon-buy-creds.php:328
1011
+ #: modules/mycred-module-hooks.php:179
1012
  #@ mycred
1013
  msgid "Enable"
1014
  msgstr ""
1031
  msgstr ""
1032
 
1033
  #: addons/buy-creds/myCRED-addon-buy-creds.php:439
 
1034
  #@ mycred
1035
  msgid "Yourself"
1036
  msgstr ""
1045
  msgid "The selected gateway is not active."
1046
  msgstr ""
1047
 
1048
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:547
1049
  #@ mycred
1050
  msgid "Buy with"
1051
  msgstr ""
1052
 
1053
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:551
1054
  #: addons/sell-content/myCRED-addon-sell-content.php:42
1055
  #@ mycred
1056
  msgid "Buy Now"
1057
  msgstr ""
1058
 
1059
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:585
1060
  #@ mycred
1061
  msgid "No users found"
1062
  msgstr ""
1063
 
1064
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:595
1065
  #@ mycred
1066
  msgid "To"
1067
  msgstr ""
1068
 
1069
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:612
1070
  #@ mycred
1071
  msgid "Select Amount"
1072
  msgstr ""
1073
 
1074
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:634
1075
  #@ mycred
1076
  msgid "Amount"
1077
  msgstr ""
1078
 
1079
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:636
1080
  #@ mycred
1081
  msgid "min."
1082
  msgstr ""
1083
 
1084
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:644
1085
  #@ mycred
1086
  msgid "Select Gateway"
1087
  msgstr ""
1804
  msgstr ""
1805
 
1806
  #: includes/mycred-install.php:369
1807
+ #: mycred.php:96
1808
  #@ mycred
1809
  msgid "Setup"
1810
  msgstr ""
1845
  msgstr ""
1846
 
1847
  #: includes/mycred-install.php:497
1848
+ #: includes/mycred-install.php:577
1849
  #@ mycred
1850
  msgid "Next"
1851
  msgstr ""
1874
  msgid "Suffix"
1875
  msgstr ""
1876
 
1877
+ #: includes/mycred-install.php:526
1878
  #: modules/mycred-module-general.php:90
1879
  #@ mycred
1880
  msgid "Security"
1881
  msgstr ""
1882
 
1883
+ #: includes/mycred-install.php:529
1884
  #@ mycred
1885
  msgid "Edit Settings Capability"
1886
  msgstr ""
1887
 
1888
+ #: includes/mycred-install.php:537
1889
  #: modules/mycred-module-general.php:103
1890
  #@ mycred
1891
  msgid "Excludes"
1892
  msgstr ""
1893
 
1894
+ #: includes/mycred-install.php:541
1895
  #: modules/mycred-module-general.php:107
1896
  #@ mycred
1897
  msgid "Exclude those who can \"Edit Settings\"."
1898
  msgstr ""
1899
 
1900
+ #: includes/mycred-install.php:548
1901
  #: modules/mycred-module-general.php:115
1902
  #@ mycred
1903
  msgid "Exclude the following user IDs:"
1904
  msgstr ""
1905
 
1906
+ #: includes/mycred-install.php:552
1907
  #: modules/mycred-module-general.php:120
1908
  #@ mycred
1909
  msgid "Rankings"
1910
  msgstr ""
1911
 
1912
+ #: includes/mycred-install.php:556
1913
  #: modules/mycred-module-general.php:124
1914
  #@ mycred
1915
  msgid "Update rankings each time a users balance changes."
1916
  msgstr ""
1917
 
1918
+ #: includes/mycred-install.php:560
1919
  #: modules/mycred-module-general.php:128
1920
  #@ mycred
1921
  msgid "Update rankings once a day."
1922
  msgstr ""
1923
 
1924
+ #: includes/mycred-install.php:564
1925
  #: modules/mycred-module-general.php:132
1926
  #@ mycred
1927
  msgid "Update rankings once a week."
1928
  msgstr ""
1929
 
1930
+ #: includes/mycred-install.php:568
1931
  #: modules/mycred-module-general.php:136
1932
  #@ mycred
1933
  msgid "Update rankings on a specific date."
1934
  msgstr ""
1935
 
1936
+ #: includes/mycred-install.php:572
1937
  #: modules/mycred-module-general.php:140
1938
  #: modules/mycred-module-log.php:701
1939
  #@ mycred
1950
  msgid "Yes"
1951
  msgstr ""
1952
 
1953
+ #: includes/mycred-install.php:596
1954
  #@ mycred
1955
  msgid "Ready"
1956
  msgstr ""
1957
 
1958
+ #: includes/mycred-install.php:598
1959
  #@ mycred
1960
  msgid "Install & Run"
1961
  msgstr ""
2162
  #: modules/mycred-module-general.php:21
2163
  #: modules/mycred-module-general.php:47
2164
  #: modules/mycred-module-log.php:301
2165
+ #: mycred.php:103
2166
  #@ mycred
2167
  msgid "Settings"
2168
  msgstr ""
2235
  msgstr ""
2236
 
2237
  #: modules/mycred-module-help.php:88
 
2238
  #: modules/mycred-module-hooks.php:25
2239
  #: modules/mycred-module-hooks.php:26
2240
+ #: modules/mycred-module-hooks.php:27
2241
+ #: modules/mycred-module-hooks.php:166
2242
  #@ mycred
2243
  msgid "Hooks"
2244
  msgstr ""
2245
 
2246
+ #: modules/mycred-module-hooks.php:85
2247
  #, php-format
2248
+ #@ mycred
2249
  msgid "%plural% for registrations"
2250
  msgstr ""
2251
 
2252
+ #: modules/mycred-module-hooks.php:86
2253
  #@ mycred
2254
  msgid "Award %_plural% for users joining your website."
2255
  msgstr ""
2256
 
2257
+ #: modules/mycred-module-hooks.php:90
2258
  #, php-format
2259
+ #@ mycred
2260
  msgid "%plural% for logins"
2261
  msgstr ""
2262
 
2263
+ #: modules/mycred-module-hooks.php:91
2264
  #@ mycred
2265
  msgid "Award %_plural% for logging in to your website. You can also set an optional limit."
2266
  msgstr ""
2267
 
2268
+ #: modules/mycred-module-hooks.php:95
2269
  #, php-format
2270
+ #@ mycred
2271
  msgid "%plural% for publishing content"
2272
  msgstr ""
2273
 
2274
+ #: modules/mycred-module-hooks.php:96
2275
  #@ mycred
2276
  msgid "Award %_plural% for publishing content on your website. If your custom post type is not shown bellow, make sure it is set to \"Public\"."
2277
  msgstr ""
2278
 
2279
+ #: modules/mycred-module-hooks.php:100
2280
  #, php-format
2281
+ #@ mycred
2282
  msgid "%plural% for comments"
2283
  msgstr ""
2284
 
2285
+ #: modules/mycred-module-hooks.php:101
2286
  #@ mycred
2287
  msgid "Award %_plural% for making comments."
2288
  msgstr ""
2289
 
2290
+ #: modules/mycred-module-hooks.php:108
2291
+ #@ mycred
2292
  msgid "Invite Anyone Plugin"
2293
  msgstr ""
2294
 
2295
+ #: modules/mycred-module-hooks.php:109
2296
  #@ mycred
2297
  msgid "Awards %_plural% for sending invitations and/or %_plural% if the invite is accepted."
2298
  msgstr ""
2299
 
2300
+ #: modules/mycred-module-hooks.php:117
2301
+ #@ mycred
2302
  msgid "Contact Form 7 Form Submissions"
2303
  msgstr ""
2304
 
2305
+ #: modules/mycred-module-hooks.php:118
2306
  #@ mycred
2307
  msgid "Awards %_plural% for successful form submissions (by logged in users)."
2308
  msgstr ""
2309
 
2310
+ #: modules/mycred-module-hooks.php:167
2311
  #@ mycred
2312
  msgid "Hooks are instances where %_plural% are awarded or deducted from a user, depending on their actions around your website."
2313
  msgstr ""
2314
 
2315
+ #: modules/mycred-module-hooks.php:192
2316
  #@ mycred
2317
  msgid "Update Changes"
2318
  msgstr ""
2319
 
2320
+ #: modules/mycred-module-hooks.php:416
2321
+ #: modules/mycred-module-hooks.php:953
2322
+ #: modules/mycred-module-hooks.php:974
2323
  #@ mycred
2324
  msgid "Limit"
2325
  msgstr ""
2326
 
2327
+ #: modules/mycred-module-hooks.php:513
2328
  #, php-format
2329
  #@ mycred
2330
  msgid "%plural% for Posts"
2331
  msgstr ""
2332
 
2333
+ #: modules/mycred-module-hooks.php:526
2334
  #, php-format
2335
  #@ mycred
2336
  msgid "%plural% for Pages"
2337
  msgstr ""
2338
 
2339
+ #: modules/mycred-module-hooks.php:561
2340
  #, php-format
2341
  #@ mycred
2342
  msgid "%plural% for %s"
2343
  msgstr ""
2344
 
2345
+ #: modules/mycred-module-hooks.php:941
2346
  #, php-format
2347
  #@ mycred
2348
  msgid "%plural% for Sending An Invite"
2349
  msgstr ""
2350
 
2351
+ #: modules/mycred-module-hooks.php:957
2352
  #@ mycred
2353
  msgid "Maximum number of invites that grants %_plural%. User zero for unlimited."
2354
  msgstr ""
2355
 
2356
+ #: modules/mycred-module-hooks.php:961
2357
  #, php-format
2358
  #@ mycred
2359
  msgid "%plural% for Accepting An Invite"
2360
  msgstr ""
2361
 
2362
+ #: modules/mycred-module-hooks.php:965
2363
  #, php-format
2364
  #@ mycred
2365
  msgid "%plural% for each invited user that accepts an invitation."
2366
  msgstr ""
2367
 
2368
+ #: modules/mycred-module-hooks.php:978
2369
  #@ mycred
2370
  msgid "Maximum number of accepted invitations that grants %_plural%. User zero for unlimited."
2371
  msgstr ""
2372
 
2373
+ #: modules/mycred-module-hooks.php:1075
2374
  #@ mycred
2375
  msgid "No forms found."
2376
  msgstr ""
2465
  msgid "click to close"
2466
  msgstr ""
2467
 
2468
+ #: mycred.php:356
2469
  #@ mycred
2470
  msgid "My Balance: "
2471
  msgstr ""
2473
  #: addons/gateway/carts/mycred-woocommerce.php:34
2474
  #: includes/mycred-network.php:53
2475
  #: includes/mycred-network.php:54
2476
+ #: mycred.php:373
2477
  #: mycred.php:374
 
2478
  #@ mycred
2479
  msgid "myCRED"
2480
  msgstr ""
2520
  msgstr ""
2521
 
2522
  #: addons/buy-creds/gateways/paypal-standard.php:358
2523
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:744
2524
  #@ mycred
2525
  msgid "For this gateway to work, you must login to your PayPal account and under \"Profile\" > \"Selling Tools\" enable \"Instant Payment Notifications\". Make sure the \"Notification URL\" is set to the above address and that you have selected \"Receive IPN messages (Enabled)\"."
2526
  msgstr ""
2636
  msgid "Template Tags"
2637
  msgstr ""
2638
 
2639
+ #: mycred.php:116
2640
  #@ mycred
2641
  msgid "myCRED is blocked for this site. Please contact your network administrator for further details."
2642
  msgstr ""
2662
  #: addons/buddypress/hooks/bp-profile.php:389
2663
  #: addons/buddypress/hooks/bp-profile.php:402
2664
  #: addons/buddypress/hooks/bp-profile.php:415
2665
+ #: modules/mycred-module-hooks.php:413
2666
+ #: modules/mycred-module-hooks.php:950
2667
+ #: modules/mycred-module-hooks.php:971
2668
+ #: modules/mycred-module-subscriptions.php:491
2669
+ #: modules/mycred-module-subscriptions.php:504
2670
  #@ mycred
2671
  msgid "Available template tags: General"
2672
  msgstr ""
2673
 
2674
  #: addons/buddypress/hooks/bp-press.php:115
2675
  #: addons/buddypress/hooks/bp-press.php:128
2676
+ #: modules/mycred-module-hooks.php:523
2677
+ #: modules/mycred-module-hooks.php:536
2678
+ #: modules/mycred-module-hooks.php:571
2679
+ #: modules/mycred-module-hooks.php:1105
2680
  #@ mycred
2681
  msgid "Available template tags: General, Post"
2682
  msgstr ""
2685
  #: addons/buddypress/hooks/bp-profile.php:363
2686
  #: addons/transfer/myCRED-addon-transfer.php:180
2687
  #: addons/transfer/myCRED-addon-transfer.php:187
2688
+ #: modules/mycred-module-hooks.php:293
2689
  #@ mycred
2690
  msgid "Available template tags: General, User"
2691
  msgstr ""
2829
  msgid "Your current balance"
2830
  msgstr ""
2831
 
2832
+ #: modules/mycred-module-hooks.php:791
2833
+ #: modules/mycred-module-hooks.php:803
2834
+ #: modules/mycred-module-hooks.php:815
2835
  #@ mycred
2836
  msgid "Available template tags: General, Comment"
2837
  msgstr ""
2838
 
2839
+ #: modules/mycred-module-hooks.php:782
2840
  #@ mycred
2841
  msgid "Approved Comment"
2842
  msgstr ""
2843
 
2844
+ #: modules/mycred-module-hooks.php:794
2845
  #@ mycred
2846
  msgid "Comment Marked SPAM"
2847
  msgstr ""
2848
 
2849
+ #: modules/mycred-module-hooks.php:806
2850
  #@ mycred
2851
  msgid "Trashed / Unapproved Comments"
2852
  msgstr ""
2853
 
2854
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:723
2855
  #@ mycred
2856
  msgid "Buy Creds"
2857
  msgstr ""
2858
 
2859
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:725
2860
  #@ mycred
2861
  msgid "This add-on lets your users buy %_plural% using a payment gateway."
2862
  msgstr ""
2863
 
2864
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:726
2865
  #@ mycred
2866
  msgid "Supported Gateways"
2867
  msgstr ""
2868
 
2869
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:727
2870
  #@ mycred
2871
  msgid "myCRED supports purchases though: PayPal Payments Standard, Skrill (Moneybookers) and NETbilling. Let us know if you want to add other payment gateways."
2872
  msgstr ""
2873
 
2874
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:728
2875
  #: addons/sell-content/myCRED-addon-sell-content.php:692
2876
  #: addons/transfer/myCRED-addon-transfer.php:469
2877
  #@ mycred
2878
  msgid "Usage"
2879
  msgstr ""
2880
 
2881
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:729
2882
  #@ mycred
2883
  msgid "Purchases can be made using one of the following shortcodes:"
2884
  msgstr ""
2885
 
2886
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:731
2887
  #@ mycred
2888
  msgid "When you want to sell a pre-set amount, sell to a specific user or use a specific gateway.<br />For more information on how to use the shortcode, please visit the"
2889
  msgstr ""
2890
 
2891
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:732
2892
  #@ mycred
2893
  msgid "When you want to give your users the option to select an amount, gateway or recipient.<br />For more information on how to use the shortcode, please visit the"
2894
  msgstr ""
2895
 
2896
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:742
2897
  #@ mycred
2898
  msgid "Make sure you select a currency that your PayPal account supports. Otherwise transactions will not be approved until you login to your PayPal account and Accept each transaction! Purchases made in a currency that is not supported will not be applied to the buyer until you have resolved the issue."
2899
  msgstr ""
2900
 
2901
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:743
2902
  #@ mycred
2903
  msgid "Instant Payment Notifications"
2904
  msgstr ""
2905
 
2906
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:748
2907
  #@ mycred
2908
  msgid "Skrill"
2909
  msgstr ""
2910
 
2911
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:751
2912
  #@ mycred
2913
  msgid "Transactions made while Sandbox mode is active are real transactions! Remember to use your \"Test Merchant Account\" when Sandbox mode is active!"
2914
  msgstr ""
2915
 
2916
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:753
2917
  #@ mycred
2918
  msgid "By default all Skrill Merchant account accept payments via Bank Transfers. When a user selects this option, no points are awarded! You will need to manually award these once the bank transfer is completed."
2919
  msgstr ""
2920
 
2921
+ #: addons/buy-creds/myCRED-addon-buy-creds.php:754
2922
  #@ mycred
2923
  msgid "By default purchases made using Skrill will result in users having to signup for a Skrill account (if they do not have one already). You can contact Skrill Merchant Services and request to disable this feature."
2924
  msgstr ""
3047
  msgid "Adjust Your Balance"
3048
  msgstr ""
3049
 
3050
+ #: includes/mycred-install.php:533
3051
  #, php-format
3052
  #@ mycred
3053
  msgid "Edit Users %plural% Capability"
3054
  msgstr ""
3055
 
3056
+ #: includes/mycred-install.php:545
3057
  #: modules/mycred-module-general.php:111
3058
  #, php-format
3059
  #@ mycred
3060
  msgid "Exclude those who can \"Edit Users %plural%\"."
3061
  msgstr ""
3062
 
3063
+ #: includes/mycred-install.php:597
3064
  #@ mycred
3065
  msgid "Almost done! Click the button below to finish this setup."
3066
  msgstr ""
3426
  msgid "Here you can name your installation along with setting your layout and format. You can use any name as long as you set both the singular and plural format and you can change the name at any time."
3427
  msgstr ""
3428
 
3429
+ #: modules/mycred-module-hooks.php:126
3430
+ #@ mycred
3431
+ msgid "Jetpack Subscriptions"
3432
+ msgstr ""
3433
+
3434
+ #: modules/mycred-module-hooks.php:127
3435
+ #@ mycred
3436
+ msgid "Awards %_plural% for users signing up for site or comment updates using Jetpack."
3437
+ msgstr ""
3438
+
3439
+ #: modules/mycred-module-subscriptions.php:482
3440
+ #@ mycred
3441
+ msgid "Site Subscriptions"
3442
+ msgstr ""
3443
+
3444
+ #: modules/mycred-module-subscriptions.php:495
3445
+ #@ mycred
3446
+ msgid "Comment Subscriptions"
3447
+ msgstr ""
3448
+
modules/mycred-module-hooks.php CHANGED
@@ -1,5 +1,6 @@
1
  <?php
2
  if ( !defined( 'myCRED_VERSION' ) ) exit;
 
3
  /**
4
  * myCRED_Hooks class
5
  * @since 0.1
@@ -36,7 +37,7 @@ if ( !class_exists( 'myCRED_Hooks' ) ) {
36
  * @since 0.1
37
  * @version 1.0
38
  */
39
- public function module_init() {
40
  if ( !empty( $this->installed ) ) {
41
  foreach ( $this->installed as $key => $gdata ) {
42
  if ( $this->is_active( $key ) && isset( $gdata['callback'] ) ) {
@@ -76,7 +77,7 @@ if ( !class_exists( 'myCRED_Hooks' ) ) {
76
  /**
77
  * Get Hooks
78
  * @since 0.1
79
- * @version 1.0
80
  */
81
  public function get( $save = false ) {
82
  // Defaults
@@ -119,6 +120,15 @@ if ( !class_exists( 'myCRED_Hooks' ) ) {
119
  );
120
  }
121
 
 
 
 
 
 
 
 
 
 
122
  $installed = apply_filters( 'mycred_setup_hooks', $installed );
123
 
124
  if ( $save === true && $this->core->can_edit_plugin() ) {
1
  <?php
2
  if ( !defined( 'myCRED_VERSION' ) ) exit;
3
+ include_once( myCRED_MODULES_DIR . 'mycred-module-subscriptions.php' );
4
  /**
5
  * myCRED_Hooks class
6
  * @since 0.1
37
  * @since 0.1
38
  * @version 1.0
39
  */
40
+ public function module_pre_init() {
41
  if ( !empty( $this->installed ) ) {
42
  foreach ( $this->installed as $key => $gdata ) {
43
  if ( $this->is_active( $key ) && isset( $gdata['callback'] ) ) {
77
  /**
78
  * Get Hooks
79
  * @since 0.1
80
+ * @version 1.0.5
81
  */
82
  public function get( $save = false ) {
83
  // Defaults
120
  );
121
  }
122
 
123
+ // Prep for Jetpack
124
+ if ( class_exists( 'Jetpack' ) ) {
125
+ $installed['jetpack'] = array(
126
+ 'title' => __( 'Jetpack Subscriptions', 'mycred' ),
127
+ 'description' => __( 'Awards %_plural% for users signing up for site or comment updates using Jetpack.', 'mycred' ),
128
+ 'callback' => array( 'myCRED_Hook_Jetpack' )
129
+ );
130
+ }
131
+
132
  $installed = apply_filters( 'mycred_setup_hooks', $installed );
133
 
134
  if ( $save === true && $this->core->can_edit_plugin() ) {
modules/mycred-module-subscriptions.php ADDED
@@ -0,0 +1,508 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Subscription related Hooks
4
+ * Adds support for Jetpack
5
+ *
6
+ * @since 1.0.5
7
+ * @version 1.0
8
+ */
9
+ if ( !defined( 'myCRED_VERSION' ) ) exit;
10
+ /**
11
+ * Hooks for Jetpack
12
+ * Adds support for Jetpack.
13
+ *
14
+ * @since 1.0.5
15
+ * @version 1.0
16
+ */
17
+ if ( !class_exists( 'myCRED_Hook_Jetpack' ) ) {
18
+ class myCRED_Hook_Jetpack extends myCRED_Hook {
19
+
20
+ /**
21
+ * Construct
22
+ */
23
+ function __construct( $hook_prefs ) {
24
+ parent::__construct( array(
25
+ 'id' => 'jetpack',
26
+ 'defaults' => array(
27
+ 'subscribe_site' => array(
28
+ 'creds' => 1,
29
+ 'log' => '%plural% for site subscription'
30
+ ),
31
+ 'subscribe_comment' => array(
32
+ 'creds' => 1,
33
+ 'log' => '%plural% for comment subscription'
34
+ )
35
+ )
36
+ ), $hook_prefs );
37
+ }
38
+
39
+ /**
40
+ * Run
41
+ * @since 1.0.5
42
+ * @version 1.0
43
+ */
44
+ public function run() {
45
+ // Site Subscriptions
46
+ if ( $this->prefs['subscribe_site']['creds'] != 0 ) {
47
+ add_filter( 'wp_redirect', array( $this, 'submit_redirect' ), 1 );
48
+ }
49
+
50
+ // Comment Subscriptions
51
+ if ( $this->prefs['subscribe_comment']['creds'] != 0 ) {
52
+ add_action( 'comment_post', array( $this, 'comment_subscribe_submit' ), 99, 2 );
53
+ }
54
+
55
+ add_action( 'mycred_admin_init', array( $this, 'admin_init' ) );
56
+ }
57
+
58
+ /**
59
+ * Admin Init
60
+ * Check pending emails if they have confirmed their subscription. If it's confirmed
61
+ * and no previous points have been awarded we do that here. Else if the email is marked
62
+ * as pending we save it for a later try.
63
+ *
64
+ * @since 1.0.5
65
+ * @version 1.0
66
+ */
67
+ public function admin_init() {
68
+ $types = array();
69
+
70
+ if ( $this->prefs['subscribe_site']['creds'] != 0 )
71
+ $types[] = 'site';
72
+
73
+ if ( $this->prefs['subscribe_comment']['creds'] != 0 )
74
+ $types[] = 'comment';
75
+
76
+ // Not enabled, bail
77
+ if ( empty( $types ) ) return;
78
+
79
+ foreach ( $types as $type ) {
80
+ // Get list if it exist
81
+ if ( false === ( $pending = get_option( 'mycred_jetpack_' . $type . '_pendings' ) ) )
82
+ continue;
83
+
84
+ // Make sure list is not empty
85
+ if ( empty( $pending ) ) {
86
+ // Clean up before exit
87
+ delete_option( 'mycred_jetpack_' . $type . '_pendings' );
88
+ continue;
89
+ }
90
+
91
+ $new = array();
92
+ foreach ( $pending as $id => $email ) {
93
+ // Validate
94
+ if ( trim( $email ) == '' || !is_email( $email ) ) continue;
95
+
96
+ // Make sure user exist
97
+ $user = get_user_by( 'email', $email );
98
+ if ( $user === false ) continue;
99
+
100
+ // Check for exclusion
101
+ if ( $this->core->exclude_user( $user->ID ) === true ) continue;
102
+
103
+ // Make sure this is a unique event
104
+ if ( $this->has_entry( 'site_subscription', '', $user->ID ) ) continue;
105
+
106
+ // Site Subscriptions
107
+ if ( $type == 'site' ) {
108
+ // Check subscription status
109
+ $subscription = $this->check_jetpack_subscription( $email );
110
+ // Active status = award points if not already
111
+ if ( $subscription == 'active' ) {
112
+ // Execute
113
+ $this->core->add_creds(
114
+ 'site_subscription',
115
+ $user->ID,
116
+ $this->prefs['subscribe_site']['creds'],
117
+ $this->prefs['subscribe_site']['log']
118
+ );
119
+ }
120
+ // Pending status = save so we try again later
121
+ elseif ( $subscription == 'pending' ) {
122
+ $new[] = $email;
123
+ continue;
124
+ }
125
+ }
126
+ // Comment Subscriptions
127
+ else {
128
+ $comment = get_comment( $id );
129
+ if ( empty( $comment ) ) continue;
130
+
131
+ // If no user id exist, check and see if the authors email is used by someone
132
+ if ( $comment->user_id == 0 ) {
133
+ $user = get_user_by( 'email', $email );
134
+ if ( $user === false ) continue;
135
+ }
136
+ // Make sure the user still exist
137
+ else {
138
+ $user = get_user_by( 'id', $comment->user_id );
139
+ if ( $user === false ) continue;
140
+ }
141
+
142
+ // Check for exclusion
143
+ if ( $this->core->exclude_user( $user->ID ) === true ) continue;
144
+
145
+ // Start with making sure this is a unique event
146
+ if ( $this->has_entry( 'comment_subscription', $id, $comment->user_id ) ) continue;
147
+
148
+ $post_ids = array();
149
+
150
+ if ( isset( $_REQUEST['subscribe_comments'] ) )
151
+ $post_ids[] = $comment->comment_post_ID;
152
+
153
+ // Attempt to subscribe again to get results
154
+ $subscription = $this->check_jetpack_subscription( $email, array( $comment->comment_post_ID ) );
155
+
156
+ // Subscription is active
157
+ if ( $subscription == 'active' ) {
158
+ // Execute
159
+ $this->core->add_creds(
160
+ 'comment_subscription',
161
+ $user->ID,
162
+ $this->prefs['subscribe_comment']['creds'],
163
+ $this->prefs['subscribe_comment']['log'],
164
+ $id,
165
+ array( 'ref_type' => 'comment' )
166
+ );
167
+ }
168
+ // Subscription pending
169
+ elseif ( $subscription == 'pending' ) {
170
+ $new[$id] = $email;
171
+ }
172
+ }
173
+ }
174
+
175
+ // If we still have pending emails save for later
176
+ if ( !empty( $new ) )
177
+ update_option( 'mycred_jetpack_' . $type . '_pendings', $new );
178
+ // Else delete
179
+ else
180
+ delete_option( 'mycred_jetpack_' . $type . '_pendings' );
181
+ }
182
+ }
183
+
184
+ /**
185
+ * Submit Redirect
186
+ * Checks if Jetpack signup has been executed by parsing the redirect URL.
187
+ * @since 1.0.5
188
+ * @version 1.0
189
+ */
190
+ public function submit_redirect( $location ) {
191
+ // Make sure we have what we need
192
+ if ( !isset( $_REQUEST['jetpack_subscriptions_widget'] ) || !isset( $_REQUEST['email'] ) || empty( $_REQUEST['email'] ) )
193
+ return $location;
194
+
195
+ // Make sure Jetpack has executed
196
+ if ( !isset( $_GET['subscribe'] ) || $_GET['subscribe'] != 'success' )
197
+ return $location;
198
+
199
+ // Make sure user exist
200
+ $user = get_user_by( 'email', $_REQUEST['email'] );
201
+ if ( $user === false )
202
+ return $location;
203
+
204
+ // Check for exclusion
205
+ if ( $this->core->exclude_user( $user->ID ) === true )
206
+ return $location;
207
+
208
+ // Check that this is a unique event
209
+ if ( $this->has_entry( 'site_subscription', '', $user->ID ) )
210
+ return $location;
211
+
212
+ $this->site_subscribe( $_REQUEST['email'], $user->ID );
213
+
214
+ return $location;
215
+ }
216
+
217
+ /**
218
+ * Comment Subscribe Submit
219
+ * Manage the request to subscribe to comments and/or to the blog
220
+ * Based on Jetpack Subscriptions
221
+ * @see jetpack/modules/subscriptions.php
222
+ * @since 1.0.5
223
+ * @version 1.0
224
+ */
225
+ public function comment_subscribe_submit( $comment_id, $approved ) {
226
+ if ( 'spam' === $approved ) {
227
+ return;
228
+ }
229
+
230
+ if ( !isset( $_REQUEST['subscribe_comments'] ) && !isset( $_REQUEST['subscribe_blog'] ) )
231
+ return;
232
+
233
+ $comment = get_comment( $comment_id );
234
+
235
+ // If no user id exist, check and see if the authors email is used by someone
236
+ if ( $comment->user_id == 0 ) {
237
+ $user = get_user_by( 'email', $comment->comment_author_email );
238
+ if ( $user === false ) return;
239
+ }
240
+ // Make sure the user still exist
241
+ else {
242
+ $user = get_user_by( 'id', $comment->user_id );
243
+ if ( $user === false ) return;
244
+ }
245
+
246
+ // Check for exclusion
247
+ if ( $this->core->exclude_user( $user->ID ) === true ) return;
248
+
249
+ // Start with making sure this is a unique event
250
+ if ( $this->has_entry( 'comment_subscription', $comment_id, $user->ID ) ) return;
251
+
252
+ // Handle comment subscription
253
+ if ( isset( $_REQUEST['subscribe_comments'] ) )
254
+ $this->comment_subscribe( $comment->comment_author_email, $comment->comment_post_ID, $user->ID, $comment_id );
255
+
256
+ // Handle site subscription
257
+ if ( isset( $_REQUEST['subscribe_blog'] ) )
258
+ $this->site_subscribe( $comment->comment_author_email, $user->ID );
259
+ }
260
+
261
+ /**
262
+ * Comment Subscribe
263
+ * Awards points for active subscriptions or adds email and comment id to the pending array.
264
+ * Note! This methods should only be called once the primary checks have been made, including making sure
265
+ * the user exist, is not excluded and that this is a unique event!
266
+ * @since 1.0.5
267
+ * @version 1.0
268
+ */
269
+ protected function comment_subscribe( $email = '', $post_ids = '', $user_id = 0, $comment_id = 0 ) {
270
+ // Attempt to subscribe again to get results
271
+ $subscription = $this->check_jetpack_subscription( $email, $post_ids );
272
+
273
+ // Subscription is active
274
+ if ( $subscription == 'active' ) {
275
+ // Execute
276
+ $this->core->add_creds(
277
+ 'comment_subscription',
278
+ $user_id,
279
+ $this->prefs['subscribe_comment']['creds'],
280
+ $this->prefs['subscribe_comment']['log'],
281
+ $comment_id,
282
+ array( 'ref_type' => 'comment' )
283
+ );
284
+
285
+ // Let others share our success
286
+ do_action( 'mycred_jetpack_comment', $user_id, $comment_id );
287
+ }
288
+ // Subscription pending
289
+ elseif ( $subscription == 'pending' ) {
290
+ // Add email to pending list if not in it already
291
+ if ( !$this->is_pending( $email, $comment_id ) )
292
+ $this->add_to_pending( $email, $comment_id );
293
+ }
294
+ }
295
+
296
+ /**
297
+ * Site Subscription
298
+ * Awards points for active site subscriptions or adds email to the pending array.
299
+ * Note! This methods should only be called once the primary checks have been made, including making sure
300
+ * the user exist, is not excluded and that this is a unique event!
301
+ * @since 1.0.5
302
+ * @version 1.0
303
+ */
304
+ protected function site_subscribe( $email = '', $user_id = 0 ) {
305
+ // Attempt to add this email again to check it's status
306
+ $subscription = $this->check_jetpack_subscription( $email );
307
+
308
+ // Subscription is active
309
+ if ( $subscription == 'active' ) {
310
+ // Execute
311
+ $this->core->add_creds(
312
+ 'site_subscription',
313
+ $user_id,
314
+ $this->prefs['subscribe_site']['creds'],
315
+ $this->prefs['subscribe_site']['log']
316
+ );
317
+
318
+ // Let others share our success
319
+ do_action( 'mycred_jetpack_site', $user_id, $GLOBALS['blog_id'] );
320
+ }
321
+ // Subscription pending
322
+ elseif ( $subscription == 'pending' ) {
323
+ // Add email to pending list if not in it already
324
+ if ( !$this->is_pending( $email ) )
325
+ $this->add_to_pending( $email );
326
+ }
327
+ }
328
+
329
+ /**
330
+ * Check Jetpack Subscription
331
+ * @since 1.0.5
332
+ * @version 1.0
333
+ */
334
+ protected function check_jetpack_subscription( $email = NULL, $post_ids = NULL ) {
335
+ if ( $email === NULL ) return 'missing';
336
+
337
+ if ( !class_exists( 'Jetpack' ) )
338
+ require_once( JETPACK__PLUGIN_DIR . 'jetpack.php' );
339
+ if ( !class_exists( 'Jetpack_Subscriptions' ) )
340
+ require_once( JETPACK__PLUGIN_DIR . 'modules/subscriptions.php' );
341
+
342
+ if ( $post_ids === NULL )
343
+ $subscribe = Jetpack_Subscriptions::subscribe( $email, 0, false );
344
+ else
345
+ $subscribe = Jetpack_Subscriptions::subscribe( $email, $post_ids, false );
346
+
347
+ if ( is_wp_error( $subscribe ) ) {
348
+ $error = $subscribe->get_error_code();
349
+ } else {
350
+ $error = false;
351
+ foreach ( $subscribe as $response ) {
352
+ if ( is_wp_error( $response ) ) {
353
+ $error = $response->get_error_code();
354
+ break;
355
+ }
356
+ }
357
+ }
358
+
359
+ if ( $error ) {
360
+ switch ( $error ) {
361
+ case 'invalid_email':
362
+ $return = 'invalid';
363
+ break;
364
+ case 'active':
365
+ $return = 'active';
366
+ break;
367
+ case 'pending':
368
+ $return = 'pending';
369
+ break;
370
+ default:
371
+ $return = '';
372
+ break;
373
+ }
374
+ }
375
+ else {
376
+ if ( is_array( $subscribe ) && $subscribe[0] === true )
377
+ $error = true;
378
+ $return = 'pending';
379
+ }
380
+
381
+ if ( $error )
382
+ return $return;
383
+
384
+ return 'new';
385
+ }
386
+
387
+ /**
388
+ * Is Pending
389
+ * Checks the given email if it's in the pending array.
390
+ * @param $email (string) required email to check
391
+ * @param $section (string|int) either 'site' for site subscriptions or comment id, defaults to site
392
+ * @returns (bool) true or false
393
+ * @since 1.0.5
394
+ * @version 1.0
395
+ */
396
+ protected function is_pending( $email = NULL, $section = 'site' ) {
397
+ if ( $email === NULL || trim( $email ) === '' ) return;
398
+
399
+ if ( $section == 'site' )
400
+ $name = $section;
401
+ else
402
+ $name = 'comment';
403
+
404
+ // If pending list does not exist, create it and add our email
405
+ if ( false === ( $pending = get_option( 'mycred_jetpack_' . $name . '_pendings' ) ) ) {
406
+ if ( $name == 'site' )
407
+ $pending = array( $email );
408
+ else
409
+ $pending = array( $section => $email );
410
+
411
+ update_option( 'mycred_jetpack_' . $name . '_pendings', $pending );
412
+ }
413
+
414
+ // Site check
415
+ if ( $section == 'site' ) {
416
+ if ( in_array( $email, $pending ) )
417
+ return true;
418
+ }
419
+ // Comment check
420
+ else {
421
+ if ( array_key_exists( $section, $pending ) && $pending[$section] == $email )
422
+ return true;
423
+ }
424
+
425
+ return false;
426
+ }
427
+
428
+ /**
429
+ * Add to Pending
430
+ * Adds a given email to the pending array.
431
+ * @param $email (string) required email to check
432
+ * @param $section (string|int) either 'site' for site subscriptions or comment id, defaults to site
433
+ * @since 1.0.5
434
+ * @version 1.0
435
+ */
436
+ protected function add_to_pending( $email = NULL, $section = 'site' ) {
437
+ if ( $email === NULL || trim( $email ) === '' ) return;
438
+
439
+ if ( $section == 'site' )
440
+ $name = $section;
441
+ else
442
+ $name = 'comment';
443
+
444
+ // If pending list does not exist, create it and add our email
445
+ if ( false === ( $pending = get_option( 'mycred_jetpack_' . $name . '_pendings' ) ) ) {
446
+ if ( $name == 'site' )
447
+ $pending = array( $email );
448
+ else
449
+ $pending = array( $section => $email );
450
+
451
+ update_option( 'mycred_jetpack_' . $name . '_pendings', $pending );
452
+ }
453
+
454
+ // Site pending list
455
+ if ( $section == 'site' ) {
456
+ if ( !in_array( $email, $pending ) ) {
457
+ $pending[] = $email;
458
+ update_option( 'mycred_jetpack_' . $name . '_pendings', $pending );
459
+ }
460
+ }
461
+ // Comment pending list
462
+ else {
463
+ if ( !array_key_exists( $section, $pending ) ) {
464
+ $pending[$section] = $email;
465
+ update_option( 'mycred_jetpack_' . $name . '_pendings', $pending );
466
+ }
467
+ }
468
+ }
469
+
470
+ /**
471
+ * Preferences
472
+ * @since 1.0.5
473
+ * @version 1.0
474
+ */
475
+ public function preferences() {
476
+ $prefs = $this->prefs; ?>
477
+
478
+ <!-- Creds for Site Subscription -->
479
+ <label for="<?php echo $this->field_id( array( 'subscribe_site', 'creds' ) ); ?>" class="subheader"><?php _e( 'Site Subscriptions', 'mycred' ); ?></label>
480
+ <ol>
481
+ <li>
482
+ <div class="h2"><input type="text" name="<?php echo $this->field_name( array( 'subscribe_site', 'creds' ) ); ?>" id="<?php echo $this->field_id( array( 'subscribe_site', 'creds' ) ); ?>" value="<?php echo $this->core->format_number( $prefs['subscribe_site']['creds'] ); ?>" size="8" /></div>
483
+ </li>
484
+ <li class="empty">&nbsp;</li>
485
+ <li>
486
+ <label for="<?php echo $this->field_id( array( 'subscribe_site', 'log' ) ); ?>"><?php _e( 'Log template', 'mycred' ); ?></label>
487
+ <div class="h2"><input type="text" name="<?php echo $this->field_name( array( 'subscribe_site', 'log' ) ); ?>" id="<?php echo $this->field_id( array( 'subscribe_site', 'log' ) ); ?>" value="<?php echo $prefs['subscribe_site']['log']; ?>" class="long" /></div>
488
+ <span class="description"><?php _e( 'Available template tags: General', 'mycred' ); ?></span>
489
+ </li>
490
+ </ol>
491
+ <!-- Creds for Comment Subscription -->
492
+ <label for="<?php echo $this->field_id( array( 'subscribe_comment', 'creds' ) ); ?>" class="subheader"><?php _e( 'Comment Subscriptions', 'mycred' ); ?></label>
493
+ <ol>
494
+ <li>
495
+ <div class="h2"><input type="text" name="<?php echo $this->field_name( array( 'subscribe_comment', 'creds' ) ); ?>" id="<?php echo $this->field_id( array( 'subscribe_comment', 'creds' ) ); ?>" value="<?php echo $this->core->format_number( $prefs['subscribe_comment']['creds'] ); ?>" size="8" /></div>
496
+ </li>
497
+ <li class="empty">&nbsp;</li>
498
+ <li>
499
+ <label for="<?php echo $this->field_id( array( 'subscribe_comment', 'log' ) ); ?>"><?php _e( 'Log template', 'mycred' ); ?></label>
500
+ <div class="h2"><input type="text" name="<?php echo $this->field_name( array( 'subscribe_comment', 'log' ) ); ?>" id="<?php echo $this->field_id( array( 'subscribe_comment', 'log' ) ); ?>" value="<?php echo $prefs['subscribe_comment']['log']; ?>" class="long" /></div>
501
+ <span class="description"><?php _e( 'Available template tags: General', 'mycred' ); ?></span>
502
+ </li>
503
+ </ol>
504
+ <?php unset( $this );
505
+ }
506
+ }
507
+ }
508
+ ?>
mycred.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: myCRED
4
  Plugin URI: http://mycred.merovingi.com
5
  Description: <strong>my</strong>CRED is an adaptive points management system for WordPress powered websites, giving you full control on how points are gained, used, traded, managed, logged or presented.
6
- Version: 1.0.4
7
  Tags: points, tokens, credit, management, reward, charge
8
  Author: Gabriel S Merovingi
9
  Author URI: http://www.merovingi.com
@@ -13,7 +13,7 @@ Tested up to: WP 3.5.1
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
  */
16
- define( 'myCRED_VERSION', '1.0.4' );
17
  define( 'myCRED_SLUG', 'mycred' );
18
 
19
  define( 'myCRED_THIS', __FILE__ );
3
  Plugin Name: myCRED
4
  Plugin URI: http://mycred.merovingi.com
5
  Description: <strong>my</strong>CRED is an adaptive points management system for WordPress powered websites, giving you full control on how points are gained, used, traded, managed, logged or presented.
6
+ Version: 1.0.5
7
  Tags: points, tokens, credit, management, reward, charge
8
  Author: Gabriel S Merovingi
9
  Author URI: http://www.merovingi.com
13
  License: GPLv2 or later
14
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
  */
16
+ define( 'myCRED_VERSION', '1.0.5' );
17
  define( 'myCRED_SLUG', 'mycred' );
18
 
19
  define( 'myCRED_THIS', __FILE__ );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://mycred.merovingi.com/donate/
4
  Tags:points, tokens, credit, management, reward, charge, community
5
  Requires at least: 3.1
6
  Tested up to: 3.5.1
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,7 +16,7 @@ We feel that todays WordPress community lacks a flexible points management syste
16
 
17
  So we built an adaptive plugin which gives it’s users full control on how points are awarded, used, traded, managed, logged and presented.
18
 
19
- myCRED is an adaptive points management system for WordPress powered websites, giving you full control on how points are gained, used, traded, managed, logged or presented.
20
 
21
  **Core Features:**
22
 
@@ -30,6 +30,7 @@ myCRED is an adaptive points management system for WordPress powered websites, g
30
  * Custom Leader board Widget
31
  * Minimum CSS Styling
32
 
 
33
  **Add-ons:**
34
 
35
  Add-ons are custom features that can be enabled individually.
@@ -39,14 +40,16 @@ Add-ons are custom features that can be enabled individually.
39
  * *Sell Content* - Sell access to entire contents or parts of it with the option to share a percentage of the sale with the content author.
40
  * *Buy Creds* - Let your users buy points via PayPal, Skrill or NETbilling.
41
  * *Gateway* - Allow your users to pay for items in their WooCommerce shopping cart using their point balance.
42
- * *BuddyPress* - Extend myCRED to support [BuddyPress](http://wordpress.org/extend/plugins/buddypress/), [bbPress](http://wordpress.org/extend/plugins/bbpress/), [BuddyPress Gifts](http://wordpress.org/extend/plugins/buddypress-gifts/), [BuddyPress Links](http://wordpress.org/extend/plugins/buddypress-links/), [BP Album+](http://wordpress.org/extend/plugins/bp-gallery/) and [BP Gallery](http://buddydev.com/plugins/bp-gallery/).
 
43
 
44
  **Multisites**
45
 
46
- myCRED supports Multisite installations and offers you the following features:
 
 
 
47
 
48
- * Master Template - Force your main sites myCRED installation upon all other sites. Each site will have it's own log but have no access to any settings, hooks or add-ons.
49
- * Block List - Allows you to block specific sites from using myCRED.
50
 
51
  **Supported Third-party Plugins:**
52
 
@@ -54,6 +57,8 @@ The following third party plugins are supported by default:
54
 
55
  * [Contact Form 7](http://wordpress.org/extend/plugins/contact-form-7/) - Award users points for submitting forms.
56
  * [Invite Anyone Plugin](http://wordpress.org/extend/plugins/invite-anyone/) - Award users for sending invitations and for each time an invited user accepts and signs up.
 
 
57
 
58
  **Further Details**
59
 
@@ -75,20 +80,21 @@ The following third party plugins are supported by default:
75
 
76
  1. Upload `mycred` to the `/wp-content/plugins/` directory
77
  2. Activate the plugin through the 'Plugins' menu in WordPress
78
- 3. Run the myCRED Setup which will allow you to configure your myCRED installation
79
  4. Activate the Add-ons you wish to use under the 'myCRED' menu in WordPress
80
  5. Configure and Enable the hooks you wish to use though the 'Hooks' sub menu in WordPress
81
  6. Configure any other Add-on settings you might be using i.e. BuddyPress though the 'Settings' sub menu in WordPress
82
 
 
83
  == Frequently Asked Questions ==
84
 
85
- = Does myCRED support Multisite Installations? =
86
 
87
- Yes, myCRED supports Multisite installations.
88
 
89
  = Can my "Points" use decimals? =
90
 
91
- Yes. When you run the myCRED Setup, you will be asked if you want to use whole numbers or decimals. However it should be noted that once the setup is completed, this can not be changed without first deleting myCRED though the 'Delete Plugin' function in WordPress (in other words, DO NOT delete the files using FTP).
92
 
93
  = I want to charge a user for creating a group, can I disable group creation for users who does not have enough points? =
94
 
@@ -98,16 +104,23 @@ Yes. You can set a negative value for either "Creating Group" or "Joining Group"
98
 
99
  You can always disable parts of a hook by awarding zero points. Hooks that have zero points are ignored.
100
 
 
101
  == Screenshots ==
102
 
103
  1. **Multisites** - The myCRED Network Settings Page gives you access to the Master Template feature and the Block List.
104
- 2. **Gateway Add-on** - Using myCRED as a Payment Gateway in your WooCommerce Shopping Cart plugin.
105
  3. **The Log** - with the option to search or filter results. Each user will also get their own Log page under the "Users" menu.
106
  4. **Editing Users Balance** - You can edit each users point balance directly under "Edit User".
107
  5. **Import Add-on** - The Import Add-on allows you to import points using a CSV file or by importing existing points from your database.
108
 
 
109
  == Changelog ==
110
 
 
 
 
 
 
111
  = 1.0.4 =
112
  * Fixed Bug #6 - Transfer add-on returns "low balance" for everyone.
113
  * Fixed Bug #7 - Removed stray function in Sell Content Add-on causing error notices.
@@ -125,4 +138,10 @@ You can always disable parts of a hook by awarding zero points. Hooks that have
125
  * Fixed Bug #2 - Incorrect reference to myCRED_Settings object in installer.
126
 
127
  = 1.0 =
128
- * Official release.
 
 
 
 
 
 
4
  Tags:points, tokens, credit, management, reward, charge, community
5
  Requires at least: 3.1
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  So we built an adaptive plugin which gives it’s users full control on how points are awarded, used, traded, managed, logged and presented.
18
 
19
+ **my**CRED is an adaptive points management system for WordPress powered websites, giving you full control on how points are gained, used, traded, managed, logged or presented.
20
 
21
  **Core Features:**
22
 
30
  * Custom Leader board Widget
31
  * Minimum CSS Styling
32
 
33
+
34
  **Add-ons:**
35
 
36
  Add-ons are custom features that can be enabled individually.
40
  * *Sell Content* - Sell access to entire contents or parts of it with the option to share a percentage of the sale with the content author.
41
  * *Buy Creds* - Let your users buy points via PayPal, Skrill or NETbilling.
42
  * *Gateway* - Allow your users to pay for items in their WooCommerce shopping cart using their point balance.
43
+ * *BuddyPress* - Extend **my**CRED to support [BuddyPress](http://wordpress.org/extend/plugins/buddypress/), [bbPress](http://wordpress.org/extend/plugins/bbpress/), [BuddyPress Gifts](http://wordpress.org/extend/plugins/buddypress-gifts/), [BuddyPress Links](http://wordpress.org/extend/plugins/buddypress-links/), [BP Album+](http://wordpress.org/extend/plugins/bp-gallery/) and [BP Gallery](http://buddydev.com/plugins/bp-gallery/).
44
+
45
 
46
  **Multisites**
47
 
48
+ **my**CRED supports Multisite installations and offers you the following features:
49
+
50
+ * *Master Template* - Force your main sites **my**CRED installation upon all other sites. Each site will have it's own log but have no access to any settings, hooks or add-ons.
51
+ * *Block List* - Allows you to block specific sites from using **my**CRED.
52
 
 
 
53
 
54
  **Supported Third-party Plugins:**
55
 
57
 
58
  * [Contact Form 7](http://wordpress.org/extend/plugins/contact-form-7/) - Award users points for submitting forms.
59
  * [Invite Anyone Plugin](http://wordpress.org/extend/plugins/invite-anyone/) - Award users for sending invitations and for each time an invited user accepts and signs up.
60
+ * [Jetpack](http://wordpress.org/extend/plugins/jetpack/) - Award users for subscribing to comments or your site. Requires users to be logged in or subscribing using the email saved in their profile.
61
+
62
 
63
  **Further Details**
64
 
80
 
81
  1. Upload `mycred` to the `/wp-content/plugins/` directory
82
  2. Activate the plugin through the 'Plugins' menu in WordPress
83
+ 3. Run the myCRED Setup which will allow you to configure your **my**CRED installation
84
  4. Activate the Add-ons you wish to use under the 'myCRED' menu in WordPress
85
  5. Configure and Enable the hooks you wish to use though the 'Hooks' sub menu in WordPress
86
  6. Configure any other Add-on settings you might be using i.e. BuddyPress though the 'Settings' sub menu in WordPress
87
 
88
+
89
  == Frequently Asked Questions ==
90
 
91
+ = Does **my**CRED support Multisite Installations? =
92
 
93
+ Yes, **my**CRED supports Multisite installations.
94
 
95
  = Can my "Points" use decimals? =
96
 
97
+ Yes. When you run the **my**CRED Setup, you will be asked if you want to use whole numbers or decimals. However it should be noted that once the setup is completed, this can not be changed without first deleting **my**CRED though the 'Delete Plugin' function in WordPress (in other words, DO NOT delete the files using FTP).
98
 
99
  = I want to charge a user for creating a group, can I disable group creation for users who does not have enough points? =
100
 
104
 
105
  You can always disable parts of a hook by awarding zero points. Hooks that have zero points are ignored.
106
 
107
+
108
  == Screenshots ==
109
 
110
  1. **Multisites** - The myCRED Network Settings Page gives you access to the Master Template feature and the Block List.
111
+ 2. **Gateway Add-on** - Using **my**CRED as a Payment Gateway in your WooCommerce Shopping Cart plugin.
112
  3. **The Log** - with the option to search or filter results. Each user will also get their own Log page under the "Users" menu.
113
  4. **Editing Users Balance** - You can edit each users point balance directly under "Edit User".
114
  5. **Import Add-on** - The Import Add-on allows you to import points using a CSV file or by importing existing points from your database.
115
 
116
+
117
  == Changelog ==
118
 
119
+ = 1.0.5 =
120
+ * Fixed Bug #9 - Hooks are "run" too late causing some filters/actions to never fire.
121
+ * Request #1 - Adjust plugin to lower requirements for MySQL from 5.1 to 5.0.
122
+ * Request #2 - Add support for Jetpack Site & Comment Subscriptions.
123
+
124
  = 1.0.4 =
125
  * Fixed Bug #6 - Transfer add-on returns "low balance" for everyone.
126
  * Fixed Bug #7 - Removed stray function in Sell Content Add-on causing error notices.
138
  * Fixed Bug #2 - Incorrect reference to myCRED_Settings object in installer.
139
 
140
  = 1.0 =
141
+ * Official release.
142
+
143
+
144
+ == Upgrade Notice ==
145
+
146
+ = 1.0.5 =
147
+ Upgrade to add support for Jetpack Site & Comment Subscriptions and to lower MySQL requirement from 5.1 to 5.0. Requires Jetpack 2.2 or higher.