這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

BP Birthday Greetings

外掛說明

BP Birthday Greetings plugin will send a birthday greeting notification to members. You just need to create a DOB field and have to map in the plugin settings, that you can find under options tab of BuddyPress settings.

We have one widget called BuddyPress Birthdays that you can use in sidebars to display the list of member birthdays and can wish them as well using private message functionality of BuddyPress. One shortcode [ps_birthday_list] is also added which can be used to list birthdays as well.

螢幕擷圖

  • Setting to select profile field

  • Birthday Greeting Notification

  • Birthday Widget

  • Listing With Member Avatar

  • New Settings

安裝方式

From your WordPress dashboard

  1. Visit ‘Plugins > Add New’
  2. Search for ‘BP Birthday Greetings’
  3. Activate BP Birthday Greetings from your Plugins page.

From WordPress.org

  1. Download BP Birthday Greetings.
  2. Upload the ‘bp-birthday-greetings’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate BP Birthday Greetings from your Plugins page.

常見問題集

How this plugin works?

After the activation of this plugin just go to the BuddyPress settings(options tab) page and there select the profile field, in ‘Select DOB Field’ option, that you have created for date of birth.

Can we change the text of notification?

Yes! It can be translated easily.

How to change the message when there is no birthday?

There is one filter code that you can add in your child theme or any custom plugin:

add_filter(‘bp_birthday_empty_message’, ‘ps_change_birthday_message’);
function ps_change_birthday_message(){
_e(‘Your Changed Message Here’, ‘bp-birthday-greetings’);
}

Is there any shortcode to list birthdays?

Yes there is one shortcode [ps_birthday_list].

How to use new settings?

Width and height is to define profile picture width and height. Type is to define the type of the image you want to display.

BuddyPress has two sets of avatar sizes:

Thumb – defaults to 50px square
Full – defaults to 150px square

Note: If you chose type full or thumbnail but defined width and height lesser or higher than the default values then profile pic will be displayed according to the defined size.
Also, if defined width and height is not reflecting then most probably any other plugin or your theme’s CSS rules are overriding it.

How to change the image of the cake?

Now, we have a filter for this. You can paste the below given code in your child theme’s functions file or any site specific plugin’s file:

add_filter(‘bp_birthday_cake_img’, ‘ps_change_birthday_img’);
function ps_change_birthday_img(){
$img = ”;
return $img;
}

使用者評論

2020 年 9 月 2 日
I was a bit dubious as this plugin didn't have that many downloads. However, it worked straight out of the box and people seem to love it which has meant more traffic to my site. Excellent, simple to use.
2020 年 5 月 28 日
This is a great plugin to display birthday for community buddypress, you need just to add function to load languages in your file loader.php this the function: function kechweb_load_textdomain() { load_plugin_textdomain( 'bp-birthday-greetings', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); } add_action( 'plugins_loaded', 'kechweb_load_textdomain' );
2019 年 10 月 21 日
A small plugin, for a nice little feature, which should be implemented in Buddypress natively...
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈BP Birthday Greetings〉的開發相關工作。

參與者

BP Birthday Greetings 外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈BP Birthday Greetings〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

Initial Release

1.0.1

Fixed Typo

1.0.2

Added Birthday Widget

1.0.3

  • Added Member Avatar
  • Fixed Translation Issue
  • Added Shortcode For Birthday Listing

1.0.4

  • Added Setting For Profile Pic Size Changes
  • Added Filter To Change The Image Of The Cake