Support Forum
not sure what you mean.... custom usergroup???
the code you have is checking against a specific group, but not usergroup... do you really mean group?
If so, is group id of 4 what you want? its the id of the group of forums that you want to be greyed out... and the way you have it defined, only guests will see the group greyed...
or do you really want a specific usergroup to also see it greyed out as well as guests?? this is a bit different than what you set out to do...
if so, you might want to try changing:
if($spThisUser->guest && $spThisGroup->group_id != 4) $spOpaque = ' spOpaque';
to
if (!sp_can_view($spThisForum->forum_id, 'post-content')) $spOpaque = ' spOpaque';
but not entirely sure what you want to do... this would grey out the forum in group view for anyone that cannot view the actual post content (ie sneak peek)...
Visit Cruise Talk Central and Mr Papa's World
okay, cool... thanks for the update...
Visit Cruise Talk Central and Mr Papa's World
I'm sorry to come back with this one...
But it seems after the recent update, this stopped working.
I'm also getting the message "Either the theme CSS file and/or color Overlay file from the selected theme is missing" in the "themes" admin panel, as well as the following warning (I don't know if it's related though):
February 20, 2015 12:52 am | spaErrWarning | 40 | php
file: /simple-press/sp-api/sp-api-filters.php
line: 1777
function: htmlspecialchars
Warning | htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument
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();
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?
YELLOW
SWORDFISH
|
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.
1 Guest(s)