Top Stat issue & misc questions

Download and support for PhpBB3 Top Stats Mod
User avatar
toneless
BBCoder II
BBCoder II
Posts: 10
Joined: 27 Nov 2012, 13:04
BBCodes: 0
Location: Athens, Greece
Contact:

Top Stat issue & misc questions

Post by toneless »

No luck either on this.

I can only find the second code.

Stoker wrote:Open includes/functions_top_stats.php
Find:

Code: Select all

if (!empty($config['tsrat_enable']) && sizeof($flist))
Replace with:

Code: Select all

if (!empty($config['tsrat_enable']))
Find:

Code: Select all

WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND t.topic_moved_id = 0
Replace with:

Code: Select all

WHERE  t.topic_moved_id = 0 AND t.topic_approved = 1
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Top Stat issue & misc questions

Post by Stoker »

toneless wrote:
3. insert the code AFTER <!-- INCLUDE forumlist_body.html --> instead og before.
I'm not sure what you mean here.
I move this code to the bottom of the index_body.html and it only alters the position of the stats.

I always empty the cache and refresh the template. The topics on recent mod are always marked as they've been read while are new.
Okay.
Open your index_body.html
Find and delete:

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
Find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
After add:

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
Board rules! No PM support
User avatar
toneless
BBCoder II
BBCoder II
Posts: 10
Joined: 27 Nov 2012, 13:04
BBCodes: 0
Location: Athens, Greece
Contact:

Top Stat issue & misc questions

Post by toneless »

Now works fine and I've put it just under the stats. Many thanks.

Is it possible to also check two more things for me?

a) how hidden topics can be shown on recent topics so guests can see them even though they can't read them.
b) buttons are always marked as read and do not unveil a new topic.
User avatar
toneless
BBCoder II
BBCoder II
Posts: 10
Joined: 27 Nov 2012, 13:04
BBCodes: 0
Location: Athens, Greece
Contact:

Top Stat issue & misc questions

Post by toneless »

Nevermind, I've just read that there is not an option for new/old topics icon.
I didn't knew that hence I don't think it suits my board and I'm going to use another mod.

Thanks for you time.
User avatar
toneless
BBCoder II
BBCoder II
Posts: 10
Joined: 27 Nov 2012, 13:04
BBCodes: 0
Location: Athens, Greece
Contact:

Top Stat issue & misc questions

Post by toneless »

Can anyone integrate the code for the Cerulian style block to the code of this mod, please?
I know that I'm off topic but I've lost my mind after so many hours. :evil:

Code: Select all

<!-- IF RECENT_TOPICS_PAGINATION -->
<div class="topic-actions">
	<div class="pagination">
		{RECENT_TOPICS_PAGE_NUMBER} &bull; <span>{RECENT_TOPICS_PAGINATION}</span>
	</div>
</div>
<!-- ENDIF -->
<!-- BEGIN recent_topics -->
	<!-- IF not recent_topics.S_TOPIC_TYPE_SWITCH and not recent_topics.S_FIRST_ROW -->
		</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<!-- IF recent_topics.S_FIRST_ROW or not recent_topics.S_TOPIC_TYPE_SWITCH -->
		<div class="forumbg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
				<dt>{L_RECENT_TOPICS}</dt>
					<dd class="posts">{L_REPLIES}</dd>
					<dd class="views">{L_VIEWS}</dd>
					<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
				</dl>
			</li>
		</ul>
		<ul class="topiclist topics">
	<!-- ENDIF -->

		<li class="row<!-- IF recent_topics.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF -->">
			<dl class="icon" style="background-image: url({recent_topics.TOPIC_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
				<dt style="<!-- IF recent_topics.TOPIC_ICON_IMG -->background-image: url({T_ICONS_PATH}{recent_topics.TOPIC_ICON_IMG}); background-repeat: no-repeat;<!-- ENDIF -->" title="{recent_topics.TOPIC_FOLDER_IMG_ALT}"><!-- IF recent_topics.S_UNREAD_TOPIC --><a href="{recent_topics.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF --><a href="{recent_topics.U_VIEW_TOPIC}" class="topictitle">{recent_topics.TOPIC_TITLE}</a><!-- IF U_VIEW_UNREAD_POST and not S_IS_BOT --> &bull; <a href="{U_VIEW_UNREAD_POST}">{L_VIEW_UNREAD_POST}</a> &bull; <!-- ENDIF -->
					<!-- IF recent_topics.S_TOPIC_UNAPPROVED or recent_topics.S_POSTS_UNAPPROVED --><a href="{recent_topics.U_MCP_QUEUE}">{recent_topics.UNAPPROVED_IMG}</a> <!-- ENDIF -->
					<!-- IF recent_topics.S_TOPIC_REPORTED --><a href="{recent_topics.U_MCP_REPORT}">{REPORTED_IMG}</a><!-- ENDIF --><br />
					<!-- IF recent_topics.PAGINATION --><strong class="pagination"><span>{recent_topics.PAGINATION}</span></strong><!-- ENDIF -->
					<!-- IF recent_topics.ATTACH_ICON_IMG -->{recent_topics.ATTACH_ICON_IMG} <!-- ENDIF -->{L_POST_BY_AUTHOR} {recent_topics.TOPIC_AUTHOR_FULL} &raquo; {recent_topics.FIRST_POST_TIME}
					<!-- IF recent_topics.U_VIEW_FORUM and recent_topics.FORUM_NAME --><br />{L_IN} <a href="{recent_topics.U_VIEW_FORUM}" style="font-weight: bold;">{recent_topics.FORUM_NAME}</a><!-- ENDIF -->
				</dt>
				<dd class="posts">{recent_topics.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
				<dd class="views">{recent_topics.VIEWS} <dfn>{L_VIEWS}</dfn></dd>
				<dd class="lastpost"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {recent_topics.LAST_POST_AUTHOR_FULL}
					<a href="{recent_topics.U_LAST_POST}">{LAST_POST_IMG}</a> <br />{recent_topics.LAST_POST_TIME}</span>
				</dd>
			</dl>
		</li>

	<!-- IF recent_topics.S_LAST_ROW -->
			</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

<!-- BEGINELSE -->
	<div class="panel">
		<div class="inner"><span class="corners-top"><span></span></span>
		<strong>{L_NO_TOPICS}</strong>
		<span class="corners-bottom"><span></span></span></div>
	</div>
<!-- END recent_topics -->
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Top Stat issue & misc questions

Post by Stoker »

Board rules! No PM support
User avatar
Martin_K
BBCoder III
BBCoder III
Posts: 121
Joined: 02 Sep 2011, 11:13
BBCodes: 10
Favourite BBCode: textarea
Favourite MOD: Newsletter Add on
Location: London, UK
Contact:

Top Stat issue & misc questions

Post by Martin_K »

toneless wrote: 4) Also, if it's possible, I want guests to see all the topic subjects in the recent topics even though they do not have permission on some of them.
Same here on this point only, topics from certain forums only (not the paying Members only topics),that the Registered group can currently see, but with posters names removed to be viewable by guests.

And also the possibility of taking this post feed to another site (I know this has been discussed elsewhere on this site).
Locked