Hi,
Suppose you want to have settings for a plugin named 'example'
You need to create a folder named 'admin' inside the 'example' plugin folder.
The 'admin' folder will contain two files 'example.admin.php' and 'example.admin.tpl'
In above files, replace 'example' with your plugin name.
You need to render the template file i.e 'example.admin.tpl' inside this file.
To do that, add the following line in 'example.admin.php'
echo Admin_tpl::render('example/admin/example.admin.tpl');
After doing this, you will find that in the plugin list in codoforum backend will show a link named 'settings'.
You can check out how the admin menu for the sso plugin is built.
Just copy the files from the 'sso' plugin and change according to your needs.
Hi,
Suppose you want to have settings for a plugin named 'example'
You need to create a folder named 'admin' inside the 'example' plugin folder.
The 'admin' folder will contain two files *'example.admin.php'* and *'example.admin.tpl'*
In above files, replace 'example' with your plugin name.
You need to render the template file i.e 'example.admin.tpl' inside this file.
To do that, add the following line in 'example.admin.php'
```
echo Admin_tpl::render('example/admin/example.admin.tpl');
```
After doing this, you will find that in the plugin list in codoforum backend will show a link named 'settings'.
You can check out how the admin menu for the sso plugin is built.
Just copy the files from the 'sso' plugin and change according to your needs.