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
'iconUnread' in Group View when custom Icon used for forum Icons
Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 2:43 pm

I just can't seem to get this working now. Do I need to declare 'iconUnread' in the array that starts on line 27 of sp-group-view-functions.php?

My old code was this after line 37 at least I think it was, can you tell me what is wrong?

   

# Check if a custom icon
       if ($spThisForum->unread) {
        $icon = $iconUnread;
        $icon = SPTHEMEICONSURL.sanitize_file_name($icon);
    }
    else if (!empty($spThisForum->forum_icon)) {
        $icon = SFCUSTOMURL.$spThisForum->forum_icon;
    }
    else {
        $icon = SPTHEMEICONSURL.sanitize_file_name($icon);
    }

    if ($get) return $icon;
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 27, 2012 - 8:20 pm

$iconunread has to be declared somewhere...   how are you getting a value in it???

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

How about here?

    $defs = array('tagId'         => 'spGroupHeaderIcon%ID%',
                  'tagClass'     => 'spHeaderIcon',
                  'icon'         => 'sp_GroupIcon.png',
                  'iconUnread'  => 'sp_ForumIcon_new_post.png' ,
                  'echo'        => 1,
                  'get'            => 0,
                  );

 

Will that work?

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

You are saying it doesn't work but you don't say in what way it doesn't work.

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

So as to avoid duplication and the fact that there appear to be more people on the other similar thread I have posted here:

https://simple-press.com/suppo.....4/#p102056

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626