PDA

View Full Version : How change tokens |DOMAINTABLE|



traskowski
02-24-2013, 11:02 AM
Hello. I want to change DOMAINTABLE token. It's now show all domains for existing user in table list. I want to create ul list for it. I can change that somewhere?

ditto
02-24-2013, 11:23 AM
Please read this "Translating hardcoded DirectAdmin results" http://help.directadmin.com/item.php?id=74

If you want the domains to be in ul and li in content_main.html, then replace |DOMAINTABLE| with this code (it will also make the header a real h2 html header):


|$/usr/local/bin/php
<?php
$data = <<<END
|DOMAINTABLE|
END;
$data = str_replace("<table class='list table-highlight' cellpadding=3 cellspacing=1>", "", $data);
$data = str_replace("<tr ><td class=listtitle><b><a class=listtitle", "<h2><a", $data);
$data = str_replace("</b></td >", "</h2><ul>", $data);
$data = str_replace("</tr >", "", $data);
$data = str_replace("<tr ><td class=list><a class=list", "<li><a", $data);
$data = str_replace("<tr ><td class=list2><a class=list", "<li><a", $data);
$data = str_replace("</td >", "</li>", $data);
$data = str_replace("</table >", "</ul>", $data);
echo $data;
?>
DONE|