Tapatalk Modification for vB3 - Adding User for System Information

Thread Tools Search this Thread
Top Forums Web Development Tapatalk Modification for vB3 - Adding User for System Information
# 1  
Old 01-18-2014
Tapatalk Modification for vB3 - Adding User for System Information

Referring back to this thread:

Tapatalk Modification for vB3 - Issue with Avatar Icons

I mentioned that we had some "system bot" code:

(Note: There is also one "special system bot" user we created that is used to display system information to mods, but I will not describe that code in this post).
In this post, I describe that code and how easy it is to create a "system bot" user for Tapatalk (TT):

Basically, its quite easy. We add a hook to the TT file get_online_users.php in the location below:

PHP Code:
 $from 'browser';
$userAgent $loggedin['useragent'];
strpos($userAgent,'Android') !== false || strpos($userAgent,'iPhone') !== false || strpos($userAgent,'BlackBerry') !== false)
$from 'mobile';
strpos($userAgent,'Tapatalk') !== false)
$from 'tapatalk';
strpos($userAgent,'BYO') !== false)
$from 'byo';            }
$username mobiquo_encode($loggedin['musername']) ? mobiquo_encode($loggedin['musername']) : mobiquo_encode($loggedin['username']);

$hook vBulletinHook::fetch_hook('neo_tapatalk_online_bits')) ? eval($hook) : false;

$online_user = array(
'user_id'       => new xmlrpcval($loggedin['userid'], 'string'),
'username'      => new xmlrpcval($username'base64'),
'user_name'     => new xmlrpcval($username'base64'),
'user_type'     => new xmlrpcval(get_usertype_by_item($loggedin['userid']), 'base64'),
'icon_url'      => new xmlrpcval(mobiquo_get_user_icon($loggedin['userid'],$from), 'string'),
'from'         => new xmlrpcval($from'string'),
'display_text'  => new xmlrpcval(mobiquo_encode($display_text), 'base64'),
and in this hook location we put the hook code:

PHP Code:
  if($count == AND can_moderate() ) 


$loadavg=explode(' '$string); 
$la $loadavg['0'].' .. '.$loadavg['1'].' .. '.$loadavg['2']; 

$online_user = array( 
'user_id'       => new xmlrpcval('3804''string'), 
'username'      => new xmlrpcval('System Bot''base64'), 
'user_name'     => new xmlrpcval('System Bot''base64'), 
'user_type'     => new xmlrpcval(get_usertype_by_item('3804'), 'base64'), 
'icon_url'      => new xmlrpcval(mobiquo_get_user_icon('3804'), 'string'), 
'from'         => new xmlrpcval($from'string'), 
'display_text'  => new xmlrpcval(mobiquo_encode('System Load: '.$la), 'base64'), 

$login_users[] = new xmlrpcval($online_user'struct'); 
And this code add one user with some simple system information to the page, so we can easily see some system information (in this case, the load average of the server), when using TT.

This information is in the first "user" show "online" below in this example screenshot:


So, I hope forum owners can easily see that although it is not easy to create new pages in the TT app (I wish there was), it is easy to create and add users that display system information (or other information), as required.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to do user-preset login to Bash shell then automate path modification?

How do a user login with full user-environment preset to Bash shell then automatically do path modification with few script codes, either on command-line or put it in a script file. what i tried: bash --login -c PATH="/ANewPath:${PATH}" bash --login -c 'PATH="/ANewPath:${PATH}"; export PATH'... (2 Replies)
Discussion started by: abdulbadii
2 Replies

2. Web Development

Tapatalk - More Frustrations with Icons, Versions and User Agent String

My frustration with Tapatalk continues. After reinstalling TT for the forums, I'm trying to tweet it so we can get a lot of benefit for forum members. TT has both a free version and a "Pro" version (which we pay for). I paid for the "Pro" version, and the first thing I noticed was that the app... (3 Replies)
Discussion started by: Neo
3 Replies

3. Web Development

Tapatalk Modification for vB3 - Issue with Avatar Icons

This post will be soon moved to the "Web Application" forum so our Tapatalk developer friends can follow an unresolved issue with regard to how the Tapatalk app fetches can caches avatar icons. We start this process by creating a hook in the vB 3.8 tapatalk file get_online_users.php ($hook =... (2 Replies)
Discussion started by: Neo
2 Replies

4. Programming

Adding information to c file using perl

Hi, I have c file which contains more number of tests. two or more tests in one c file. I have the XMl data regarding tests. i need to add this xml data to c file at before the test. I know which file having which test and i created hash table for that. so the problem is i have to add information... (13 Replies)
Discussion started by: veerubiji
13 Replies

5. Solaris

User id modification

Dear All, Some of the users having the same user id and group id in my /etc/passwd file. Now I want to change the users to have a unique user id and group id. How can we do that. If I change this will it affect the running applications. Rgds Rj (7 Replies)
Discussion started by: jegaraman
7 Replies

6. Shell Programming and Scripting

Restrict modification of a file while it is already in use by another user?

How to restrict modification of a file while it is already in use by another user? If a file is in use by one user account, how to restrict it so that no one else can change it until its closed by the first user? (3 Replies)
Discussion started by: bdiwakarteja
3 Replies

7. UNIX for Advanced & Expert Users

Modification in configuration file to disable a particular user

Please anyone can tell me what is the procedure to perform the required modifications in configuration files to disable a particular user??? (3 Replies)
Discussion started by: debjyotidas007
3 Replies

8. Shell Programming and Scripting

Perl: adding columns in CSV file with information in each

Hi Wise UNIX Crew, I want to add 3 different columns to the file in which: 1. The first new column pulls in today's date and time 2. Second column one has a '0' 3. Third column has the word 'ANY' going down the column If my file content is as follows: "7","a","abc",123"... (1 Reply)
Discussion started by: dolo21taf
1 Replies

9. UNIX for Advanced & Expert Users

URGENT: Password modification for oracle user

Hi to all, Need help! For user sysoper on oracle, I want to know who and on which date/time the password has been modified? The platform is unix itself. Thanks (2 Replies)
Discussion started by: ashvik
2 Replies
Login or Register to Ask a Question