Question About Gender Installation Instructions.....

Mod that adds a extra field to the users profile, the gender is displayed beside the posts

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Question About Gender Installation Instructions.....

Postby Chris Collins on Fri 06. Aug, 2004 16:38

OK I am in the process of installing this mod when I came across this step for editing viewtopic.php:

Code: Select all
#-----[ FIND ]------------------------------------------------
#
$pm_img = '<a href=
   
#
#-----[ AFTER, ADD ]------------------------------------------
#

// Start add - Gender MOD
switch ($postrow[$i]['user_gender'])
{
   case 1 : $gender_image = $lang['Gender'].": <img src=\"" . $images['icon_minigender_male'] . "\" alt=\"" . $lang['Gender'].  ":".$lang['Male']."\" title=\"" . $lang['Gender'] . ":".$lang['Male']. "\" border=\"0\" />"; break;
   case 2 : $gender_image = $lang['Gender'].": <img src=\"" . $images['icon_minigender_female'] . "\" alt=\"" . $lang['Gender']. ":".$lang['Female']. "\" title=\"" . $lang['Gender'] . ":".$lang['Female']. "\" border=\"0\" />"; break;
   default : $gender_image="";
}
// End add - Gender MOD


I edited the file exactly as it says but what it does is comment out the rest of the code after

Code: Select all
$pm_img = '<a href=


which is

Code: Select all
"' . $temp_url . '">


Would I insert the hack code after the closing bracket above? It's kinda confusing because usually mod instructions tell you exactly where to put the modded code. You might want to make this more clear.

Thanks for any help.

Chris
Chris Collins
Poster
Poster
 
Posts: 7
Joined: Thu 05. Aug, 2004 21:33

Postby crinrict on Fri 06. Aug, 2004 21:31

You have to add the code after the whole line which starts with

Code: Select all
$pm_img = '<a href=


AFTER, ADD always means 'after the line' otherwise it would say INLINE FIND
crinrict
Poster
Poster
 
Posts: 37
Joined: Sun 18. Apr, 2004 00:25
Location: Switzerland

Postby Chris Collins on Sat 07. Aug, 2004 01:48

Yeah but this part was confusing to me. Every other mod I have installed that uses AFTER, ADD usually has the whole line displayed for where they are instructing you to add code. Anyways, thanks for replying!

Chris
Chris Collins
Poster
Poster
 
Posts: 7
Joined: Thu 05. Aug, 2004 21:33

Postby kooky on Sat 07. Aug, 2004 19:23

Chris Collins wrote:Yeah but this part was confusing to me. Every other mod I have installed that uses AFTER, ADD usually has the whole line displayed for where they are instructing you to add code. Anyways, thanks for replying!

Chris
this short line is to prevent the entire line would be different, maybe altered by an other mod
With this short line, Easy Mod will find the line even if it was different :)
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby Chris Collins on Fri 13. Aug, 2004 16:30

Thanks kooky, I', gonna try to use easy mod.
Chris Collins
Poster
Poster
 
Posts: 7
Joined: Thu 05. Aug, 2004 21:33

Postby Chris Collins on Fri 13. Aug, 2004 18:45

Well, finally got it to work. That was the longest and hardest mod I've ever had to do, and it does so little, but it's good ;)

Chris
Chris Collins
Poster
Poster
 
Posts: 7
Joined: Thu 05. Aug, 2004 21:33

Postby kooky on Sat 14. Aug, 2004 00:44

Chris Collins wrote:Well, finally got it to work. That was the longest and hardest mod I've ever had to do, and it does so little, but it's good ;)

Chris
Try Categories Hierarchy, and i 'm sure you will change your opinion :lol:
except with EM only 1-2 min instead of few hours :P
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves


Return to Gender [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 2 guests

cron