How to find styleid's.
This adds the current style id of a style to the modifiy styles page of the admin cp, makes it easyer on newbies who dont know how to find style id's
To upgrade:
In /admin/style.php find:
PHP Code:
// ###################### Start Modify #######################
if ($action=="modify") {
doformheader("","");
maketableheader("Style Sets");
$styles=$DB_site->query("SELECT styleid,title FROM style ORDER BY title");
while ($style=$DB_site->fetch_array($styles)) {
echo "<tr class='".getrowbg()."'>\n<td><p>$style[title]</p></td><td><p>".
makelinkcode("fonts/colors/etc","style.php?s=$session[sessionhash]&action=styles&dostyleid=$style[styleid]").
makelinkcode("properties","style.php?s=$session[sessionhash]&action=edit&editstyleid=$style[styleid]",0,"edit style properties").
makelinkcode("download","style.php?s=$session[sessionhash]&action=dodownload&styleid=$style[styleid]").
iif($style[styleid]!=1,makelinkcode("remove","style.php?s=$session[sessionhash]&action=remove&styleid=$style[styleid]"),"").
"</p></td></tr>\n";
}
echo "</table></td></tr></table>";
}
Replace by:
PHP Code:
// ###################### Start Modify #######################
if ($action=="modify") {
doformheader("","");
maketableheader("Style Sets");
$styles=$DB_site->query("SELECT styleid,title FROM style ORDER BY title");
while ($style=$DB_site->fetch_array($styles)) {
echo "<tr class='".getrowbg()."'>\n<td><p>$style[title] (style id $style[styleid])</p></td><td><p>".
makelinkcode("fonts/colors/etc","style.php?s=$session[sessionhash]&action=styles&dostyleid=$style[styleid]").
makelinkcode("properties","style.php?s=$session[sessionhash]&action=edit&editstyleid=$style[styleid]",0,"edit style properties").
makelinkcode("download","style.php?s=$session[sessionhash]&action=dodownload&styleid=$style[styleid]").
iif($style[styleid]!=1,makelinkcode("remove","style.php?s=$session[sessionhash]&action=remove&styleid=$style[styleid]"),"").
"</p></td></tr>\n";
}
echo "</table></td></tr></table>";
}
Thats it!