Info
- 7 posts
- 2 voices
- Started 4 years ago by ganzua
- Latest reply from ganzua
- This topic is not resolved
where did get_profile_info_keys() function go in 0.8.2.1
-
- Posted 4 years ago #
I just installed 0.8.2.1 and it seems functions.php have changed a lot.
Where is get_profile_info_keys() function now? Signature plugin doesn't work because you need to insert code in that line.
-
- Posted 4 years ago #
I duno. Just use the filter
get_profile_info_keysinstead. -
- Posted 4 years ago #
Hi fel64!
(my computer died almost one month ago and now I am where I left then :) )
"Just use the filter get_profile_info_keys instead."
-> what do you mean? adding that function to functions.php?In the previous bb press version and in order to make signature plugin to work, you needed to add this in functions.php;
"find the get_profile_info_keys() function, which should be on or around line 1761. In the line that starts with array('user_email'..., add the following code before the last ")" in the line. Note the comma.
, 'sig' => array(0, __('Signature'))
This will add the signature field to the profile edit page, enabling users to input their own signatures."
Now there is no such function in functions.php
-
- Posted 4 years ago #
Code like this:
add_filter('get_profile_info_keys', 'add_sig_key'); function add_sig_key( $keys ) { $keys['sig'] = array(0, __('Signature')); }Just add that to the plugin file. It should probably work, but it's a bit of a guess.
Much better to do it this way with a plugin than editing core files, too.
-
- Posted 4 years ago #
It didn't work :) It reports errors whenever the template calls the signature.
Perhaps this kind of stuff should be included in the core.
-
- Posted 4 years ago #
Meh, even if that didn't work, code like it can work. I don't know how the signature plugin works but the capability to do it _is_ in the core.
-
- Posted 4 years ago #
I'd better remove signatures from the template till the plugin is updated
-
You must log in to post.