TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 348
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 256
  • Total: 256

Front page blocs first and then recent postings on front page ?

Started by hartiberlin, July 28, 2007, 04:05:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hartiberlin

Hi,
how can I have
Front page blocs first and then the last recent postings from the forum
on front page ?

In the admin setup I see only "front blocs and then articles",
but not "front blocs and then postings".

Or can I somehow put automatically the last postings into articles?

Many thanks.

baller1308

yeah, I'm trying to figure out the same thing.  I'd like to be able to view the recent posts block on the home page, but not on any other page.  I figured out how to do it on every single other page except for the Home page :(.


IchBin

Unfortunately we could never implement ALL the ways that people want to do things.

hartiberlin

Quote from: wilsy on July 28, 2007, 11:30:44 AM
Hi,

Look here http://www.tinyportal.net/index.php?topic=596.0 and put the code in a front page block.

Regards,

Wilsy.

Well, this above example only
displays the recent topics with their subjects only...

I really want now the last 50 postings from my forum with the first 100 words
like  articles under my own frontpage blocs.

Can I somehow import the last 50 postings automatically into articles ?
Or how do articles work or how could I do it more easily ?

I would also like to use Google Adsense code to put an Adsense banner
between each 10 last postings there.
Could I use the latest Admod V2.3 for this or do I have to integrate the Adsense code
myself manually for this ?

IchBin

You can't import anything automatically into articles without some major coding going on. You'll have to a code snippet that will grab the latest 50 posts that includes the body of the subject. I'm pretty sure that the ones in the code snippets board could do this, if they haven't already.

Any mods if they don't install will have to be installed manually. And for any theme other than the default you will have to manually install the mod to the theme.

hartiberlin

Hmm,
is there no easy solution to use the A style frontpage
and first have my own 2 frontpage blocs
and then the
lastest 50 postings with the first 100 words of them ?

IchBin

Sure, you use frontpage blocks only on your frontpage. Put your info in the 2 first blocks. In the third block you put the recentposts code that I was referring to.

hartiberlin

Hmm,
I just did now put my first 2 frontpage bloc into the frontpage style A
and then added a 3rd frontpage block
as a recent posting bloc and gave the last 200 postings,
but it only shows the last 40 ... hmmm
also the formating is not good and it shows only
the subject title and nothing from the posting itsself.

Did you mean this thread:
http://www.tinyportal.net/index.php?topic=596.0

??

Uff,
31 pages to read and study..
No easier solution ?

Please have a look at:

http://www.overunity.com
and let me know, which code you would suggest to use.
Many thanks.

Ray

hartiberlin,
take a look at my front page  http://www.arcade-only.com  and see if you like the recent post code I use. if you do here it is

// "Recent Topics" a php Block
// Prefered settings when being designed
// Border and title on
// Title ="Recent Topics"

global $scripturl;
$what=ssi_recentTopics('10', NULL, 'array');

echo '<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';
echo '<tr class="catbg3"><td valign="middle">Subject</td><td valign="middle">Board</td><td valign="middle">Poster</td><td valign="middle">Time</td></tr>';

foreach ($what as $topic)
  {
    echo '<tr><td class="windowbg" valign="middle">', $topic['link'];
    // Is this topic new? (assuming they are logged in!)
    if (!$topic['new'] && $context['user']['is_logged'])
      echo '<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
      echo '</td><td class="windowbg2" valign="middle" >', $topic['board']['link'], '</td>';
      echo '</td><td class="windowbg2" valign="middle" >', $topic['poster']['link'], '</td><td class="windowbg2" valign="middle" >';
      if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
      echo '<a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" /></a>';
      echo '<span class="smalltext">', $topic['time'], '</span></td></tr>';
  }

echo '</table>';

This website is proudly hosted on Crocweb Cloud Website Hosting.