Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on April 08, 2008, 01:03:14 AM

Title: Enhance Recent Post
Post by: Bulakbol on April 08, 2008, 01:03:14 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1153)

Author:JohnyB   Mod Name:EnhanceRecentPost   Version:1.0   
Tested:Freshly installed SMF 1.1.4 and SMF 2.0 Beta 3 Public

Enhance Recent Post 1.0
- This mod will enhance Recent post page by adding and displaying message poster's info.

Supported Themes
- Babylon
- Classic
- Default Core
Title: Re: Enhance Recent Post
Post by: Apllicmz on April 08, 2008, 02:34:14 AM
Yes thank for 1.x she work fine

translate portuguese pt_PT/pt_BR

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end"></search>
<add><![CDATA[
$txt['joined'] = 'Participante';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end"></search>
<add><![CDATA[
$txt['joined'] = 'Participante';
]]></add>
</operation>
</file>
Title: Re: Enhance Recent Post
Post by: Apllicmz on April 08, 2008, 02:54:51 AM
Yes thank for 2.x she work fine 100%

translate portugueses pt_PT/pt_BR

</file>
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end"></search>
<add><![CDATA[
$txt['joined'] = 'Participante';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end"></search>
<add><![CDATA[
$txt['joined'] = 'Participante';
]]></add>
</operation>
</file>


Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on April 08, 2008, 04:10:46 AM
HI Devloper,

Its shows error for installing this mod,

1.     Execute Modification     ./Sources/Recent.php     Test failed
2.    Execute Modification    ./Themes/default/Recent.template.php    Test failed
3.    Execute Modification    ./Themes/classic/Recent.template.php    Test failed
4.    Execute Modification    ./Themes/babylon/Recent.template.php    Skipping file
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

Could you help me installing.

Board at http://forum.itacumens.com
Title: Re: Enhance Recent Post
Post by: jossanaijr on April 08, 2008, 09:25:15 AM
Wow Fantastic!
Thank you!
Title: Re: Enhance Recent Post
Post by: Manu.G on April 08, 2008, 11:30:13 AM
What a fantastic mod!!! (http://forum.arseniums.com/Smileys/default/016-clapping.gif)

I tried to install it, but I think cause of the colorize post mod it isn't possible.
Can you please take a look at my Recent.template.php and Recent.php what's
wrong with it? (http://forum.arseniums.com/Smileys/default/9.gif)

Btw, can you remember this (http://www.simplemachines.org/community/index.php?topic=217033.msg1486137#msg1486137)
With your help I got it to work, but not in the Recent Post, maybe you can take a look at it what I made wrong? (http://forum.arseniums.com/Smileys/default/9.gif)
Title: Re: Enhance Recent Post
Post by: fals on April 08, 2008, 05:09:19 PM
Lov it !
Downloaded and easy tweaked for my theme
http://www.fg-forum.dk/smf/index.php?action=recent (http://www.fg-forum.dk/smf/index.php?action=recent)

(http://www.fg-forum.dk/smf/Smileys/fg/EmoPackv6_059.gif)
Title: Re: Enhance Recent Post
Post by: Bulakbol on April 09, 2008, 12:04:17 PM
Oppss sorry guys, I got busy with my other mods.


@Joomlamz. Thanks for the translation, I will add it later.


@asudhakar. Yes, some mods can't avoid using the same line so it fails the test. If you want me to edit the files in question, attach the files to your next post and I'll see what i can do to help.


@jossanaijr. Thanks for the compliment and thanks for using this mod.


@Manu0372. Try uninstalling the colorize post, install this mod, then re-install the colorize post. But I can always edit the file for you.  ;) I'll get back to you with your attached files.


@fals. You tweaked very good. Looking good on your theme. Cool.


Thanks guys for trying or using this mod.
Title: Re: Enhance Recent Post
Post by: ccbtimewiz on April 09, 2008, 12:36:44 PM
Undefined variables:

$avatar_height and $avatar_width.

Line 432
Title: Re: Enhance Recent Post
Post by: Bulakbol on April 09, 2008, 12:41:19 PM
@Manu0372. Here's your edited Recent.php ang Recent.template,php.  :) Hopefully bugless.


Quote from: ccbtimewiz on April 09, 2008, 12:36:44 PM
Undefined variables:

$avatar_height and $avatar_width.

Line 432

Sorry about that. Let me check those variables. I'll get back to you ccbtimewiz.


<edit>
I found the bug.  Fixed. :P Thanks ccbtimewiz.
</edit>

@all.
Please uninstall the old one and install the new one. Thanks for using/trying this mod.
Title: Re: Enhance Recent Post
Post by: Manu.G on April 09, 2008, 03:00:26 PM
Thanks a lot JohnyB, it works perfect!!! (http://forum.arseniums.com/Smileys/default/015-ok.gif)

I tried to uninstall the colorize post mod, but after we changed some codes,
the package manager wont uninstall it, and I was to lazy to uninstall it manual. (http://forum.arseniums.com/Smileys/default/9.gif)
That's why I was asking for your help. ;)
Title: Re: Enhance Recent Post
Post by: Bulakbol on April 09, 2008, 10:52:41 PM
Hi Manu. It's alright.  ;) I understand. I am here to help. Thanks for using my mod.  8)
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on April 10, 2008, 02:58:36 AM
Quote@asudhakar. Yes, some mods can't avoid using the same line so it fails the test. If you want me to edit the files in question, attach the files to your next post and I'll see what i can do to help.

HI JonnyB, Thanks for your reply and tel me what i have to do to enroll this Enhance Recent Post in My Forum.
Title: Re: Enhance Recent Post
Post by: Basie on April 10, 2008, 03:34:48 AM
Superb mod.

Thanks a lot JohnyB. :)
Title: Re: Enhance Recent Post
Post by: Garry1953 on April 10, 2008, 04:13:09 AM
Works perfect for me.
Thanks for developing this mod. :)
Title: Re: Enhance Recent Post
Post by: D.S on April 10, 2008, 10:38:47 AM
cool mod , thank u Johny

D.S
Title: Re: Enhance Recent Post
Post by: Bulakbol on April 10, 2008, 05:36:49 PM
Quote from: asudhakar on April 10, 2008, 02:58:36 AM
Quote@asudhakar. Yes, some mods can't avoid using the same line so it fails the test. If you want me to edit the files in question, attach the files to your next post and I'll see what i can do to help.

HI JonnyB, Thanks for your reply and tel me what i have to do to enroll this Enhance Recent Post in My Forum.

Hi asudhakar. Just use the package manager and install the mod. If all test passed, continue the installation. If you are using custom theme and don't have its own Recent.template.php, then you don't have to edit anything. If your theme have its own Recent.template.php or test failed on other files then you have to install the mod manually. If you don't know much about php, attach the files that failed the test and I'll try to help you editing them.


@D.S., Gary953, Seek2501.
Thanks guys.  8) You can edit the mod the way you want it just like fals did.  :)
Title: Re: Enhance Recent Post
Post by: Kimmie on April 12, 2008, 12:16:32 AM
I dont see any difference between the "before" and "after" images other than it reversed "Started By XX - Last Post BY XX" to "Last Post By XX - Started By XX"

Can you tell me what this mod actually does?  :-[
Title: Re: Enhance Recent Post
Post by: Bulakbol on April 12, 2008, 02:37:22 AM
Quote from: Kimmie on April 12, 2008, 12:16:32 AM
I dont see any difference between the "before" and "after" images other than it reversed "Started By XX - Last Post BY XX" to "Last Post By XX - Started By XX"

Can you tell me what this mod actually does?  :-[

Yup. I reversed it and we like it. You missed the "Read xx times" on the right side though. Have you been drinking lately?  :P

Kidding aside. They said, a picture paints a thousand words so, take a good look at the pictures again. I suggest you to download them both to your PC and look at them at the same time.  You will notice the difference.  Thanks for dropping by Kimmie. 
Title: Re: Enhance Recent Post
Post by: Kimmie on April 12, 2008, 03:00:18 AM
well I had both the screenshots up side by side and didnt see that other part. I wasnt drinkin but maybe I should.lol.

Title: Re: Enhance Recent Post
Post by: Bulakbol on April 12, 2008, 03:12:14 AM
Quote from: Kimmie on April 12, 2008, 03:00:18 AM
well I had both the screenshots up side by side and didnt see that other part. I wasnt drinkin but maybe I should.lol.


haha Maybe you should drink. lol The recent page isn't much used but I am using it all the time so I decided to add the avatar of poster and some info on the left side of the message. 
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 07, 2008, 04:43:51 AM
Quote from: JohnyB on April 10, 2008, 05:36:49 PM

Hi asudhakar. Just use the package manager and install the mod. If all test passed, continue the installation. If you are using custom theme and don't have its own Recent.template.php, then you don't have to edit anything. If your theme have its own Recent.template.php or test failed on other files then you have to install the mod manually. If you don't know much about php, attach the files that failed the test and I'll try to help you editing them.



Database Error
Not unique table/alias: 'pg'
File: /home/itacumen/public_html/forum/Sources/Recent.php
Line: 411

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.

Checkout @ http://forum.itacumens.com/index.php?action=recent

Use Dilber Mc Theme - but it uses only default recent template.
I had installed it manually.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 07, 2008, 05:06:20 AM
Hi asudhakar. You probably missed a code or codes. Please post or attach your Sources/Recent.php for now. I would like to check it. Thanks for trying this mod.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 07, 2008, 05:32:05 AM
Quote from: JohnyB on May 07, 2008, 05:06:20 AM
Hi asudhakar. You probably missed a code or codes. Please post or attach your Sources/Recent.php for now. I would like to check it. Thanks for trying this mod.

Sure JohnyB, Checkout the Attached file.

Kindly help us to overcome the error.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com

Title: Re: Enhance Recent Post
Post by: Bulakbol on May 07, 2008, 05:48:32 AM
Hi asudhakar. Try this edited Recent.php. I removed the two excess lines. Let me know if you still have problem. Thanks.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 07, 2008, 06:04:52 AM
Hi Respected JohnyB,

i had Replaced the file and found the recent page is working fine.

http://forum.itacumens.com/index.php?action=recent

But check out the error which is shown at the top of all the pages .

Error - Shows -  - Top of all pages
Error - Shows joined as 1969 to all members
Error - Does not shows our avatars or photos.

Kindly check out and help us JohnyB

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 07, 2008, 06:14:31 AM
Hi asudhakar. Please attach your Recent.template.php. I'll check that one too.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 07, 2008, 06:23:30 AM
Sure, i have attached it and one more thing is while i installed thru package manager - i got errors.

So i manually Modified it .

And while modifying recent template i have removed one pair of lines, which i found to be of other mod's function.

But i have took it out just form checking this Mod. So if possible kindly checkout  this code and attach to it if possible.


<td class="catbg" colspan="3">
<span class="middletext"> ', $txt[109], ' ' . $post['first_poster']['link'] . ' - ' . $txt[22] . ' ' . $txt[525] . ' ' . $post['poster']['link'] . ' </span>
</td>
</tr>
<tr>
<td class="windowbg2" colspan="3" valign="top" height="80">';
if ($post['poster']['theme'] == $context['user']['theme_id'])
$color = !empty($post['poster']['post_color']) ? $post['poster']['post_color'] : (!empty($post['poster']['group_color']) ? $post['poster']['group_color'] :
(!empty($post['poster']['post_group_color']) ? $post['poster']['post_group_color'] : ''));
else
$color = '';
echo '<div class="post" style="color: '. $color . ';">', $post['message'], '</div>
</td>
</tr>';


Check the current modified page in attachement.

Thanks in Advance,
Sudahkar, Admin
www.itacumens.com
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 07, 2008, 06:32:16 AM
I'll get back to you asudhakar.

<edit>

Asudhakar, there's a conflict in Recent.php. What other modes have you installed that modified the Recent.php? And also, update your SMF to 1.1.5.  I have to check your Recent.php because of the conflict.

</edit>

<edit2>
Try this one again asudhakar. There's nothing wrong with your Recent.template.php. It's in the Recent.php.
</edit2>

Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 07, 2008, 07:30:23 AM
Quote from: JohnyB on May 07, 2008, 06:32:16 AM
I'll get back to you asudhakar.

<edit>

Asudhakar, there's a conflict in Recent.php. What other modes have you installed that modified the Recent.php? And also, update your SMF to 1.1.5.  I have to check your Recent.php because of the conflict.

</edit>



Okie Sure JohnyB and will update my forum and then i will attach the recent.php file

Because i have some prob in upgrading it.

Since it shows error in ssi file.

Anyhow thank for your support, will let you know after completing it.

Thanks & Regards,
Sudhakar, Admin
www.itacumens.com
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 07, 2008, 07:34:35 AM
Asudhakar, try the Recent.php that I attached to my last post.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 07, 2008, 12:57:45 PM
Hey just look at the errors.

Forum Error log is overloaded in minutes.

help Us, please.

The_Big_S    Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:45
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=90
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:32
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:32
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:32
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:32
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73

Apply Filter: Only show the error messages of this member The_Big_S Today at 22:23:32
Apply Filter: Only show the error messages of this IP address 122.164.241.197    Apply Filter: Only show the error messages of this session 1ca8baab04c325ea20fa2f10385d43e0
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent
Apply Filter: Only show the errors with the same message
8: Undefined index: post_group
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 73


Hell a min of 130 errors per minute.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 07, 2008, 01:27:35 PM
Sorry Thank you for this excellent Mod.

I had manually removed all the codes in all the pages.

Even i had removed it from Our package.

I have only one query for you to help

in the top of the forum i could see a small error like this "  "

That to only in this particular page alone : http://forum.itacumens.com/index.php?action=forum

Could you please help me to clear it out please.

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: Enhance Recent Post
Post by: ccbtimewiz on May 07, 2008, 08:14:30 PM
Lol, the most common error where this appears is if you have text outside <?php and ?>

<?php

{your template stuff}

?>


Title: Re: Enhance Recent Post
Post by: Bulakbol on May 07, 2008, 11:38:10 PM
Have you resolved your issue asudhakar? Like ccbtimewiz stated, the php tag (?>) should be in the last  line. Check your default/languages/Modifications.{language}.php.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on May 08, 2008, 04:10:19 AM
Yes JohnyB as per your suggestions, i have went thru all pages.

Found the error in the Sources/Recent.php file.

Removed and its fine now.

But i had completely removed the recent mod.

Could you please comeup with a good solution for it as soon JohnyB

Thanks in Advance,
Sudhakar, Admin
www.itacumens.com
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 08, 2008, 04:23:49 AM
@Asudhakar.  The mod edit only the Sources/Recent.php and default/Recent.template.php. You properly installed the Recent.template.php but the Recent.php was edited wrong. If you want to install this mod, attach your current unedited Recent.php and Recent.template.php and I'll do the edit for you.
Title: Re: Enhance Recent Post
Post by: edi67 on May 08, 2008, 06:17:35 AM
nice one
Title: Re: Enhance Recent Post
Post by: rumfa on May 08, 2008, 03:55:47 PM
I get some errors too. In the recent window, the avatars are not showing and i get error

8: Undefined index: filename
Datoteka: /*******/Sources/Recent.php
Line: 402

The code is

$context['posts'][$row['ID_MSG']] = array(
'id' => $row['ID_MSG'],
'counter' => $counter++,
'category' => array(
'id' => $row['ID_CAT'],
'name' => $row['cname'],
'href' => $scripturl . '#' . $row['ID_CAT'],
'link' => '<a href="' . $scripturl . '#' . $row['ID_CAT'] . '">' . $row['cname'] . '</a>'
),
'board' => array(
'id' => $row['ID_BOARD'],
'name' => $row['bname'],
'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['ID_BOARD'] . '.0">' . $row['bname'] . '</a>'
),
'topic' => $row['ID_TOPIC'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'],
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.msg' . $row['ID_MSG'] . '#msg' . $row['ID_MSG'] . '">' . $row['subject'] . '</a>',
'start' => $row['numReplies'],
'subject' => $row['subject'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),
'num_views' => $row['numViews'],
'first_poster' => array(
'id' => $row['ID_FIRST_MEMBER'],
'name' => $row['firstPosterName'],
'href' => empty($row['ID_FIRST_MEMBER']) ? '' : $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'],
'link' => empty($row['ID_FIRST_MEMBER']) ? $row['firstPosterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_FIRST_MEMBER'] . '">' . $row['firstPosterName'] . '</a>'
),
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'is_guest' => $row['ID_MEMBER'] == 0,
'gender' => array(
'name' => $gendertxt,
'image' => !empty($row['gender']) ? '<img src="' . $settings['images_url'] . '/' . ($row['gender'] == 1 ? 'Male' : 'Female') . '.gif" alt="' . $gendertxt . '" border="0" />' : ''
),
'group' => $row['groupName'],
'group_color' => $row['group_color'],
'post_group' => $row['post_group_name'],
'post_group_color' => $row['post_group_color'],
'stars' => !empty($row['stars'][0]) && !empty($row['stars'][1]) ? str_repeat('<img src="' . $settings['images_url'] . '/' . $row['stars'][1] . '" alt="*" border="0" />', $row['stars'][0]) : '',
'group_stars' => !empty($row['group_stars'][0]) && !empty($row['group_stars'][1]) ? str_repeat('<img src="' . $settings['images_url'] . '/' . $row['group_stars'][1] . '" alt="*" border="0" />', $row['group_stars'][0]) : '',
line 402 - 'avatar' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'),
'posts' => $row['posts'],
'karma' => array(
'good' => $row['karmaGood'],
'bad' => $row['karmaBad'],
),
'blurb' => $row['personalText'],
'location' => $row['location'],
'title' => !empty($modSettings['titlesEnable']) ? $row['usertitle'] : '',
'online' => array(
'is_online' => $row['is_online'],
'text' => &$txt[$row['is_online'] ? 'online2' : 'online3'],
'image_href' => $settings['images_url'] . '/' . ($row['is_online'] ? 'useron' : 'useroff') . '.gif',
),
'registered' => empty($row['dateRegistered']) ? $txt[470] : timeformat($row['dateRegistered']),
'registered_timestamp' => empty($row['dateRegistered']) ? 0 : forum_time(true, $row['dateRegistered']),
'href' => empty($row['ID_MEMBER']) ? '' : $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => empty($row['ID_MEMBER']) ? $row['posterName'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>'
),
'message' => $row['body'],
'can_reply' => false,
'can_mark_notify' => false,
'can_delete' => false,
'delete_possible' => ($row['ID_FIRST_MSG'] != $row['ID_MSG'] || $row['ID_LAST_MSG'] == $row['ID_MSG']) && (empty($modSettings['edit_disable_time']) || $row['posterTime'] + $modSettings['edit_disable_time'] * 60 >= time()),
);

if ($ID_MEMBER == $row['ID_FIRST_MEMBER'])
$board_ids['own'][$row['ID_BOARD']][] = $row['ID_MSG'];
$board_ids['any'][$row['ID_BOARD']][] = $row['ID_MSG'];
}
mysql_free_result($request);


Avatars are custom uploaded form the members in the custom folder "slike_clanova" What could it be?
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 08, 2008, 05:11:19 PM
Hi rumfa.  You probably found a bug.  :P Could you please try this. In Sources/Recent.php, find
mem.dateRegistered, mem.location, mem.showOnline, mem.personalText, t.ID_FIRST_MSG, at.ID_ATTACH, at.attachmentType,

and replace with
mem.dateRegistered, mem.location, mem.showOnline, mem.personalText, t.ID_FIRST_MSG, at.ID_ATTACH, at.attachmentType, at.filename,

I just added " at.filename," at the end. I think I missed it. Thanks a lot.
Title: Re: Enhance Recent Post
Post by: rumfa on May 08, 2008, 05:19:10 PM
Aha...well..no thanks man. It's you who wrote the code. Good mod. Hopefully it is intergrated in smf2.
I changed and the avatar is visible now. I'll need to wait a bit for the errors. I'll come back tommorrow or so and report if there are any...;) Hopefully i wont get literally hunderds of errors a day :D
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 08, 2008, 05:27:53 PM
Thanks rumfa. I'll update the package for now. Hope everything works fine now.
Title: Re: Enhance Recent Post
Post by: rumfa on May 09, 2008, 04:45:06 AM
It's ok now. No errors any more.
Title: Re: Enhance Recent Post
Post by: Bulakbol on May 10, 2008, 02:07:47 AM
Cool.  8) I hope I got all bugs swatted. lol
Title: Re: Enhance Recent Post
Post by: Bec on July 20, 2008, 08:03:06 PM
Hi Guys,

I just noticed my recent posts are not showing properly.. the section that shows

" Started by xxx - Last post by xxx" is showing one name for both items even though a different person created the post (i.e. a post was created by John but its showing as  Started by Rebecca - Last post by Rebecca).

I am running 1.1.5, has been installed for a while but only noticed this problem now, everything went fine at installation and im running a custom theme... if someone could please advise how to correct this it would be greatly appreciated.

Cheers  :D
Title: Re: Enhance Recent Post
Post by: Bulakbol on July 22, 2008, 06:41:05 AM
Can you attach your Recent.template.php? Which custom theme are you using?
Title: Re: Enhance Recent Post
Post by: AlenNS on July 28, 2008, 09:42:11 AM
Hi, JohnyB!
This mod is great and I would like to suggest you one little edit that I made on my forum.

I've edited this part of Recent.php:

'avatar' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />'),

I've removed all of the avatars' width and height controls:

width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'"

With this in Recent.php avatars are stretched and if their size iz smaller then max width or height it looks very bad.
When you remove this part of code avatars are same size like they are on posts.

If you have some time, look at this and please tell me is this change ok and does it could make some problems to your mod.

Regards! :)
Title: Re: Enhance Recent Post
Post by: ccbtimewiz on July 28, 2008, 11:17:12 AM
Hey JB, I found an error in your modification.

It appears that whenever a member has a large personal text, the left column stretches and the text does not wrap.

Also, here's the polish translation for your mod.

$txt['joined'] = 'Dołączył';
Title: Re: Enhance Recent Post
Post by: Bulakbol on July 29, 2008, 03:18:15 AM
@AlenNS
  If you are not getting any error, go ahead and use your modification. Which avatar are you having problem with?

@ccbtimewiz
  I tested the mod again (Core theme) and the personal text (max of 50 characters) wrapped around. I am not sure if the first release doesn't wrap but the current one does. Thanks for the Polish translation. I will update the package soon.
Title: Re: Enhance Recent Post
Post by: AlenNS on July 29, 2008, 05:33:32 AM
Every avatar is being stretched with this mod. But now, when I remove that parts everything is ok.

Modification.serbian.php
$txt['joined'] = 'На форуму од:';

Modification.serbian-utf8.php
$txt['joined'] = 'Na forumu od';

Title: Re: Enhance Recent Post
Post by: Bulakbol on July 29, 2008, 05:51:12 AM
Thanks for the translation AlenNs but unfortunately, my editor won't properly display the Modifications string. The utf8 is fine though.

I don't see any reason why your avatar stretches unless your member uses small sized avatars and your setting is large.

Title: Re: Enhance Recent Post
Post by: AlenNS on July 29, 2008, 06:03:05 AM
I don't know either.
I noticed that all avatars are stretched even when they are several pixels smaller then maximum size like you've put in avatar settings.

Is this necessarily:

'avatar' => $row['avatar'] == '' ? ($row['id_attach'] > 0 ? '<img src="' . (empty($row['attachment_type']) ? $scripturl . '?action=dlattach;attach=' . $row['id_attach'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/noavatar.gif" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" width="'. $modSettings['avatar_max_width_external'].'" height="'. $modSettings['avatar_max_height_external'].'" align="middle" border="0" />'), 'posts' => $row['posts'],


I'm using without it and it's ok. With this settings of height and width mod stretches avatar to max height and width that I inflict in avatar options.
Title: Re: Enhance Recent Post
Post by: Bulakbol on July 30, 2008, 05:16:46 PM
Try it AlenNS.  You might have problem with external avatars but if people have the same problem as yours, then maybe I should modify the mod. But if only couple then they can use your tip.
Title: Re: Enhance Recent Post
Post by: AlenNS on July 31, 2008, 07:54:21 AM
I'll research and ask my users about avatars.
I'll tell you later results.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 01, 2008, 05:36:17 PM
Quote from: JohnyB on May 08, 2008, 04:23:49 AM
@Asudhakar.  The mod edit only the Sources/Recent.php and default/Recent.template.php. You properly installed the Recent.template.php but the Recent.php was edited wrong. If you want to install this mod, attach your current unedited Recent.php and Recent.template.php and I'll do the edit for you.

Hi Johnny B, yesterday night i have installed the Avatar on Board.
No words to express my happiness. My forum look so cool now then earlier.  :D

Just now remembered about your other mod. Which we are previously trying and left it.

But i would even like to enhance my recent page also.

Am Using 1.1.5 with DilberMC - Hope Dilber Mc uses only Default Recent.Template page.

Kindly check the attached and help me to Enhance my Recent Post.

Thanks in Advance.
Title: Re: Enhance Recent Post
Post by: 58tbird on August 02, 2008, 02:50:24 AM
Spectacular mod Johnny B!  Thank you ;)
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 12:56:29 PM
@AlenNS
   Thanks for the Serbian translation but unfortunately, I had problem psting the code. I set my text editor to utf8 (w/ or w/o) but still. The utf8 version is ok though.

@asudhakar
  Did you get any error when you tried to install the mod?

@58tbird
   Thank you too for using this mod. :)
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 03:08:16 PM
I installed the package but I don't see any changes at all - did I need to have another version installed first?

What am I missing?

Thanks
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 03:43:29 PM
No. If there's no error, you should see the difference when you read your recent posts.
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 04:03:52 PM
I don't get it - still nothing

I uninstalled and then re-installed

Is this a normal message when installing/uninstalling?

6.     Execute Modification     ./Themes/default/languages/Modifications.portuguese.php     Skipping file

That is the only thing I see - I'd love to get this to work - I think the idea would a great addition to my Forum.
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 04:22:42 PM
Your custom theme must have it's own Recent.template.php then. Try using the default theme and see if it work there.
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 04:23:49 PM
I am using the default them and smf 1.1.5
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 04:25:22 PM
Link to your forum? I would like to check later.
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 04:26:00 PM
Thanks

www.makethatdollar.net

Appreciate it!!
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 04:29:20 PM
I can't see recent posts button or link. Display some. Admin > Current Theme => Number of recent posts to display on board index:  (enter at least 5)

edit:
I found it.
</edit

edit2
  I don't think it is installed. Can you attach your Recent.template,php and Recent.php? The one that you have now.
/edit2
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 06:20:58 PM
Here ya go

Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 06:42:11 PM
It isn't installed. Did you click install button when you install the mod? The button is at the bottom right hand side of the page. Try it again.
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 06:50:36 PM
Oops   Actually I probably sent you this after I unstalled for the last time  -  sorry  I will reinstall and send you new copies
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 06:56:40 PM
OK  This is with the Mod installed   :)
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 07:04:02 PM
And it is working. :)
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 07:52:28 PM
Doesn't seem to be working when I check.

As a matter of fact, when I click on this link

Show unread posts since last visit.

Even if there are new posts - it says there aren't any

So now I'm more confused than before   ??? ???
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 02, 2008, 08:08:00 PM
Uninstall it NYChamp. This mod does not have anything to do with unread post. I don't want this mod to be responsible with your issue. Please uninstall it. Thanks for trying though.
Title: Re: Enhance Recent Post
Post by: NYChamps on August 02, 2008, 08:41:03 PM
Done   :(

Thanks for trying though! 
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 03, 2008, 07:36:09 PM
Good. Mentioning isues that aren't relevant to the mod means trouble for me. :)
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 04, 2008, 12:19:18 AM
Quote from: asudhakar on August 01, 2008, 05:36:17 PM
Quote from: JohnyB on May 08, 2008, 04:23:49 AM
@Asudhakar.  The mod edit only the Sources/Recent.php and default/Recent.template.php. You properly installed the Recent.template.php but the Recent.php was edited wrong. If you want to install this mod, attach your current unedited Recent.php and Recent.template.php and I'll do the edit for you.

Hi Johnny B, yesterday night i have installed the Avatar on Board.
No words to express my happiness. My forum look so cool now then earlier.  :D

Just now remembered about your other mod. Which we are previously trying and left it.

But i would even like to enhance my recent page also.

Am Using 1.1.5 with DilberMC - Hope Dilber Mc uses only Default Recent.Template page.

Kindly check the attached and help me to Enhance my Recent Post.

Thanks in Advance.

Quote from: JohnyB on August 02, 2008, 12:56:29 PM

@asudhakar
  Did you get any error when you tried to install the mod?


First of all, am sorry for not updating this thread.

we are trying to work on this mod since you have uploded.

check these posts JohnyB,

http://www.simplemachines.org/community/index.php?topic=233119.msg1534528#msg1534528

http://www.simplemachines.org/community/index.php?topic=233119.msg1534597#msg1534597

Error codes 1000 errors in secs

http://www.simplemachines.org/community/index.php?topic=233119.msg1535047#msg1535047

Last message i have typed

http://www.simplemachines.org/community/index.php?topic=233119.msg1535069#msg1535069

Just before posting, i have tried installing and showed errors in these pages.


1.  Execute Modification  ./Sources/Recent.php  Test failed
2. Execute Modification ./Themes/default/Recent.template.php Test failed
3. Execute Modification ./Themes/classic/Recent.template.php Test failed
4. Execute Modification ./Themes/babylon/Recent.template.php Skipping file
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.portuguese.php Test successful
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 04, 2008, 12:36:05 AM
@asudhakar
  I thought you told me all your issues were resolved. I edited your files and now you are telling me that you have errors installing the mod. What really is happening anyway?

This mod will modify only two files. The Recent.php and the Recent.template.php. If those files failed the installation test and if you can't do the edit yourself then I am willing to do the edit for you.


Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 04, 2008, 01:38:51 AM
Sorry if my communication would have been wrong or non understandable.

Will send you the two files first. You check those file and tell me know, so that i will start the installation and we will complete it.

Because this mod is really useful.
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 04, 2008, 06:05:24 AM
Attach the files in question and I'll fix them before you install this mod. I will fix the code that were altered so that there will be no "test Failed" during installation.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 04, 2008, 09:00:31 AM
Quote from: JohnyB on August 04, 2008, 06:05:24 AM
Attach the files in question and I'll fix them before you install this mod. I will fix the code that were altered so that there will be no "test Failed" during installation.

Hi Johny B

I have attached the two important files,

Kindly check it and even tell me which mod is creating problem. And i will clear it off before installation too.

Thanks JohnyB.

--------------

Forget to attach.  :(
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 04, 2008, 02:49:08 PM
Maybe you forgot to attach the files asudhakar. I can't find them. :)
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 05, 2008, 01:38:54 AM
Quote from: JohnyB on August 04, 2008, 02:49:08 PM
Maybe you forgot to attach the files asudhakar. I can't find them. :)

You are right. Check the above Post JohnyB Check previous post (http://www.simplemachines.org/community/index.php?topic=233119.msg1645619#msg1645619)
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 07, 2008, 03:42:07 PM
Quote from: JohnyB on August 04, 2008, 02:49:08 PM
Maybe you forgot to attach the files asudhakar. I can't find them. :)

You are right. Check the above Post JohnyB Check previous post (http://www.simplemachines.org/community/index.php?topic=233119.msg1645619#msg1645619) I have attached and waiting for your time.
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 09, 2008, 11:14:37 AM
Here are your files asudhakar. Backup the original ones and then use these after you installed this mod.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 12, 2008, 03:23:45 PM
Quote from: JohnyB on August 09, 2008, 11:14:37 AM
Here are your files asudhakar. Backup the original ones and then use these after you installed this mod.


Thanks a lot, JohnyB.

I have installed and replaced the files you have modified and its working perfect.

When i surf the recent page, i got lot of errors.


The_Big_S    Today at 00:47:07
Apply Filter: Only show the error messages of this IP address 121.143.543.195    Apply Filter: Only show the error messages of this session 14ac3dc414fd4140cc2e7f662ca9a776
Apply Filter: Only show the error messages of this URL http://forum.itacumens.com/index.php?action=recent;start=70
Apply Filter: Only show the errors with the same message
8: Undefined variable: modSettings
File: /home/itacumen/public_html/forum/Themes/default/Recent.template.php (main sub template - eval?)
Line: 102


I have checked the line 102 and found the Karma mod line - like


// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
', $modSettings['karmaLabel'], ' ', $post['poster']['karma']['good'] - $post['poster']['karma']['bad'], '<br />';
Line 102 : elseif ($modSettings['karmaMode'] == '2')
echo '
', $modSettings['karmaLabel'], ' +', $post['poster']['karma']['good'], '/-', $post['poster']['karma']['bad'], '<br />';


I dont use karma mode in my forum.

Any Suggestion to avoid this error JohnyB.
Title: Re: Enhance Recent Post
Post by: ccbtimewiz on August 12, 2008, 04:22:03 PM
Add $modSettings to the global declarations.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 12, 2008, 04:52:42 PM
Quote from: ccbtimewiz on August 12, 2008, 04:22:03 PM
Add $modSettings to the global declarations.


Hope the error is no more. Thanks for pointing it.
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 13, 2008, 11:39:40 PM
Do you still require assistance asudhakar?
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on August 14, 2008, 12:47:41 AM
Quote from: JohnyB on August 13, 2008, 11:39:40 PM
Do you still require assistance asudhakar?

Thanks a Lot Author. The Mod is Now perfect and working exactly what it has to.
The Mod and a great impact on the page design.

Thanks for the excellent assistance and Good Mod Author.
Title: Re: Enhance Recent Post
Post by: Mskina on August 17, 2008, 03:52:46 PM
spanish and spanish_es (works also on utf8 files)

<!-- default/languages/Modifications.spanish.php -->
<file name="$languagedir/Modifications.spanish.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end"></search>
<add><![CDATA[
$txt['joined'] = 'Registrado';
]]></add>
</operation>
</file>


<!-- default/languages/Modifications.spanish_es.php -->
<file name="$languagedir/Modifications.spanish_es.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end"></search>
<add><![CDATA[
$txt['joined'] = 'Registrado';
]]></add>
</operation>
</file>
Title: Re: Enhance Recent Post
Post by: Bulakbol on August 17, 2008, 11:27:46 PM
Thanks for the Spanish translation Mskina. Appreciated it.
Title: Re: Enhance Recent Post
Post by: Ferrin on August 18, 2008, 08:22:27 PM
Great mod!

But how integrate the "Recent.template" changes in "Recent.template" from "WoW-DK" Theme?


Title: Re: Enhance Recent Post
Post by: Bulakbol on August 19, 2008, 07:49:30 PM
Ferrin, here's your edited wowdk Recent.template.php. Use this file after you installed the mod.

<edit>The wowck has its own Modifications.english.php language file. You have to open wowdk/languages/Modifications.english.php and add this line.
$txt['joined'] = 'Joined';
Title: Re: Enhance Recent Post
Post by: Ferrin on August 20, 2008, 07:27:30 AM

Thank You! ;-)
Title: Re: Enhance Recent Post
Post by: neil h on September 17, 2008, 10:19:12 AM
I'm using a theme (Versatility) that does not have a recent.template.php file - it uses the default theme file. the mod works, but the theme is a bit screwed up (see attachment).

Is there any way I could extend the bar across the bottom of the post and take away the white background on the buttons?
Title: Re: Enhance Recent Post
Post by: Bulakbol on September 18, 2008, 01:05:50 AM
@neil h
I can't find your theme so I can't do any testing.
Title: Re: Enhance Recent Post
Post by: neil h on September 18, 2008, 02:56:47 AM
Quote from: JohnyB on September 18, 2008, 01:05:50 AM
@neil h
I can't find your theme so I can't do any testing.
Would I be able to send you the index.template or something? my site is frameforum dot org.
Title: Re: Enhance Recent Post
Post by: Bulakbol on September 18, 2008, 03:01:21 AM
I need the whole theme for testing. It's hard to find missing colspan without the theme.
Title: Re: Enhance Recent Post
Post by: Bulakbol on September 19, 2008, 05:13:25 AM
@neil h Re: Versatality theme.
Here's what you have to do. It's easy. Open the default/Recent.template.php and look for
<td class="catbg" colspan="3" align="right">

Replace with
<td class="catbg" colspan="5" align="right">
Title: Re: Enhance Recent Post
Post by: neil h on September 19, 2008, 01:51:00 PM
Quote from: JohnyB on September 19, 2008, 05:13:25 AM
@neil h Re: Versatality theme.
Here's what you have to do. It's easy. Open the default/Recent.template.php and look for
<td class="catbg" colspan="3" align="right">

Replace with
<td class="catbg" colspan="5" align="right">
Perfect!

Works a treat!

Thanks Jonny
Title: Re: Enhance Recent Post
Post by: Bulakbol on September 20, 2008, 01:31:01 PM
You're welcome neil h. If you have other issues with this mod, just post and I'll try to help you.
Title: Re: Enhance Recent Post
Post by: Elesarr on October 16, 2008, 10:24:47 PM
Hello,

I was most impressed with your mod and decided to give it a go.  Sadly it does nothing to my recent posts  :(

I have 5 Recent posts showing on the board
I am using SMF 1.1.6 with DzinerStudio's Silent Wave theme
that theme uses the Core files for Recent and Recent_template

I have attached the files for you to look at (thought I did check them and the mod installed correctly)

Could it be the version of SMF I am using?

Any insight would be appreciated.

Thank you in advance!

Cheers!
Title: Re: Enhance Recent Post
Post by: Bulakbol on October 16, 2008, 10:31:39 PM
@Elesarr
I need a copy of your theme so I can do the edit only once.
Title: Re: Enhance Recent Post
Post by: Elesarr on October 16, 2008, 10:33:02 PM
Here it is
Title: Re: Enhance Recent Post
Post by: Bulakbol on October 17, 2008, 01:11:44 AM
@Elesarr
Its getting late here so I'll get back to you tomorrow.
Title: Re: Enhance Recent Post
Post by: nay27uk on November 06, 2008, 10:07:28 AM
got a problem with this take a lokk at picture the table background image stops half way.
How can i resolve it.

Title: Re: Enhance Recent Post
Post by: Bulakbol on November 06, 2008, 09:01:27 PM
@nay27uk
Attach your Recent.template.php. I'll look at it. Which theme is it?
Title: Re: Enhance Recent Post
Post by: nay27uk on November 07, 2008, 09:11:18 AM
Quote@nay27uk
Attach your Recent.template.php. I'll look at it. Which theme is it?

Thanks for the help find recent template attached
Title: Re: Enhance Recent Post
Post by: Bulakbol on November 08, 2008, 06:55:42 PM
@nay27uk
Looking at the image you posted, it seems like it is not from the default theme.
Title: Re: Enhance Recent Post
Post by: nay27uk on November 10, 2008, 08:23:22 PM
Quote from: JohnyB on November 08, 2008, 06:55:42 PM
@nay27uk
Looking at the image you posted, it seems like it is not from the default theme.

it is the default template i just altered the colors and enabled the buttons that come with it
Title: Re: Enhance Recent Post
Post by: Bulakbol on November 11, 2008, 07:37:27 PM
I tried your Recent.template.php but can't reproduce the broken layout. One of your "td" tag requires colspan tag.  What are the changes that you did?
Title: Re: Enhance Recent Post
Post by: nay27uk on November 12, 2008, 05:18:30 AM
Quote from: JohnyB on November 11, 2008, 07:37:27 PM
I tried your Recent.template.php but can't reproduce the broken layout. One of your "td" tag requires colspan tag.  What are the changes that you did?

just altered the coloring in the css for tablebg and tablebg2, added a background image to the css for hole board, and enabled the buttons. nothing major
Title: Re: Enhance Recent Post
Post by: C.Jack on November 24, 2008, 10:58:49 AM
Very nice MOD, but I've found some conflicts with 2 other MODS in 2.0b4. If this MOD is installed after the Downloads System MOD, it shows no errors upon install, but causes an eval error for the Downloads MOD in the error log. After uninstall of this MOD the errors stop. Also, The Linktree Fix MOD will not install error free while this one is installed.

I just thought you would want to be aware of these conflicts in case you were working on any improvements or bug fixes.
Title: Re: Enhance Recent Post
Post by: Bulakbol on November 25, 2008, 08:07:18 AM
@nay27uk
Not sure why it is behaving like that. I'll try your css file. Attach it to your post.

@CaptJack
AFAIK, this mod is bugfree.  There might be a variable conflict with other mods. Something like the same name of variables. If you can post the complete error, I'll try to find out what causes the problem.
Title: Re: Enhance Recent Post
Post by: Molten Bear on February 14, 2009, 11:59:24 AM
Does this package work on SMF 2.0 RC1 ?

Title: Re: Enhance Recent Post
Post by: Bulakbol on February 17, 2009, 04:16:38 PM
@Molten Bear
Not sure. I got sick but I am back so i will update my mods including this one soon.
Title: Re: Enhance Recent Post
Post by: bullbreedluverz on February 17, 2009, 04:17:47 PM
i have it working fine on RC1
Title: Re: Enhance Recent Post
Post by: Bulakbol on February 17, 2009, 04:21:16 PM
That's good. :) I think it is compatible without making any changes.
Title: Re: Enhance Recent Post
Post by: Bec on March 03, 2009, 05:23:08 PM
Quote from: Bec on July 20, 2008, 08:03:06 PM
Hi Guys,

I just noticed my recent posts are not showing properly.. the section that shows

" Started by xxx - Last post by xxx" is showing one name for both items even though a different person created the post (i.e. a post was created by John but its showing as  Started by Rebecca - Last post by Rebecca).

I am running 1.1.5, has been installed for a while but only noticed this problem now, everything went fine at installation and im running a custom theme... if someone could please advise how to correct this it would be greatly appreciated.

Cheers  :D

Hi,

I removed this mod from my site a while ago hence why I never bothered to follow this up but I have just reinstalled it, and I am having the same problems, am running smf 1.1.8. I have attached my template could you please have a look at it for me... and I'm sorry but if you need the full theme I can't attach it as its paid and I can't distribute it, its Urban from Dzinerstudio so would greatly appreciate advice on how I can fix it.

Cheers.
Title: Re: Enhance Recent Post
Post by: Sudhakar Arjunan on March 08, 2009, 10:52:30 AM
Works perfectly on my 2.0 RC1 .

Thanks for this excellent mod.
Title: Re: Enhance Recent Post
Post by: shaitanfr on June 08, 2009, 02:49:52 PM
Hi Bec,

PM me. I use Urban and I have added this Mod but my Theme is completly customized.
http://passion-xbmc.org/forum-skin (half finish)
If you are always interessed by the Enhance Recent Post, I will give you a copy of my Recent.template.php.

Title: Re: Enhance Recent Post
Post by: Bulakbol on June 09, 2009, 01:38:14 AM
@Bec
I'm awfully sorry. I got sick and forgot about this. Do you still need help?

@A.SK
Thanks for the compliment. Thank you for using/trying this mod.

@shaitanfr
I thank you for offering Bec help. I appreciated it.
Title: Re: Enhance Recent Post
Post by: Bec on June 11, 2009, 12:53:42 PM
Hi Bulakbol,

No worries. I have touched base with shaitanfr, and will try to sort it out myself! Will give you a yell if I need your help! Thanks for the post :) Hope you feel better!
Title: Re: Enhance Recent Post
Post by: lucifur on June 11, 2009, 01:17:10 PM
how to modify for used with Dilber Multicolor ?
best regard,
Title: Re: Enhance Recent Post
Post by: shaitanfr on June 11, 2009, 02:34:10 PM
Mail sent to Bec !

@ Lucifur: There is no Recent.template.php in Dilbermc (my actual Theme).

Title: Re: Enhance Recent Post
Post by: Bulakbol on June 12, 2009, 01:03:48 AM
@Bec
Thanks. let me know how it goes.
Title: Re: Enhance Recent Post
Post by: lucifur on June 12, 2009, 11:53:24 AM
Quote from: shaitanfr on June 11, 2009, 02:34:10 PM
Mail sent to Bec !

@ Lucifur: There is no Recent.template.php in Dilbermc (my actual Theme).

Thank you Shaitanfr
+++++++++++++++++++++++++++++++




<!-- default/languages/Modifications.thai.php -->
<file name="$languagedir/Modifications.thai.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end" />
<add><![CDATA[
$txt['joined'] = 'เชื่อม';
]]></add>
</operation>
</file>

<!-- default/languages/Modifications.thai-utf8.php -->
<file name="$languagedir/Modifications.thai-utf8.php" error="skip">
<operation><!-- look for ?> tag -->
<search position="end" />
<add><![CDATA[
$txt['joined'] = 'เชื่อม';
]]></add>
</operation>
</file>

Title: Re: Enhance Recent Post
Post by: shaitanfr on June 12, 2009, 12:15:23 PM
Quote from: Bulakbol on June 09, 2009, 01:38:14 AM


@shaitanfr
I thank you for offering Bec help. I appreciated it.

I appreciate many of yours Mods, great work. Thank you.
Title: Re: Enhance Recent Post
Post by: LHW on June 12, 2009, 12:34:16 PM
I'm running v1.1.9 with the default them, and noticed the same problem Bec mentioned...it shows "Started by" as the same person for that post, even if they didn't start it.

e.g. If it was started by "Tom," and "Dick" posts, on Dick's post it'll show that Dick started it.  Then, if "Harry" posts, on Harry's post, it'll state that Harry started it.
Title: Re: Enhance Recent Post
Post by: Bulakbol on June 13, 2009, 08:05:30 PM
Apologies. It is my mistake. Only the SMF version 1.1.9 is affected. Here's temporary fix until I update the mod.
default/Recent.template.php, find
Quote<span class="middletext"> ', $txt[109] . ' ' . $post['poster']['link'] . ' - ' . $txt[22] . ' ' . $txt[525], ' ' . $post['poster']['link'] . '</span>
replace with
Quote<span class="middletext"> ', $txt[109] . ' ' . $post['first_poster']['link'] . ' - ' . $txt[22] . ' ' . $txt[525], ' ' . $post['poster']['link'] . '</span>


@lucifer
Thanks for the translated language string but unfortunately, my text editor does not support the characters. :( It turned out like this.
$txt['joined'] = '??????';
I am using Notepad++ and converted to different format but no luck. Sorry.
Title: Re: Enhance Recent Post
Post by: LHW on June 24, 2009, 03:24:41 PM
Thanks!  I finally got around to doing that edit, and it works perfectly now!  ;D
Title: Re: Enhance Recent Post
Post by: Robbo_ on December 03, 2009, 10:26:01 PM
Lol another one of your mods that my client wants so here is that sentence again...

Are you planning to update this to 2.0 RC2 anytime soon? If not please say so, so I can update it myself.
Title: Re: Enhance Recent Post
Post by: Sabre™ on March 14, 2010, 05:49:54 AM
Robbo_
Did you convert this for RC2 mate?
Care to share?
Title: Re: Enhance Recent Post
Post by: Robbo_ on March 14, 2010, 08:12:53 AM
I think I did. But I'm too lazy to find it and it needs to be checked for RC3. I'll get around to it oneday.
Title: Re: Enhance Recent Post
Post by: LinuxFanatic on September 20, 2010, 11:29:43 PM
Quote from: Bulakbol on May 08, 2008, 05:11:19 PM
Hi rumfa.  You probably found a bug.  :P Could you please try this. In Sources/Recent.php, find
mem.dateRegistered, mem.location, mem.showOnline, mem.personalText, t.ID_FIRST_MSG, at.ID_ATTACH, at.attachmentType,

and replace with
mem.dateRegistered, mem.location, mem.showOnline, mem.personalText, t.ID_FIRST_MSG, at.ID_ATTACH, at.attachmentType, at.filename,

I just added " at.filename," at the end. I think I missed it. Thanks a lot.



I have this error still on my SMF Forum, version 1.1.11

But this solution ^^^ fixed the error. Thanks!

Btw: Are there any plans for a SMF bug-fix update ?

Regards,
Gürkan
Title: Re: Enhance Recent Post
Post by: Jeff B on December 17, 2011, 09:23:33 AM
Is there any chance of some help getting this to work for 2.0.* ?  I tried to use the parser on the mod page, but the code on recent.template.php is significantly different.  Our forum members that use the recent posts action really liked this mod. in 1.1.*