Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1324
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Publishing Articles in SP

Started by Talliostro, December 23, 2009, 02:43:36 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Talliostro

Good Morning everybody,

since the german corner is somewhat dead atm, I'm asking here (and I hope this is the right category ;) ). I searched for the answer already, but found nothing conclusive.

Is there a way to publish Articles in SP from only one source/board?

I'm testing SMF 2.0 RC2 with SP and the button "add as article" in the whole Testforum is okay, but I'd like to change that in the public forum. User's should only be allowed to add articles from one boardthen, not from everywhere.
Thanks for any replies.

Talli

Nathaniel

Moved to the custom coding board.

Try the edits below.

Code ("Find (Themes/default/Display.template.php)") Select
$context['can_make_article'] && !empty($modSettings['articleactive'])

Code ("Replace") Select
$context['can_make_article'] && !empty($modSettings['articleactive']) && $context['current_board'] == 23

Code ("Find (Sources/PortalArticles.php)") Select
!allowedTo('sp_add_article') && !allowedTo('sp_moderate')

Code ("Replace") Select
!(allowedTo('sp_add_article') && $context['current_board'] == 23) && !allowedTo('sp_moderate')
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.