Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Gender MOD
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: Gender MOD
PostPosted: 09/04/2007 5:22 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Gender MOD
PostPosted: 09/04/2007 5:32 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
peace.gif
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 Very Happy

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 Very Happy

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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Gender MOD
PostPosted: 09/05/2007 3:08 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
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
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Gender MOD
PostPosted: 09/05/2007 11:29 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Gender MOD
PostPosted: 09/06/2007 5:03 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
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
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Gender MOD
PostPosted: 09/06/2007 1:21 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Gender MOD
PostPosted: 09/06/2007 2:15 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
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  Brick wall
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Gender MOD
PostPosted: 09/06/2007 2:51 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Gender MOD
PostPosted: 09/06/2007 3:12 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 5:57 AM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Cool. Now it's working perfectly alright.
banana  banana
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Gender MOD
PostPosted: 09/06/2007 3:59 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:57 PM
Location: St Pete, FL
peace.gif
banana  banana  banana  banana  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3  Next
Page 2 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.084s (PHP: 79% - SQL: 21%) - SQL queries: 57 - GZIP disabled - Debug on