Support Forum

Make restricted areas grey for members with no access

20 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Have you tried resetting the CSS cache if you re using it (Toolbox > Housekeeping)? Or  perhaps initially, turning it off (Options > Global Settings).

JK Julian Paul Francis Kitagawa
Julian Paul Francis Kitagawa
Member

Yes, no difference…

I don’t think there’s anything wrong in the code as it was working before, but here’s an example of what I’ve got:

# Column 1 of the forum row
# ———————————————————————-
sp_ColumnStart(“tagClass=spColumnSection spLeft$spOpaque&width=6%&height=55px”);
$spOpaque = ”;
if (!sp_can_view($spThisForum->forum_id, ‘post-content’)) $spOpaque = ‘ spOpaque’;

sp_ForumIndexIcon(‘tagClass=spRowIcon spLeft’);
sp_ColumnEnd();

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – the code looks OK to me.

Let’s firstly keep the cached CSS option turned off completely.

And then return to this admin panel message. Go to the SP Admin Themes page and select a different Sp theme and update and then re-select the one you want with the overlay you want and update again. Wha happens?

And – by the way – what theme and overlay are you actually using? 

JK Julian Paul Francis Kitagawa
Julian Paul Francis Kitagawa
Member

First of all sorry for taking *so* long to get back to you on this. I moved house, and have been without internet for the last couple of weeks.

I did these things (turn off css cache, update to different theme, then back) but with no change.

And I’m using the default theme, with the “gin and tonic” overlay.

YS Yellow Swordfish
Yellow Swordfish
Member

Let’s go back to that code you posted above on #18.

As you didn’t use the syntax highlighter after adding it the the post I don’t know if the problem is just the way it has been copied and pasted into the post but I DO see some incorrect quote characters.

There is a mix of standard ‘plain text’ quotes and the more fancy ‘word processing’ type quotes. The latter will NOT work in program code and you certainly can’t have a mix of the two.

I also now notice that the quotes at the end of the  line:

$spOpaque = '';

are a double quote and not two singles as they are supposed to be. All of these things will cause the code to blow up and stop working. Sorry I dod not notice this before.

Using a plain text editor (Notepad in Windows/Text Edit on OSX in plain text mode) replace ALL the quote marks in that code you added -doubles and singles if necessary. And make sure that the double quote in the line above is replaced with two single quotes – no space between them.