News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Recent Topics On Board Index

Started by Nathaniel, August 04, 2008, 07:19:01 PM

Previous topic - Next topic

kith

That's unmistakably a link :)
I'm sure that'll help other idiots like myself ;P

neil h

Quote from: kith on August 08, 2008, 06:10:31 AM
Fantastic MOD, just installed at http://www.clanvmk.com/clanvmk/forum/index.php
Thank you very much.

I just checked out the link to your board and the Info Center still says 'Recent Posts'. If you've installed the mod, surely it should be reading 'recent topics'??

Is this an oversight of the mod, or something you need to edit manually in your theme language settings? 

Nathaniel

No its not an oversight of the mod, if you swap over to your default theme then it will work perfectly. You will have to make a change to your custom theme so that it uses the correct language string.

Find this code ('/themes/{themename}/BoardIndex.template.php'):
If you have SMF 1.1.x:
$txt[214]
If you have SMF 2 Beta:
$txt['recent_posts']

Replace all occurrences of that code with this code:
$txt['RecentTopicsOnBoardIndex_recenttopics']

I have however, forgotten to make a note of this on the documentation page, I will try to add that as soon as possible. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

neil h

#23
Quote from: LHVWB on September 17, 2008, 08:09:50 PM
No its not an oversight of the mod, if you swap over to your default theme then it will work perfectly. You will have to make a change to your custom theme so that it uses the correct language string.

Find this code ('/themes/{themename}/BoardIndex.template.php'):
If you have SMF 1.1.x:
$txt[214]
If you have SMF 2 Beta:
$txt['recent_posts']

Replace all occurrences of that code with this code:
$txt['RecentTopicsOnBoardIndex_recenttopics']

I have however, forgotten to make a note of this on the documentation page, I will try to add that as soon as possible. ;)

Knowledge is power... :)

Here's a question; would it be possible to do something similar with the 'recent posts' tab, so that recent topics are displayed, rather than a list of the last posts?

That's another mod I suppose, but 'recent posts' on the info center and recent topics on the tab would work better on my board.

Nathaniel

#24
It would be a different mod, although it would be just as simple to make, so I am happy to make it. Although the mod below may suit your needs as well:
http://custom.simplemachines.org/mods/index.php?mod=1284

Do you think that there is a need for another mod that just changes the 'action=recent' page to posts instead of topics?

Edit: I have now updated the mod download page to include those instructions. :)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

neil h

Quote from: LHVWB on September 18, 2008, 03:38:07 AM
It would be a different mod, although it would be just as simple to make, so I am happy to make it. Although the mod below may suit your needs as well:
http://custom.simplemachines.org/mods/index.php?mod=1284

Do you think that there is a need for another mod that just changes the 'action=recent' page to posts instead of topics?

Edit: I have now updated the mod download page to include those instructions. :)

On my board at least, the number of posts outweigh the number of topics by about 10:1. The board has been going for a while, so the members are kind of used to seeing the 'recent posts' on the Info Center. That said, from my point of view at least, I'd rather just see the number of new topics and what they're about, rather than reading every post. 

With me being in the UK and most of the members in the USA, it  means I can miss new topics, because the 'recent posts' panel fills up overnight.
Having 'recent topics' on the tab would suit me fine and the members would probably still rely on the 'recent posts' panel and 'show new posts' option when they log on to see what's new.

Nathaniel

Okay, I'll make it into a mod and post again once its approved.

I will probably call it 'Recent Topics for 'Recent' Action', unless you can think of a better name. ;D
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Nathaniel

Okay, just an update. I have made the 'Recent Topics On "Recent Posts" Page' mod and submitted it to the mod site, it is now waiting for approval. Hopefully it will be approved within the next few days, I will post a link once its been approved. ;D
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Squash

I'm curious LHVWB if you are available to do site work to add this feature and a few other things that may be simple to you but not me. I have some things I'd like done but have no time to do them. If so could you contact me at this email

[email protected]   ..... I am willing to pay you if it's somewhat reasonable.

If this sort of question on these boards is not okay, I apologize ahead of time.

neil h

Quote from: LHVWB on September 18, 2008, 05:41:37 AM
Okay, I'll make it into a mod and post again once its approved.

I will probably call it 'Recent Topics for 'Recent' Action', unless you can think of a better name. ;D
You Da Man!

How about 'Latest Topics' in place of 'Recent Posts' on the tab?

Nathaniel

@Squash,
Its okay to ask those sorts of questions on the boards, although usually they should be done via PM. I'm afraid that the answer is no. I don't really have time to be doing any custom/paid work. If you need help modifying a feature of SMF, or customizing your forum. Then you can ask in the SMF Coding Discussion board, I am happy to help with any questions, as are other community members. If you want somebody to do some customizing for you, then you could make a request in the Help Wanted (not for support) board.               

@neil h,
That will require a simple edit of a language string which the new mod will add to your 'Modifications.{language}.php' file. Once the mod is submitted I can show you the edit that is required to change the language string. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

kith

Quote from: neil h on September 17, 2008, 09:00:07 AM
Quote from: kith on August 08, 2008, 06:10:31 AM
Fantastic MOD, just installed at http://www.clanvmk.com/clanvmk/forum/index.php
Thank you very much.

I just checked out the link to your board and the Info Center still says 'Recent Posts'. If you've installed the mod, surely it should be reading 'recent topics'??

Is this an oversight of the mod, or something you need to edit manually in your theme language settings? 

This is something I prefer to keep as recent posts anyway, I just preferred that terminology. Enough people on my forum have problems keeping up with latest news and missing topics / posts / threads however you want to call it so I just left it as is.

Asshandler

Any idea how to un-bold the topic name in the recent list?  It just stands out a bit too much, wouldn't mind shrinking the text down a tad and removing the bold from it...
The only thing necessary for the triumph of evil is for good men to do nothing.

Asshandler

A little bumpage...

Anyone have any idea how to change the font size/bold effect?  I'd like to make it smaller, so it doesn't take up so much space on the page while still being able to show off at least 10 of the last active topics...
The only thing necessary for the triumph of evil is for good men to do nothing.

Nathaniel

@Asshandler,
If you post your 'BoardIndex.template.php' as an attachment, then I should be able to show you the required edit.

SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Asshandler

The only thing necessary for the triumph of evil is for good men to do nothing.

Nathaniel

Find this code:
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>', $post['link'], '</b> ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';


Replace with this code:
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="smalltext" valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</td>
<td class="smalltext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
</tr>';


That edit will make the text much smaller and also take away the bold topic title, you could also change the code more, if you need to. ;)
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Asshandler

The only thing necessary for the triumph of evil is for good men to do nothing.

Asshandler

#38
If I wanted to remove the board link, would I just remove this part?

(', $post['board']['link'], ')


Edit -- nvm, yup that worked. 
The only thing necessary for the triumph of evil is for good men to do nothing.

FiCHA

Hi there,
I installed the mod succesfully, but i always get following error in the Errorlog:

Fehlermeldung '8: Undefined index: RecentTopicsOnBoardIndex_recenttopics
Datei: /www/htdocs/w009805b/smf/Themes/default/BoardIndex.template.php (eval?)
Zeile: 108'


Advertisement: