3.1 & 3.2 Extensions Database 3.1 / 3.2Screen resolution in viewtopic

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Screen resolution in viewtopic

Post by dmzx »

Extension Name: Screen resolution in viewtopic
Author: dmzx special thanks to martin based on the code of 4seven.

Extension Description:
This extension shows Screen resolution in viewtopic.
Cookie based so logout and login again on your forum.

dmzx/Screen-resolution-in-viewtopic

Screenshot:
Image

Extension Download:
downloadsystemcat?id=34

Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `screenresolution`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `screenresolution` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at (your forum root)/ext/dmzx/screenresolution/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Screen resolution in viewtopic` under the Disabled Extensions list, and click its `Enable` link.


Taka51
Users
Users
Status: Offline
User theme: Dark
Posts: 30
Joined: Jun 8th, '15, 11:27
    Windows Vista Firefox

Re: Screen resolution in viewtopic

Post by Taka51 »

Thanks Dmzx

Here is the translation in French

Good late afternoon
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
WebDvdBdR - Page d’index

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Windows 8 Firefox

Re: Screen resolution in viewtopic

Post by dmzx »

Taka51 wrote:Thanks Dmzx

Here is the translation in French

Good late afternoon
Thanks added :thumbup:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

playgoods
Users
Users
Status: Offline
User theme: Dark
Posts: 40
Joined: Oct 6th, '15, 06:45
    Windows 10 Chrome

Re: Screen resolution in viewtopic

Post by playgoods »

It's not working.
I purged cache, purged sessions, refreshed browser, logged out and in. It shows the text screen resolution but no actual setting

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Windows 8 Firefox

Re: Screen resolution in viewtopic

Post by dmzx »

playgoods wrote:It's not working.
I purged cache, purged sessions, refreshed browser, logged out and in. It shows the text screen resolution but no actual setting
Send me test account from your board.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

tamarin
Users
Users
Status: Offline
User theme: Dark
Posts: 72
Joined: Mar 15th, '15, 00:07
    Windows 10 Firefox

Re: Screen resolution in viewtopic

Post by tamarin »

playgoods wrote:It's not working.
I purged cache, purged sessions, refreshed browser, logged out and in. It shows the text screen resolution but no actual setting
I have the same problem.
Can you help me please?
Thx.

PS: I sent you the test account from my test forum via PM...
Last edited by tamarin on Nov 13th, '15, 00:45, edited 2 times in total.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

spazz
Users
Users
Status: Offline
User theme: Dark
Posts: 13
Joined: Nov 16th, '15, 21:46
    Windows 7 Firefox

Re: Screen resolution in viewtopic

Post by spazz »

Same here as well, phpbb 3.1.6, php 5.5.9, Ubuntu 14.04 server

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

Unitsall the ext delete the data now change the styles/prosilver to styles/all and see if that works.
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

spazz
Users
Users
Status: Offline
User theme: Dark
Posts: 13
Joined: Nov 16th, '15, 21:46
    Windows 7 Firefox

Re: Screen resolution in viewtopic

Post by spazz »

No effect.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

Out of interest what theme are you using and is it up to date ? if its out of date the event maybe missing (i doubt it is tho)

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

spazz
Users
Users
Status: Offline
User theme: Dark
Posts: 13
Joined: Nov 16th, '15, 21:46
    Windows 7 Firefox

Re: Screen resolution in viewtopic

Post by spazz »

Using default prosilver.

I did some mild debugging and it is as if

{postrow.USER_RESOLUTION}
{L_SCREEN_RESOLUTION}

are not getting any value.
The first one seems to be an empty value, and the second one returns the string:
Screen Resolution which does seem right, so it is firing appropriately.

btw Thank you for the fast reply.
Last edited by spazz on Nov 17th, '15, 09:01, edited 1 time in total.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

spazz
Users
Users
Status: Offline
User theme: Dark
Posts: 13
Joined: Nov 16th, '15, 21:46
    Windows 7 Firefox

Re: Screen resolution in viewtopic

Post by spazz »

Looks as tho it is not writing to the database.
Looking further. If I find the cause I will gladly share as I see others have this too.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

Is your database mysql ? if not what are you using and il make a database of the same type and test.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

spazz
Users
Users
Status: Offline
User theme: Dark
Posts: 13
Joined: Nov 16th, '15, 21:46
    Windows 7 Firefox

Re: Screen resolution in viewtopic

Post by spazz »

My dev setup is xampp on windows with mysql and production is mariadb.
Both have the same issue.

Prod:
Image

dev:
Image
Last edited by spazz on Nov 17th, '15, 09:57, edited 1 time in total.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Screen resolution in viewtopic

Post by martin »

Ok that kills the database type then i use mysql on xampp win 10 (works) also mysql on zorin (ubuntu)

think il change table types and test.
Last edited by martin on Nov 17th, '15, 09:59, edited 1 time in total.