Back to vBulletin 3.0 Add-Ons

Admin Delete Template Link
Mod Version: 1.00, by Slynderdale

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 4
Released: 28 Aug 2004 Last Update: Never Downloads: 1
Not Supported  

I noticed one thing, that there was no delete link for the templates in the template list. This got annoying when I added templates and wanted to delete them later, so I made a fix.

Note:
When you click delete, it will ask you if you want to revert the template, if you choose yes, it will delete it and you can't get it back.

in includes/adminfunctions_templates.php find:
PHP Code:
             case $styleid// template is customized for this specific style
                 
return "$indent<li class=\"col-c\">$template[title].
                     
construct_link_code($vbphrase['edit'], "template.php?$session[sessionurl]do=edit&amp;templateid=$template[templateid]&amp;dostyleid=$template[styleid]$LINKEXTRA").
                     
construct_link_code($vbphrase['revert'], "template.php?$session[sessionurl]do=delete&amp;templateid=$template[templateid]&amp;dostyleid=$template[styleid]$LINKEXTRA").
                     
construct_link_code($vbphrase['view_original'], "template.php?$session[sessionurl]do=view&amp;title=" urlencode($template['title']), 1).
                 
"</li>\n"
and replace it with:
PHP Code:
             case $styleid// template is customized for this specific style
                 
return "$indent<li class=\"col-c\">$template[title].
                     
construct_link_code($vbphrase['edit'], "template.php?$session[sessionurl]do=edit&amp;templateid=$template[templateid]&amp;dostyleid=$template[styleid]$LINKEXTRA").
                     
construct_link_code($vbphrase['revert'], "template.php?$session[sessionurl]do=delete&amp;templateid=$template[templateid]&amp;dostyleid=$template[styleid]$LINKEXTRA").
                     
construct_link_code($vbphrase['delete'], "template.php?$session[sessionurl]do=delete&amp;templateid=$template[templateid]&amp;dostyleid=$template[styleid]$LINKEXTRA").
                     
construct_link_code($vbphrase['view_original'], "template.php?$session[sessionurl]do=view&amp;title=" urlencode($template['title']), 1).
                 
"</li>\n"

Thats all.

Download

No files for download.

Similar Mods

Administrative and Maintenance Tools PP_Classifieds Admin link via vb Admin cp vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024