Version: 1.1.1, by JoergZ
Developer Last Online: Dec 2012
Version: 3.5.0
Rating:
Released: 10-20-2005
Last Update: 10-31-2005
Installs: 16
Uses Plugins Template Edits
Code Changes Additional Files Is in Beta Stage
No support by the author.
Short Description
Unfortunately it is not possible in the standard-vB to use phrases in user profile fields. If you have only one language installed, this is no problem. But if you have more than one language on your board, this is bad.
With this hack, you can use phrases for user profile field title, description and select-options.
So you will have in the UserCP, in the meber-search and in the profile-view the text for user profile fields multilanguage. (See screenshots)
Though the main part of this hack is packed into a product, it is necessary to make some code-modifications, because there are new hooks necessary.
Requirements
vB 3.5 (Tested up to 3.5.1)
Installation-Time
approx. 15 - 20 minutes
Changes
Code-Modifications: 4
Template-Modifications: 3
New files: 1
Support
I have not marked the box "supported" because I am not always available and can answer in short time, but of course I will try helping you, if there are problems.
Open issues
When you get as administrator a mail, that a new user has registrated, in this mail, the phrase-converting is not implemented yet.
Updates
21.10.05: I have updated the hack. Now the phrases for the profile fields are shon correct on the registration page and in the AdminCP, when you add or search there a user. The ZIP-file contains a install-description for the new version, and a update-description, if you had already installed version 1.0
01.11.05: Update to 1.1.1: Bugfix for selection-options. They were interpreted always as phrase, even if you entered them as fix text. For updating only import the product and choose "Allow Overwrite" yes.
NOTE !!!
I marked "is in beta-stage" because I want to have first a feedback of some people, if this hack works on their board correct. Of course I have tested it on my installation, but you know, strange things can happen. When some people use this hack without problems, I will remove the beta-stage.
Please click if you have installed this hack, to get informations, if there are upadtes or corrections.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
You are right, sorry. I have "cheated" in my board. I have in the memberlist a field "country", but it shows a flag. And the header comes not from the profile-field, I modified the template and use a phrase.
Quote:
Originally Posted by derfelix
but as I see it.. its more complicated.. than I thought because the title and the stored field content are replaced at different locations..
Maybe that's the reason, why it is not included yet ...
But I will have a look at the problem and if I have a solution, either release a new version or give the instruction how to have the fields in the memberlist. (But maybe I have no time before the weekend for this, so you have to wait 2 or 3 days).
}
// ########### Lang hack part one ---end ########
then find:
PHP Code:
$customfield = $customfield['title'];
and ABOVE add:
PHP Code:
// ########### Lang hack part two ---start ########
$testforphrase = substr($customfield['title'], 0, 1);
if ($testforphrase == '$')
{
$prffldtitle = substr($customfield['title'], 1);
$customfield['title'] = $vbphrase[$prffldtitle];
}
// ########### Lang hack part two ---end ########
I have not installed it on 3.7, but I doubt it will work. Sorry, there is no newer version. And I currently don't have time to work on a version for 3.7.