Support Forum
Yellow Swordfish said
Ah understood.
The current position is that if you use a custom icon then that will be used regardless of state. The problem here is that to do this this with unique, custom icons (and most users will define a different icon for each forum) is going to require a second custom icon, a second field on the forum table and select list and ui on the create/edit forum admin panels. All of which were out of scope for such a late change to what is an almost released version.
That is planned however.
So using a custom icon for the forum prevents using separate read/unread icons for the group? Just making sure I understand.
yes, as it currently stands... as Andy indicates, we have a ticket open to support multiple there too... just may not make 5.0...
Visit Cruise Talk Central and Mr Papa's World
So because I have a custom Icon the following will not work in Group view and I will have to modify the core again after the svn up last night?
# Start the Forum Loop
# ----------------------------------------------------------------------
if (sp_has_forums()) : while (sp_loop_forums()) : sp_the_forum();
# Start the 'forum' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spGroupForumSection', 'forum');
# Column 1 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColumnSection spLeft spColumnGuideR&width=6%&height=55px');
sp_ForumIndexIcon('tagClass=spRowIcon spLeft&iconUnread=sp_ForumIcon_new_post.png');
sp_ColumnEnd();
# Column 2 of the forum rowIt's back in sp-group-view-functions.php now.
This works for me.
if ($spThisForum->unread) {
$icon = $iconUnread;
$icon = SPTHEMEICONS.sanitize_file_name($icon);
}
else if (!empty($spThisForum->forum_icon)) {
$icon = SFCUSTOMURL.$spThisForum->forum_icon;
}
else {
$icon = SPTHEMEICONS.sanitize_file_name($icon);
}
if ($get) {
return $icon;okay. we plan to allow this in future release...
Visit Cruise Talk Central and Mr Papa's World
Does anyone have some code that allows the use of separate read/unread icons for the group when using a custom icon? My code above no longer works. I have changed SPTHEMEICONs to SPTHEMEICONSUR.
I know that it needs to be done in sp-group-view-functions. I have declared iconUnread on line 30 in the array immediately after icon is declared.
Once I get this working I will be uprading my live site to SP5.0
Support Forum
Offline

All RSS