Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Members able to view other members emails
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2013 - 11:16 pm

as I said, add the adminOnly argument... so find

                sp_ProfileShowEmail('', __sp('Email'));

in your sp theme and change it to

                sp_ProfileShowEmail('adminOnly=0', __sp('Email'));

as always, be sure you are editing your own sp theme and not ours to keep from losing your changes on a theme update...

Avatar
John Durham
Member
sp_UserOfflineSmall Offline
Feb 8, 2013 - 10:41 am

I made the recommended change.  When logged in as a user I could still not see other users email addresses in their profile, when I clicked "View Full Profile for John  Doe" I got the following error message -

Parse error:syntax error, unexpected T_STRING in /problem-with-post-edit-buttonome/advocate/public_html/wp-content/sp-resources/forum-themes/default/templates/spProfileShow.php on line 63

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2013 - 11:34 am

please post exactly what you used for code...  make sure when you copied mine, you got correct quotes (standard quote characters instead of odd backwards quotes)... I should have made it a code seqment..

Avatar
John Durham
Member
sp_UserOfflineSmall Offline
Feb 10, 2013 - 2:37 pm

I removed the sp_ProfileShowEmail('', __sp('Email')); and pasted sp_ProfileShowEmail('adminOnly=0', __sp('Email')); in its place.

 

To the best of my knowledge I followed your directions correctly. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 10, 2013 - 3:14 pm

so working then??

Avatar
John Durham
Member
sp_UserOfflineSmall Offline
Feb 11, 2013 - 11:40 am

John Durham said

I made the recommended change.  When logged in as a user I could still not see other users email addresses in their profile, when I clicked "View Full Profile for John  Doe" I got the following error message -

Parse error:syntax error, unexpected T_STRING in /problem-with-post-edit-buttonome/advocate/public_html/wp-content/sp-resources/forum-themes/default/templates/spProfileShow.php on line 63

No, it is not working properly.  I made the changes and the above was the result. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 11, 2013 - 11:54 am

While what you entered looks OK - quite clearly it isn't. That message means that php found a string of text when it was expecting something else. So - some questions.

Did you by accident remove the semi-colon from the line of code before this which is a common cause of this error.

What editing tool did you use to make the edit?

andy-signature.png
YELLOW
SWORDFISH
Avatar
John Durham
Member
sp_UserOfflineSmall Offline
Feb 11, 2013 - 12:47 pm

Progress, whatever I did wrong the first time. I didn't do it this time (no error message).

Now the behavior of the site (when logged in as a member), If you click on another members link to view their profile,  their email is not displayed under Contact "John Doe", but if you then click View full Profile for "John Doe" their email is displayed.

Anyway to make their email show up without having to click View Full Profile?

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2013 - 7:42 pm

what file did you make the original change in??  looks like you change the full profile template file... you need to change the popup profile template file too...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625