Page 1 of 1

[Snippet] Add (clickable) banned users, post and topic stats

Posted: 23 Nov 2011, 20:37
by doktornotor
Clickable Banned Users:

1/ Install Welcome on Index mod (duh!)
2/ Install Ban List Mod and enable it.
3/ Add it!

Open: index_body.html

Find:

Code: Select all

{TOTAL_POSTS} &bull; {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
Inline Find:

Code: Select all

{TOTAL_USERS}
Inline Add After:

Code: Select all

<!-- IF TOTAL_BANNED_USERS --> &bull; {L_BANNED_USERS} <a href="{U_BANLIST}">{TOTAL_BANNED_USERS}</a><!-- ENDIF -->
Clickable Post Stats:

1/ Install Welcome on Index mod (duh!)
2/ Install Post Stats Page
3/ Add it!

Open: index_body.html

Find:

Code: Select all

{TOTAL_POSTS} &bull; {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
Inline Find:

Code: Select all

{TOTAL_POSTS}
Inline Add Before:

Code: Select all

<a href="{U_POSTSTATSPAGE}">
Inline Add After:

Code: Select all

</a>
Clickable Topic Stats:

1/ Install Welcome on Index mod (duh!)
2/ Install Topic Stats Page
3/ Add it!

Open: index_body.html

Find:

Code: Select all

{TOTAL_POSTS} &bull; {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
Inline Find:

Code: Select all

{TOTAL_TOPICS}
Inline Add Before:

Code: Select all

<a href="{U_TOPICSTATSPAGE}">
Inline Add After:

Code: Select all

</a>
Clickable Total Members:

1/ Install Welcome on Index mod (duh!)
2/ Add it!

Open: index_body.html

Find:

Code: Select all

{TOTAL_POSTS} &bull; {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
Inline Find:

Code: Select all

{TOTAL_USERS}
Inline Add Before:

Code: Select all

<a href="{U_MEMBERLIST}">
Inline Add After:

Code: Select all

</a>
Enjoy. :D

[Snippet] Add banned users

Posted: 23 Nov 2011, 20:51
by Terr0r
This state in the install.xml from the MOD Ban list MOD

So what is the difference what state in the install.xml from Ban list MOD and your edits ?

Greets Terr0r

Re: [Snippet] Add (clickable) banned users, post and topic s

Posted: 23 Nov 2011, 20:59
by doktornotor
Terr0r wrote: So what is the difference what state in the install.xml from Ban list MOD and your edits ?

Greets Terr0r
Eh? This is for Welcome on Index mod. The edits in Ban list MOD are for vanilla index_body.html. (And frankly those edits are so horribly generic that they will match whatever happens with {NEWEST_USER} there, so if you install Welcome on Index first and that mod after, you will get this added to Welcome on Index and not to the statistics at the bottom of the page where it is supposed to be; <find><![CDATA[{NEWEST_USER}]]></find> is way to generic if you ask me.

Edit: Post and topic stats from here added to first post.