Advanced Recent Posts / Topics

Started by Marook, January 20, 2008, 11:47:42 PM

Previous topic - Next topic

roadrunner33

Thanks for the quick reply.  I'll see to it this evening! 

roadrunner33


madman71

Hi!

Will this mod cause excessive CPU usage?

Im trying to pin point which mod is causing my problems.

thanks

allumius

Please you can help me?

I have de screibbles2 theme
I have installed the mod manually because in automatic it gives a error in Recent.php and BoardIndex.template.php

look the attach please

Marook

The screenshot shows a TinyPortal Block(!) The mod is used to alter the recent posts of the forum and display it inside the forum....
SMF Rulez ;) | Meet me home ! | My Mods


Marook

No this is not from the forum, this is from tinyportal! My mod doesnt support a tinyportal block! Activate the recent posts feature in admin panel and if the mod was installed successfully you will see the recent topics in the status bar...
SMF Rulez ;) | Meet me home ! | My Mods

allumius

Please can you modifi my recent.php and boardindextemplate.php??

ragrob


Chopper

Is there a way to make this appear at the top of the page rather than at the bottom?

Marook

you need to alter the boardindex.template.php and copy&paste the whole block to another position you like...
SMF Rulez ;) | Meet me home ! | My Mods

Kimmie

#111
The mod seemed to install fine (no test failed's), however I have 3 issues..

This error in my error log:

Quote2: Missing argument 3 for db_query(), called in /home/patriotg/public_html/Packages/temp/add_settings.php on line 45 and defined
File: /home/patriotg/public_html/Sources/Subs.php
Line: 238



The collapse icon it added on the right hand side (I am assuming its supposed to be a collapse icon) - when you click the collapse icon it doesnt collapse the area, it merely shoots you back up to the top of the forum (screenshot of this attached). Is that what that icon is supposed to do rather than be a collapse icon?


The setting "Show recent topics instead of recent posts" doesnt work on mine. Mine shows just the recent posts with this option checked.

Any ideas?

Marook

on which version did you install this mod ?
SMF Rulez ;) | Meet me home ! | My Mods

Kimmie

#113
Quote from: Marook on April 27, 2008, 06:52:20 AM
on which version did you install this mod ?

1.1.4

update on the "Show Recent Topics Instead Of Recent Posts" - its ok. That setting needs to actually say "Show Recent Topics AND Recent Posts". With that setting checked, it shows both.  ;)

On the errors in my log, this is at the top (if it will help):

http://mysiteurl?action=packages;sa=install2;package=adv-recent-posts11.zip

I received the error twice when the mod was first installed (even though it gave no "test failed" errors while applying it). I have not received the error since - however its an error just the same.


Ramanathan

#115
Hi, really nice mod, congrats to the creator =D.

I've got a weird bug:

Only en IE, in some of the threads, there's no link, only plain text. You can see it happening in the image below with the topic "Gajes del oficio" and "Liquid Tension Experiment 1.0".

[nofollow]

This happens in default theme and in the other ones I've got installed. I've only centered the text, the rest is unmodified.

SMF Version: 1.1.4 (as today, 1.1.5 and error keeps happening).
Themes: Default, Mystic Jade, Dirge, The Four Colors
URL: www.dilberium.net/forum [nofollow]
User/pass: Testuser / test1234

Code (Default/Boardindex.template.php) Select
// 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[214], '</a></b>
<div class="smalltext">
', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
</div>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="1" width="100%" border="0">
<tr>
<td class="catbg2" style="text-align:center;"></td>
<td class="catbg2" style="text-align:center;">', $txt[70] ,'</td>
<td class="catbg2" style="text-align:center;">', $txt[110] ,'</td>
<td class="catbg2" style="text-align:center;">', $txt[301] ,'</td>
<td class="catbg2" style="text-align:center;">', $txt[20] ,'</td>
<td class="catbg2" style="text-align:center;">', $txt[29] ,'</td>
<td class="catbg2" style="text-align:center;">', $txt[317] ,'</td>
</tr>';


/* 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. */
$cnt = 0;
foreach ($context['latest_posts'] as $post){
$cnt++;
$class = ($cnt % 2) ? 'windowbg' : 'windowbg2';

echo '
<tr>
<td class="', $class, '"" style="text-align:center;"><img src="', $post['icon'] , '" alt="" /></td>
<td class="', $class, '"" style="text-align:center; title="', $post['preview'] ,'">', $post['link'], '</td>
<td class="', $class, '"" style="text-align:center;">', $post['replies'], '</td>
<td class="', $class, '"" style="text-align:center;">', $post['views'], '</td>
<td class="', $class, '"" style="text-align:center;">',$post['board']['link'], '</td>
<td class="', $class, '"" style="text-align:center;">',$post['poster']['link'], '</td>
<td class="', $class, '"" style="text-align:center;" nowrap="nowrap">', $post['time'], '</td>
</tr>';
}

echo '
</table>';
}
echo '
</td>
</tr>';
}


Please, help?

Thanks in advance!


Marook

#116
Got it ;)
You did a very tiny mistake trying to center the text ;) I just had a look through your source code and found this line :


<td class="windowbg"[color=red]"[/color] style="text-align:center;[color=red]"[/color] title="ese pibe claudio me cae bien "><a href="http://www.dilberium.net/forum/index.php?PHPSESSID=b8e810ac9733a3177b9b5477c11f5c37&amp;topic=493.msg13659;topicseen#msg13659">Gajes del oficio</a></td>
[b]why is tihs piece of code unreadable ???[/b]


The first red colored qoutes needs to be removed...
The seconde red colored qoutes are missing ;)

PS: Sorry but this piece of code can't be displayed properly...dont know why ;(

PPS: Change the following line :

<td class="', $class, '"" style="text-align:center; title="', $post['preview'] ,'">', $post['link'], '</td>


To this line...


<td class="', $class, '" style="text-align:center;" title="', $post['preview'] ,'">', $post['link'], '</td>


and you're done ;)
Greetz Marook
SMF Rulez ;) | Meet me home ! | My Mods

Ramanathan

Oooooh, you're sooo right, I totally missed the closing " ! As you can see, I'm fairly new at this =P.

I've never noticed that line of code, I will try and fix it...

Thanks so much for both your help and your quick response =).

Once more: Nice mod, Marook.

Saludos,

Laura.




DareDevil1990

#118
can u tell me how to install this mod in smf 1.1.5 pleaseeeee

DareDevil1990

Quote from: keshav on May 13, 2008, 06:42:04 AM
can u tell me how to install this mod in smf 1.1.5 pleaseeeee

i treid installing the mod manually edtited every thing the post said  laos add_settings.php
but the still its not workig pleasseeee help me people

Advertisement: