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

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 07:33:44 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 124
  • Total: 124

FrontPage

Started by BradIsBad, June 23, 2011, 05:41:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BradIsBad

When I click on TinyPortal then FrontPage one of the choices you have is:

Display forum-posts on frontpage from: Here is a series of drop downs to choose 5 areas to draw posts from. 

But it seems only the first drop down actually supplies anything. 

Is there something I have to change so it will pull from the 5 different areas?

Thanks!

ZarPrime

BradIsBad,

Please attach the following info requested in our Posting Guidelines to your next post ...

Link to my site: http://www.yourdomain.com
SMF version: SMF ver. here
TP version: TP ver. here
Default Forum Language: Your Default Forum Language here
Theme name and version: Theme name here
Browser Name and Version: Browser name/version here
Mods installed: Mods listed here
Related Error messages: Error message here

Also, can you please attach a screenshot of what you are seeing on that page?

ZarPrime

BradIsBad

Link to my site: http://www.simpurethoughts.com/smf
SMF version: 2.0
TP version: 2.0
Default Forum Language: English
Theme name and version: Helios
Browser Name and Version: Chrome
Mods installed: None
Related Error messages: None

Attached is the Screenshot.


BradIsBad

#4
Ok I use that code but it only works if I choose forum posts only and in my case I am using (Forum-posts and articles - sorted on date) because I want a mixture of the two.  When that is selected it only goes back to the first field again.

But it works great for forum posts only.

Is there any way to make it work with the above?

IchBin

Of course! Thanks for reporting it's not working there too.

Find this code on in TPortal.php
// Find the post ids.
if($context['TPortal']['front_type'] == 'forum_articles')
$request =  $smcFunc['db_query']('', '
SELECT t.id_first_msg as ID_FIRST_MSG , m.poster_time as date
FROM ({db_prefix}topics as t, {db_prefix}boards as b, {db_prefix}messages as m)
WHERE t.id_board = b.id_board
AND t.id_first_msg = m.id_msg
AND t.id_board IN({raw:board})
' . ($context['TPortal']['allow_guestnews'] == 0 ? 'AND {query_see_board}' : '') . '
ORDER BY date DESC
LIMIT {int:max}',
array('board' => $context['TPortal']['SSI_board'], 'max' => $totalmax)
);


Change this:
AND t.id_board IN({string:board})
To this:
AND t.id_board IN({raw:board})

Let me know if that works.

BradIsBad

That worked great!  Thanks for all your help!

MrCare

I forgot what i was delete some code... now the word "Promote on frontpage" in display post was not there anymore... how can i get it back?

Freddy

We still don't read minds.

G6Cad

Freddy, i will send you my crystal ball, it will help you endlessly to see the unseen, hear the silent words and best of all, it will show you the impossible ways to know everything you need  8)