![]() |
I've added a delete button to mine.
In the forumhome_pmshow template, find (near the bottom): Code:
<td class='tfoot' colspan='2'><b>Options:</b> <a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM</a> | <a href='private.php?{$session['sessionurl']}'>Go To Your Inbox</a></td> Code:
<td class='tfoot' colspan='2'> <table><tr><td><a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM</a> | <a href='private.php?{$session['sessionurl']}'>Go To Your Inbox</a> | <form action="private.php" method="post"><label for="deletepm"><input type="checkbox" name="pm[$from[pmid]]" id="deletepm" value="true" />Tick Here To Delete This Message</input> <input type="hidden" name="s" value="$session[sessionurl]" /> <input type="hidden" name="do" value="managepm" /> <input type="hidden" name="dowhat" value="delete" /><input type="submit" class="button" value="And Click Here To Confirm" accesskey="s" /></form></td></tr></table></td> Also, I've customised the "Show This PM" link to show only if the PM exceeds 400 characters (which is the plugin's default crop). To do this: 1. Edit the plugin named "New PM On Forum Home (If Unread) [Main]" Find: Code:
$from['message'] = substr($from['message'],0,400) . "..."; Code:
$show['pmcropped'] = true; Find Code:
<a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM</a> | Code:
<if condition="$show['pmcropped']"><a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM In Full</a> | </if> |
Is it possible to include the pm senddate data on forumhome as well? Seems funny to miss it out when the PM arrived, everything else is included.
|
ok the fix for the admincp functions.php error is as follows
change the fetch_userinfo plugin to the following: Code:
global $globaltemplates; |
Quote:
edit: nevermind - I found it... |
All times are GMT. The time now is 06:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|