[RC] Special and Normal Rank Images 1.1.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
c4c
Registered User
Posts: 8
Joined: Thu Aug 27, 2009 6:11 pm

Re: [Beta] Special and Normal Rank Images 0.1b5

Post by c4c »

First off great mod love it :P easy to install :P

but i have a problem i have done everthing as it says and have set all my ranks ect but i only get one. as i am admin all i get is the admin bar not my stars :(

so i did the belowe and it still hasent helped me :( but i am using a diffrent style which is prosilver_se

if you need to look at forum it is forums.cruising4clunge.com

hope you can help mate

cheers

*******************
one thing i have just noticed and that is that both rank's are showing up in the members list but not on post's
IBBoard wrote:The only reason I didn't put it in there at first is that I thought it might be a bit much in most themes to have two rank images.

In terms of how to do it, it looks like it's already possible as the function that provides the template data has already been modified by the existing instructions. All you should need to do is find the following in memberlist_body.html:

Code: Select all

<!-- IF memberrow.RANK_IMG --><span class="rank-img">{memberrow.RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.RANK_TITLE}</span><!-- ENDIF -->
and add after it:

Code: Select all

<!-- IF memberrow.EXTRA_RANK_IMG or memberrow.EXTRA_RANK_TITLE --><br /><!-- IF memberrow.EXTRA_RANK_IMG --><span class="rank-img">{memberrow.EXTRA_RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.EXTRA_RANK_TITLE}</span><!-- ENDIF --><!-- ENDIF -->
Now, if only I could find an easy way to have that functionality there but disabled by default...
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

Have you modified the Prosilver_SE template to include both the special and normal rank in the topic template? And have you refreshed all of the templates?

As for the old post, I think that was a comment about an earlier version and why I didn't bother with both ranks on the memberlist at first.
c4c
Registered User
Posts: 8
Joined: Thu Aug 27, 2009 6:11 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by c4c »

kk so which file is it that i have to change will it be the

Code: Select all

Open: styles/prosilver/template/viewtopic_body.html
but becuase im using prosilver_se it will be

Code: Select all

Open: styles/prosilver_se/template/viewtopic_body.html
c4c
Registered User
Posts: 8
Joined: Thu Aug 27, 2009 6:11 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by c4c »

thanks m8 you rock works fine cheers :P
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

As long as Prosilver_SE follows the same pattern (which it should do) then yes, that's the file. Template changes always show up better when they're made to the template in use ;)
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by Valace »

Any idea why this is not working for Dark Fantasy style?

Here the code for the site

Code: Select all

<!-- INCLUDE overall_header.html -->



<!-- IF S_FORUM_RULES -->
	<div class="forumrules">
		<!-- IF U_FORUM_RULES -->
			<h3>{L_FORUM_RULES}</h3><br />
			<a href="{U_FORUM_RULES}"><b>{L_FORUM_RULES_LINK}</b></a>
		<!-- ELSE -->
			<h3>{L_FORUM_RULES}</h3><br />
			{FORUM_RULES}
		<!-- ENDIF -->
	</div>

	<br clear="all" />
<!-- ENDIF -->

<div id="pageheader">
	<h2><a class="titles" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>

<!-- IF MODERATORS -->
	<p class="moderators"><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->: {MODERATORS}</p>
<!-- ENDIF -->
<!-- IF U_MCP -->
	<p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
<!-- ENDIF -->
</div>

<br clear="all" /><br />

<div id="pagecontent">

	<table width="100%" cellspacing="1">
	<tr>
		<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
		<!-- IF not S_IS_BOT -->
			<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
			<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
		<!-- ENDIF -->
		</td>
		<!-- IF TOTAL_POSTS -->
			<td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
			<td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_POSTS} ]&nbsp;</td>
			<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
		<!-- ENDIF -->
	</tr>
	</table>

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat">
			<table width="100%" cellspacing="0">
			<tr style="background: transparent">
				<td class="nav" nowrap="nowrap">&nbsp;
				<!-- IF not S_IS_BOT -->
					<!-- IF U_WATCH_TOPIC --><a href="{U_WATCH_TOPIC}" title="{L_WATCH_TOPIC}">{L_WATCH_TOPIC}</a><!-- IF U_PRINT_TOPIC or U_EMAIL_TOPIC or U_BUMP_TOPIC or U_BOOKMARK_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
					<!-- IF U_BOOKMARK_TOPIC --><a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}">{L_BOOKMARK_TOPIC}</a><!-- IF U_PRINT_TOPIC or U_EMAIL_TOPIC or U_BUMP_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
					<!-- IF U_PRINT_TOPIC --><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}">{L_PRINT_TOPIC}</a><!-- IF U_EMAIL_TOPIC or U_BUMP_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
					<!-- IF U_EMAIL_TOPIC --><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}">{L_EMAIL_TOPIC}</a><!-- IF U_BUMP_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
					<!-- IF U_BUMP_TOPIC --><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}">{L_BUMP_TOPIC}</a><!-- ENDIF -->
				<!-- ENDIF -->
				</td>
				<td class="nav" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><!-- IF U_VIEW_UNREAD_POST and not S_IS_BOT --> | <a href="{U_VIEW_UNREAD_POST}">{L_VIEW_UNREAD_POST}</a><!-- ENDIF --> | <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;</td>
			</tr>
			</table>
		</td>
	</tr>
<!-- IF S_HAS_POLL -->
	<tr>
		<td class="row2" colspan="2" align="center"><br clear="all" />

			<form method="post" action="{S_POLL_ACTION}">

			<table class="transparent" cellspacing="0" cellpadding="4" border="0" align="center">
			<tr>
				<td align="center"><span class="gen"><b>{POLL_QUESTION}</b></span><br /><span class="gensmall">{L_POLL_LENGTH}</span></td>
			</tr>
			<tr>
				<td align="{S_CONTENT_FLOW_BEGIN}">
					<table cellspacing="0" cellpadding="2" border="0">
				<!-- BEGIN poll_option -->
					<tr>
					<!-- IF S_CAN_VOTE -->
						<td>
							<!-- IF S_IS_MULTI_CHOICE -->
								<input type="checkbox" class="radio" name="vote_id[]" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> />
							<!-- ELSE -->
								<input type="radio" class="radio" name="vote_id[]" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> />
							<!-- ENDIF -->
						</td>
					<!-- ENDIF -->
						<td><span class="gen">{poll_option.POLL_OPTION_CAPTION}</span></td>
						<!-- IF S_DISPLAY_RESULTS -->
							<td dir="ltr">{POLL_LEFT_CAP_IMG}{poll_option.POLL_OPTION_IMG}{POLL_RIGHT_CAP_IMG}</td>
							<td class="gen" align="{S_CONTENT_FLOW_END}"><b>&nbsp;{poll_option.POLL_OPTION_PERCENT}&nbsp;</b></td>
							<td class="gen" align="center">[ {poll_option.POLL_OPTION_RESULT} ]</td>
							<!-- IF poll_option.POLL_OPTION_VOTED -->
								<td class="gensmall" valign="top"><b title="{L_POLL_VOTED_OPTION}">x</b></td>
							<!-- ENDIF -->
						<!-- ENDIF -->
					</tr>
				<!-- END poll_option -->
					</table>
				</td>
			</tr>
		<!-- IF S_CAN_VOTE -->
			<tr>
				<td align="center"><span class="gensmall">{L_MAX_VOTES}</span><br /><br /><input type="submit" name="update" value="{L_SUBMIT_VOTE}" class="btnlite" /></td>
			</tr>
		<!-- ENDIF -->
		<!-- IF S_DISPLAY_RESULTS -->
			<tr>
				<td class="gensmall" colspan="4" align="center"><b>{L_TOTAL_VOTES} : {TOTAL_VOTES}</b></td>
			</tr>
		<!-- ELSE -->
			<tr>
				<td align="center"><span class="gensmall"><b><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></b></span></td>
			</tr>
		<!-- ENDIF -->
			</table>
			{S_HIDDEN_FIELDS}
			
			</form>
			
		</td>
	</tr>
<!-- ENDIF -->
	</table>

<!-- BEGIN postrow -->
	<table class="tablebg" width="100%" cellspacing="1">
	<!-- IF postrow.S_FIRST_ROW -->
		<tr>
			<th>{L_AUTHOR}</th>
			<th>{L_MESSAGE}</th>
		</tr>
	<!-- ENDIF -->
	<tr>

	<!-- IF postrow.S_IGNORE_POST -->
			<td class="row1" class="gensmall" colspan="2" height="25" align="center"><!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>{postrow.L_IGNORE_POST}</td>
	<!-- ELSE -->

			<!-- IF postrow.S_ROW_COUNT is even --><td align="center" valign="middle" class="row1"><!-- ELSE --><td align="center" valign="middle" class="row2"><!-- ENDIF -->
				<!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>
				<b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b>
			</td>
			<td class="row1" width="100%" height="25">
				<table class="transparent" width="100%" cellspacing="0">
				<tr>
				<!-- IF postrow.POST_ICON_IMG -->
					<td><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" title="" /></td>
				<!-- ENDIF -->
					<td class="gensmall" width="100%"><div style="float: {S_CONTENT_FLOW_BEGIN};">&nbsp;<b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float: {S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE}&nbsp;</div></td>
				</tr>
				</table>
			</td>
		</tr>
		
		<tr>
			<!-- IF postrow.S_ROW_COUNT is even --><td valign="top" class="row1 profile"><!-- ELSE --><td valign="top" class="row2 profile"><!-- ENDIF -->
				<table cellspacing="4" class="transparent" align="center" width="150">
			<!-- IF postrow.RANK_TITLE -->
				<tr>
	
				</tr>
			<!-- ENDIF -->
			<!-- IF postrow.RANK_IMG -->
				<tr>
					<td>{postrow.RANK_IMG}</td>
				</tr>
			<!-- ENDIF -->
			<!-- IF postrow.EXTRA_RANK_TITLE -->
				<tr>
					<td class="postdetails">{postrow.EXTRA_RANK_TITLE}</td>
				</tr>
			<!-- ENDIF -->
			<!-- IF postrow.EXTRA_RANK_IMG -->
				<tr>
					<td>{postrow.EXTRA_RANK_IMG}</td>
				</tr>
			<!-- ENDIF -->
			<!-- IF postrow.POSTER_AVATAR -->
				<!-- IF postrow.U_LPP -->
				<tr>
					<td><a href="{postrow.U_LPP}" target="_new">{postrow.POSTER_AVATAR}</td>
				</tr>
				<!-- ELSE -->
				<tr>
					<td>{postrow.POSTER_AVATAR}</td>
				</tr>
				<!-- ENDIF -->
			<!-- ENDIF -->
			<!-- IF postrow.POST_MOOD -->
				<tr>
					<td><font size=3><b>{L_POST_MOOD}:</b> {postrow.POST_MOOD}</font></td>
				</tr>
			<!-- ENDIF -->
				</table>

				<span class="postdetails">

					<!-- IF postrow.POSTER_FROM --><br /><b>{L_LOCATION}:</b> {postrow.POSTER_FROM}<!-- ENDIF -->
					<!-- IF postrow.POSTER_GENDER --><br />{postrow.POSTER_GENDER_IMG}<!-- ENDIF -->

					<!-- IF postrow.S_PROFILE_FIELD1 -->
						<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
						<br /><b>{postrow.PROFILE_FIELD1_NAME}:</b> {postrow.PROFILE_FIELD1_VALUE}
					<!-- ENDIF -->

					<!-- begin JTS Enterprises My page mod -->
						<!-- IF postrow.U_MYPAGE_SELECT -->
							<br /><b>{L_MP_MYPAGE}:</b> <a href="{postrow.U_MYPAGE_SELECT}">{L_MP_VIEW_MYPAGE}</a>
						<!-- ENDIF -->
					<!-- end JTS Enterprises My page mod -->

					<!-- BEGIN custom_fields -->
						<br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}
					<!-- END custom_fields -->
				</span>

			</td>
			<!-- IF postrow.S_ROW_COUNT is even --><td valign="top" class="row1"><!-- ELSE --><td valign="top" class="row2"><!-- ENDIF -->
				<table class="transparent" width="100%" cellspacing="5">
				<tr>
					<td>
					<!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED -->
						<table class="transparent" width="100%" cellspacing="0">
						<tr>
							<td class="gensmall"><!-- IF postrow.S_POST_UNAPPROVED --><span class="postapprove">{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span> <!-- ENDIF --> <!-- IF postrow.S_POST_REPORTED --><span class="postreported">{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF --></td>
						</tr>
						</table>

						<br clear="all" />
					<!-- ENDIF -->

						<div class="postbody">{postrow.MESSAGE}</div>

					<!-- IF postrow.S_HAS_ATTACHMENTS -->
						<br clear="all" /><br />

						<table class="tablebg" width="100%" cellspacing="1">
						<tr>
							<td class="row3"><b class="genmed">{L_ATTACHMENTS}: </b></td>
						</tr>
						<!-- BEGIN attachment -->
							<tr>
								<!-- IF postrow.attachment.S_ROW_COUNT is even --><td class="row2"><!-- ELSE --><td class="row1"><!-- ENDIF -->{postrow.attachment.DISPLAY_ATTACHMENT}</td>
							</tr>
						<!-- END attachment -->
						</table>
					<!-- ENDIF -->

					<!-- IF postrow.S_DISPLAY_NOTICE -->
						<span class="gensmall error"><br /><br />{L_DOWNLOAD_NOTICE}</span>
					<!-- ENDIF -->
					<!-- IF postrow.SIGNATURE -->
						<span class="postbody"><br />_________________<br />{postrow.SIGNATURE}</span>
					<!-- ENDIF -->

					<!-- IF postrow.EDITED_MESSAGE or postrow.EDIT_REASON -->
						<!-- IF postrow.EDIT_REASON -->
							<br /><br />
							<table class="tablebg" width="100%" cellspacing="1">
							<tr>
								<td class="row3"><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
							</tr>
							<tr>
								<td class="row2"><span class="genmed">{postrow.EDIT_REASON}</span></td>
							</tr>
							</table>
						<!-- ELSE -->
							<br /><br />
							<span class="gensmall">{postrow.EDITED_MESSAGE}</span>
						<!-- ENDIF -->
					<!-- ENDIF -->

					<!-- IF postrow.BUMPED_MESSAGE -->
						<span class="gensmall">{postrow.BUMPED_MESSAGE}</span>
					<!-- ENDIF -->

					<!-- IF not postrow.S_HAS_ATTACHMENTS --><br clear="all" /><br /><!-- ENDIF -->

						<table class="transparent" width="100%" cellspacing="0">
						<tr valign="middle">
							<td class="gensmall" align="{S_CONTENT_FLOW_END}">
							<!-- IF not S_IS_BOT -->
								<!-- IF postrow.U_REPORT --><a href="{postrow.U_REPORT}">{REPORT_IMG}</a> <!-- ENDIF --> 
								<!-- IF postrow.U_INFO --><a href="{postrow.U_INFO}">{INFO_IMG}</a> <!-- ENDIF --> 
								<!-- IF postrow.U_WARN --><a href="{postrow.U_WARN}">{WARN_IMG}</a> <!-- ENDIF --> 
								<!-- IF postrow.U_DELETE --><a href="{postrow.U_DELETE}">{DELETE_IMG}</a> <!-- ENDIF -->
							<!-- ENDIF -->
							</td>
						</tr>
						</table>
					</td>
				</tr>
				</table>
			</td>
		</tr>

		<tr>
			<!-- IF postrow.S_ROW_COUNT is even --><td class="row1 profile"><!-- ELSE --><td class="row2 profile"><!-- ENDIF --><strong><a href="#wrapheader">{L_BACK_TO_TOP}</a></strong></td>
			<!-- IF postrow.S_ROW_COUNT is even --><td class="row1 profile"><!-- ELSE --><td class="row2 profile"><!-- ENDIF -->
        <div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN">&nbsp; 
          <!-- IF postrow.ONLINE_IMG -->
          {postrow.ONLINE_IMG} 
          <!-- ENDIF -->
          <!-- IF postrow.U_PROFILE -->
          <a href="{postrow.U_PROFILE}">{PROFILE_IMG}</a> 
          <!-- ENDIF -->
          <!-- IF postrow.U_PM -->
          <a href="{postrow.U_PM}">{PM_IMG}</a> 
          <!-- ENDIF -->
          <!-- IF postrow.U_EMAIL -->
          <a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> 
          <!-- ENDIF -->
		  <!-- IF postrow.U_LPP -->
          <a href="{postrow.U_LPP}" target="_new">{LPP_IMG}</a> 
          <!-- ENDIF -->
          <!-- IF not S_IS_BOT -->
          <!-- IF postrow.U_EDIT -->
          <a href="{postrow.U_EDIT}">{EDIT_IMG}</a> 
          <!-- ENDIF -->
          <!-- IF postrow.U_QUOTE -->
          <a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a> 
          <!-- ENDIF -->
          <!-- ENDIF -->
          &nbsp;</div>
        </td><!-- ENDIF -->
		</tr>

	<tr>
		<td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	</table>
<!-- END postrow -->

	<table width="100%" cellspacing="1" class="tablebg">
	<tr align="center">
		<td class="cat"><form name="viewtopic" method="post" action="{S_TOPIC_ACTION}"><span class="gensmall">{L_DISPLAY_POSTS}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" value="{L_GO}" name="sort" /></form></td>
	</tr>
	</table>

	<table width="100%" cellspacing="1">
	<tr>
		<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
		<!-- IF not S_IS_BOT -->
			<!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
			<!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
		<!-- ENDIF -->
		</td>
		<!-- IF TOTAL_POSTS -->
			<td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
			<td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_POSTS} ]&nbsp;</td>
			<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
		<!-- ENDIF -->
	</tr>
	</table>

</div>

<div id="pagefooter"></div>

<br clear="all" />

<!-- INCLUDE breadcrumbs.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat"><h4>{L_WHO_IS_ONLINE}</h4></td>
	</tr>
	<tr>
		<td class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td>
	</tr>
	</table>
<!-- ENDIF -->

<br clear="all" />

<table width="100%" cellspacing="1">
<tr>
	<td width="40%" valign="top" nowrap="nowrap" align="{S_CONTENT_FLOW_BEGIN}"><!-- IF S_TOPIC_MOD --><form method="post" action="{S_MOD_ACTION}"><span class="gensmall">{L_QUICK_MOD}:</span> {S_TOPIC_MOD} <input class="btnlite" type="submit" value="{L_GO}" /></form><!-- ENDIF --></td>
	<td align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap"><span class="gensmall"><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></span></td>
</tr>
</table>

<br clear="all" />

<table width="100%" cellspacing="0">
<tr>
	<td><!-- IF S_DISPLAY_SEARCHBOX --><!-- INCLUDE searchbox.html --><!-- ENDIF --></td>
	<td align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></td>
</tr>
</table>

<!-- INCLUDE overall_footer.html -->

I added your code in my self and i'm match the correct location but sadly they not displaying. I have cached templates and select special rank also.

thanks and great mod also
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

Apart from the fact that you'll never see one of the rank titles (the "IF" block for "postrow.RANK_TITLE" only contains <tr> tags) that looks like it should work.

Have you cleared the template cache? And if you make some other changes to the template outside of that area then do those changes appear?
User avatar
Valace
Registered User
Posts: 177
Joined: Sat Sep 20, 2008 9:40 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by Valace »

I found your offical MOD release and downloaded that one. It gave me more code to install and that appears to work now. Thanks and if I may say what a great MOD and now feature to my site.

Is there a way so I can display the rank for every one and not such Admin please? May appear strange but I have a static image I like to use for Admin and other static for normal users (Special rank) and then the changing images (depend on post count) with both of them.

So can it be done so all have the extra rank, instead of just admin? If so what do I need to change?

Many thanks in advance for your reply and help :)
Image - Help look after the Earth and get green hosting
Free Domain: http://www.co.cc
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

To give everyone a "group"/static image and a posting rank image then just edit the "member" group and assign them an image in the same way as Admins are assigned images. You may have to set it as a "default group" so that it is used when no other groups exist, but it should work.

As for the changes, the release candidate here is v1.1.0, which would become v1.2.0. What you've installed (the mod that was released) is only v1.0.1. There shouldn't be any extra code in v1.0.1 that isn't in 1.1.0 (unless I've managed to optimise code), so I'd be interested to know what extras you found.
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

We've been sat at the v1.1.0 RC for a while now. Does anyone have any problems, or should I update it with whatever minor changes the phpBB guys have made to the MOD template and try to get it in the release system towards the end of 2009 so that you can see it officially released some time in mid-2010?
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by keith10456 »

Great mod!
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [RC] Special and Normal Rank Images 1.1.0

Post by Anyasha »

Hi there...me again! :lol:

When tried this mod and applied the patch, when I set "SHOW_SPECIAL_AS_EXTRA" to true, user profiles with special ranks show the posting rank twice and no special rank. When set to false, it displays as it should.
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

Where is that happening? I've just tested on my forums (which should be running the latest versions) and it seems to work okay there in topics and in the user's profile.
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [RC] Special and Normal Rank Images 1.1.0

Post by Anyasha »

Oops. :oops: I had this code:

Code: Select all

	$extra_rank_title = $extra_rank_img = $extra_rank_img_src = '';

	if (defined('SHOW_SPECIAL_AS_EXTRA') && SHOW_SPECIAL_AS_EXTRA)
	{
		$extra_rank_title = $rank_title;
		$extra_rank_img = $rank_img;
		$extra_rank_img_src = $rank_img_src;
		$rank_title = $rank_img = $rank_img_src = '';
		
		get_user_additional_rank($data['user_rank'], $data['user_posts'], $rank_title, $rank_img, $rank_img_src, $data['user_rank_theme']);
	}
	else
	{
		get_user_additional_rank($data['user_rank'], $data['user_posts'], $extra_rank_title, $extra_rank_img, $extra_rank_img_src, $data['user_rank_theme']);
	}
in memberlist.php twice. :lol: NOW it appears to be working fine! I'll look around in depth and let you know if I come across anything.

This MOD coupled with your multi-race mod is so awesome. 8-)
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

Yep, that'd probably break it :D Thanks for checking out the RCs - I'm glad you're finding them useful.

Return to “[3.0.x] MODs in Development”