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
spProfileFailure message
Avatar
Peter Landon
Member
Free Members
sp_UserOfflineSmall Offline
Aug 15, 2014 - 4:58 am

Hi,

I've set my forum to a compulsory change of password when a new user first logs on. When they log on the message at the top of the screen says:

<p class="spProfileFailure">Forum rules require you to change your password in order to view forum or save your profile</p>

Otherwise, it seems to be working. The password can be changed and the new user can log in formally thereafter. 

How can I get rid of the coding part of the message?

regards

Peter

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 15, 2014 - 5:22 am

Wow. I AM surprised that has not come up before now. Looks like a small bug. I will open a ticket now and investigate for a fix. If it is easy I can post it here but it WILL get into the next update due alongside WordPress 4 which is now in beta 4.

Sorry about that... I guess not many people use this feature!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 15, 2014 - 5:45 am

If you do not want to wait for the update and are happy to make code changes then the file you need to edit is:

/forum/profile/ahah/sp-ahah-profile.php

You need to scroll down to line 363 - about 75% of the way through the file. Locate the block of code that reads:

$msg = sp_text('Forum rules require you to change your password in order to view forum or save your profile');
$msg = apply_filters('sph_change_pw_msg', $msg);
$message = '<p class="spProfileFailure">'.$msg.'</p>';
$message = esc_js($message);

and change it to the code lines below:

$msg = sp_text('Forum rules require you to change your password in order to view forum or save your profile');
$msg = apply_filters('sph_change_pw_msg', $msg);
$msg = esc_js($msg);
$message = '<p class="spProfileFailure">'.$msg.'</p>';

and that should fix it up for you. Again - apologies for the oversight.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625