QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Recent posts

#1
SMF 2.1 / Re: SMF recent thread does not...
Last post by Noble - Today at 04:36 AM
Quote from: Noble on Yesterday at 02:38 AMYou cannot view this attachment.


1. open  yourwebsite.com/Themes/default/languages/index.english.php

Find
$txt['response_prefix'] = '[color=red]Re: [/color]';
then change from 'RE: '; change to '';

2. open  yourwebsite.com/Sources/Subs-Recent.php

find
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)

change to
INNER JOIN {db_prefix}topics AS t ON (t.id_last_msg = m.id_msg)
find
WHERE m.id_msg >= {int:likely_max_msg}

change to
WHERE t.id_last_msg >= {int:likely_max_msg}
find
ORDER BY m.id_msg DESC

change to
ORDER BY t.id_last_msg DESC
finish
#2
SMF 2.1 / Re: install Recent topics on t...
Last post by Noble - Today at 03:06 AM
Quote from: Skhilled on Yesterday at 07:26 AMI'm sorry but it is not in English and I don't understand it.

Try to understand again.
#3
SMF 2.1 / Re: install Recent topics on t...
Last post by Dave - Today at 02:46 AM
This should help...
#4
SMF 2.1 / Re: install Recent topics on t...
Last post by Skhilled - Yesterday at 07:26 AM
I'm sorry but it is not in English and I don't understand it.
#5
SMF 2.1 / Re: SMF recent thread does not...
Last post by Skhilled - Yesterday at 07:24 AM
What site is that and exactly where is it? Is that from the TP Recent block? If so, it is best to ask them because they can fix it or add something that will fix it.
#6
SMF 2.1 / install Recent topics on top F...
Last post by Noble - Yesterday at 04:01 AM
You cannot view this attachment.

1. open file yourwebsite.com\smf\Themes\default\BoardIndex.template.php

Find and delete all
<?php

/**
* The recent posts section of the info center
*/
function template_ic_block_recent()
{
    global 
$context$scripturl$settings$txt;

    
// This is the "Recent Posts" bar.
    
echo '
            <div class="sub_bar">
                <h4 class="subbg">
                    <a href="'
$scripturl'?action=recent"><span class="main_icons recent_posts"></span> '$txt['recent_posts'], '</a>
                </h4>
            </div>
            <div id="recent_posts_content">'
;

    
// 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 '
                <p id="infocenter_onepost" class="inline">
                    <a href="'
$scripturl'?action=recent">'$txt['recent_view'], '</a> 'sprintf($txt['is_recent_updated'], '&quot;' $context['latest_post']['link'] . '&quot;'), ' ('$context['latest_post']['time'], ')<br>
                </p>'
;
    }
    
// Show lots of posts.
    
elseif (!empty($context['latest_posts']))
    {
        echo 
'
                <table id="ic_recentposts">
                    <tr class="windowbg">
                        <th class="recentpost">'
$txt['message'], '</th>
                        <th class="recentposter">'
$txt['author'], '</th>
                        <th class="recentboard">'
$txt['board'], '</th>
                        <th class="recenttime">'
$txt['date'], '</th>
                    </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. */
        
foreach ($context['latest_posts'] as $post)
            echo 
'
                    <tr class="windowbg">
                        <td class="recentpost"><strong>'
$post['link'], '</strong></td>
                        <td class="recentposter">'
$post['poster']['link'], '</td>
                        <td class="recentboard">'
$post['board']['link'], '</td>
                        <td class="recenttime">'
$post['time'], '</td>
                    </tr>'
;
        echo 
'
                </table>'
;
    }
    echo 
'
            </div><!-- #recent_posts_content -->'
;
}

?>

2. Create a file named showrecent.php Then write this code into showrecent.php

<?php

/**
* The recent posts section of the info center
*/
function template_ic_block_recent()
{
    global 
$context$scripturl$settings$txt;

    
// This is the "Recent Posts" bar.
    
echo '
            <div class="sub_bar">
                <h4 class="subbg">
                    <a href="'
$scripturl'?action=recent"><span class="main_icons recent_posts"></span> '$txt['recent_posts'], '</a>
                </h4>
            </div>
            <div id="recent_posts_content">'
;

    
// 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 '
                <p id="infocenter_onepost" class="inline">
                    <a href="'
$scripturl'?action=recent">'$txt['recent_view'], '</a> 'sprintf($txt['is_recent_updated'], '&quot;' $context['latest_post']['link'] . '&quot;'), ' ('$context['latest_post']['time'], ')<br>
                </p>'
;
    }
    
// Show lots of posts.
    
elseif (!empty($context['latest_posts']))
    {
        echo 
'
                <table id="ic_recentposts">
                    <tr class="windowbg">
                        <th class="recentpost">'
$txt['message'], '</th>
                        <th class="recentposter">'
$txt['author'], '</th>
                        <th class="recentboard">'
$txt['board'], '</th>
                        <th class="recenttime">'
$txt['date'], '</th>
                    </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. */
        
foreach ($context['latest_posts'] as $post)
            echo 
'
                    <tr class="windowbg">
                        <td class="recentpost"><strong>'
$post['link'], '</strong></td>
                        <td class="recentposter">'
$post['poster']['link'], '</td>
                        <td class="recentboard">'
$post['board']['link'], '</td>
                        <td class="recenttime">'
$post['time'], '</td>
                    </tr>'
;
        echo 
'
                </table>'
;
    }
    echo 
'
            </div><!-- #recent_posts_content -->'
;
}

?>

2.showrecent.php Put it in the same place as SSI.php ex. yourwebsite.com\smf\showrecent.php

3.open file yourwebsite.com\smf\Themes\default\BoardIndex.template.php

search
<div id="boardindex_table" class="boardindex_table">'
Then add the code below.
require("showrecent.php");
template_ic_block_recent(20);
echo '<br />'

5. open file  yourwebsite.com\smf\Themes\default\BoardIndex.template.php

search 
foreach ($context['info_center'] as $block)
    {
        $func = 'template_ic_block_' . $block['tpl'];
        $func();
    }

Replace all the code below.
foreach ($context['info_center'] as $block)
    {
        if ($block['tpl'] == 'recent')
            continue;

        $func = 'template_ic_block_' . $block['tpl'];
        $func();
    }


finish
#7
SMF 2.1 / SMF recent thread does not all...
Last post by Noble - Yesterday at 02:38 AM
SMF recent thread does not allow Re to be posted again.

I can't find the edit location.
You cannot view this attachment.
#8
SMF 2.1 / Re: Button font size
Last post by Skhilled - May 24, 2024, 09:24 PM
You can create one using Tinyportal. There is a block installed with it. All you need to do is enable it. If you don't have Tinyportal, you can look at it here:

https://www.tinyportal.net/
#9
SMF 2.1 / Re: Button font size
Last post by Skhilled - May 24, 2024, 09:15 PM
I believe that is a TinyPortal block.
#10
SMF 2.1 / Move Recent Forum Topics on Bo...
Last post by Noble - May 24, 2024, 08:47 PM
Move Recent Forum Topics on Board Index

How to set and edit?

I want it like in the picture.

Thank you in advance.

You cannot view this attachment.