Customization > Custom Coding

Link to Forum inside of a Block

(1/4) > >>

bizref:
Could somebody help me with how I could add a

"Click For All Topics ..." instruction and link beneath the list of "Popular Topics" as part of the same block?

To be clear, Popular Topics would show the list of (parameter) most popular topics, and then centered beneath that list (or right justified) would be the link called "Click To View All Topics"

I think that would be a great way to bring people into the forum ...!

Thanks for your help!!!!  (I'm a newbie non-coding moron so remedial explanation would be much appreciated)

ccbtimewiz:
Well, exactly where would it take you? The board index?

bizref:
Yes, exactly: it would bring the visitor into the board index...

bizref:
Anybody?  Any thoughts?  Thanks so much!

Nathaniel:
Find this code ('sources/Sportal.php'):

--- Code: --- echo '
<table border="0" width="100%" class="ssi_table">';
foreach ($posts as $post)
echo '
<tr>
<td align="center" valign="middle" nowrap="nowrap">
', $post['icon'], '
</td>
<td valign="top" width="%100">
<a href="', $post['href'], '">', $post['subject'], '</a>
', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />[', $post['board']['link'], ']
</td>
<td align="right" nowrap="nowrap">
', $post['poster']['link'], '<br />', $post['time'], '
</td>
</tr>';
echo '
</table>';
--- End code ---

Replace with this code:

--- Code: --- echo '
<table border="0" width="100%" class="ssi_table">';
foreach ($posts as $post)
echo '
<tr>
<td align="center" valign="middle" nowrap="nowrap">
', $post['icon'], '
</td>
<td valign="top" width="%100">
<a href="', $post['href'], '">', $post['subject'], '</a>
', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>', '<br />[', $post['board']['link'], ']
</td>
<td align="right" nowrap="nowrap">
', $post['poster']['link'], '<br />', $post['time'], '
</td>
</tr>';
echo '
</table><a href="', $scripturl, '?action=forum">Click To View All Topics</a>';
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version