Warning: The author of this contribution does not provide support for it anymore.

Top Five

National Flags in top five - Top Five

National Flags in top five

by EliteNODDY » Tue Jan 25, 2011 6:43 pm

is there a way to have the National Flags bit that gose on the index in the top five box plezz ???
User avatar
EliteNODDY
Registered User
Posts: 80
Joined: Mon Aug 23, 2010 4:59 pm
Location: uk

Re: National Flags in top five

by RMcGirr83 » Tue Jan 25, 2011 6:53 pm

Try removing the code for the top flags within your index_body.html file and use this in place of your top_five_body.html file

Code: Select all

<div class="forabg">
   <div class="inner"><span class="corners-top"><span></span></span>
      <table class="table1" cellspacing="1" id="top_five">
      <thead>
      <tr>
         <th style="width: 40%;">{L_NEWEST_TOPICS}</th>
         <th style="width: 15%;">{L_TOP_FIVE_ACTIVE}</th>
         <th style="width: 25%;">{L_TOP_FIVE_NEWEST}</th>
         <th style="width: 20%;">{L_TOP_FLAG_TITLE}</th>
      </tr>
      </thead>
      <tbody>
         <tr class="bg2">
               <td valign="top"><!-- BEGIN top_five_topic --><!-- IF top_five_topic.NO_TOPIC_TITLE-->{top_five_topic.NO_TOPIC_TITLE}<!-- ELSE --><a href="{top_five_topic.U_TOPIC}">{top_five_topic.TOPIC_TITLE}</a><br />&nbsp;&nbsp;{top_five_topic.USERNAME_FULL}&nbsp;&nbsp;{top_five_topic.LAST_TOPIC_TIME}<br /><!-- ENDIF --><!-- END top_five_topic --></td>
               <td valign="top"><!-- BEGIN top_five_active -->{top_five_active.USERNAME_FULL}<br />&nbsp;&nbsp;{L_POSTS}: <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a><br /><!-- END top_five_active --></td>
               <td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br />&nbsp;&nbsp;{L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td>
               <td valign="top"><!-- BEGIN fnum -->{fnum.FLAG} {fnum.L_FLAG_USERS}<br /><!-- END fnum --></td>
            </tr>
      </tbody>
      </table>

   <span class="corners-bottom"><span></span></span></div>
</div>


which is for a prosilver based style and refresh the style. Use similar logic as given above if you are using a subsilver2 style.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22072
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: National Flags in top five

by EliteNODDY » Tue Jan 25, 2011 6:56 pm

thank you mate ill try it out
User avatar
EliteNODDY
Registered User
Posts: 80
Joined: Mon Aug 23, 2010 4:59 pm
Location: uk

Re: National Flags in top five

by EliteNODDY » Tue Jan 25, 2011 7:16 pm

no flag images are showing up here is my top five body

Code: Select all

<div class="forabg">
   <div class="inner"><span class="corners-top"><span></span></span>
      <table class="table1" cellspacing="1" id="top_five">
      <thead>
      <tr>
         <th style="width: 40%;">{L_NEWEST_TOPICS}</th>
         <th style="width: 15%;">{L_TOP_FIVE_ACTIVE}</th>
         <th style="width: 25%;">{L_TOP_FIVE_NEWEST}</th>
         <th style="width: 15%;">{L_TOP_THANKED}</th>
         <th style="width: 20%;">{L_TOP_FLAG_TITLE}</th>
      </tr>
      </thead>
      <tbody>
         <tr class="bg2">
               <td valign="top"><!-- BEGIN top_five_topic --><!-- IF top_five_topic.NO_TOPIC_TITLE-->{top_five_topic.NO_TOPIC_TITLE}<!-- ELSE --><a href="{top_five_topic.U_TOPIC}">{top_five_topic.TOPIC_TITLE}</a><br />&nbsp;&nbsp;{top_five_topic.USERNAME_FULL}&nbsp;&nbsp;{top_five_topic.LAST_TOPIC_TIME}<br /><!-- ENDIF --><!-- END top_five_topic --></td>
               <td valign="top"><!-- BEGIN top_five_active -->{top_five_active.USERNAME_FULL}<br />&nbsp;&nbsp;{L_POSTS}: <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a><br /><!-- END top_five_active --></td>
               <td valign="top"><!-- BEGIN top_five_newest -->{top_five_newest.USERNAME_FULL}<br />&nbsp;&nbsp;{L_JOINED}: {top_five_newest.REG_DATE}<br /><!-- END top_five_newest --></td><td valign="top"><!-- BEGIN top_five_thanked -->{top_five_thanked.USERNAME_FULL}<br /> {top_five_thanked.THANKS}<br /><!-- END top_five_thanked -->
               <td valign="top"><!-- BEGIN fnum -->{fnum.FLAG} {fnum.L_FLAG_USERS}<br /><!-- END fnum --></td>

            </tr>
      </tbody>
      </table>

   <span class="corners-bottom"><span></span></span></div>
</div>
as you may see i have added top five thanks to it maybe something i missed ???
User avatar
EliteNODDY
Registered User
Posts: 80
Joined: Mon Aug 23, 2010 4:59 pm
Location: uk

Re: National Flags in top five

by RMcGirr83 » Tue Jan 25, 2011 7:23 pm

I assume you refreshed the template and you are over 100% width

Code: Select all

         <th style="width: 40%;">{L_NEWEST_TOPICS}</th>
         <th style="width: 15%;">{L_TOP_FIVE_ACTIVE}</th>
         <th style="width: 25%;">{L_TOP_FIVE_NEWEST}</th>
         <th style="width: 15%;">{L_TOP_THANKED}</th>
         <th style="width: 20%;">{L_TOP_FLAG_TITLE}</th>


I also assume you left the edit to index.php in for the national flags mod?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22072
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: National Flags in top five

by EliteNODDY » Tue Jan 25, 2011 7:25 pm

yes i did mate a good few times. o that mite be it the 100% width lol
User avatar
EliteNODDY
Registered User
Posts: 80
Joined: Mon Aug 23, 2010 4:59 pm
Location: uk

Re: National Flags in top five

by EliteNODDY » Tue Jan 25, 2011 7:34 pm

Code: Select all

th style="width: 35%;">{L_NEWEST_TOPICS}</th>
         <th style="width: 15%;">{L_TOP_FIVE_ACTIVE}</th>
         <th style="width: 15%;">{L_TOP_FIVE_NEWEST}</th>
         <th style="width: 15%;">{L_TOP_THANKED}</th>
         <th style="width: 20%;">{L_TOP_FLAG_TITLE}</th>


i have sorted the width and refreshed the template again but still nothing showing it show up when i put the code in the index.php it worked find am losed mate
User avatar
EliteNODDY
Registered User
Posts: 80
Joined: Mon Aug 23, 2010 4:59 pm
Location: uk

Re: National Flags in top five

by RMcGirr83 » Tue Jan 25, 2011 7:45 pm

I didn't say to remove the code from index.php I said to remove the code from index_body.html. Ensure the code for index.php is still in index.php.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22072
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: National Flags in top five

by EliteNODDY » Tue Jan 25, 2011 7:54 pm

lol puting the code back has made it all show thank you mate my bad
User avatar
EliteNODDY
Registered User
Posts: 80
Joined: Mon Aug 23, 2010 4:59 pm
Location: uk