PDA

View Full Version : Custom skinning


ZeeLex
01-20-2007, 04:43 PM
HI
I have made my own custom skin for vBulletin. I just renamed default style and imported to vBulletin. Then edited the few templates. Now how to disable revert function on my new skin. When I revert it, whole code I have changed changes to original default code. Is there any way that I can`t revert the templates from style admin?
thanks,

CyberAlien
01-20-2007, 06:35 PM
Why would you want to disable function? If you don't need it then just don't use it.

If you managed to click it accedently few times then add confirmation. To do that open includes/adminfunctions_template.php, find this: construct_link_code($vbphrase['revert'], "template.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&templateid=$template[templateid]&dostyleid=$template[styleid]$LINKEXTRA").
and replace with this: construct_link_code($vbphrase['revert'], "template.php?" . $vbulletin->session->vars['sessionurl'] . "do=delete&templateid=$template[templateid]&dostyleid=$template[styleid]$LINKEXTRA\" onclick=\"return confirm('Revert?')").