View Full Version : Administrative and Maintenance Tools - Latest 10 PM Admin Index
Atakan KOC
12-19-2007, 10:00 PM
Latest 10 PM Admin Index
(Mini Hack)
Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-latest10pm.xml' from your computer then press 'Import'
1.0.0 Initial Version.1.0.1 Added Message View
1.0.2 Vb. 3.6.0 B1
1.2.0 Vb. 3.7.0 + Array Problem Fixed
if you want something Read PMs (https://vborg.vbsupport.ru/showthread.php?t=91369)
Support Given For Who Clicked Install {ONLY}
Atakan KOC
12-20-2007, 01:38 PM
1.0.0 Initial Version.1.0.1 Added Message View
1.0.2 Vb. 3.6.0 B1
1.2.0 Vb. 3.7.0 + Array Problem Fixed
Snake
12-20-2007, 03:20 PM
Just what I was looking for. Thanks!
silver surfer
12-20-2007, 07:08 PM
very nice hack.
Thank you. :)
projectego
12-20-2007, 08:41 PM
Awesome! Thank you very much. :)
Hornstar
12-21-2007, 02:04 AM
So this is a mini mod if you have the read pm hack installed? Is that right? If so cool. nice work.
Powerofdreams
01-24-2008, 09:46 AM
Thanks Atakan Abi Very Useful Hack :)
PenPusher1000
05-10-2008, 05:38 PM
So this is a mini mod if you have the read pm hack installed? Is that right? If so cool. nice work.
I wonder this to.
Must you have the Read PM's hack installed also? That link is for 3.5 only.
Thanks
paramegsoft
05-21-2008, 05:14 AM
i will install it now
lazydesis
05-29-2008, 11:34 PM
can this be done so that PMs from certain users wont show?
like for eg .. i have the BOT which pms new users and i dont want those PMs to show up
also can this be shown only to the super admins .. and not to every admin?
superadmin = superuser specified in the config.php
Sakai Ray
06-17-2008, 04:51 PM
Thank you very much installed.
sat4world.com
07-01-2008, 07:28 AM
plase read pm in vb 3.7
Shazz
07-06-2008, 07:49 PM
Installed, great for catching spam
scottct1
07-08-2008, 01:30 AM
I would like to make this available only to certain admins and not all of them. Is there a way to do that?
unicorn2433
07-09-2008, 05:48 PM
I know it says support but who clicks install but I cant click install unless I know I camn use this. Do you have to have the read PM installed first?
Doctor Death
08-05-2008, 01:34 PM
I would like to know if the list can be collapsible and if you can have an option to start it collapsed?
great mod.
neoxi
08-06-2008, 08:51 PM
bende g?ncelledim :) teşekk?rler
thank you Atakan Ko? :)
IRANCITY
10-23-2008, 07:16 AM
nice Mode
tank u
dengbej
10-23-2008, 08:20 PM
thanks.i installed
Alfa1
10-24-2008, 01:29 PM
Restricting this functionality to only one admin should be possible with a conditional. However, this one does not work:<if condition="$vbulletin->userinfo['userid'] == 14">code</if>
Any ideas?
Alfa1
11-09-2008, 05:05 PM
bump.
ShadowOne
11-09-2008, 05:19 PM
Restricting this functionality to only one admin should be possible with a conditional. However, this one does not work:<if condition="$vbulletin->userinfo['userid'] == 14">code</if>
Any ideas?
<if condition="$bbuserinfo['userid']>=14">code</if>
or
<if condition="$vbulletin->userinfo['userid']>=14">
try one of those....not sure if it will work...one should
Alfa1
11-09-2008, 07:03 PM
I am afraid that this also does not work.
ShadowOne
11-09-2008, 07:08 PM
I am afraid that this also does not work.
you tried them both?
Alfa1
11-09-2008, 07:25 PM
Yes, I did.
ShadowOne
11-09-2008, 08:28 PM
Yes, I did.
try
<if condition="$bbuserinfo['userid']> == 14">code</if>
Alfa1
11-10-2008, 04:08 PM
Another syntax error.
here is the full plugin code (including your last suggestion):
<if condition="$bbuserinfo['userid']> == 14">
print_table_start();
print_table_header("Latest 10 PM",3);
echo "<tr valign=\"top\"><td class=\"thead\">From - To</td><td class=\"thead\" >Title</td></tr>";
$resultpm = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "pmtext ORDER BY dateline DESC LIMIT 0, 20");
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$aaa = 1;
while ($pmxread = $db->fetch_array($resultpm))
{
$yazi = $bbcode_parser->parse($pmxread['message'], 0, 0,1);
// a:1:{s:2:"cc";a:1:{i:12503;s:10:"contrast61";}}
$users = unserialize($pmxread['touserarray']);
// $kim = $pmxread['touserarray'];
foreach($users AS $key => $item)
{
if (is_array($item))
{
foreach($item AS $subkey => $subitem)
{
$username = $subitem;
$userid = $subkey;
}
}
else
{
$username = $item;
$userid = $key;
}
}
echo "<tr><td class=\"alt$aaa\" nowrap=\"nowrap\" width=\"150\">".$pmxread['fromusername']." => ".$username."</td><td class=\"alt$aaa\"><b>".$pmxread['title']."</b><br />$yazi</td></tr>";
$aaa++;
if ($aaa>2)
{
$aaa = 1;
}
}
print_table_footer(2, '', '', 0);
</if>
gungor
04-06-2010, 08:24 AM
thank you..
tafreeh
04-06-2010, 05:18 PM
Does it work with vb4? anione tried..
and did any successfully figured out the code to show specific admins only ?
aapkae
05-31-2010, 01:25 PM
how can i read 30 pms ...... its just 10 i want to read last 30 pms so please tell me where i modify it
Taleempoint
05-27-2012, 06:31 AM
thankx
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.