WHERE IS THE SUSPEND LINK ON THE MEMBERS PAGE LOCATED. ON WHICH FILE??? SO I CAN DELETE THA LINK
THANKS
|
You could try... member.php as a starting point and look at what files it calls. (Hint: inc/classes or templates/base/scripts can't remember the exact spot) |
|
could not find it.... if you have time sometime and find it or remember it... would appreciate it if you post it.
thanks have a good weekend
|
If your looking to remove the suspend link, here you go...
Open member.php
Locate:
switch ( $this->aMemberInfo['Status'] ) { case 'Unconfirmed': echo _t( "_ATT_UNCONFIRMED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Approval': echo _t( "_ATT_APPROVAL", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Active': echo _t( "_ATT_ACTIVE", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Rejected': echo _t( "_ATT_REJECTED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Suspended': echo _t( "_ATT_SUSPENDED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; }
Replace it with:
//switch ( $this->aMemberInfo['Status'] ) //{ //case 'Unconfirmed': echo _t( "_ATT_UNCONFIRMED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; //case 'Approval': echo _t( "_ATT_APPROVAL", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; //case 'Active': echo _t( "_ATT_ACTIVE", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; // case 'Rejected': echo _t( "_ATT_REJECTED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; // case 'Suspended': echo _t( "_ATT_SUSPENDED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; // }
And your Suspend Link will disappear. This removes the Switch and thus the link.
|
This is a bit tricky.
I believe you are refering to the suspend link on the member page in the member info box.
Profile status: Active (Explanation,Suspend)
If so. You can remove that by editing a language key.
In admin. Language settings search for the language key _ATT_ACTIVE
You then edit it and remove the link for it including the comma at the beginning of the link up to the closing )
Remove this.
,<a href="change_status.php">Suspend</a>
Then save the changes.
If your refering to something else, then don't do that.
https://www.deanbassett.com |
If your looking to remove the suspend link, here you go...
Open member.php
Locate:
switch ( $this->aMemberInfo['Status'] ) { case 'Unconfirmed': echo _t( "_ATT_UNCONFIRMED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Approval': echo _t( "_ATT_APPROVAL", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Active': echo _t( "_ATT_ACTIVE", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Rejected': echo _t( "_ATT_REJECTED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; case 'Suspended': echo _t( "_ATT_SUSPENDED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; }
Replace it with:
//switch ( $this->aMemberInfo['Status'] ) //{ //case 'Unconfirmed': echo _t( "_ATT_UNCONFIRMED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; //case 'Approval': echo _t( "_ATT_APPROVAL", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; //case 'Active': echo _t( "_ATT_ACTIVE", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; // case 'Rejected': echo _t( "_ATT_REJECTED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; // case 'Suspended': echo _t( "_ATT_SUSPENDED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break; // }
And your Suspend Link will disappear. This removes the Switch and thus the link.
I think that removes a lot more then just the suspend link.
https://www.deanbassett.com |
It does take out a little bit more. If your looking to remove just the Suspend Link from the profile, then you comment out just this line:
case 'Active': echo _t( "_ATT_ACTIVE", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break;
I checked it out and this has no effect on Admins ability to Suspend a profile regardless of which way you do it. As far as changing the Language key goes, it doesn't work. There's a live link there, so even altering the Language Key with a different word is still going to leave the live link: <a href="change_status.php"> Suspend </a> Which is a real file.
Now if we were to go into change_status.php and attempt the alteration there, then we're changing Admin's ability to Suspend a profile that is disruptive. Yes, we could just let Admin Delete the profile, but then the e-mail addy becomes available again for the member to join, by suspending the account it's leaves the e-mail in the DB and thus blocks that e-mail from obtaining a second account.
Tested this out and if you comment out that section then it will remove the Suspend Link from the My Account (member.php page) and leaves all other functions in and members will still be able to see if their account has been rejected, seeks confirmation and so on.
|
Sorry. I did test the changing the language key and it does work.
If you comment out the code as you suggested then you get this.
Profile status: Active Last login: 08-13-09 14:06
The Explanation link is also removed.
If your edit the language key to remove the entire Suspend link by changing this.
(<a href="javascript:void(0);" onclick="javascript:window.open( 'explanation.php?explain=Active', '', 'width={0},height={1},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );">Explanation</a>,<a href="change_status.php">Suspend</a>)
To This.
(<a href="javascript:void(0);" onclick="javascript:window.open( 'explanation.php?explain=Active', '', 'width={0},height={1},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no, location=no' );">Explanation</a>)
The the result is this.
Profile status: Active (Explanation) Last login: 08-13-09 14:06
The Explanation link remains.
So i suppose he could do it either way, but the language key change does work. https://www.deanbassett.com |
thank you all very helpull.... thanks for the help |
it worked thank you both for your time |
Thanks so much for the advice.. it can be so tricky to find the right place to work on this! The admin/Language settings tip worked for me!! You can't make chicken salad out of chicken shit.. although it does work the other way around! |
seems the issue is only when i go to Dolphin 7.0 When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |