Can you add Steam OS & Browser in ext?
3.2 & 3.3 Extensions Database 3.2 / 3.3 ⇒ Browser & OS in Viewtopic
-
ZippeL
- Users

- Status: Offline
- User theme: Dark
- Posts: 20
- Joined: Aug 20th, '16, 04:37
Re: Browser & OS in Viewtopic
-
Tarantino
- Users

- Status: Offline
- User theme: Dark
- Posts: 42
- Joined: Sep 10th, '16, 02:58
Re: Browser & OS in Viewtopic
Was this based on this one: http://web.archive.org/web/201506021724 ... -t933.html
Can the next version add the screen size too?
And the choice of appear like this:

PS: If I migrate from a 3.0 with the breizh mod what will happen to information of that mod? Will it be continued to this extension?
Thanks
Can the next version add the screen size too?
And the choice of appear like this:

PS: If I migrate from a 3.0 with the breizh mod what will happen to information of that mod? Will it be continued to this extension?
Thanks
-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
Re: Browser & OS in Viewtopic
I have installed this in the phpbb 3.2 but does not show me the images related to OS and type browser?
How do I fix this?
Thanks
How do I fix this?
Thanks
-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
Re: Browser & OS in Viewtopic
I figured out where is the errorrogerio24 wrote: Jan 17th, '17, 23:33 I have installed this in the phpbb 3.2 but does not show me the images related to OS and type browser?
How do I fix this?
Thanks
For example in this link to get this thread I can not see the browser and OS images
http://www.tdtlatinoamerica.com.ar/foro ... 1-s50.html (I have this sintaxis thanks to SEO Url extension https://www.phpbb.com/community/viewtop ... &t=2288486)
Now with another link to go to same place I'm not getting any issue:
http://www.tdtlatinoamerica.com.ar/foro ... 182#p39182 (Traditional link)
-
Tarantino
- Users

- Status: Offline
- User theme: Dark
- Posts: 42
- Joined: Sep 10th, '16, 02:58
Re: Browser & OS in Viewtopic
If I migrate from a 3.0 with the breizh mod to 3.1 what will happen to information of that mod? Is it possible to port to this extension? How?
-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
Re: Browser & OS in Viewtopic
@dmzx: What do you think about this issue?rogerio24 wrote: Jan 17th, '17, 23:48I figured out where is the errorrogerio24 wrote: Jan 17th, '17, 23:33 I have installed this in the phpbb 3.2 but does not show me the images related to OS and type browser?
How do I fix this?
Thanks
For example in this link to get this thread I can not see the browser and OS images
http://www.tdtlatinoamerica.com.ar/foro ... 1-s50.html (I have this sintaxis thanks to SEO Url extension https://www.phpbb.com/community/viewtop ... &t=2288486)
Now with another link to go to same place I'm not getting any issue:
http://www.tdtlatinoamerica.com.ar/foro ... 182#p39182 (Traditional link)
-
martin
- Admin

- Status: Offline
- User theme: Dark
- Posts: 5136
- Joined: Apr 6th, '14, 14:12
Re: Browser & OS in Viewtopic
Why use seo crap ? there is an ext on this site that will do the same as the seo ext you use but with out any problems.
see here all posts before you installed the ext will have an unknown image all posts after you installed the et with have the right images
http://www.tdtlatinoamerica.com.ar/foro ... 262#p39262
see here all posts before you installed the ext will have an unknown image all posts after you installed the et with have the right images
http://www.tdtlatinoamerica.com.ar/foro ... 262#p39262

-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
Re: Browser & OS in Viewtopic
Hi Martinmartin wrote: Jan 19th, '17, 02:16 why use seo crap ? there is an ext on this site that will do the same as the seo ext you use but with out any problems.
see here all posts before you installed the ext will have an unknown image all posts after you installed the et with have the right images
http://www.tdtlatinoamerica.com.ar/foro ... 262#p39262
Could you be polite and use other words please?
You do not understand what I mean. I will make a video to understand
Meantime could you provide me the link related to SEO ext that you mention before?
Thanks
-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
-
Tarantino
- Users

- Status: Offline
- User theme: Dark
- Posts: 42
- Joined: Sep 10th, '16, 02:58
Re: Browser & OS in Viewtopic
Hi rogerio,
try this, it should work. I guess it's a bad coding.
Open this file: ext/dmzx/browsericon/event/listener.php
FIND:
REPLACE WITH:
Then tell me if it worked 
If it doesn't work you need to do some edits on user_agent.php on this function:
maybe put return './ext instead of return 'ext
try this, it should work. I guess it's a bad coding.
Open this file: ext/dmzx/browsericon/event/listener.php
FIND:
Code: Select all
include_once $this->root_path . 'ext/dmzx/browsericon/includes/user_agent.' . $this->php_ext;Code: Select all
include_once generate_board_url() . '/ext/dmzx/browsericon/includes/user_agent.' . $this->php_ext;If it doesn't work you need to do some edits on user_agent.php on this function:
Code: Select all
function ua_get_filename($name, $folder)
{
if (substr($name, 0, 11) == 'unknown')
return 'ext/dmzx/browsericon/images/user_agent/unknown.png';
$name = strtolower($name);
$name = str_replace(' ', '', $name); // remove spaces
$name = preg_replace('/[^a-z0-9_]/', '', $name); // remove special characters
return 'ext/dmzx/browsericon/images/user_agent/'.$folder.'/'.$name.'.png';
}-
martin
- Admin

- Status: Offline
- User theme: Dark
- Posts: 5136
- Joined: Apr 6th, '14, 14:12
Re: Browser & OS in Viewtopic
This ext was done at the first 3.1 release 30 Jun 2015 and as is still works on 3.1 and 3.2 yes it does need an update but at the moment it installs and works fine.
Note phpbb has changed a few times since 30 Jun 2015
Note phpbb has changed a few times since 30 Jun 2015
-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
Re: Browser & OS in Viewtopic
The first option did not workTarantino wrote: Jan 22nd, '17, 16:09 Hi rogerio,
try this, it should work. I guess it's a bad coding.
Open this file: ext/dmzx/browsericon/event/listener.php
FIND:REPLACE WITH:Code: Select all
include_once $this->root_path . 'ext/dmzx/browsericon/includes/user_agent.' . $this->php_ext;Then tell me if it workedCode: Select all
include_once generate_board_url() . '/ext/dmzx/browsericon/includes/user_agent.' . $this->php_ext;
If it doesn't work you need to do some edits on user_agent.php on this function:maybe put return './ext instead of return 'extCode: Select all
function ua_get_filename($name, $folder) { if (substr($name, 0, 11) == 'unknown') return 'ext/dmzx/browsericon/images/user_agent/unknown.png'; $name = strtolower($name); $name = str_replace(' ', '', $name); // remove spaces $name = preg_replace('/[^a-z0-9_]/', '', $name); // remove special characters return 'ext/dmzx/browsericon/images/user_agent/'.$folder.'/'.$name.'.png'; }
Let me try with the second option
Thanks
-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
Re: Browser & OS in Viewtopic
It did not work either
[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/browsericon/event/listener.php on line 74: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0
[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/browsericon/event/listener.php on line 74: include_once(http://www.tdtlatinoamerica.com.ar/foro ... _agent.php): failed to open stream: no suitable wrapper could be found
[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/browsericon/event/listener.php on line 74: include_once(): Failed opening 'http://www.tdtlatinoamerica.com.ar/foro ... _agent.php' for inclusion (include_path='.:/opt/php-7.0/pear')
Fatal error: Uncaught Error: Call to undefined function dmzx\browsericon\event\get_useragent_icons() in /home/u419299182/public_html/forotdt/ext/dmzx/browsericon/event/listener.php:78 Stack trace: #0 [internal function]: dmzx\browsericon\event\listener->viewtopic_modify_post_row(Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #1 /home/u419299182/public_html/forotdt/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #2 /home/u419299182/public_html/forotdt/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.viewtopic_...', Object(phpbb\event\data)) #3 /home/u419299182/public_html/forotdt/phpbb/event/dispatcher.php(60): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.viewtopic_...', Object(phpbb\event\data)) #4 /home/u419299182/public_html/forotdt/phpbb/event/dispatcher.php(46): phpbb\event in /home/u419299182/public_html/forotdt/ext/dmzx/browsericon/event/listener.php on line 78
[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/browsericon/event/listener.php on line 74: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0
[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/browsericon/event/listener.php on line 74: include_once(http://www.tdtlatinoamerica.com.ar/foro ... _agent.php): failed to open stream: no suitable wrapper could be found
[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/browsericon/event/listener.php on line 74: include_once(): Failed opening 'http://www.tdtlatinoamerica.com.ar/foro ... _agent.php' for inclusion (include_path='.:/opt/php-7.0/pear')
Fatal error: Uncaught Error: Call to undefined function dmzx\browsericon\event\get_useragent_icons() in /home/u419299182/public_html/forotdt/ext/dmzx/browsericon/event/listener.php:78 Stack trace: #0 [internal function]: dmzx\browsericon\event\listener->viewtopic_modify_post_row(Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #1 /home/u419299182/public_html/forotdt/vendor/symfony/event-dispatcher/EventDispatcher.php(184): call_user_func(Array, Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #2 /home/u419299182/public_html/forotdt/vendor/symfony/event-dispatcher/EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.viewtopic_...', Object(phpbb\event\data)) #3 /home/u419299182/public_html/forotdt/phpbb/event/dispatcher.php(60): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.viewtopic_...', Object(phpbb\event\data)) #4 /home/u419299182/public_html/forotdt/phpbb/event/dispatcher.php(46): phpbb\event in /home/u419299182/public_html/forotdt/ext/dmzx/browsericon/event/listener.php on line 78
-
Tarantino
- Users

- Status: Offline
- User theme: Dark
- Posts: 42
- Joined: Sep 10th, '16, 02:58
Re: Browser & OS in Viewtopic
Clean the cache and put back the original code on the 1st one and do only the 2nd change.
If it doesnt work either this should:
if not... this WILL LOOL:
If it doesnt work either this should:
Code: Select all
function ua_get_filename($name, $folder)
{
if (substr($name, 0, 11) == 'unknown')
return generate_board_url() . '/ext/dmzx/browsericon/images/user_agent/unknown.png';
$name = strtolower($name);
$name = str_replace(' ', '', $name); // remove spaces
$name = preg_replace('/[^a-z0-9_]/', '', $name); // remove special characters
return generate_board_url() . '/ext/dmzx/browsericon/images/user_agent/'.$folder.'/'.$name.'.png';
}Code: Select all
function ua_get_filename($name, $folder)
{
if (substr($name, 0, 11) == 'unknown')
return 'http://www.tdtlatinoamerica.com.ar/forotdt/ext/dmzx/browsericon/images/user_agent/unknown.png';
$name = strtolower($name);
$name = str_replace(' ', '', $name); // remove spaces
$name = preg_replace('/[^a-z0-9_]/', '', $name); // remove special characters
return 'http://www.tdtlatinoamerica.com.ar/forotdt/ext/dmzx/browsericon/images/user_agent/'.$folder.'/'.$name.'.png';
}-
rogerio24
- Users

- Status: Offline
- User theme: Dark
- Posts: 77
- Joined: Jun 5th, '16, 18:18
Re: Browser & OS in Viewtopic
Thanks very much work with this code
function ua_get_filename($name, $folder)
{
if (substr($name, 0, 11) == 'unknown')
return generate_board_url() . '/ext/dmzx/browsericon/images/user_agent/unknown.png';
$name = strtolower($name);
$name = str_replace(' ', '', $name); // remove spaces
$name = preg_replace('/[^a-z0-9_]/', '', $name); // remove special characters
return generate_board_url() . '/ext/dmzx/browsericon/images/user_agent/'.$folder.'/'.$name.'.png';
}
function ua_get_filename($name, $folder)
{
if (substr($name, 0, 11) == 'unknown')
return generate_board_url() . '/ext/dmzx/browsericon/images/user_agent/unknown.png';
$name = strtolower($name);
$name = str_replace(' ', '', $name); // remove spaces
$name = preg_replace('/[^a-z0-9_]/', '', $name); // remove special characters
return generate_board_url() . '/ext/dmzx/browsericon/images/user_agent/'.$folder.'/'.$name.'.png';
}
Subscribers