WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Template tester droplet
  • Print
Pages: [1]   Go Down

Author Topic: Template tester droplet  (Read 5027 times)

Offline maxsart

  • Posts: 1
Template tester droplet
« on: April 30, 2011, 06:01:05 PM »
The droplet posted on amasp doesn't work correctly.
This work ok on latest version of WB (tested on 2.81 revision 1287)

global $database, $wb;
$list = $database->query("select * from `".TABLE_PREFIX."addons` where function= 'template'");
$str="";
$perm="";
$url = $_SERVER['PHP_SELF'];
while ($template = $list->fetchRow() ) {
    $str .= "<a href=$url?template=" . $template['directory']. "&perm =$perm>" . $template['name'] . "<a><br>";
}
return ($str);
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Template tester droplet
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2