Top Five

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: top_five

Post by usenet2you »

Ow, I have found it.. ;)

Replace:

Code: Select all

		'ORDER_BY'	=> 'post_time DESC',
With:

Code: Select all

		'ORDER_BY'	=> 'topic_time DESC',
It works for me. ;)
User avatar
cicalone
Registered User
Posts: 25
Joined: Fri May 16, 2008 5:23 am

Text color

Post by cicalone »

Is it possible to make "In:" in the first column appears with the same color of the other texts in the mod?
I'll try to explain better: in the LAST TOPICS column, in advance of the title of the topic is placed the text "In:" that in my forum appears in a blu color, but the other texts included in the mod (like "by", "joined" and so on) appear in a grey color. May I make them with the same color?
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21133
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

Can you either post up a link to your forum or PM it to me.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21133
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Text color

Post by RMcGirr83 »

cicalone wrote:Is it possible to make "In:" in the first column appears with the same color of the other texts in the mod?
I'll try to explain better: in the LAST TOPICS column, in advance of the title of the topic is placed the text "In:" that in my forum appears in a blu color, but the other texts included in the mod (like "by", "joined" and so on) appear in a grey color. May I make them with the same color?
You can try this

OPEN

includes/top_five.php

FIND

Code: Select all

      		'TOPIC_TITLE' 	=> $user->lang['IN'] . $topic_title));
REPLACE WITH

Code: Select all

      		'TOPIC_TITLE' 	=> $topic_title));
OPEN

styles/xxx/template/top_five_body.html

FIND

Code: Select all

<a href="{hot_topic_row.U_TOPIC}">{hot_topic_row.TOPIC_TITLE}</a>
IN LINE, ADD BEFORE

Code: Select all

{L_IN}
Refresh the template and that should do it.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
Luminosity
Registered User
Posts: 89
Joined: Thu Apr 09, 2009 5:57 pm
Location: Suffolk
Name: Howard Page
Contact:

Re: top_five

Post by Luminosity »

I've got problem, not sure if i done something silly wrong or missed something out but, Did all the file edits, uploaded them, Refreshed the Cache. It displays the box perfectly but doesn't display any New Topics, Most Active Users or Top users? Any suggestions why?

Here's what looks like on the board.
Image


Thanks
Luminous
Man's proper stature is not one of mediocrity, failure, frustration, or defeat, but one of achievement, strength, and nobility. In short, man can and ought to be a hero. - Mike Menzter
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21133
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

Check your edits to index.php...they aren't correct.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
cicalone
Registered User
Posts: 25
Joined: Fri May 16, 2008 5:23 am

Re: Text color

Post by cicalone »

RMcGirr83 wrote:You can try this

OPEN

includes/top_five.php

FIND

Code: Select all

      		'TOPIC_TITLE' 	=> $user->lang['IN'] . $topic_title));
REPLACE WITH

Code: Select all

      		'TOPIC_TITLE' 	=> $topic_title));
OPEN

styles/xxx/template/top_five_body.html

FIND

Code: Select all

<a href="{hot_topic_row.U_TOPIC}">{hot_topic_row.TOPIC_TITLE}</a>
IN LINE, ADD BEFORE

Code: Select all

{L_IN}
Refresh the template and that should do it.
I tried putting

Code: Select all

{L_IN} <a href="{hot_topic_row.U_TOPIC}">{hot_topic_row.TOPIC_TITLE}</a>
but it didn't work!
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21133
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

Refresh the template after making those changes.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
cicalone
Registered User
Posts: 25
Joined: Fri May 16, 2008 5:23 am

Re: top_five

Post by cicalone »

Done! But still the same...
(I tried in local mode)
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21133
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

Post up the two files with the edits per my post using the bbcode code tags.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
cicalone
Registered User
Posts: 25
Joined: Fri May 16, 2008 5:23 am

Re: top_five

Post by cicalone »

RMcGirr83 wrote:Post up the two files with the edits per my post using the bbcode code tags.
First of all, I would greet RMcGirr83 for his great and quickly assistance, that helped me to solve immediately the problem!

The first problem was to remove the highlighted text "In" before the topic title. Changes suggested by RMcGirr83 allowed me to make that:
OPEN
includes/top_five.php

FIND

Code: Select all

'TOPIC_TITLE'    => $user->lang['IN'] . $topic_title));
REPLACE WITH

Code: Select all

'TOPIC_TITLE'    => $topic_title));
OPEN
styles/xxx/template/top_five_body.html

FIND

Code: Select all

<a href="{hot_topic_row.U_TOPIC}">{hot_topic_row.TOPIC_TITLE}</a>
IN LINE, ADD BEFORE

Code: Select all

{L_IN}
Refresh the template and that should do it.
It was right. But to work it should physically removing all the files except for index.php and .htaccess from the cache directory (like RMcGirr83 suggested me).

The second problem was to put the forum title before the topic title, and put it enter []. To make that RMcGirr83 sent me this change:

Code: Select all

'TOPIC_TITLE'   => '[' . $row['forum_name'] . '] ' . $topic_title));
and it works fine!

Thanks a lot! Very appreciated assistance.
User avatar
Luminosity
Registered User
Posts: 89
Joined: Thu Apr 09, 2009 5:57 pm
Location: Suffolk
Name: Howard Page
Contact:

Re: top_five

Post by Luminosity »

RMcGirr83 wrote:Check your edits to index.php...they aren't correct.
Thanks RMcGirr83 that was the problems, Works perfectly now! :)
Man's proper stature is not one of mediocrity, failure, frustration, or defeat, but one of achievement, strength, and nobility. In short, man can and ought to be a hero. - Mike Menzter
Nesa
Registered User
Posts: 33
Joined: Fri Feb 15, 2008 5:34 pm

Re: top_five

Post by Nesa »

Works perfect, thank you 8-)

board www.topola-online.com
figo
Registered User
Posts: 129
Joined: Tue Sep 18, 2007 4:57 am

Re: top_five

Post by figo »

This message is to the author:

is it possible to incorporate your other mod "Topic Text in Mouse Over " into this mod.

I want to hover preview the last post on that list.

Thank you very much for some great mods!
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21133
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: top_five

Post by RMcGirr83 »

figo wrote:This message is to the author:

is it possible to incorporate your other mod "Topic Text in Mouse Over " into this mod.

I want to hover preview the last post on that list.
You can try this

OPEN

includes/top_five.php

FIND

Code: Select all

post_time,
IN LINE, AFTER ADD

Code: Select all

 p.post_text,
FIND

Code: Select all

    while( $row = $db->sql_fetchrow($result) )
    {
AFTER, ADD

Code: Select all

		//BEGIN Topic Text Hover Mod
		if(!empty($row['post_text']))
		{
			// strip all bbcode
			if (!function_exists('bbcode_strip'))
			{
				include($phpbb_root_path . 'includes/topic_text_hover.' . $phpEx);
			}
			$text_hover = censor_text(bbcode_strip($row['post_text']));
			if (utf8_strlen($text_hover) >= $config['hover_char_limit'])
			{
				$text_hover = (utf8_strlen($text_hover) > $config['hover_char_limit'] + 3) ? utf8_substr($text_hover, 0, $config['hover_char_limit']) . '...' : $text_hover;
			}
		}
		// END Topic Text Hover MOD   
FIND

Code: Select all

'U_TOPIC'       => $view_topic_url,
AFTER, AD

Code: Select all

			'POST_TEXT'		=> (isset($text_hover)) ? $text_hover : '',
OPEN

styles/xxx/template/top_five.html

FIND

Code: Select all

<!-- BEGIN hot_topic_row --><a href="{hot_topic_row.U_TOPIC}"
IN LINE, AFTER ADD

Code: Select all

 <!-- IF hot_topic_row.POST_TEXT -->title="{hot_topic_row.POST_TEXT}"<!-- ENDIF -->
refresh the template and that should do it.
Thank you very much for some great mods!
Thank you for your very kind words!! :D
Last edited by RMcGirr83 on Sun May 24, 2009 8:10 pm, edited 1 time in total.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
Locked

Return to “[3.0.x] MOD Database Releases”