Page 1 of 1
Top stats on top
Posted: 10 Feb 2013, 18:06
by Nully
Hi,
I have top stats at the bottom of index page.
How can I put it on top, after the mod Welcome?
Top stats on top
Posted: 10 Feb 2013, 20:41
by Stoker
Sure, just take a look at the code in index_body.html and move the code per our wish.
Top stats on top
Posted: 10 Feb 2013, 21:58
by Nully
I don't know where and what to move (sorry).
On index_body.html I have
Code: Select all
<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->
<!-- INCLUDE forumlist_body.html -->
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and not S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->
<!-- IF S_TSMVT_ENABLE or S_TSMRT_ENABLE or S_TSMAU_ENABLE or S_TSMAF_ENABLE or S_TSLVB_ENABLE or S_TSLRU_ENABLE -->
<!-- INCLUDE top_stats_body.html -->
<!-- ENDIF -->
Top stats on top
Posted: 10 Feb 2013, 22:02
by Stoker
You want it to appear right after the welcome mod.
Then identify the code for the welcome mod. You can do this by reading the file.
Second step is to identify the top stats code. You do this by reading the file.
Its pretty obvious (search for top_stats)
When you find it you just cut it and paste it after the code you identified.
I have faith in you.
You can do it
Top stats on top
Posted: 10 Feb 2013, 22:19
by Nully
For me it's not obvious
I'm testing locally on my computer :
Code: Select all
<span class="corners-bottom"><span></span></span></div></div>
<!-- ENDIF -->
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- IF S_TSMVT_ENABLE or S_TSMRT_ENABLE or S_TSMAU_ENABLE or S_TSMAF_ENABLE or S_TSLVB_ENABLE or S_TSLRU_ENABLE -->
<!-- INCLUDE top_stats_body.html -->
<!-- IF U_MCP --><p>[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ENDIF -->
There is a problem. All forums have disappeared !
Edit
Just moving INCLUDE forumlist_body.html, it seems ok.
Code: Select all
<!-- INCLUDE top_stats_body.html -->
<!-- ENDIF -->
<!-- INCLUDE forumlist_body.html -->
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
I'll try online tomorrow.
Top stats on top
Posted: 11 Feb 2013, 00:32
by Stoker
Let me know how it goes.
Top stats on top
Posted: 11 Feb 2013, 11:33
by Nully
Hello,
it seems to work (I say it seems, because I'm never sure)
Code: Select all
<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and not S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->
<!-- IF S_TSMVT_ENABLE or S_TSMRT_ENABLE or S_TSMAU_ENABLE or S_TSMAF_ENABLE or S_TSLVB_ENABLE or S_TSLRU_ENABLE -->
<!-- INCLUDE top_stats_body.html -->
<!-- ENDIF -->
<!-- INCLUDE forumlist_body.html -->
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
I made the test as administrator with mChat and as new user without mChat. Everybody can see Top Stats on top.
Thanks Stoker.
Top stats on top
Posted: 11 Feb 2013, 12:44
by Stoker