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: 825
  • 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]


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

CSS Problem

Started by LP, November 04, 2009, 02:23:04 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

LP

Hello,

I am using:
SMF 2.0 RC1.2
Custom theme: "5th" theme by pixelslot (http://pixelslot.com/skins)
SP 2.3.1

I have encountered a strange problem with css files being used differently depending on what type of user is logged in.  The padding values for td.sp_block_padding are being ignored in all browsers when Regular Members are logged in or when Guests are viewing the forum, but everything is as it should be when viewed by an Administrator.

Also, there are scroll bars that show up on the blocks where the title is not being shown, but only for Guest users.

Please see attached screenshot.

Thanks for any help or ideas you might offer!

LP


Forgot to mention, this problem does not occur when using SP 2.2.2

LP

OK, I have figured the problem out (I think).  It was not limited to the custom theme, it happened in the default theme as well.

There is a conflict between SimplePortal and the "Hide SMF Version" mod (http://custom.simplemachines.org/mods/index.php?mod=1046), which adds the following lines to the index.php file:

//If the user isn't an admin, then hide the version'
if(!$user_info['is_admin'] && !empty($modSettings['hideVersion']) && $modSettings['hideVersion'])
$GLOBALS['forum_version'] = 'SMF';

thus changing the forum_version global variable for anything else that might require it later.


Is it this line in Subs-Portal.php that causes the portal blocks to display incorrectly for non-Admin users when the Hide SMF Version mod is enabled?
$context['SPortal']['core_compat'] = in_array($forum_version, array('SMF 2.0 Beta 3 Public', 'SMF 2.0 Beta 3.1 Public', 'SMF 2.0 RC1', 'SMF 2.0 RC1-1', 'SMF 2.0 RC1 1', 'SMF 2.0 RC1.1', 'SMF 2.0 RC1.2'));

Nathaniel

Ah, well, that sucks.

Move the code in the index.php file, to after the call to the 'sportal_init()' function. That should fix the issue.
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.