Can someone please help me, out i am having problems getting my mini-profile mod to where if the stat aint there the table area doesn't show up.
Code:
- <center>
- <table border="1" width="130" bordercolor="black" cellpadding="2" cellspacing="0" id="mini_profile">
- <tr>
- <td class="window1" align="center">{display_name}</td>
- </tr>
- <tr>
- <td class="window1" align="center">
- <script>
- var a = /(Administrator|Moderator|Global Moderator|Shelkra Clan Leader|Shelkra Clan Member|Eternus Clan Leader|Eternus Clan Member|Huyahikuro Clan Leader|Huyahikuro Clan Member|OD Clan Leader|OD Clan Member)/;
- var rank = '{rank_name}';
- if(rank.match(a)){
- document.write('{rank_image}');
- }else{
- document.write('{rank}');
- }
- </script>
- {if:secondrygroup}<script>
- var a = /(Administrator|Moderator|Global Moderator|Shelkra Clan Leader|Shelkra Clan Member|Eternus Clan Leader|Eternus Clan Member|Huyahikuro Clan Leader|Huyahikuro Clan Member|OD Clan Leader|OD Clan Member)/;
- var rank = '{secondrygroup_name}';
- if(rank.match(a)){
- document.write('{secondrygroup_image}');
- }else{
- document.write('{rank}');
- }
- </script><br>{/if:secondrygroup}
- </td>
- </tr>
- <tr>
- <td class="window1" align="center">
- <script type="text/javascript">
- assign_rank('{display_name}', '{posts}');
- </script>
- </td>
- </tr>
- {if:warning}<td class="window1" align="center">{warning}<br /></td>{/if:warning}
- </tr>
- {if:custom_title}<tr>
- <td class="window1" align="center">{custom_title}</tr>{/if:custom_title}</td>{ifnot:custom_title}<font color=#000000></font>{/ifnot:custom_title}
- </table>
- <br>
- <table width=130>
- <tr>
- <td align="center">
- {avatar}{ifnot:avatar}<font color=#000000><strong>No Avatar<strong></font>{/ifnot:avatar}
- </td>
- </tr>
- <tr>
- <td align="center">{personal_text}</td>
- </tr>
- </table>
- <br>
- <table border="1" width="130" bordercolor="black" cellpadding="2" cellspacing="0" id="mini_profile">
- <tr>
- <td class="window1">Posts: {posts}</td>
- </tr>
- <tr>
- <td class="window1">
- {if:online}
- Status: <b><font color=blue>Online</font></b>
- {/if:online}
- {ifnot:online}
- Status: <font color=red>Offline</font>
- {/ifnot:online}
- </td>
- </tr>
- <tr>
- {if:gender}<td class="window1">Gender: {gender}{/if:gender}
- </td>
- </tr>
- </table><br>
- <table border=1 width=130 bordercolor=black cellpadding=2 cellspacing=0>
- <tr>
- <td class="window1" align="center">
- ~Forum Data~</td>
- </tr>
- {if:additional_info}<tr><td class="window1" align="center">{additional_info}</td>
- </tr>{/if:additional_info}
- </table>
- <br>
- {contact}
- </center>
You need to use the tags:
{if:additional_info}{/if:additional_info}
Put the table tag in between those!![]()
(just double check those though!!)
ok taht was fix, but i have one more that i can see, when the person isn't in a member group there is a box under their rank, how can i fix that one?
Can yo show me what you mean?
http://omegabloodlust.virtualforums.co.uk/action/view_profil e/user/flametf/
i think it might be do to the Staff Has Normal Ranks code, so that might have to be modded to remove that now that i think about it
Indeed it is!![]()
could you please edit the code![]()
Code:
- <script type="text/javascript">
- <!--
- var ranks = Array(); var r=0;
- ranks[r++] = Array(0, 'New Blood', 1, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(75, 'Vast Hunter', 2, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(150, 'Junior Hunter', 3, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(300, 'Assassin', 4, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(500, 'Dark Knight', 5, 'http://s4.images.proboards.com/star.gif');
- ranks[r++] = Array(800, 'Blood Lord', 4, 'http://virtualforums.co.uk/images/red_star.gif');
- ranks[r++] = Array(1250, 'Supreme God', 5, 'http://virtualforums.co.uk/images/red_star.gif');
- function assign_rank(display_name, posts) {
- if(!display_name.match(/group(0|$)/i)) {
- posts = parseInt(posts.replace(/,/g, ''));
- r = 0;
- while(ranks[r] && ranks[r][0] < posts) {
- r++;
- }
- if(r > 0)
- r--;
- var rank_str = "" + ranks[r][1] + "<br />";
- for(c=0; c<ranks[r][2]; c++) {
- rank_str += "<img src=\""+ ranks[r][3] +"\" alt=\"*\" />";
- }
- document.write(rank_str);
- }
- }
- //-->
- </script>
ok replace:
<tr>
<td class="window1" align="center">
<script type="text/javascript">
assign_rank('{display_name}', '{posts}');
</script>
</td></tr>
with:
<script type="text/javascript">
assign_rank('{display_name}', '{posts}');
</script>
then use this for the 'assign_rank' code...
<script type="text/javascript">
<!--
var ranks = Array(); var r=0;
ranks[r++] = Array(0, 'New Blood', 1, 'http://s4.images.proboards.com/star.gif');
ranks[r++] = Array(75, 'Vast Hunter', 2, 'http://s4.images.proboards.com/star.gif');
ranks[r++] = Array(150, 'Junior Hunter', 3, 'http://s4.images.proboards.com/star.gif');
ranks[r++] = Array(300, 'Assassin', 4, 'http://s4.images.proboards.com/star.gif');
ranks[r++] = Array(500, 'Dark Knight', 5, 'http://s4.images.proboards.com/star.gif');
ranks[r++] = Array(800, 'Blood Lord', 4, 'http://virtualforums.co.uk/images/red_star.gif');
ranks[r++] = Array(1250, 'Supreme God', 5, 'http://virtualforums.co.uk/images/red_star.gif');
function assign_rank(display_name, posts) {
if(!display_name.match(/group(0|$)/i)) {
posts = parseInt(posts.replace(/,/g, ''));
r = 0;
while(ranks[r] && ranks[r][0] < posts) {
r++;
}
if(r > 0)
r--;
var rank_str = "<tr><td class=\"window1\" align=\"center\">" + ranks[r][1] + "<br />";
for(c=0; c<ranks[r][2]; c++) {
rank_str += "<img src=\""+ ranks[r][3] +"\" alt=\"*\" /></tr></td>";
}
document.write(rank_str);
}
}
//-->
</script>
doesn't work...
what happens?
nothing...the box is gone, but as well nothing else shows up
Recopy the assign_rank code from my above post:)
it kind of works..it shows the rank image, but not the rank title.
Recopy again!![]()
: ) ty
No Problem!![]()