Get Email & D7

If you select anonymous mode in Admin, this gets rid of the 'Get Email' on members profile pages. What else does 'anonymous'  mode do?

Stuart

There are none so blind as those that will not see.
Quote · 27 Jan 2010

 

If you select anonymous mode in Admin, this gets rid of the 'Get Email' on members profile pages. What else does 'anonymous'  mode do?

Stuart

 

It also allows your members to pack 184 bodies into one profile and all use the same ID.  Sorta like mexicans and a yugo. 

 

What?  My Grandpa climbed the fence...  That makes me one of the bodies in that profile.

Quote · 27 Jan 2010

MyDatery, I read your post re removing the get email code, but that was for D6.x. Can you do same for D7? ps. I removed freemail.php

Stuart

There are none so blind as those that will not see.
Quote · 27 Jan 2010

I'll make ya a deal Stuart.  If you can find the lyrics to a song called:  "Idiot" by Lisa Marie Presley and post them over in the Arvixe thread, I'll post how to pull that out of D7.  Haven't looked yet, so give me a few minutes to do it while you find and post the lyrics.

 

Post them here below the "Your Dumb" song.

 

http://www.boonex.com/unity/forums/?action=goto&search=1#topic/Help-I-got-an-email-from-Arvixe-.htm

 

 

Quote · 27 Jan 2010

Your a cruel man, MyDatery :-) Done and pasted!

I'll make ya a deal Stuart.  If you can find the lyrics to a song called:  "Idiot" by Lisa Marie Presley and post them over in the Arvixe thread, I'll post how to pull that out of D7.  Haven't looked yet, so give me a few minutes to do it while you find and post the lyrics.

Post them here below the "Your Dumb" song.

http://www.boonex.com/unity/forums/?action=goto&search=1#topic/Help-I-got-an-email-from-Arvixe-.htm

There are none so blind as those that will not see.
Quote · 27 Jan 2010

Not sure how you messed that up Stu, but you had me rollin'.... Here's your mod.

I haven't tested it yet, but let me know if it works or not, it should.

 

1.  Delete the freemail.php file to prevent spammers/scammers who know they're way around Dolphin from finding/using it.

 

2.  Go to templates/base/scripts/BxBaseProfileView.php

 

Locate:

 

//--- Check for member/non-member ---//
        if(isMember()) {
         $p_arr['cpt_edit'] = _t('_EditProfile');
            $p_arr['cpt_send_letter'] = _t('_SendLetter');
            $p_arr['cpt_fave'] = _t('_Fave');
            $p_arr['cpt_befriend'] = _t('_Befriend');
            $p_arr['cpt_greet'] = _t('_Greet');
            $p_arr['cpt_get_mail'] = _t('_Get E-mail');
            $p_arr['cpt_share'] = _t('_Share');
            $p_arr['cpt_report'] = _t('_Report Spam');
            $p_arr['cpt_block'] = _t('_Block');
        }
        else {
         $p_arr['cpt_edit'] = '';
            $p_arr['cpt_send_letter'] = '';
            $p_arr['cpt_fave'] = '';
            $p_arr['cpt_befriend'] = '';
            $p_arr['cpt_greet'] = '';
            $p_arr['cpt_get_mail'] = '';
            $p_arr['cpt_share'] = '';
            $p_arr['cpt_report'] = '';
            $p_arr['cpt_block'] = '';
        }


Just comment out the Get_mail lines like this:

//--- Check for member/non-member ---//
        if(isMember()) {
         $p_arr['cpt_edit'] = _t('_EditProfile');
            $p_arr['cpt_send_letter'] = _t('_SendLetter');
            $p_arr['cpt_fave'] = _t('_Fave');
            $p_arr['cpt_befriend'] = _t('_Befriend');
            $p_arr['cpt_greet'] = _t('_Greet');
            //$p_arr['cpt_get_mail'] = _t('_Get E-mail');
            $p_arr['cpt_share'] = _t('_Share');
            $p_arr['cpt_report'] = _t('_Report Spam');
            $p_arr['cpt_block'] = _t('_Block');
        }
        else {
         $p_arr['cpt_edit'] = '';
            $p_arr['cpt_send_letter'] = '';
            $p_arr['cpt_fave'] = '';
            $p_arr['cpt_befriend'] = '';
            $p_arr['cpt_greet'] = '';
            //$p_arr['cpt_get_mail'] = '';
            $p_arr['cpt_share'] = '';
            $p_arr['cpt_report'] = '';
            $p_arr['cpt_block'] = '';
        }


Clear your caches and check your site.  The Get E-Mail function should be gone from the Action Menu now. 

 

That should take care of it for ya.  How about dropping that post over into the correct thread now.  Great job on findin' the lyrics and postin' 'em though.  Just didn't  need a whole thread for them.

Quote · 27 Jan 2010

Hi MyDatery, I've already tried that (used firebug), it leaves a language key ref: _get_email (something like that). Should we delete the language key?

There are none so blind as those that will not see.
Quote · 27 Jan 2010

 

Hi MyDatery, I've already tried that (used firebug), it leaves a language key ref: _get_email (something like that). Should we delete the language key?

 

Stu, I didn't get a chance to test it out for real.  I have other stuff going with my D7 install right now, pass me your URL in a PM and I'll take a look at what you have and get the rest of it out.  It shouldn't be too hard to finish up.  Just gotta take a look at how it's loading.  Oh yeah, I'll need a test login profile too. 

Quote · 27 Jan 2010

Do you have the site in anonymous mode Stuart?  If not, try setting it there and tell me what happens with it.

Quote · 27 Jan 2010

Actually, look for this line:

 

$p_arr['anonym_mode'] = $this->oTemplConfig->bAnonymousMode;

 

It's just above the otheres, try commenting it out also.  I believe that's where it's pulling the language key from.  It's just above the others in templates/base/scripts/BxBaseProfileView.php

 

 

Quote · 27 Jan 2010

That got it MyDatery, many thanks!

Stuart

Actually, look for this line:

 

$p_arr['anonym_mode'] = $this->oTemplConfig->bAnonymousMode;

 

It's just above the otheres, try commenting it out also.  I believe that's where it's pulling the language key from.  It's just above the others in templates/base/scripts/BxBaseProfileView.php

 

 

 

There are none so blind as those that will not see.
Quote · 27 Jan 2010

So to recap this all into one post:

1.  Remove freemail.php or rename it.  This will kill the get mail function for the hackers who know the dolphin URL's and try just typing it in.

 

2.  Go to templates/base/BxBaseProfileView.php and locate the following code:


function showBlockActionsMenu( $sCaption, $bNoDB = false ) {
        global $p_arr;

  // init some user's values
  $iMemberID = ( isset($_COOKIE['memberID']) && isMember() || isAdmin() ) ? (int) $_COOKIE['memberID'] : 0;

        $iViewedMemberID = (int)$p_arr['ID'];

        /*
        if( (!$iMemberID  or !$iViewedMemberID) or ($iMemberID == $iViewedMemberID) )
   return null;
        */
       
        // prepare all needed keys
        $p_arr['url']     = BX_DOL_URL_ROOT;
  $p_arr['window_width']  = $this->oTemplConfig->popUpWindowWidth;
  $p_arr['window_height'] = $this->oTemplConfig->popUpWindowHeight;
  $p_arr['anonym_mode'] = $this->oTemplConfig->bAnonymousMode;

  $p_arr['member_id']  = $iMemberID;
  $p_arr['member_pass'] = getPassword( $iMemberID );
  
  //--- Subscription integration ---//  
  $oSubscription = new BxDolSubscription();
  $sAddon = $oSubscription->getData();
  
        $aButton = $oSubscription->getButton($iMemberID, 'profile', '', $iViewedMemberID);
        $p_arr['sbs_profile_title'] = $aButton['title'];
  $p_arr['sbs_profile_script'] = $aButton['script'];
        //--- Subscription integration ---//
       
        //--- Check for member/non-member ---//
        if(isMember()) {
         $p_arr['cpt_edit'] = _t('_EditProfile');
            $p_arr['cpt_send_letter'] = _t('_SendLetter');
            $p_arr['cpt_fave'] = _t('_Fave');
            $p_arr['cpt_befriend'] = _t('_Befriend');
            $p_arr['cpt_greet'] = _t('_Greet');
            $p_arr['cpt_get_mail'] = _t('_Get E-mail');
            $p_arr['cpt_share'] = _t('_Share');
            $p_arr['cpt_report'] = _t('_Report Spam');
            $p_arr['cpt_block'] = _t('_Block');
        }
        else {
         $p_arr['cpt_edit'] = '';
            $p_arr['cpt_send_letter'] = '';
            $p_arr['cpt_fave'] = '';
            $p_arr['cpt_befriend'] = '';
            $p_arr['cpt_greet'] = '';
            $p_arr['cpt_get_mail'] = '';
            $p_arr['cpt_share'] = '';
            $p_arr['cpt_report'] = '';
            $p_arr['cpt_block'] = '';
        }


 

Replace it with:

 

function showBlockActionsMenu( $sCaption, $bNoDB = false ) {
        global $p_arr;

  // init some user's values
  $iMemberID = ( isset($_COOKIE['memberID']) && isMember() || isAdmin() ) ? (int) $_COOKIE['memberID'] : 0;

        $iViewedMemberID = (int)$p_arr['ID'];

        /*
        if( (!$iMemberID  or !$iViewedMemberID) or ($iMemberID == $iViewedMemberID) )
   return null;
        */
       
        // prepare all needed keys
        $p_arr['url']     = BX_DOL_URL_ROOT;
  $p_arr['window_width']  = $this->oTemplConfig->popUpWindowWidth;
  $p_arr['window_height'] = $this->oTemplConfig->popUpWindowHeight;
  
//$p_arr['anonym_mode'] = $this->oTemplConfig->bAnonymousMode;

  $p_arr['member_id']  = $iMemberID;
  $p_arr['member_pass'] = getPassword( $iMemberID );
  
  //--- Subscription integration ---//  
  $oSubscription = new BxDolSubscription();
  $sAddon = $oSubscription->getData();
  
        $aButton = $oSubscription->getButton($iMemberID, 'profile', '', $iViewedMemberID);
        $p_arr['sbs_profile_title'] = $aButton['title'];
  $p_arr['sbs_profile_script'] = $aButton['script'];
        //--- Subscription integration ---//
       
        //--- Check for member/non-member ---//
        if(isMember()) {
         $p_arr['cpt_edit'] = _t('_EditProfile');
            $p_arr['cpt_send_letter'] = _t('_SendLetter');
            $p_arr['cpt_fave'] = _t('_Fave');
            $p_arr['cpt_befriend'] = _t('_Befriend');
            $p_arr['cpt_greet'] = _t('_Greet');
            //$p_arr['cpt_get_mail'] = _t('_Get E-mail');
            $p_arr['cpt_share'] = _t('_Share');
            $p_arr['cpt_report'] = _t('_Report Spam');
            $p_arr['cpt_block'] = _t('_Block');
        }
        else {
         $p_arr['cpt_edit'] = '';
            $p_arr['cpt_send_letter'] = '';
            $p_arr['cpt_fave'] = '';
            $p_arr['cpt_befriend'] = '';
            $p_arr['cpt_greet'] = '';
            //$p_arr['cpt_get_mail'] = '';
            $p_arr['cpt_share'] = '';
            $p_arr['cpt_report'] = '';
            $p_arr['cpt_block'] = '';
        }

 


Note:  All we have done here is deleted freemail.php and commented out the links that apply to get mail and it's language key.

Quote · 27 Jan 2010

Ok, Now thats some funny s_it!!

Nice to see some humor in this complicated Ocean!!

Thanks for the laugh! Laughing

Derrick

I'll make ya a deal Stuart.  If you can find the lyrics to a song called:  "Idiot" by Lisa Marie Presley and post them over in the Arvixe thread, I'll post how to pull that out of D7.  Haven't looked yet, so give me a few minutes to do it while you find and post the lyrics.

Post them here below the "Your Dumb" song.

http://www.boonex.com/unity/forums/?action=goto&search=1#topic/Help-I-got-an-email-from-Arvixe-.htm

Back to pulling my hair out! (ouch, ouch,ouch)
Quote · 27 Jan 2010

Why would you manually edit out the "get email" function?  You can go into membership permissions and simply unclick "get other members emails" which will take away the option to get the other person's email and no need to put a site into anonymous mode.

Quote · 27 Jan 2010

 

Why would you manually edit out the "get email" function?  You can go into membership permissions and simply unclick "get other members emails" which will take away the option to get the other person's email and no need to put a site into anonymous mode.

 

It was an issue in D6 with spammers using the url even when it was turned off to gain via the freemail.php file.  They asked me to do it, so I tracked it down to remove it.

 

 

Quote · 27 Jan 2010

It was an issue in D6 with spammers using the url even when it was turned off to gain via the freemail.php file.  They asked me to do it, so I tracked it down to remove it.

Ah, that makes sense.  I never had a 6.1 site but I do understand removing the freemail.php file.

Quote · 27 Jan 2010

So to recap this all into one post:

1.  Remove freemail.php or rename it.  This will kill the get mail function for the hackers who know the dolphin URL's and try just typing it in.

2.  Go to templates/base/BxBaseProfileView.php and locate the following code:


function showBlockActionsMenu( $sCaption, $bNoDB = false ) {
global $p_arr;

// init some user's values
$iMemberID = ( isset($_COOKIE['memberID']) && isMember() || isAdmin() ) ? (int) $_COOKIE['memberID'] : 0;

$iViewedMemberID = (int)$p_arr['ID'];

/*
if( (!$iMemberID  or !$iViewedMemberID) or ($iMemberID == $iViewedMemberID) )
return null;
*/

// prepare all needed keys
$p_arr['url']     = BX_DOL_URL_ROOT;
$p_arr['window_width']  = $this->oTemplConfig->popUpWindowWidth;
$p_arr['window_height'] = $this->oTemplConfig->popUpWindowHeight;
$p_arr['anonym_mode'] = $this->oTemplConfig->bAnonymousMode;

$p_arr['member_id']  = $iMemberID;
$p_arr['member_pass'] = getPassword( $iMemberID );

//--- Subscription integration ---//  
$oSubscription = new BxDolSubscription();
$sAddon = $oSubscription->getData();

$aButton = $oSubscription->getButton($iMemberID, 'profile', '', $iViewedMemberID);
$p_arr['sbs_profile_title'] = $aButton['title'];
$p_arr['sbs_profile_script'] = $aButton['script'];
//--- Subscription integration ---//

//--- Check for member/non-member ---//
if(isMember()) {
$p_arr['cpt_edit'] = _t('_EditProfile');
$p_arr['cpt_send_letter'] = _t('_SendLetter');
$p_arr['cpt_fave'] = _t('_Fave');
$p_arr['cpt_befriend'] = _t('_Befriend');
$p_arr['cpt_greet'] = _t('_Greet');
$p_arr['cpt_get_mail'] = _t('_Get E-mail');
$p_arr['cpt_share'] = _t('_Share');
$p_arr['cpt_report'] = _t('_Report Spam');
$p_arr['cpt_block'] = _t('_Block');
}
else {
$p_arr['cpt_edit'] = '';
$p_arr['cpt_send_letter'] = '';
$p_arr['cpt_fave'] = '';
$p_arr['cpt_befriend'] = '';
$p_arr['cpt_greet'] = '';
$p_arr['cpt_get_mail'] = '';
$p_arr['cpt_share'] = '';
$p_arr['cpt_report'] = '';
$p_arr['cpt_block'] = '';
}


Replace it with:

function showBlockActionsMenu( $sCaption, $bNoDB = false ) {
global $p_arr;

// init some user's values
$iMemberID = ( isset($_COOKIE['memberID']) && isMember() || isAdmin() ) ? (int) $_COOKIE['memberID'] : 0;

$iViewedMemberID = (int)$p_arr['ID'];

/*
if( (!$iMemberID  or !$iViewedMemberID) or ($iMemberID == $iViewedMemberID) )
return null;
*/

// prepare all needed keys
$p_arr['url']     = BX_DOL_URL_ROOT;
$p_arr['window_width']  = $this->oTemplConfig->popUpWindowWidth;
$p_arr['window_height'] = $this->oTemplConfig->popUpWindowHeight;
//$p_arr['anonym_mode'] = $this->oTemplConfig->bAnonymousMode;

$p_arr['member_id']  = $iMemberID;
$p_arr['member_pass'] = getPassword( $iMemberID );

//--- Subscription integration ---//  
$oSubscription = new BxDolSubscription();
$sAddon = $oSubscription->getData();

$aButton = $oSubscription->getButton($iMemberID, 'profile', '', $iViewedMemberID);
$p_arr['sbs_profile_title'] = $aButton['title'];
$p_arr['sbs_profile_script'] = $aButton['script'];
//--- Subscription integration ---//

//--- Check for member/non-member ---//
if(isMember()) {
$p_arr['cpt_edit'] = _t('_EditProfile');
$p_arr['cpt_send_letter'] = _t('_SendLetter');
$p_arr['cpt_fave'] = _t('_Fave');
$p_arr['cpt_befriend'] = _t('_Befriend');
$p_arr['cpt_greet'] = _t('_Greet');
//$p_arr['cpt_get_mail'] = _t('_Get E-mail');
$p_arr['cpt_share'] = _t('_Share');
$p_arr['cpt_report'] = _t('_Report Spam');
$p_arr['cpt_block'] = _t('_Block');
}
else {
$p_arr['cpt_edit'] = '';
$p_arr['cpt_send_letter'] = '';
$p_arr['cpt_fave'] = '';
$p_arr['cpt_befriend'] = '';
$p_arr['cpt_greet'] = '';
//$p_arr['cpt_get_mail'] = '';
$p_arr['cpt_share'] = '';
$p_arr['cpt_report'] = '';
$p_arr['cpt_block'] = '';
}


Note:  All we have done here is deleted freemail.php and commented out the links that apply to get mail and it's language key.

Hi mydatery,

I used your solution and it works fine, but I would like to remove the get email button even from the popup that comes out when you hover the mouse over People/All Members, any idea?

Quote · 10 Mar 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.