SimplePortal

Support => English Support => Topic started by: tata668 on October 25, 2008, 07:36:36 PM

Title: Every threads => frontpage. Is there such an option?
Post by: tata668 on October 25, 2008, 07:36:36 PM
Hi,

I'm totally new to SMF and to Simpleportal! I think Simpleportal is exactly what I was looking for but I have this question:

Is it possible to configure Simpleportal so that every started thread is promoted to the frontpage, without any approval by an administrator? I want to allow anonymous users to post new threads and I want those threads to be displayed on the frontpage, automatically.

Update: I've just found I had to change the permissions of the "guest" users!

But I still want ALL threads to go on the frontpage. Is there a option that allow that? Without the need to click on the "add an article" AFTER the new thread is started?
Title: Re: Every threads => frontpage. Is there such an option?
Post by: ccbtimewiz on October 25, 2008, 07:53:36 PM
Welcome to Simple Portal.

For clarification, you want all posts to become news articles?
Title: Re: Every threads => frontpage. Is there such an option?
Post by: tata668 on October 25, 2008, 07:57:48 PM
Welcome to Simple Portal.

For clarification, you want all posts to become news articles?
Yes! Any way to do that?

(Thanks for the welcome.)
Title: Re: Every threads => frontpage. Is there such an option?
Post by: ibm450 on October 25, 2008, 11:00:28 PM
i would just activate either

Recent Posts Block
 
or

Recent Topics Block


you just have to enter the board or topic ID # by simply going to that forum, hover your mouse over the forum and you should see the forum id at the explorers status bar, do the same for topic id too
Title: Re: Every threads => frontpage. Is there such an option?
Post by: tata668 on October 25, 2008, 11:06:19 PM
Thanks for the reply ibm450. But if I understand blocks correctly, this is not what I want to do.

I want to promote any new post as an article, in the main section of the front page, not in a block!
Title: Re: Every threads => frontpage. Is there such an option?
Post by: ibm450 on October 26, 2008, 01:42:04 AM
try this mod

http://custom.simplemachines.org/mods/index.php?mod=1354
Title: Re: Every threads => frontpage. Is there such an option?
Post by: tata668 on October 26, 2008, 08:09:28 AM
try this mod

http://custom.simplemachines.org/mods/index.php?mod=1354

Thanks but this is not what I'm looking for. I'm really looking for a "blog" type frontpage.. Simple Portal seems perfect except that I need every topic to be promote to the frontpage automatically and I don't know how!
Title: Re: Every threads => frontpage. Is there such an option?
Post by: tata668 on October 26, 2008, 08:35:38 AM
Maybe I'll have to modify Simple Portal a little bit?

I looked at the code and I think that maybe calling "createArticle()" automatically when a new post is saved could do the job. What do you think?

By the way, all functions in SMF are global? I really have to call createArticle() and not SimplePortal::createArticle() or even simplePortal_createArticle()?
Title: Re: Every threads => frontpage. Is there such an option?
Post by: asude on November 01, 2008, 08:25:48 AM
Subs.php

Code: (find) [Select]
updateStats('subject', $topicOptions['id'], $msgOptions['subject']);
Code: (replace) [Select]
updateStats('subject', $topicOptions['id'], $msgOptions['subject']);

require_once($sourcedir . '/Subs-SPortal1-1.php');

if (!(allowedTo('sp_add_article') || allowedTo('sp_moderate')))
{
$articleOptions = array(
'ID_CATEGORY' => 'id_of_category_to_add_articles',
'ID_MESSAGE' => $msgOptions['id'],
'approved' => allowedTo('sp_auto_article_approval') || allowedTo('sp_moderate') ? 1 : 0,
);

createArticle($articleOptions);
}

if you want them to be approved regardless of permission. everything will work according to permissions. if user will not have permission to add articles, it won't add. if user needs approval of articles, it will require in this way too. though you can change that easily if you want.
Title: Re: Every threads => frontpage. Is there such an option?
Post by: tata668 on November 01, 2008, 09:44:38 AM
Thanks a lot asude!
SimplePortal 2.3.8 © 2008-2024, SimplePortal