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: 1256
  • 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!

Articles on front page appear without setting a block

Started by dopelfish, August 29, 2009, 12:00:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dopelfish

Hello.

I have a rather weird problem. When I activate the articles, they appear on the front page, while I didn't set any of the article blocks to appear, because I'm using a custom menu with "http://boardurl/index.php?articles" link and therefore I don't need them at the front page. I figured out that this issue have noting in common with the other Top Blocks that I'm using (Board News and Custom BBC). What I'm doing wrong?

Forums Ver. 1.1.10
Simpleportal Ver. 2.2.2
Link: http://palygrund.pl

amlucent

Open admin, go to Simple Portal > Articles > Catagory List.

Edit all your article categories that you DONT want to appear on the front page (Probably all of them).

When you edit them you will see a check box that says "Publish on Portal".. uncheck it.

dopelfish

When I uncheck the "Publish on Portal", it dissapears from the http://palygrund.pl/index.php?article link aswell, so this doesn't solve my problem. I want them off my frontpage, but available after going to http://palygrund.pl/index.php?article.

Nathaniel

Try the edit below:
Find this code (SPortal1-1.php):
   elseif (!empty($_REQUEST['sa']) && $_REQUEST['sa'] == 'credits')

Replace with this code:
   elseif (!empty($_REQUEST['sa']) && $_REQUEST['sa'] == 'articles')
      $modSettings['articleactive'] = true;
   elseif (!empty($_REQUEST['sa']) && $_REQUEST['sa'] == 'credits')
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.


Nathaniel

Ah, sorry, that works for 'sa=articles'.

Try this replacement code instead.
   elseif (isset($_REQUEST['article']))
      $modSettings['articleactive'] = true;
   elseif (!empty($_REQUEST['sa']) && $_REQUEST['sa'] == 'credits')
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.

[SAP]Francis

What is the file to edit if I have the newest version of SP?

Nathaniel

Its a bit different in SimplePortal 2.3.1, try the edit below.

Code ("Find (Sources/PortalMain.php)") Select
if (!isset($_REQUEST['sa']) || !isset($actions[$_REQUEST['sa']]))
$_REQUEST['sa'] = 'articles';


Code ("Replace") Select
if (!isset($_REQUEST['sa']) || !isset($actions[$_REQUEST['sa']]))
return;
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.

[SAP]Francis

Adding this worked.

if ($_GET['page'] == 'tutorials' || $_GET['page'] == '2')
$modSettings['articleactive'] = true;
(in my case)

Before
if (empty($modSettings['articleactive']))

In the file PortalArticles.php.

fdr77

E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain