Code: Select all
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
Code: Select all
// Load the user language array
foreach ($user->lang as $langitem => $langvalue) {
// Verify language text isn't held in an array
if (!is_array($langvalue)) {
// Verify the text contains a form of user and if so replace it
if (preg_match('/user/i',$langvalue)) {
$langvalue=preg_replace('/user/','member',$langvalue);
$langvalue=preg_replace('/User/','Member',$langvalue);
$user->lang[$langitem]=$langvalue;
}
}
}
Code: Select all
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
// Load the user language array
foreach ($user->lang as $langitem => $langvalue) {
// Verify language text isn't held in an array
if (!is_array($langvalue)) {
// Verify the text contains a form of user and if so replace it
if (preg_match('/user/i',$langvalue)) {
$langvalue=preg_replace('/user/','member',$langvalue);
$langvalue=preg_replace('/User/','Member',$langvalue);
$user->lang[$langitem]=$langvalue;
}
}
}
Code: Select all
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('search');
Code: Select all
include_once('user.replace.php');
Yea, but "member" is a good connotation, especially for the ladies.Pond Life wrote:You do know that 'member' can have another meaning too don't you?![]()
All members are users but not all users are members. What about guests? They are using the board but they're not members.
I think it's quite sad that that's the meaning that jumps to your mind. That very specific meaning hadn't even occurred to me.RexMundi412 wrote:However when I hear "user" the 1st thing that jumps to mind is someone who uses or takes advantage of another person.
Well any word can just about have multiple meanings.Pond Life wrote:You do know that 'member' can have another meaning too don't you?
All members are users but not all users are members. What about guests? They are using the board but they're not members.
No problem. As I said the code would be best in a general functions file where the $user->lang is assembled but as stated I didn't find the specific code base. I need more time to learn the phpbb layout better.RexMundi412 wrote:I really like how you are ready to throw in and help cleverwise. And how you jumped in on something I was just musing at really impressed me. I'm glad we have you as a "user" here!
Code: Select all
else if ($use_db)
{
// Get Database Language Strings
// Put them into $lang if nothing is prefixed, put them into $help if help: is prefixed
// For example: help:faq, posting
}
Code: Select all
// Replace all user text with member text
// Load the language array and loop through entries
foreach ($lang as $langitem => $langvalue) {
// Verify text isn't held in an array
if (!is_array($langvalue)) {
// Verify text contains a form of user and if so replace it
if (preg_match('/user/i',$langvalue)) {
// All lower case
$langvalue=preg_replace('/user/','member',$langvalue);
// Initial caps
$langvalue=preg_replace('/User/','Member',$langvalue);
// Update text with changes
$lang[$langitem]=$langvalue;
}
}
}
// Release unneeded resources
unset($langitem);
unset($langvalue);
Code: Select all
else if ($use_db)
{
// Get Database Language Strings
// Put them into $lang if nothing is prefixed, put them into $help if help: is prefixed
// For example: help:faq, posting
}
// Replace all user text with member text
// Load the language array and loop through entries
foreach ($lang as $langitem => $langvalue) {
// Verify text isn't held in an array
if (!is_array($langvalue)) {
// Verify text contains a form of user and if so replace it
if (preg_match('/user/i',$langvalue)) {
// All lower case
$langvalue=preg_replace('/user/','member',$langvalue);
// Initial caps
$langvalue=preg_replace('/User/','Member',$langvalue);
// Update text with changes
$lang[$langitem]=$langvalue;
}
}
}
// Release unneeded resources
unset($langitem);
unset($langvalue);
}
Nope. It only effects the word user found in the language files. It won't change user in posts or anywhere else in the code. Plus as I have stated it isn't just user but in any part of a word user appears like username, users, usergroup, etc.Lumpy Burgertushie wrote:will that have any effect on the word user when used in a post?
robert