collapse expand for top stats plz help *

Download and support for PhpBB3 Top Stats Mod
Locked
goodboy1
BBCoder II
BBCoder II
Posts: 7
Joined: 27 Mar 2012, 18:08
BBCodes: 4

collapse expand for top stats plz help *

Post by goodboy1 »

hello this is my second topic for tp stat plz help ty

i curently have thi mode expand categories 1.4.1 but its just work for categories

i want make it work for top stat as well bros and admins can u tell me witch files of to stats 1.0.8 must edit to make work with this mode

this is file remove space . com

phpbb. com/customise/db/mod/expand_categories/

for litle info for show i edit template/forumlist_body.html add some code

so witch file of top stat i need to edit add this mode to ecth table for top stats make work top stats with this mode ty


and to say better how to add collapse and expand to any table i want for example like this site i have mchat as well how to add to any table like mchat as well like here in first page forum. to collapse
plz Guide me to do this
User avatar
Theriddler
BBCoder II
BBCoder II
Posts: 18
Joined: 27 Oct 2011, 01:24
BBCodes: 4
Location: The Netherlands

collapse expand for top stats plz help *

Post by Theriddler »

that's a very old mod.

i think you should undo all edit from that mod and do this instead

http://www.christianbullock.com/2011/ph ... th-cookies

then it's easier to get what you asked for.

then for the recent_active_body.html use this

Code: Select all

<!-- IF S_TS_JSSCROLL and TS_JSSCROLL_NAVIGATION and not S_TS_TICKER -->
<div style="text-align:right; padding-right:10px;"><a href="#" title="{L_PREVIOUS_SCROLL}" id="ticker-previous"><img src="{ROOT_PATH}images/player_rew.png" width="16" height="16" alt="{L_PREVIOUS_SCROLL}" /></a> <a href="#" title="{L_NEXT_SCROLL}" id="ticker-next"><img src="{ROOT_PATH}images/player_fwd.png" width="16" height="16" alt="{L_NEXT_SCROLL}" /></a> <a href="#" title="{L_STOP_SCROLL}" id="stop"><img src="{ROOT_PATH}images/player_pause.png" width="16" height="16" alt="{L_STOP_SCROLL}" /></a> <a href="#" title="{L_START_SCROLL}" id="start"><img src="{ROOT_PATH}images/player_play.png" width="16" height="16" alt="{L_START_SCROLL}" /></a></div>
<!-- ENDIF -->
<div class="forumlist">
<div class="forabg">
	<div class="inner"><span class="corners-top"><span></span></span>
	<ul class="topiclist">
		<li class="header widescreen-optimised">
			<dl class="icon">
				<dt><span class="wrap-content">{TSRAT_NUMBER} {L_RECENT_ACTIVE}</span></dt>
				<dd class="topics">{L_REPLIES}</dd>
				<dd class="posts">{L_VIEWS}</dd>
				<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
			</dl>
		</li>
	</ul>
	<div class="trigger active"></div>
      <div class="collapsethis">
	<ul <!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->id="vertical-ticker" <!-- ELSEIF S_TS_TICKER and not S_TS_JSSCROLL -->id="news" <!-- ENDIF -->class="topiclist forums">
		<!-- IF S_TS_TICKER and not S_TS_JSSCROLL -->
		<li class="row">
		<!-- BEGIN recent_active -->
		<dl class="icon widescreen-optimised" style="background-image: url(<!-- IF recent_active.FORUM_IMAGE -->{ROOT_PATH}{recent_active.FORUM_IMAGE}<!-- ELSE -->{ROOT_PATH}images/starimg.png<!-- ENDIF -->); background-repeat: no-repeat;">
		<dt>
		   <span class="wrap-content"><a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
		   {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}</span>
		</dt>
			<dd class="topics">{recent_active.TOPIC_REPLIES}</dd>
			<dd class="posts">{recent_active.TOPIC_VIEWS}</dd>
			<dd class="lastpost"><span>
				{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
			</dd>
		</dl>
		<!-- END recent_active -->
		</li>
		<!-- ELSE -->
		<!-- BEGIN recent_active -->
		<li class="row">
		<dl class="icon widescreen-optimised" style="background-image: url(<!-- IF recent_active.FORUM_IMAGE -->{ROOT_PATH}{recent_active.FORUM_IMAGE}<!-- ELSE -->{ROOT_PATH}images/starimg.png<!-- ENDIF -->); background-repeat: no-repeat;">
			<dt>
				<span class="wrap-content"><a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
				{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}</span>
			</dt>
			<dd class="topics">{recent_active.TOPIC_REPLIES}</dd>
			<dd class="posts">{recent_active.TOPIC_VIEWS}</dd>
			<dd class="lastpost"><span>
				{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
			</dd>
		</dl>
		</li>
		<!-- END recent_active -->
		<!-- ENDIF -->
	</ul>
	</div>
	<span class="corners-bottom"><span></span></span></div>
  </div>
  </div>
and then use this top_stats_body.html

Code: Select all

<!-- IF S_TSMVT_ENABLE or S_TSMRT_ENABLE -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<!-- IF S_TSMVT_ENABLE -->
<td valign="top"<!-- IF S_TSMRT_ENABLE --> style="padding-right:2px; width:50%"<!-- ENDIF -->>
<div class="forumlist">
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{TSMVT_NUMBER} {L_MOST_VIEWED}</dt>
				</dl>
			</li>
		</ul>
		<div class="trigger active"></div>
      <div class="collapsethis">
		<ul class="topiclist forums">
			<!-- BEGIN most_viewed -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold;"><a href="{most_viewed.U_FIRST_TOPIC}">{most_viewed.TOPIC_TITLE}</a></span><span style="float:right; font-size:1.1em;">{L_VIEWS}: {most_viewed.TOPIC_VIEWS}</span>
					<br class="clear" />
					<span>{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{most_viewed.TOPIC_FIRST_POSTER_COLOUR};" href="{most_viewed.USERNAME_FIRST}">{most_viewed.TOPIC_FIRST_POSTER_NAME}</a> {L_POSTED_ON_DATE} {most_viewed.TOPIC_TIME}</span>
				</dt>
			</dl>
			</li>
			<!-- END most_viewed -->
		</ul>
		</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	</div>
</td>
<!-- ENDIF -->
<!-- IF S_TSMRT_ENABLE -->
<td valign="top"<!-- IF S_TSMVT_ENABLE --> style="padding-left:2px; width:50%"<!-- ENDIF -->>
<div class="forumlist">
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{TSMRT_NUMBER} {L_MOST_REPLIED}</dt>
				</dl>
			</li>
		</ul>
<div class="trigger active"></div>
      <div class="collapsethis">
		<ul class="topiclist forums">
			<!-- BEGIN most_replied -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold;"><a href="{most_replied.U_FIRST_TOPIC}">{most_replied.TOPIC_TITLE}</a></span><span style="float:right; font-size:1.1em;">{L_REPLIES}: {most_replied.TOPIC_REPLIES}</span>
					<br class="clear" />
					<span>{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{most_replied.TOPIC_FIRST_POSTER_COLOUR};" href="{most_replied.USERNAME_FIRST}">{most_replied.TOPIC_FIRST_POSTER_NAME}</a> {L_POSTED_ON_DATE} {most_replied.TOPIC_TIME}</span>
				</dt>
			</dl>
			</li>
			<!-- END most_replied -->
		</ul>
		</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	</div>
</td>
<!-- ENDIF -->
</tr>
</table>
<!-- ENDIF -->

<!-- IF S_TSMAU_ENABLE or S_TSMAF_ENABLE -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<!-- IF S_TSMAU_ENABLE -->
<td valign="top"<!-- IF S_TSMAF_ENABLE --> style="padding-right:2px; width:50%"<!-- ENDIF -->>
<div class="forumlist">
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{TSMAU_NUMBER} {L_MOST_ACTIVE_USERS}</dt>
				</dl>
			</li>
		</ul>
<div class="trigger active"></div>
      <div class="collapsethis">
		<ul class="topiclist forums">
			<!-- BEGIN most_active_users -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold;"><a style="font-weight:bold; color: #{most_active_users.USER_COLOUR};" href="{most_active_users.USER_ID}">{most_active_users.USERNAME}</a></span>
					<span style="float:right; font-size:1.1em;">{L_POSTS}: <a href="{most_active_users.USER_POST_SEARCH}">{most_active_users.USER_POSTS}</a></span>
				</dt>
			</dl>
			</li>
			<!-- END most_active_users -->
		</ul>
		</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	</div>
</td>
<!-- ENDIF -->
<!-- IF S_TSMAF_ENABLE -->
<td valign="top"<!-- IF S_TSMAU_ENABLE --> style="padding-left:2px; width:50%"<!-- ENDIF -->>
<div class="forumlist">
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{TSMAF_NUMBER} {L_MOST_ACTIVE_FORUMS}</dt>
				</dl>
			</li>
		</ul>
<div class="trigger active"></div>
      <div class="collapsethis">
		<ul class="topiclist forums">
			<!-- BEGIN most_active_forums -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold;"><a style="font-weight:bold;" href="{most_active_forums.FORUM_URL}">{most_active_forums.FORUM_NAME}</a></span>
					<span style="float:right; font-size:1.1em;">{L_POSTS}: {most_active_forums.FORUM_POSTS}</span>
				</dt>
			</dl>
			</li>
			<!-- END most_active_forums -->
		</ul>
		</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	</div>
</td>
<!-- ENDIF -->
</tr>
</table>
<!-- ENDIF -->

<!-- IF S_TSLVB_ENABLE or S_TSLRU_ENABLE -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<!-- IF S_TSLVB_ENABLE -->
<td valign="top"<!-- IF S_TSLVB_ENABLE --> style="padding-right:2px; width:50%"<!-- ENDIF -->>
<div class="forumlist">
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{TSLVB_NUMBER} {L_LAST_VISITED_BOTS}</dt>
				</dl>
			</li>
		</ul>
		<div class="trigger active"></div>
      <div class="collapsethis">
		<ul class="topiclist forums">
			<!-- BEGIN last_visited_bots -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold; color: #{last_visited_bots.USER_COLOUR};">{last_visited_bots.USERNAME}</span>
					<span style="float:right; font-size:1.1em;">{last_visited_bots.USER_LAST_VISIT}</span>
				</dt>
			</dl>
			</li>
			<!-- END last_visited_bots -->
		</ul>
		</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	</div>
</td>
<!-- ENDIF -->
<!-- IF S_TSLRU_ENABLE -->
<td valign="top"<!-- IF S_TSLR_ENABLE --> style="padding-left:2px; width:50%"<!-- ENDIF -->>
<div class="forumlist">
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt style="width:98%;">{TSLRU_NUMBER} {L_LAST_REGISTERED_USERS}</dt>
				</dl>
			</li>
		</ul>
		<div class="trigger active"></div>
      <div class="collapsethis">
		<ul class="topiclist forums">
			<!-- BEGIN last_registered_user -->
			<li class="row">
			<dl>
				<dt style="width:98%;">
					<span style="float:left; font-size:1.1em; font-weight:bold;"><a style="font-weight:bold; color:#{last_registered_user.USER_COLOUR};" href="{last_registered_user.USER_URL}">{last_registered_user.USERNAME}</a></span>
					<span style="float:right; font-size:1.1em;">{last_registered_user.USER_REGISTERED}</span>
				</dt>
			</dl>
			</li>
			<!-- END last_registered_user -->
		</ul>
		</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	</div>
</td>
<!-- ENDIF -->
</tr>
</table>
<!-- ENDIF -->
goodboy1
BBCoder II
BBCoder II
Posts: 7
Joined: 27 Mar 2012, 18:08
BBCodes: 4

collapse expand for top stats plz help *

Post by goodboy1 »

bro as i use suprnova style this is what style maker sed in comment
Ade
7.8.2011

Hi Christian,
Great great mod, but can you add them to your Absolution and Supernova styles as default ? so we can download and install without going through all this coding ?
That would be great :D
Christian
7.12.2011

@Ade: That is the plan for Absolution, the code conflicts with the sortable categories in Supernova.
and bro im sure sombody know about coding like admin look at codes in expand categories 1.4.1 can tell me what add in recent_active_body.html recent_active_body.html to make it work plz admins check
User avatar
jabhi
BBCoder II
BBCoder II
Posts: 69
Joined: 16 Mar 2012, 09:13
BBCodes: 3
Favourite BBCode: pdf
Favourite MOD: pretty photo

collapse expand for top stats plz help *

Post by jabhi »

Thanks Theriddler for the code...
Go phpBB go... Respected : Developers, Supporters.
Locked