MyBB Community Forums

Full Version: get php screen resution in mybb vreb.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Request for php and plugin masters.


I have php code.
<?php
session_start();
if(isset($_SESSION['screen_width']) AND isset($_SESSION['screen_height'])){
    echo 'User resolution: ' . $_SESSION['screen_width'] . 'x' . $_SESSION['screen_height'];
} else if(isset($_REQUEST['width']) AND isset($_REQUEST['height'])) {
    $_SESSION['screen_width'] = $_REQUEST['width'];
    $_SESSION['screen_height'] = $_REQUEST['height'];
    header('Location: ' . $_SERVER['PHP_SELF']);
}
?>

I want add this php result in mybb verb like.

User resolution: {$screenresolution}

The verb  {$screenresolution} I want use menualy every where on mybb tamplate.

To get screen resolution.
Can anyone please make this plugin 
I will be very thankful you for this one.