Advertisement:

Author Topic: Recent Topics On Board Index  (Read 43203 times)

Offline kith

  • Semi-Newbie
  • *
  • Posts: 59
Re: Recent Topics On Board Index
« Reply #20 on: September 10, 2008, 07:57:43 AM »
That's unmistakably a link :)
I'm sure that'll help other idiots like myself ;P

Offline neil h

  • Semi-Newbie
  • *
  • Posts: 99
  • Gender: Male
    • frameforum
Re: Recent Topics On Board Index
« Reply #21 on: September 17, 2008, 09:00:07 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? 

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Recent Topics On Board Index
« Reply #22 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:
Code: [Select]
$txt[214]If you have SMF 2 Beta:
Code: [Select]
$txt['recent_posts']
Replace all occurrences of that code with this code:
Code: [Select]
$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.

Offline neil h

  • Semi-Newbie
  • *
  • Posts: 99
  • Gender: Male
    • frameforum
Re: Recent Topics On Board Index
« Reply #23 on: September 18, 2008, 02:57:54 AM »
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:
Code: [Select]
$txt[214]If you have SMF 2 Beta:
Code: [Select]
$txt['recent_posts']
Replace all occurrences of that code with this code:
Code: [Select]
$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.
« Last Edit: September 18, 2008, 03:05:08 AM by neil h »

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Recent Topics On Board Index
« Reply #24 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. :)
« Last Edit: September 18, 2008, 03:42:29 AM by LHVWB »
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.

Offline neil h

  • Semi-Newbie
  • *
  • Posts: 99
  • Gender: Male
    • frameforum
Re: Recent Topics On Board Index
« Reply #25 on: September 18, 2008, 04:12:35 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.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Recent Topics On Board Index
« Reply #26 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
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.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Recent Topics On Board Index
« Reply #27 on: September 18, 2008, 08:02:53 AM »
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.

Offline Squash

  • Semi-Newbie
  • *
  • Posts: 86
Re: Recent Topics On Board Index
« Reply #28 on: September 18, 2008, 10:54:15 AM »
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

jharnasch@gmail.com   ..... 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.

Offline neil h

  • Semi-Newbie
  • *
  • Posts: 99
  • Gender: Male
    • frameforum
Re: Recent Topics On Board Index
« Reply #29 on: September 18, 2008, 02:25:51 PM »
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?

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Recent Topics On Board Index
« Reply #30 on: September 19, 2008, 02:42:25 AM »
@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.

Offline kith

  • Semi-Newbie
  • *
  • Posts: 59
Re: Recent Topics On Board Index
« Reply #31 on: September 25, 2008, 07:46:52 PM »
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.

Offline Asshandler

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Stryker Island
Re: Recent Topics On Board Index
« Reply #32 on: October 07, 2008, 02:25:47 PM »
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.

Offline Asshandler

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Stryker Island
Re: Recent Topics On Board Index
« Reply #33 on: October 07, 2008, 06:24:13 PM »
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.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Recent Topics On Board Index
« Reply #34 on: October 07, 2008, 11:13:30 PM »
@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.

Offline Asshandler

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Stryker Island
Re: Recent Topics On Board Index
« Reply #35 on: October 08, 2008, 12:28:34 AM »
Here ya go
The only thing necessary for the triumph of evil is for good men to do nothing.

Offline Nathaniel

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,117
  • Gender: Male
    • Verbtest.com
Re: Recent Topics On Board Index
« Reply #36 on: October 08, 2008, 12:39:00 AM »
Find this code:
Code: [Select]
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:
Code: [Select]
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.

Offline Asshandler

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Stryker Island
Re: Recent Topics On Board Index
« Reply #37 on: October 08, 2008, 12:54:45 AM »
That did it, thank you.  :)
The only thing necessary for the triumph of evil is for good men to do nothing.

Offline Asshandler

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Stryker Island
Re: Recent Topics On Board Index
« Reply #38 on: October 08, 2008, 12:59:34 AM »
If I wanted to remove the board link, would I just remove this part?

Code: [Select]
(', $post['board']['link'], ')

Edit -- nvm, yup that worked. 
« Last Edit: October 08, 2008, 01:08:02 AM by Asshandler »
The only thing necessary for the triumph of evil is for good men to do nothing.

Offline FiCHA

  • Newbie
  • *
  • Posts: 4
Re: Recent Topics On Board Index
« Reply #39 on: October 22, 2008, 05:39:13 AM »
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'