Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Change Forum & Topic Icon in case of new post
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 31, 2012 - 11:03 am

Sorry about that - I am amazed you are using it!
Once we get to the 'gold' release (soon I really hope) then we will nail these down of course.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Dave
Member
sp_UserOfflineSmall Offline
Jan 31, 2012 - 7:23 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 31, 2012 - 7:28 pm

yes, as it currently stands... as Andy indicates, we have a ticket open to support multiple there too...  just may not make 5.0...

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 9:22 am

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 row
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 3, 2012 - 9:28 am

Ah yes if you are using custom icons. That will probably follow in 5.1

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 10:58 am

It'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;
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 3, 2012 - 8:12 pm

okay.  we plan to allow this in future release...

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 28, 2012 - 6:47 am

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 28, 2012 - 9:08 am

Patience dear boy - I will get to it. I am all alone and can only type with one hand (my inferior left at that!)

andy-signature.png
YELLOW
SWORDFISH
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 28, 2012 - 9:31 am

Yes but my code was working fine until this latest version. Something has changed methinks. It's driving me up the wall quite frankly frown

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625