Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Latest 10 PM Admin Index Details »»
Latest 10 PM Admin Index
Version: 1.20, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.0 Beta 3 Rating:
Released: 12-19-2007 Last Update: Never Installs: 126
Uses Plugins
 
No support by the author.

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}

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-09-2008, 05:05 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump.
Reply With Quote
  #23  
Old 11-09-2008, 05:19 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
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
Reply With Quote
  #24  
Old 11-09-2008, 07:03 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am afraid that this also does not work.
Reply With Quote
  #25  
Old 11-09-2008, 07:08 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
I am afraid that this also does not work.
you tried them both?
Reply With Quote
  #26  
Old 11-09-2008, 07:25 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I did.
Reply With Quote
  #27  
Old 11-09-2008, 08:28 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
Yes, I did.
try

Code:
<if condition="$bbuserinfo['userid']> == 14">code</if>
Reply With Quote
  #28  
Old 11-10-2008, 04:08 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
  #29  
Old 04-06-2010, 08:24 AM
gungor's Avatar
gungor gungor is offline
 
Join Date: Dec 2007
Location: Turkey
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you..
Reply With Quote
  #30  
Old 04-06-2010, 05:18 PM
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work with vb4? anione tried..

and did any successfully figured out the code to show specific admins only ?
Reply With Quote
  #31  
Old 05-31-2010, 01:25 PM
aapkae aapkae is offline
 
Join Date: Oct 2006
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i read 30 pms ...... its just 10 i want to read last 30 pms so please tell me where i modify it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05200 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete