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)

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


All times are GMT. The time now is 05:43 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
  • Page Generation 0.01132 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete