Core support

Started by mikeymx5, 9 years ago

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

mikeymx5

*
9 years ago
Portamx still doesnt support core theme. I see the selection for disable curve but this does almost nothing.

mikeymx5

*
#1
9 years ago
I think that i am partially wrong.

I doesn appear to be supporting the core theme but just not any theme that is using the core theme.  >:(

I will try to copy the portamx file into my theme from the core and see if it does anything.

Feline

*
#2
9 years ago
Portamx have a full support for the SMF core theme, but I can't say if it works with other themes like "core".

If you have your theme in a other folder, the PortaMx can't detect if is a "core" theme. You can modify the detection in PortaMx.php around the line 65 where you find:
Code Select

// check if old core theme
$context['pmx_style_isCore'] = (bool) (stripos(str_replace('\\', '/', $settings['theme_dir'] .'/'), '/core/') !== false);

If you have ONLY core themes, you can set $context['pmx_style_isCore'] = true; else you have to make more checks like my one...

Fel
Many are stubborn in relation to the way, but less in relation to the target.

mikeymx5

*
#3
9 years ago
You rule!

I added this to my theme index and it worked perfectly
Code Select
// The main sub template above the content.
function template_html_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Portamx
$context['pmx_style_isCore'] = true;


It would be nice that instead of having an option to disable curve style for each block, it could just detect the theme setting and do it automatically.

Feline

*
#4
9 years ago
There is no option how to detect if a theme a core or curve style theme,,,

Fel
Many are stubborn in relation to the way, but less in relation to the target.

* Shouts

Feline
5 months ago
Today we update our Forum to the Version 1.45
Feline
8 months ago
Today we update our Forum to Version 1.4
This release is full compatible with the EU GDPR
Feline
10 months ago
Update for PortaMx 1.54 ecl released.
With this updates the Portal works with PHP 7.x and SMF 2.0.15
Feline
10 months ago
PortaMx Forum 1.3
released !

*
Feline
a year ago
Today we switched to PHP 7.2 and activate Opcode caching.
Fast .. Very fast *
Feline
a year ago
Today we upgrade our old SMF 2.0 Forum to PortaMx Forum *

* Calendar

Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28