|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Sorry I have nowhere to host the file so I'll just post the changes below. Let me now how you go. Open cp_vars_mods.pl
-------------- Find : -------------- chomp($mods[0]); chomp($mods[1]); chomp($mods[2]); chomp($mods[3]);
for (0..3) { $mods[$_] = '' unless (defined($mods[$_])); } -------------- Replace With : --------------
$Num_of_Mod = 12; $Num_of_Mod_Cnt = 0;
for (0..11) { chomp($mods[$_]); $mods[$_] = '' unless (defined($mods[$_])); }
-------------- Find : -------------- if (($mods[0] ne '') && (&FileExists("$vars_config{MembersPath}/$mods[0].cgi"))) { @user_profile = &OpenProfile("$mods[0]"); chomp($user_profile[0]); chomp($user_profile[15]); if ($user_profile[15] ne '') { $display_name[0] = $user_profile[15]; } else { $display_name[0] = $user_profile[0]; } } else { $mods[0] = ''; }
if (($mods[1] ne '') && (&FileExists("$vars_config{MembersPath}/$mods[1].cgi"))) { @user_profile = &OpenProfile("$mods[1]"); chomp($user_profile[0]); chomp($user_profile[15]); if ($user_profile[15] ne '') { $display_name[1] = $user_profile[15]; } else { $display_name[1] = $user_profile[0]; } } else { $mods[1] = ''; }
if (($mods[2] ne '') && (&FileExists("$vars_config{MembersPath}/$mods[2].cgi"))) { @user_profile = &OpenProfile("$mods[2]"); chomp($user_profile[0]); chomp($user_profile[15]); if ($user_profile[15] ne '') { $display_name[2] = $user_profile[15]; } else { $display_name[2] = $user_profile[0]; } } else { $mods[2] = ''; }
if (($mods[3] ne '') && (&FileExists("$vars_config{MembersPath}/$mods[3].cgi"))) { @user_profile = &OpenProfile("$mods[3]"); chomp($user_profile[0]); chomp($user_profile[15]); if ($user_profile[15] ne '') { $display_name[3] = $user_profile[15]; } else { $display_name[3] = $user_profile[0]; } } else { $mods[3] = ''; } -------------- Replace With : -------------- while ($Num_of_Mod_Cnt < $Num_of_Mod) { if (($mods[$Num_of_Mod_Cnt] ne '') && (&FileExists("$vars_config{MembersPath}/$mods[$Num_of_Mod_Cnt].cgi"))) { @user_profile = &OpenProfile("$mods[$Num_of_Mod_Cnt]"); chomp($user_profile[0]); chomp($user_profile[15]); if ($user_profile[15] ne '') { $display_name[$Num_of_Mod_Cnt] = $user_profile[15]; } else { $display_name[$Num_of_Mod_Cnt] = $user_profile[0]; } } else { $mods[$Num_of_Mod_Cnt] = ''; } $Num_of_Mod_Cnt++; }
-------------- Find : -------------- <table border="0" bgcolor="$vars_style_cp{AltColumnColor1}"> <tr><td class="smallrow"> $display_name[0] </td> <td class="smallrow"> $display_name[1] </td> <td class="smallrow"> $display_name[2] </td> <td class="smallrow"> $display_name[3] </td> </tr>
<tr><td class="smallrow"> <input type="text" name="1NewMod$check[8]" value="$mods[0]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="2NewMod$check[8]" value="$mods[1]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="3NewMod$check[8]" value="$mods[2]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="4NewMod$check[8]" value="$mods[3]" size="20" maxlength="30"> </td> </tr> </table>
</td> </tr> -------------- Replace With : -------------- <table border="0" bgcolor="$vars_style_cp{AltColumnColor1}"> <tr><td class="smallrow"> $display_name[0] </td> <td class="smallrow"> $display_name[1] </td> <td class="smallrow"> $display_name[2] </td> <td class="smallrow"> $display_name[3] </td> <td class="smallrow"> $display_name[4] </td> <td class="smallrow"> $display_name[5] </td> </tr> <tr><td class="smallrow"> <input type="text" name="1NewMod$check[8]" value="$mods[0]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="2NewMod$check[8]" value="$mods[1]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="3NewMod$check[8]" value="$mods[2]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="4NewMod$check[8]" value="$mods[3]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="5NewMod$check[8]" value="$mods[4]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="6NewMod$check[8]" value="$mods[5]" size="20" maxlength="30"> </td> </tr>
<tr> <td class="smallrow"> $display_name[6] </td> <td class="smallrow"> $display_name[7] </td> <td class="smallrow"> $display_name[8] </td> <td class="smallrow"> $display_name[9] </td> <td class="smallrow"> $display_name[10] </td> <td class="smallrow"> $display_name[11] </td> </tr>
<tr> <td class="smallrow"> <input type="text" name="7NewMod$check[8]" value="$mods[6]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="8NewMod$check[8]" value="$mods[7]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="9NewMod$check[8]" value="$mods[8]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="10NewMod$check[8]" value="$mods[9]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="11NewMod$check[8]" value="$mods[10]" size="20" maxlength="30"> </td> <td class="smallrow"> <input type="text" name="12NewMod$check[8]" value="$mods[11]" size="20" maxlength="30"> </td>
</tr> </table>
</td> </tr>
I can't afford a good signature editor
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|