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: 957
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot 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]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

CSS Missing on blocks

Started by Nori, October 29, 2009, 11:22:43 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Nori

Hmm I posted this several days ago and it never showed up...

I'm having a problem with the blocks. I decided to have the blocks on the left side of every page, well most of the blocks at least. I added them set them for everything and it looked great, but then I logged out and they lost some of the CSS styling, just one class.
Here is how it looks under guest or any user other than admin:


And here is how it should look and does for the Admin:


Notice I have firebug open and there is a class from portal.css that is missing in the one picture...

Any ideas?

I'm running the newest version of SP and I'm running SMF 2.0 RC1.2, address is www.phr-clan.com

Nathaniel

Very odd. That would apear to be an issue with the "Core compatibility", by default the curve (for SMF 2 RC2) block template will be used, except under certain conditions (ie. if you are running a version lower than SMF 2 RC2) when the core block template will be used.

That compatibility detection would appear to be failing for guests, the edit below will force it to work properly.

Code ("Find (Themes/default/Portal.template.php)") Select
if (!empty($context['SPortal']['core_compat']) || $settings['name'] === 'Core Theme')
template_block_core($block);
else
template_block_curve($block);


Code ("Replace") Select
template_block_core($block);

Just to check, what exactly is the $forum_version variable in your index.php file set to?
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.

Nori

Quote from: Nathaniel on October 29, 2009, 04:30:34 PM
Very odd. That would apear to be an issue with the "Core compatibility", by default the curve (for SMF 2 RC2) block template will be used, except under certain conditions (ie. if you are running a version lower than SMF 2 RC2) when the core block template will be used.

That compatibility detection would appear to be failing for guests, the edit below will force it to work properly.

Code ("Find (Themes/default/Portal.template.php)") Select
if (!empty($context['SPortal']['core_compat']) || $settings['name'] === 'Core Theme')
template_block_core($block);
else
template_block_curve($block);


Code ("Replace") Select
template_block_core($block);

Just to check, what exactly is the $forum_version variable in your index.php file set to?

SMF 2.0 RC1.2

Okay, you are awesome! Thanks for the fix, it appears to work fine.