PDA

View Full Version : Administrative and Maintenance Tools - Latest 10 PM Admin Index


Atakan KOC
20 Dec 2007, 14:37
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 (http://www.vbulletin.org/forum/showthread.php?t=91369)

Support Given For Who Clicked Install {ONLY}

Atakan KOC
20 Dec 2007, 14:38
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
20 Dec 2007, 16:20
Just what I was looking for. Thanks!

silver surfer
20 Dec 2007, 20:08
very nice hack.

Thank you. :)

projectego
20 Dec 2007, 21:41
Awesome! Thank you very much. :)

Hornstar
21 Dec 2007, 03:04
So this is a mini mod if you have the read pm hack installed? Is that right? If so cool. nice work.

Powerofdreams
24 Jan 2008, 10:46
Thanks Atakan Abi Very Useful Hack :)

PenPusher1000
10 May 2008, 18:38
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
21 May 2008, 06:14
i will install it now

lazydesis
30 May 2008, 00:34
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
17 Jun 2008, 17:51
Thank you very much installed.

sat4world.com
01 Jul 2008, 08:28
plase read pm in vb 3.7

Shazz
06 Jul 2008, 20:49
Installed, great for catching spam

scottct1
08 Jul 2008, 02:30
I would like to make this available only to certain admins and not all of them. Is there a way to do that?

unicorn2433
09 Jul 2008, 18:48
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
05 Aug 2008, 14:34
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
06 Aug 2008, 21:51
bende güncelledim :) teşekkürler

thank you Atakan Koç :)

IRANCITY
23 Oct 2008, 08:16
nice Mode
tank u

dengbej
23 Oct 2008, 21:20
thanks.i installed

Alfa1
24 Oct 2008, 14:29
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
09 Nov 2008, 18:05
bump.

ShadowOne
09 Nov 2008, 18:19
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
09 Nov 2008, 20:03
I am afraid that this also does not work.

ShadowOne
09 Nov 2008, 20:08
I am afraid that this also does not work.

you tried them both?

Alfa1
09 Nov 2008, 20:25
Yes, I did.

ShadowOne
09 Nov 2008, 21:28
Yes, I did.

try

<if condition="$bbuserinfo['userid']> == 14">code</if>

Alfa1
10 Nov 2008, 17:08
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
06 Apr 2010, 09:24
thank you..

tafreeh
06 Apr 2010, 18:18
Does it work with vb4? anione tried..

and did any successfully figured out the code to show specific admins only ?

aapkae
31 May 2010, 14:25
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
27 May 2012, 07:31
thankx