How change tokens |DOMAINTABLE|

traskowski

Verified User
Joined
Nov 13, 2012
Messages
46
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

Verified User
Joined
Apr 27, 2009
Messages
2,538
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):

Code:
|$/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|
 
Top