1 (edited by kudataz 2016-06-27 02:54)

Topic: add js in some place file

hy punbb lover..
i need ur help about create ext
how to add js only in file
- forum.php
- viewtopic.php
- viewpost.php
- seaarch.php

please ur help
link or tutorial is ok big_smile

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

2 (edited by PanBB.Ru 2016-06-27 05:03)

Re: add js in some place file

Open header.php.
In Hook hd_head
Insert:

if (in_array(FORUM_PAGE, array('viewtopic', 'viewforum', 'post', 'search')) 
    $forum_loader->add_js('your_path/script.js', array('type' => 'url', 'async' => true));

Re: add js in some place file

yes sir..
thats work
thank you for helping..
if punbb have rate user or poin i give u +1

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