vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - Latest 10 PM Admin Index (https://vborg.vbsupport.ru/showthread.php?t=165702)

Atakan KOC 12-19-2007 10:00 PM

Latest 10 PM Admin Index
 
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

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

Quote:

Originally Posted by hornstar1337 (Post 1405882)
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:
PHP Code:

<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

Quote:

Originally Posted by Alfa1 (Post 1651789)
Restricting this functionality to only one admin should be possible with a conditional. However, this one does not work:
PHP Code:

<if condition="$vbulletin->userinfo['userid'] == 14">code</if> 

Any ideas?

Code:

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

Code:

<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

Quote:

Originally Posted by Alfa1 (Post 1662505)
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

Quote:

Originally Posted by Alfa1 (Post 1662512)
Yes, I did.

try

Code:

<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):
PHP Code:

<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($vbulletinfetch_tag_list());

$aaa 1;
while (
$pmxread $db->fetch_array($resultpm))
{

$yazi $bbcode_parser->parse($pmxread['message'], 00,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


All times are GMT. The time now is 02:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01219 seconds
  • Memory Usage 1,792KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete