SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

WantSome

Hello!

I've noticed this error on my error log which I believe is related to this mod...

Quoteforum/index.php?action=forum
8: Undefined variable: scripturl
File: /home/wnsecmxs/public_html/forum/Sources/BoardIndex.php
Line: 44

This is the section it is referring to...

Quote
42:      // Set a canonical URL for this page.
43:      if (!empty($modSettings['sp_portal_mode']) && $modSettings['sp_portal_mode'] == 1)
==>44:         $context['canonical_url'] = $scripturl . '?action=forum';
45:      else
46:         $context['canonical_url'] = $scripturl;

I understand this is code that the simple portal modification adds, but from the package parse information it's not critical.

Should I just remove / undo this code?  Or can you please advise if there is a better solution?

Thanks!

Chen Zhen


The edits are needed.
$scripturl is a global that should be located at the onset of that SMF function by default.
Although Simple Portal added the lines you posted, $scripturl should have been declared prior to using it.
Ensure that it is included in the list of globals at the beginning of the BoardIndex() function.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

overdue

Will this be updated for 2.0.15?
2.1.4; default theme - curve.

Shambles

Quote from: overdue
Will this be updated for 2.0.15?

SP works fine on 2.0.15

-Rock Lee-

¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

overdue

2.1.4; default theme - curve.

overdue

Even though I used the emulator for 2.0.14. I'm getting a test fail on the sources sub.

13.    Execute Modification    ./Sources/Subs.php    Test failed
9.    Replace    ./Sources/Subs.php    Test failed
2.1.4; default theme - curve.

Shambles

It's all there in the link provided, but to save you some time...

https://wiki.simplemachines.org/smf/Error_in_mod_installation

Aaron10

How can I override the date/time format for the shoutbox? I'd like to simply have it display as [04/02/2019, 2:15pm], instead of Today/Yesterday etc. (I know this is a SMF setting but I'd like to not have it like this in the shoutbox).

Seyit replikacep.com

Simpleportal  smf 2.1 When to remove compatible mode ?

SD-X

Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.

Seyit replikacep.com

Quote from: SugarD-x on February 07, 2019, 01:41:31 AM
Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
smf 2.1 has been released, we are already waiting for this mode

Arantor

RC1 was released, not "final".

Seyit replikacep.com

Quote from: Arantor on February 07, 2019, 02:43:48 AM
RC1 was released, not "final".

at least in beta. published should
We waited for the SMF. Now just wait for a portal. can't be like that

Arantor

RC is really just another label for "better beta". And yes, you can wait for people to have the free time to update things, no one owes you anything.

RML

You can use EhPortal, it's the same as Simple Portal only for SMF 2.1, it works with RC1, I use it on my forum and it works fine.

lurkalot

Quote from: RML on February 07, 2019, 08:06:43 AM
You can use EhPortal, it's the same as Simple Portal only for SMF 2.1, it works with RC1, I use it on my forum and it works fine.

Or TinyPortal works on both 2.0.15 and 2.1 RC1

Install on 2.1 is hooks only, no file edits.

SD-X

Quote from: Replikacep on February 07, 2019, 02:40:13 AM
Quote from: SugarD-x on February 07, 2019, 01:41:31 AM
Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
smf 2.1 has been released, we are already waiting for this mode
SMF 2.1 was not released. SMF 2.1 RC1 was released. RC stands for Release Candidate. It is not a final version, and its code can change. Those code changes can affect SimplePortal too.

Seyit replikacep.com

Quote from: SugarD-x on February 07, 2019, 12:57:13 PM
Quote from: Replikacep on February 07, 2019, 02:40:13 AM
Quote from: SugarD-x on February 07, 2019, 01:41:31 AM
Quote from: Replikacep on February 05, 2019, 10:55:32 AM
Simpleportal  smf 2.1 When to remove compatible mode ?
When they finish a version that works for SMF 2.1, which likely won't be officially completed until after SMF 2.1 itself is fully released.
smf 2.1 has been released, we are already waiting for this mode
SMF 2.1 was not released. SMF 2.1 RC1 was released. RC stands for Release Candidate. It is not a final version, and its code can change. Those code changes can affect SimplePortal too.

no need anymore.
I've been using eh portal organized mobile compatible. I have edited and used ......   O:)  8) :laugh:

link : https://www.replikacep.com

GigaWatt

Is there a way to make the search button appear on the right instead of the middle?

"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Advertisement: