Topic: ask. ext on view topic only & not read on mobile?

hello punbb, i need ur help big_smile
i use this ext http://punbb.informer.com/forums/topic/ … obile-v16/

but i want to make enable somescript "back to top" on PC & not enable on mobile, on specific file, before </body> on  viewtopic.php only.

how to example script punbb, please your help big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

Re: ask. ext on view topic only & not read on mobile?

You will have to modify the extension responsible for "back to top" by adding a condition for mobile devices. The simplest solution is to copy this condition from kt_mobile/manifest.xml and apply it for all hook's in "back to top", like this:

    $useragent=$_SERVER['HTTP_USER_AGENT'];
    if($forum_user['kt_mobile_enabled'] && preg_match('/an VERY_LONG_REGEXP |zte\-/i',substr($useragent,0,4)))
    {
        // old hook content
    }

This is very poor solution, this extensive condition should be placed in a function, but it will work smile

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

3 (edited by kudataz 2014-05-11 16:46)

Re: ask. ext on view topic only & not read on mobile?

done, thxx guru big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v