Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Private Message - Do not display Head
Avatar
Ricki
Michigan
Member
sp_UserOfflineSmall Offline
Oct 11, 2014 - 11:19 am

I would like to change the template files related to the Private Message page.  I don't want the spHead information to display if they are looking at their private message box.  It is too confusing.

I am using a copy of the default theme and cannot find any file that relates to the private message inbox page.  Also, I don't see any special class or id associated with the head information so I can use "display:none".

Is there a php call I can make to check if the page is the inbox?  Are there any other suggestions?

Thanks,

Ricki

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 11, 2014 - 12:10 pm

since the private messages are a in a plugin, the template files are not included in themes, but in the plugin itself...  but you can override them...

see the private message plugin directory... you will find a template_files directory in there... copy whichever template file you want to modify into your theme and edit away...  your theme version of the template file will override the plugin default template file...

in this case, you will want spPMMEssagesView.php and spPMThreadsView.php...  to remove the standard forum header, just remove

    sp_SectionStart('tagClass=spHeadContainer', 'pmHead');
        sp_load_template('spHead.php');
    sp_SectionEnd('', 'pmHead');

from them...

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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625