 | Re: Gender MOD |  |
Posted: 09/04/2007 5:22 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
|

|
|
|
|
 |
| 2LadyDi wrote:
|
|
That MOD was installed prior to me ever knowing about EM as was that older version of the Birthday MOD.
|
Ok, I added the missing code in the usercp_viewprofile.php file. The Gender text is displaying properly in the Profile view now...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Gender MOD |  |
Posted: 09/04/2007 5:32 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
|

|
|
|
|
 |
| abdulbasit wrote:
|
I did and it worked but next error was much complicated as it says
| Code:
|
Critical Error
FIND FAILED: In file [language/lang_english/lang_admin.php] could not find:
$lang['Allow_name_change']
MOD script line #634 :: FAQ :: Report
|
And these template errors again
| Code:
|
Warning
FIND FAILED: In file [templates/applied_x/profile_add_body.tpl] could not find:
<input type="text" class="post" style="width: 200px" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
MOD script line #696 :: FAQ :: Report
|
| Code:
|
Warning
FIND FAILED: In file [templates/applied_x/viewtopic_body.tpl] could not find:
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}">
MOD script line #772 :: FAQ :: Report
|
Hopefully these are the errors left. After installing these templates, the MOD are making more difficulties to install MODs in which we have to modify template files in MOD script
|
These are all dumb and unnecessary problems. These MOD authors could do so much better with very little effort. They just don't seem to understand the easiest way to write a MOD script that will install on the greatest number of forums without problem...
Ok, try this:
OPEN
gender_mod_1_0_1a.txt
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
$lang['Allow_name_change']
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Gender MOD
$lang['gender_display'] = 'Display Genders';
$lang['gender_admin_img'] = 'Images';
$lang['gender_admin_text'] = 'Text';
$lang['gender_admin_none'] = 'None';
// Gender MOD
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Gender MOD
$lang['gender_display'] = 'Display Genders';
$lang['gender_admin_img'] = 'Images';
$lang['gender_admin_text'] = 'Text';
$lang['gender_admin_none'] = 'None';
// Gender MOD
|
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
<input type="text" class="post" style="width: 200px" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
{INTERESTS}
#
#-----[ FIND ]------------------------------------------
#
</tr>
|
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_FROM}</span><br /></td>
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
# Just remove it
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_FROM}<br />
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_FROM}<br />
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<br />
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Gender MOD |  |
Posted: 09/05/2007 3:08 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Now it gives me
| Code:
|
Critical Error
FIND FAILED: In file [admin/admin_board.php] could not find:
"NAMECHANGE_NO"
MOD script line #236 :: FAQ :: Report
|
Even though the FIND statement is there but still it says cannot find it!!!
Why it says like that? |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Gender MOD |  |
Posted: 09/05/2007 11:29 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
|

|
|
|
|
 |
You made a mistake in one of my suggestions above. So this is how you correct it:
OPEN
gender_mod_1_0_1a.txt
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Gender MOD
$lang['gender_display'] = 'Display Genders';
$lang['gender_admin_img'] = 'Images';
$lang['gender_admin_text'] = 'Text';
$lang['gender_admin_none'] = 'None';
// Gender MOD
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Gender MOD
'L_GENDER_DISPLAY' => $lang['gender_display'],
'L_GENDER_IMG' => $lang['gender_admin_img'],
'L_GENDER_NONE' => $lang['gender_admin_none'],
'L_GENDER_TEXT' => $lang['gender_admin_text'],
// Gender MOD
|
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
$lang['Allow_name_change']
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Gender MOD
$lang['gender_display'] = 'Display Genders';
$lang['gender_admin_img'] = 'Images';
$lang['gender_admin_text'] = 'Text';
$lang['gender_admin_none'] = 'None';
// Gender MOD
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Gender MOD
$lang['gender_display'] = 'Display Genders';
$lang['gender_admin_img'] = 'Images';
$lang['gender_admin_text'] = 'Text';
$lang['gender_admin_none'] = 'None';
// Gender MOD
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Gender MOD |  |
Posted: 09/06/2007 5:03 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
| It installed smoothly this time but got problem in viewtopic page. The viewtopic page was looking funny type so I just restored the EM backups. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Gender MOD |  |
Posted: 09/06/2007 1:21 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
|

|
|
|
|
 |
Right, here is the mistake:
OPEN
gender_mod_1_0_1a.txt
FIND
| Code:
|
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_gender_display -->
{L_GENDER}{postrow.POSTER_GENDER}<br />
<!-- END switch_gender_display -->
{postrow.POSTER_FROM}</span><br /></td>
|
REPLACE WITH
| Code:
|
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_gender_display -->
{L_GENDER}{postrow.POSTER_GENDER}<br />
<!-- END switch_gender_display -->
{postrow.POSTER_FROM}<br />
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Gender MOD |  |
Posted: 09/06/2007 2:15 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Okay, i changed it and installed again. This time the page was opening fine but the Gender is not being shown in the viewtopic. It is showing in the advertisement part at the end of the page where donation pictures are there. The gender is being shown in profile but not in viewtopic. Some silly mistakes I think this MOD Author have made  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Gender MOD |  |
Posted: 09/06/2007 2:51 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
|

|
|
|
|
 |
This was caused from having installed other MODs. The MOD author probably could have placed the code a bit better to avoid what happened, but his instructions would have worked if you hadn't added other code to the viewtopic.php file. I moved the MOD code so that this should be working correctly now...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Gender MOD |  |
Posted: 09/06/2007 3:12 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
Cool. Now it's working perfectly alright.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Gender MOD |  |
Posted: 09/06/2007 3:59 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|