Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on July 09, 2008, 08:29:16 PM

Title: PostersInRecentPost
Post by: Bulakbol on July 09, 2008, 08:29:16 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1280)

Author:JohnyB   Mod Name:Posters In Recent Posts   Version:1.1
Tested:Freshly installed SMF 1.1.5 and SMF 2.0 Beta 3.1

      
Posters In Recent Posts version 1.1

Supported Themes

Note:

July 11, 2008

July 13, 2008

July 18, 2008

December 17, 2008

February 25, 2008
Title: Re: PostersInRecentPost
Post by: jossanaijr on July 09, 2008, 09:36:30 PM
Great!
Title: Re: PostersInRecentPost
Post by: Bulakbol on July 09, 2008, 10:08:59 PM
Thanks jossanaijr. Squeeze the recent posts a bit haha.
Title: Re: PostersInRecentPost
Post by: Alpay on July 10, 2008, 03:30:36 AM
Dear JohnyB   
I would like permission to translate your mod, PostersInRecentPost into Turkish. If you accept, I also want to kindly ask you to release it in the mod site, so that I won't be violating any redistribution rules via redistibuting the mod myself. Thank you in advance.

Modifications.turkish.php:
Quote$txt['recent_posters'] = 'Son İleti Gönderenler';
$txt['highest_posters'] = 'En Çok Mesaj Gönderenler';

Settings.turkish.php:
Quote$txt['recent_poster_width'] = 'Son mesajlar kısmında ki tablo ayarları';

Best Regards,
Alpay
Title: Re: PostersInRecentPost
Post by: edi67 on July 10, 2008, 09:29:09 AM
very intersting thx johnny
Title: Re: PostersInRecentPost
Post by: Bulakbol on July 11, 2008, 10:08:52 PM
Thanks for the translation Alpay. The package is now updated from version 1.0 to version 1.1.

Quote from: Alpay on July 10, 2008, 03:30:36 AM
I would like permission to translate your mod, PostersInRecentPost into Turkish. If you accept, I also want to kindly ask you to release it in the mod site, so that I won't be violating any redistribution rules via redistibuting the mod myself. Thank you in advance.

Did you mean remove the mod from the mod site? It's newly released. If you want, you can translate the mod to Turkish then send the package to me so I can upload to the mod site. There will be two packages after. One for English and one for Turkish.

You don't have to redistribute the package Alpay, just spread the word so they will come and download from here. :) Thanks for your interest.



@edi67
   Thanks for trying/using this mod.  8)
Title: Re: PostersInRecentPost
Post by: DareDevil1990 on July 12, 2008, 03:30:34 AM
hi when i was doing the manulaa installation of this mod in smf 1.1 4 i wansnt able to do i am attching the all the files u may need can u please edit them for me :)...and when i instal the mod thorugh package manger

2.  Execute Modification  ./Sources/BoardIndex.php  Test failed
3. Execute Modification ./Themes/default/BoardIndex.template.php Test failed


i get these error  8)
Title: Re: PostersInRecentPost
Post by: AlenNS on July 12, 2008, 06:11:04 AM
Modifications.serbian.php:
Quote$txt['recent_posters'] = 'Poslednji autori';
$txt['highest_posters'] = 'Najviše poruka';

Settings.serbian.php:
Quote$txt['recent_poster_width'] = 'Širina modifikacije Poslednji autori';
Title: Re: PostersInRecentPost
Post by: Alpay on July 12, 2008, 11:36:40 AM
Thank you for your translate on mods.New release a changing an simple but this is really very well.

Modifications.turkish.php:
$txt['recent_posters'] = 'Son İleti Gönderenler';
Title: Re: PostersInRecentPost
Post by: jossanaijr on July 12, 2008, 12:38:08 PM
I remove it.  For some reason Recent Post was not updating every time there was a new post or topic.  Strange because it was showing the name of the poster in today's list but not showing that post in the list.
Title: Re: PostersInRecentPost
Post by: Apllicmz on July 12, 2008, 03:41:43 PM
Nice Mod
good
work
translate portuguese and brazilian

<!-- default/languages/Modifications.portuguese.php -->
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['recent_posters'] = 'Recentes postes';
$txt['highest_posters'] = 'Melhores postes';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['recent_posters'] = 'Recentes postes';
$txt['highest_posters'] = 'Melhores postes';
]]></add>
</operation>
</file>


<file name="$languagedir/Settings.portuguese.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['recent_poster_width'] = 'Selecione largura de janela recente poste.';
]]></add>
</operation>
</file>

<file name="$languagedir/Settings.brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['recent_poster_width'] = 'Selecione largura de janela recente poste.';
]]></add>
</operation>
</file>
Title: Re: PostersInRecentPost
Post by: Bulakbol on July 13, 2008, 12:32:52 AM
@Keshav
  I edited only the files that failed test. Attached are your BoardIndex.php and BoardIndex.template.php.

@Alpay
  Thanks. I replaced the line with the correct one. T'was my mistake.

@AlenNS
  Thanks for the Serbian language translation. Package updated.

@jossanaijr
  Not sure if my code causes it to behave like that or maybe the mod wasn't properly installed.

@joomlamz
   Thanks for the Portuguese and Brazilian language translation. Package updated.

Thanks you all for the language translation and for trying/using this mod.
Title: Re: PostersInRecentPost
Post by: targetsk on July 13, 2008, 08:04:57 AM
Modifications.macedonian.php
Quote$txt['recent_posters'] = 'Последни пишувачи';
$txt['highest_posters'] = 'Најдобри пишувачи';

Settings.macedonian.php:
Quote$txt['recent_poster_width'] = 'Одбери ширина на прозорот за последни пишувачи.';
Title: Re: PostersInRecentPost
Post by: Bulakbol on July 13, 2008, 08:22:41 AM
@tergetsk
  I thank you for the Macedonian language translation but unfortunately, there's problem with my text editor. All text editor that I use doesn't support those characters. I'm sorry. I can't add it. They are displayed like this.
$txt['recent_posters'] = '???????? ????????';
$txt['highest_posters'] = '???????? ????????';

$txt['recent_poster_width'] = '?????? ?????? ?? ???????? ?? ???????? ????????.';
Title: Re: PostersInRecentPost
Post by: DareDevil1990 on July 15, 2008, 05:44:45 AM
hi i used you edited files but i stll get a error  in 
http://img154.imageshack.us/img154/6162/asdsadsaay4.jpg
the error is also coming in the top of the banner :((
2.  Execute Modification  ./Sources/BoardIndex.php  Test failed
Title: Re: PostersInRecentPost
Post by: AlenNS on July 15, 2008, 07:27:32 AM
Put it manual.
Title: Re: PostersInRecentPost
Post by: targetsk on July 15, 2008, 08:43:26 AM
Quote from: JohnyB on July 13, 2008, 08:22:41 AM
@tergetsk
  I thank you for the Macedonian language translation but unfortunately, there's problem with my text editor. All text editor that I use doesn't support those characters. I'm sorry. I can't add it. They are displayed like this.
$txt['recent_posters'] = '???????? ????????';
$txt['highest_posters'] = '???????? ????????';

$txt['recent_poster_width'] = '?????? ?????? ?? ???????? ?? ???????? ????????.';

Use notepad++ format it to utf-8 and you won't have problems.
Title: Re: PostersInRecentPost
Post by: DareDevil1990 on July 15, 2008, 09:33:24 AM
Quote from: AlenNS on July 15, 2008, 07:27:32 AM
Put it manual.

i tried to edit it manually but i got a phrase error
Title: Re: PostersInRecentPost
Post by: Bulakbol on July 18, 2008, 12:41:23 AM
@targetsk
  Thanks for the language translation. I will update the mod soon.

@keshav
  We are confused. lol The BoardIndex.php I gave you was edited already so all you have to do is backup the original copy then go ahead with the installation. Then use the BoardIndex.php I gave you after you installed the mod, not before. About the text string on top of your forum, edit default/languages/Modifications.english.php and look for the ?> tag. Move it at the very end of the file with its own line.
Title: Re: PostersInRecentPost
Post by: AlenNS on July 18, 2008, 01:03:06 AM
Can you make avatars to be same size like on topics and not to stretch?
Title: Re: PostersInRecentPost
Post by: DareDevil1990 on July 18, 2008, 11:11:47 PM
Quote from: JohnyB on July 18, 2008, 12:41:23 AM
@targetsk
  Thanks for the language translation. I will update the mod soon.

@keshav
  We are confused. lol The BoardIndex.php I gave you was edited already so all you have to do is backup the original copy then go ahead with the installation. Then use the BoardIndex.php I gave you after you installed the mod, not before. About the text string on top of your forum, edit default/languages/Modifications.english.php and look for the ?> tag. Move it at the very end of the file with its own line.

i again did what u said but still that text string is coming on the topof the banner cant u fix ...i am trying to install thos mod for past1 week can u install it for me :)
Title: Re: PostersInRecentPost
Post by: AlenNS on July 19, 2008, 05:59:56 AM
Quote from: AlenNS on July 18, 2008, 01:03:06 AM
Can you make avatars to be same size like on topics and not to stretch?
Title: Re: PostersInRecentPost
Post by: Bulakbol on July 19, 2008, 07:12:37 PM
@ keshav
   I/m sorry, I am too busy atm.

@AlenNS
   There's no point adding avatar. Try this mod instead.
http://custom.simplemachines.org/mods/index.php?mod=1103
Title: Re: PostersInRecentPost
Post by: bfeo on August 11, 2008, 09:53:39 AM
I get an error on my     ./Sources/BoardIndex.php

I user the theme Mystic Jade.  Will it be viewable on this theme if I install it?  I noticed that you said it was supported only for the three main themes.

I'll attach the file.
Title: Re: PostersInRecentPost
Post by: PRaDiUS on August 19, 2008, 08:05:33 PM
Ok, I installed this mod and it was working perfectly for a couple of days and then all of a sudden it started messing up. Now only showing last 2 recent posters and nothing after or below that. Everything else in the forum is cut off. What gives?
Title: Re: PostersInRecentPost
Post by: Bulakbol on August 19, 2008, 08:18:55 PM
@bfeo
   I cannot find anything wrong with your BoardIndex.php. The mod is installed in there. Can you post the error that you get?

@pradius
  Did you install any mod after installing this mod? Is uninstalling it resolve your problem? Any error in the error log?
Title: Re: PostersInRecentPost
Post by: robbie93 on August 20, 2008, 10:26:33 AM
hi johny :D

i get this upon install

2.     Execute Modification     ./Sources/BoardIndex.php     Test failed
3.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed

please can you edit the failed files for me  :D

thanks man 8)
Title: Re: PostersInRecentPost
Post by: ErikGCF on August 25, 2008, 09:09:40 AM
Great script...

But how can i change the highest posters section into how many posts there where in the last 10 days??

Can anyone help me?
Title: Re: PostersInRecentPost
Post by: Bulakbol on August 25, 2008, 07:40:18 PM
@robbie93
  I apologize for the delay. Been busy. I took another look at your files and the BoardIndex.template.php is kind of hard to edit. I'll take another look.

@ErikGCF
  Which one do you want to change? The one on the left of the one on the right?
Title: Re: PostersInRecentPost
Post by: ErikGCF on August 26, 2008, 05:23:52 AM
Wow what a quick reply!!

The right one...
Title: Re: PostersInRecentPost
Post by: robbie93 on August 26, 2008, 08:59:48 PM
no worries johnyB :D

it makes no sense at all to me :D  hehe
Title: Re: PostersInRecentPost
Post by: Bulakbol on August 27, 2008, 04:47:49 AM
@robbie93
   There's an error on the "Most Recent Topic" mod that you installed that's why it took me a while to install it manually. I can't install it without fixing the error so I did it for you. Here are your files. Use them after installing this mod.
Title: Re: PostersInRecentPost
Post by: Bulakbol on August 27, 2008, 04:50:31 AM
Quote from: ErikGCF on August 26, 2008, 05:23:52 AM
Wow what a quick reply!!

The right one...

To change the "Top posters" to "Posters in xx days",  in Sources/BoardIndex.php,
Code (find) Select
$top_request = db_query("
SELECT mem.ID_MEMBER, mem.realName, mem.posts, onlineColor
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups ON {$db_prefix}membergroups.ID_GROUP = IF (mem.ID_GROUP=0, mem.ID_POST_GROUP, mem.ID_GROUP)
WHERE posts > 0
ORDER BY posts DESC
LIMIT $poster_limit", __FILE__, __LINE__);

$context['highest_posters'] = array();

while ($row = mysql_fetch_assoc($top_request))
$context['highest_posters'][] = array(
'posts' => $row['posts'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: '. $row['onlineColor']. ';">' . $row['realName'] . '</a>'
);
mysql_free_result($top_request);

// top posters of the day
$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);


Code (replace) Select
$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);
$number_of_days = $midnight - (86400 * 10);

$top_request = db_query("
SELECT mem.ID_MEMBER, mem.realName, COUNT(*) as posts, onlineColor, m.ID_BOARD
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups ON ({$db_prefix}membergroups.ID_GROUP = IF (mem.ID_GROUP=0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE m.posterTime > " . $number_of_days . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? "
AND m.ID_BOARD != $modSettings[recycle_board]" : '') . "
GROUP BY mem.ID_MEMBER
ORDER BY posts DESC
LIMIT $poster_limit", __FILE__, __LINE__);

$context['highest_posters'] = array();

while ($row = mysql_fetch_assoc($top_request))
$context['highest_posters'][] = array(
'posts' => $row['posts'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: '. $row['onlineColor']. ';">' . $row['realName'] . '</a>'
);
mysql_free_result($top_request);

// top posters of the day


Change the number 10 to number of days you want.
Quote$number_of_days = $midnight - (86400 * 10);
Title: Re: PostersInRecentPost
Post by: ErikGCF on August 29, 2008, 04:13:34 AM
It works!!!

Thank you very much ;)
Title: Re: PostersInRecentPost
Post by: 4fit? on September 02, 2008, 12:04:15 PM
Very nice mod.  However, I have several boards within my forum that are restricted to certain members/membergroups.  When posting in these boards, the post count is increased for that user on the Recent Posters list for everyone to see.  Any way of getting around this?
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 04, 2008, 09:30:33 PM
Sorry 4fit, I like to help but I honestly do not know how to do it.  :(
Title: Re: PostersInRecentPost
Post by: robbie93 on September 05, 2008, 12:04:17 AM
hi johny  :D

I changed the files over but nothing happened mate :D
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 05, 2008, 12:40:29 AM
Did you install the mod first before you uploaded the files that I attached?
Title: Re: PostersInRecentPost
Post by: robbie93 on September 05, 2008, 12:56:09 AM
yea I did  :D then i changed the files over and nothing changed in the forum :o
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 05, 2008, 09:40:12 PM
Not sure what is happening. Are there errors in the error log? Are you using the default theme?
Title: Re: PostersInRecentPost
Post by: robbie93 on September 06, 2008, 02:42:39 PM
there are no errors in error log and the theme is gothic_rose  :D
Title: Re: PostersInRecentPost
Post by: robbie93 on September 09, 2008, 06:55:59 PM
hi johny :D

just to let you know that the files worked mate ;D

I had the number of recent posts to display on board index set to 0 ::)

thats why the mod wasnt showing ...   but it is now :D   :D

thanks for editing the files for me and yet another great mod :D

yey it WORKS :D   8)
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 09, 2008, 07:05:05 PM
haha no wonder. You are welcome. Thank you too.
Title: Re: PostersInRecentPost
Post by: timned88 on September 10, 2008, 01:16:27 AM
awesome mod... i love it.
one suggestion- could you modify it slightly to include the "re:" when folks reply to existing topics?  that would be awesome.
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 11, 2008, 10:06:57 PM
Mostly does not want the Re: so I removed it. To add Re:, edit your BoardIndex.template.php and look for
<td class="middletext" valign="top"><b>&nbsp;', str_ireplace('Re: ', '', $post['link']), '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>

and replace with
<td class="middletext" valign="top"><b>', $post['link'], '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>


Edited my mistake. :) Sorry.
Title: Re: PostersInRecentPost
Post by: timned88 on September 11, 2008, 11:24:47 PM
Quote from: JohnyB on September 11, 2008, 10:06:57 PM
Mostly does not want the Re: so I removed it. To add Re:, edit your BoardIndex.template.php and look for

i think you posted the same code string twice.  can you try again?
Title: Re: PostersInRecentPost
Post by: timned88 on September 11, 2008, 11:31:12 PM
i went to a clean install of the forum and found the code:

<td class="middletext" valign="top"><b>', $post['link'], '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 11, 2008, 11:34:01 PM
Yes, that's the otiginal code. You can use that instead.
Title: Re: PostersInRecentPost
Post by: timned88 on September 11, 2008, 11:35:36 PM
sure did and it worked awesome.  just reskinned my forum...
www.themagicinpixels.com/forum

whatcha think?
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 12, 2008, 12:38:03 AM
Looking good. Congratz!
Title: Re: PostersInRecentPost
Post by: timned88 on September 12, 2008, 12:39:31 AM
thanks, johnyb...  any suggestions or ideas?
Title: Re: PostersInRecentPost
Post by: timned88 on September 15, 2008, 08:50:24 AM
johny, where would you make the change to show top 25 instead of 20?  i was looking for something like "limit 20" but didnt find it.
Title: Re: PostersInRecentPost
Post by: timned88 on September 15, 2008, 09:14:38 PM
nevermind...  just have to add more recent posts. 
Title: Re: PostersInRecentPost
Post by: Bulakbol on September 15, 2008, 09:43:42 PM
Sorry for the delay. Glad you found out.  :)
Title: Re: PostersInRecentPost
Post by: timned88 on September 15, 2008, 09:56:55 PM
no worries... you are always good about this stuff.
Title: Re: PostersInRecentPost
Post by: InternetMafia on October 09, 2008, 07:34:30 PM
Any chance of making this mod compatible with 1.1.6
Title: Re: PostersInRecentPost
Post by: timned88 on October 09, 2008, 07:50:41 PM
i use 1.1.6 and it works fine for me.
http://www.themagicinpixels.com/forum (http://www.themagicinpixels.com/forum)
Title: Re: PostersInRecentPost
Post by: Bulakbol on October 09, 2008, 08:12:07 PM
Opps, I forgot to update this for Version 2 beta 4. I'll update it when I have time.
It should work with 1.1.6 though.
Title: Re: PostersInRecentPost
Post by: [unplugged] on December 13, 2008, 07:05:19 PM
I am looking forward to the Beta 4 compatible release.  :D
Title: Re: PostersInRecentPost
Post by: Bulakbol on December 13, 2008, 07:50:18 PM
I'll look into it when I have enough time. Thanks.
Title: Re: PostersInRecentPost
Post by: [unplugged] on December 13, 2008, 08:04:07 PM
No rush. I, too, am pretty busy these days.
Title: Re: PostersInRecentPost
Post by: Bulakbol on December 17, 2008, 10:55:00 PM
New package is uploaded. Added support for SMF Version 2.0 Beta 4.
Title: Re: PostersInRecentPost
Post by: [unplugged] on December 17, 2008, 11:35:51 PM
Thanks! Works great.  :D
Title: Re: PostersInRecentPost
Post by: Sudhakar Arjunan on December 20, 2008, 03:59:51 PM
Hi JohnyB,

Updated version to 2.0.4 is cool.

I have updated my forum, while installing it . It showed a error on sources / subs-recent.php

Find :

SUBSTRING(m.body, 1, 385) AS body, m.smileys_enabled

Found in my forum code as :

SUBSTRING(m.body, 1, 384) AS body, m.smileys_enabled

For time being i have modified to 385. And installed the mod and working perfectly.

Is there any change required to 384, which i saw already before edit.
Title: Re: PostersInRecentPost
Post by: Bulakbol on December 20, 2008, 07:44:26 PM
Leave it to 385. What it does is grab the first 385 characters of a message from database. SMF version 1.1.7 grab the first 384. Maybe you installed an old mod that changed that line.
Title: Re: PostersInRecentPost
Post by: Sudhakar Arjunan on December 21, 2008, 01:15:43 AM
Quote from: Bulakbol on December 20, 2008, 07:44:26 PM
Leave it to 385. What it does is grab the first 385 characters of a message from database. SMF version 1.1.7 grab the first 384. Maybe you installed an old mod that changed that line.

You are right , but i have used only the latest one.
Title: Re: PostersInRecentPost
Post by: ArkServer on December 29, 2008, 05:57:15 AM
Hi i've installed it for smf 1.1.5 but the "recent posters" and "highest posters" doesn't show up in the recent list.
http://www.engineeringserver.com/forum/index.php any idea how to fix this?
Title: Re: PostersInRecentPost
Post by: Bulakbol on December 30, 2008, 09:02:21 PM
@ArkServer
Did any of the tests fail during installation?
Title: Re: PostersInRecentPost
Post by: ArkServer on December 31, 2008, 09:25:35 AM
Quote from: Bulakbol on December 30, 2008, 09:02:21 PM
@ArkServer
Did any of the tests fail during installation?

Nope installed succesfully, no error messages. I've uninstalled it atm but i really want to use this one.
Title: Re: PostersInRecentPost
Post by: Bulakbol on January 01, 2009, 04:30:27 AM
Maybe you are using custom theme. Try using the default theme.
Title: Re: PostersInRecentPost
Post by: Afro on January 05, 2009, 05:32:19 PM
NICE MOD..
Is there a way to manipulate the codes so that the HIGHEST POSTERS list could be replaced with adsence tower?
Title: Re: PostersInRecentPost
Post by: Bulakbol on January 08, 2009, 10:27:00 PM
You can fiddle with the codes and replace the posters with ads. I don't use ads so I am not sure how to do it. Sorry.
Title: Re: PostersInRecentPost
Post by: Afro on January 09, 2009, 08:38:52 AM
Quote from: Bulakbol on January 08, 2009, 10:27:00 PM
You can fiddle with the codes and replace the posters with ads. I don't use ads so I am not sure how to do it. Sorry.

oK, i have tried and failed. i can give you access to my test forum . the only place i want to replace is the ''highest posters'' line with a tower ad.
Title: Re: PostersInRecentPost
Post by: Bulakbol on January 12, 2009, 07:54:03 PM
Sorry, I can't.
Title: Re: PostersInRecentPost
Post by: ArkServer on January 26, 2009, 01:52:04 PM
Quote from: Bulakbol on January 01, 2009, 04:30:27 AM
Maybe you are using custom theme. Try using the default theme.

Can you tell me the edits in the custom theme? thanks!
Title: Re: PostersInRecentPost
Post by: Bulakbol on January 26, 2009, 02:42:31 PM
Sure. Which custom theme are you using?
Title: Re: PostersInRecentPost
Post by: ArkServer on January 29, 2009, 05:40:03 PM
Quote from: Bulakbol on January 26, 2009, 02:42:31 PM
Sure. Which custom theme are you using?

DS-Natural designed by DzinerStudio
http://javaforums.net/

thanks!
Title: Re: PostersInRecentPost
Post by: Bulakbol on January 29, 2009, 08:59:28 PM
@ArkServer
Your "Recent Topic" is already enhanced and no more place to insert a window for this mod. Sorry, I can't do the edit for you.
Title: Re: PostersInRecentPost
Post by: ArkServer on January 29, 2009, 09:11:00 PM
Quote from: Bulakbol on January 29, 2009, 08:59:28 PM
@ArkServer
Your "Recent Topic" is already enhanced and no more place to insert a window for this mod. Sorry, I can't do the edit for you.

I used that one temporarily but planning to uninstall and use yours.
Title: Re: PostersInRecentPost
Post by: Bulakbol on January 29, 2009, 09:27:29 PM
There's a bit of code changes in the BoardIndex.template.php so I need more than your BoardIndex.template.php so I can try it. I don't want to give you edited file with broken layout.
Title: Re: PostersInRecentPost
Post by: Sudhakar Arjunan on February 01, 2009, 12:08:05 AM
I Bulakbol,

You have helped me to install this mod on my smf 2.0.4.

Now when i try to uninstall it , it shows me.

Uninstall Actions "Posters In Recent Posts":
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Modification    install-2B.xml    Modification parse error
   2.    Execute Modification    install-2B.xml    Modification parse error
   3.    Execute Modification    install-2B4.xml    Modification parse error
   4.    Execute Modification    install-2B4.xml    Modification parse error
Title: Re: PostersInRecentPost
Post by: Bulakbol on February 01, 2009, 09:45:55 PM
I apologize. I made a typo error in the uninstall part for version Beta 4 in the package-info.xml. I typed-in "2B4" instead of "2b4". It's updated and corrected my mistake.
Title: Re: PostersInRecentPost
Post by: Sudhakar Arjunan on February 02, 2009, 02:23:40 AM
Quote from: Bulakbol on February 01, 2009, 09:45:55 PM
I apologize. I made a typo error in the uninstall part for version Beta 4 in the package-info.xml. I typed-in "2B4" instead of "2b4". It's updated and corrected my mistake.

How do existing users remove it ?

I was thinking for a long time.

Uploaded the new package, clicked uninstall and deleted both by files showed on by packages screen.

Thank you for this excellent mod Bulakbol.
Title: Re: PostersInRecentPost
Post by: Bulakbol on February 02, 2009, 08:34:46 PM
I apologize A.SK but I don't know what you mean by "How do existing users remove it ?".  Sorry.
Title: Re: PostersInRecentPost
Post by: timned88 on February 08, 2009, 04:38:52 PM
Can you please make this mod compatible with 2.0 RC1?  I love it, it's a great mod.
it comes up corrupt or not compatable in 2.0RC1.  please help!
Title: Re: PostersInRecentPost
Post by: Bulakbol on February 09, 2009, 09:42:27 PM
I will update soon timned88. No time to do it yet.
Title: Re: PostersInRecentPost
Post by: timned88 on February 09, 2009, 09:44:24 PM
ok, and thanks for your help with the # of new posts today.
i am very much looking forward to the update of this mod, as are the members of my forum.
you continue to amaze me with your skills.
Title: Re: PostersInRecentPost
Post by: timned88 on February 11, 2009, 03:24:53 PM
bulakbol, while you are making this mod compatible with 2.0RC1, could you give me a piece of code to add into the stats page that shows Top Posters Today?  If you are able to help, thanks!
My forum members really liked this mod in the older versions.
Title: Re: PostersInRecentPost
Post by: Bulakbol on February 17, 2009, 04:43:43 PM
Sorry for the delay. I got sick. I will update all my mods soon.
Title: Re: PostersInRecentPost
Post by: timned88 on February 17, 2009, 05:08:47 PM
hope you feel better and can't wait til this is ready for 2.0RC1. 
Title: Re: PostersInRecentPost
Post by: [unplugged] on February 17, 2009, 05:13:25 PM
With just a few minor modifications, it works for SMF 2.0 RC1 now.  :P

I removed the first column to suit my tastes, but it was initially there as well.
Title: Re: PostersInRecentPost
Post by: timned88 on February 17, 2009, 05:22:23 PM
could you share your few minor modifications?
Title: Re: PostersInRecentPost
Post by: [unplugged] on February 17, 2009, 05:37:01 PM
I don't remember the exact changes I made, but I can show you what that block of code looks like that I use now. You'll have to compare it to the install2b4.xml to see what to add back for the first column.

// Here's where the "Info Center" starts...
echo '
<div class="tborder clearfix" id="infocenterframe">
<h3 class="catbg headerpadding">
<a href="#" onclick="infoHeader.toggle(); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '
</h3>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="titlebg">
<th height="25" valign="middle" align="left">', $txt['recent_posts'], '</th>
<th align="right" style="padding-right:70px;">Top Posters</th>
</tr>
<tr>
<td class="windowbg2" colspan="4">';

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></b>
<div class="smalltext">
', $txt['recent_posts'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
$alternate = true;
echo '
<table cellpadding="0" cellspacing="1" width="100%" border="0" class="bordercolor">
<tr>
<td class="windowbg2" width="34px" align="center" style="border-right:1px solid #A0A0A0;"><a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a></td>
<td class="windowbg2">
<table width="100%" cellpadding="0" cellspacing="0" border="0">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
{
echo '
<tr class="', $alternate ? 'windowbg' : 'windowbg2', '">
<td class="middletext" valign="top"><b> &nbsp;', str_ireplace('Re: ', '', $post['link']), '</b> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">', $post['time'], ' &nbsp;</td>
</tr>';
$alternate = !$alternate;
}
echo '
</table>
</td>
<td class="windowbg2" width="', $context['recent_width'], '" align="left" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="98%" align="left">';
foreach ($context['highest_posters'] AS $num => $name)
echo '
<tr>
<td class="smalltext" align="right">', $num+1, '</td>
<td class="smalltext" align="left">.&nbsp;', $name['link'], '</td>
<td class="smalltext" align="right">', number_format($name['posts']), '</td>
</tr>';
echo '
</table>
</td>
</tr>
</table>';
}
echo '
</td>
</tr>
</table>';
}
Title: Re: PostersInRecentPost
Post by: timned88 on February 18, 2009, 01:40:52 PM
it really did not appear to change anything once i added in your code.  perhaps i will wait for bulakbol to release his mod before messing with things too much.
Title: Re: PostersInRecentPost
Post by: [unplugged] on February 18, 2009, 02:09:12 PM
That would be better anyway. :p
Title: Re: PostersInRecentPost
Post by: timned88 on February 18, 2009, 02:52:22 PM
probably...  i have had to fix so many bugs and change so much code i could scream.  the working forum looks good, though.
Title: Re: PostersInRecentPost
Post by: josan on February 19, 2009, 12:41:33 PM
Great!  ;D tks
Title: Re: PostersInRecentPost
Post by: Bulakbol on February 25, 2009, 10:09:28 PM
Thanks for waiting patiently guys. I already uploaded the update for RC1. If there's problem, please let me know. Thanks for using/trying this mod.
Title: Re: PostersInRecentPost
Post by: timned88 on February 25, 2009, 10:20:17 PM
downloaded, installed, working perfectly!  thank you once again, jhony!  you are terrific.
Title: Re: PostersInRecentPost
Post by: akbora on July 09, 2009, 08:15:44 PM
This is very beutiful mod. I use firstly in my forum.

I have only an error, hideen members' messages count don't shown? Why?

Added, can we change this posters bloks we want from admin panel?

Thanks
Title: Re: PostersInRecentPost
Post by: Bulakbol on July 09, 2009, 11:23:19 PM
@timned88
Thanks for the compliment. Thank you too for trying or using my mod. :)

@akbora
Any posts from hidden members cannot be seen by regular members but administrators can see them. Thanks for the suggestion. I will add an option to hide or show posts from hidden members when I have time. I will add to my todo list.
Title: Re: PostersInRecentPost
Post by: TheListener on September 21, 2009, 02:51:43 PM
I installed the mod on my third forum ( yep I like it that much) the install was clean except when on the main board.

Fatal error: Call to undefined function: str_ireplace() in /Themes/default/BoardIndex.template.php on line 311

Attachment supplied
Title: Re: PostersInRecentPost
Post by: TheListener on September 30, 2009, 08:26:36 PM
BUMP
Title: Re: PostersInRecentPost
Post by: [unplugged] on September 30, 2009, 09:04:13 PM
function: str_ireplace() is not even called in the BoardIndex.template.php that you have attached.
Title: Re: PostersInRecentPost
Post by: TheListener on September 30, 2009, 09:05:39 PM
Quote from: SunKing on September 30, 2009, 09:04:13 PM
function: str_ireplace() is not even called in the BoardIndex.template.php that you have attached.

Think I gave the wrong file oops.
Title: Re: PostersInRecentPost
Post by: meehan09 on October 03, 2009, 11:39:27 AM
FIXED  ;D
Title: Re: PostersInRecentPost
Post by: searchgr on November 11, 2009, 09:21:55 AM
any update for rc2?
Title: Re: PostersInRecentPost
Post by: timned88 on November 15, 2009, 02:28:46 PM
yes i agree.  will this be updated for rc2?
Title: Re: PostersInRecentPost
Post by: akbora on December 28, 2009, 02:53:34 AM
RC2 please. Very very dinamic mod. Every forum needs it.
Title: Re: PostersInRecentPost
Post by: searchgr on April 06, 2010, 05:26:36 PM
I doubt if this mod is supported anymore.

The author is
Last Active:
    November 27, 2009, 07:01:36 AM
Title: Re: PostersInRecentPost
Post by: timned88 on October 21, 2010, 09:34:22 PM
any chance of getting this for rc3?  its always been one of my favorite mods.
Title: Re: PostersInRecentPost
Post by: roonekoos on October 23, 2010, 10:38:07 PM
Quote from: timned88 on October 21, 2010, 09:34:22 PM
any chance of getting this for rc3?  its always been one of my favorite mods.

I hope so too :)