Jump to content

Download: (SOS31) Recent Topics


Adriano Faria

Recommended Posts

I have a question and I don't know how to do this exactly. On my first page I want two of these resent posts and topics. The first one is the serious one, focusing on the latest news sections in my forum. The second one is for everything else. In other word, this would be like installing the hook twice but the ajax update should work for both (one update for both).
I'll be willing to pay for anyone who knows how to do this if needed.

Best regards,
joschen

Link to comment
  • 1 month later...
  • Replies 149
  • Created
  • Last Reply
  • 2 weeks later...

I appreciate the work, but shouldn't your Recent Topics hook more accurately be called Recent Posts? From what I've seen so far, it doesn't just list the newest topics (which is what I would think it did based on the name), it updates and displays all topics at every new reply....

Link to comment
  • 2 weeks later...

Absolutely love this mod and have been using it for as long as I can remember. I'm just working on a redesign at the moment and was stuck trying to figure out how to get it to just show the last breadcrumb.

At the moment there is a foreach loop for the breadcrump and it shows Forum > Forum > Etc. Basically I just want it to show the forum it was posted in rather than the whole breadcrumb. Keep up the fantastic work!

Link to comment
  • 2 weeks later...
  • 2 weeks later...

hi Adriano.The name of file in download is always sos30 and not sos31


No problem.... XML is a 3.1 version.

Adriano, i have very modified skin, and hook dont display. Is there a possibility to add manually a code in boardindextemplate to call this hook? can i use a normal parse for template?


This hook searchs for a hook point in Board Index, same used by others hooks.
Link to comment

Adriano, i have very modified skin, and hook dont display.


Is there a possibility to add manually a code in boardindextemplate to call this hook? can i use a normal parse for template?



  <style type="text/css" >

        /* Inline CSS */


        table.recentTopicsTable

        {

          border: 1px solid #9AB2C6;

        }


        #recentTopics

        {

                border-bottom: 4px solid #D5DDE5;       

        }


        .block_wrap h3.collapsed a.toggle

        {

                background-image: url({$this->settings['img_url']}/cat_maximize.png);

        }

</style>

<script src="{$this->settings['public_dir']}js/ips.recentTopicsHook.js" type="text/javascript"></script>

<script src="{$this->settings['public_dir']}js/ips.forums.js" type="text/javascript"></script>


<script type="text/javascript">

        ipb.recentTopics.updateInterval = parseInt( {$this->settings['topicosrecentes_updateInterval']} );

</script>

<div class='block_wrap' id="recentTopicsWrapper">

        <h3 id='hook_recentTopics' class='maintitle'><a class='right toggle' href='#' title='{$this->lang->words['click_toggle']}'>{$this->lang->words['click_toggle']}</a>{$this->lang->words['topicos_recentes']}</h3>

        <table class="ipb_table" cellspacing="0">

        <tr>

        <th class='header' width='4%'>&nbsp;</th>

        <th class='header' width='62%'>Discussione</th>

        <th class='header' width='8%'>Risposte</th>

        <th class='header' width='8%'>Visite</th>

        <th class='header' width='18%'>Ultime Info Topic</th>

        </tr>

        </table>

        <div id="recentTopics" style="{$wrapperData['style']}" class="{$wrapperData['class']}">

                <if test="is_array( $topicos ) && count( $topicos )">

                        {parse striping="topicosrecentes_hook" classes="row1,row2"}

                        <ul>

                                <foreach loop="topicosrecentes_hook:$topicos as $r">

                         <php>

                                 $class          = "class='altrow'";

                                 $classTwo       = '';

                         </php>

                         <li>

                                 <table class="ipb_table recentTopicsTable" cellspacing="0" cellpadding="0">

                                         <tr class="{parse striping="topicosrecentes_hook"}">

                                         <td {$class} align='center' width='4%'>{parse replacement="{$r['image']}"}</td>

                         <td {$class2} width='52%'><b><a href='{parse url="showtopic={$r['topico']['tid']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$r['topico']['title_seo']}"}' title='{$r['topico']['title']}'>{IPSText::truncate($r['topico']['title'],60)}</a></b><br /><span class='date'>{$this->lang->words['cat_name']}:             <foreach loop="topicsForumTrail:$r['breadcrumb'] as $i => $f">

                <a href='{parse url="{$f[1]}" template="showforum" seotitle="{$f[2]}" base="public"}'>{$f[0]}</a> <if test="notLastFt:|:$i+1 != count( $r['breadcrumb'] )">&gt;</if>

                </foreach>

</td>

                                         <td {$class} align='center' width='18%'><address class="author vcard">{IPSLib::makeProfileLink(IPSLib::makeNameFormatted( $r['topico']['starter_name'], $r['topico']['grupo1']), $r['topico']['starter_id'])}{parse template="user_popup" group="global" params="$r['topico']['starter_id'], $r['topico']['nome1']"}</address><br />{$this->lang->words['in_last_topic']} {parse date="$r['topico']['start_date']" format="short"}</td>

                                         <td {$class2} align='center' width='8%'><a href="{parse url="app=forums&amp;module=extras&amp;section=stats&amp;do=who&amp;t={$r['topico']['tid']}" base="public"}" onclick="return ipb.forums.retrieveWhoPosted( {$r['topico']['tid']} );">{$r['topico']['posts']}</a></td>

                                         <td {$class} width='18%'><a href='{parse url="showtopic={$r['topico']['tid']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$r['topico']['title_seo']}"}' title='{$this->lang->words['view_last_post']}'>{parse replacement="f_lastpost"}</a> <a href='{parse url="showtopic={$r['topico']['tid']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$r['topico']['title_seo']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$r['topico']['last_post']" format="short"}</a><br /><b>{$this->lang->words['forum_by']}</b>: <address class="author vcard">{IPSLib::makeProfileLink(IPSLib::makeNameFormatted( $r['topico']['last_poster_name'], $r['topico']['grupo2']), $r['topico']['last_poster_id'])}{parse template="user_popup" group="global" params="$r['topico']['last_poster_id'], $r['topico']['nome2']"}</address></td>

                                         </tr>

                                                </table>

                                        </li>

                                </foreach>

                        </ul>

                </if>

        </div>

</div>  



Put this loop, if you want the hook appears under last forum, up the stats, before the:

<ul id='stat_links' class='filter_bar rounded'>

Link to comment

Can you integrate thismod into recent topics?


I'll give it a try.

And also a setting for disabling ajax updates? It's a super resource hog for big forums. And there's no better recent topics addon than this.


Well, this is what really makes this hook so nice, but I can make it as a setting (default value: ON)... so you'll can disable it.

Anyway, have you tried to use a higher number of seconds (45s, 1min, etc.) ?
Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...