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: 196,004
  • Total Topics: 21,330
  • Online today: 219
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 73
  • Total: 73

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.

IchBin

Ray, he's looking for something with the body of the subject displayed as well. I guess I'll have to search for him.

IchBin


baller1308

Quote from: IchBinâ„¢ on July 28, 2007, 08:03:21 PM
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.
This is actually what I want, maybe not the OP.  I'd like the right side recent posts block to show up on the home/frontpage only, not the forums.

hartiberlin

#13
Quote from: IchBin™ on July 28, 2007, 09:56:28 PM
Ray, he's looking for something with the body of the subject displayed as well. I guess I'll have to search for him.

Actually,
I am looking for more like this, asif I klick this link with the recent postings:


But this should come automatically inside a bloc on the front page
and also INCLUSIVE the posted ATTACHMENTS,
which the recent link:


does  unfortunately not show.


Regards, Stefan.

IchBin

You're asking for more than I can provide at the moment. Perhaps you should post in the requests board in the block code snippets section. Especially if you're asking for attachments. You would actually probably be better off asking at SMF for this custom code. I'm removing your links to so no kids or anything see the porn on your page.

hartiberlin

???
Which porn ?
I donÃ,´t have any porn on my site...
Please explain...

Edit:
I just saw, that somebody posted a porn spam to my forum
and I have now removed it and banned the user...

now look again
at
www.overunity.com

Thanks.


hartiberlin

Quote from: Ray on July 28, 2007, 09:35:10 PM
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>';



Ray,
many thanks,
I tried to use this now temporarly ,but I can only get it to show the latest 40 postings,
no more.

Where can I set this higher ?

When I set:

$what=ssi_recentTopics('200', NULL, 'array');


for the last 200 messages, it only displays 40 messages...
hmm..

baller1308

Actually, I was looking for something like this:

http://www.judeanpeoplesfront.net/forum/index.php

Where recent posts shows up on the Home site, but not on the forums.

IchBin


baller1308

Quote from: IchBinâ„¢ on July 30, 2007, 05:23:02 AM
Thats what frontpage blocks are for.
but it's showing under my articles, rather then on the left or right of the articles.

This website is proudly hosted on Crocweb Cloud Website Hosting.