wbTeamPro Feature Request & Bug Tracker - wbTeamPro
View Issue Details
0010779wbTeamPro[All Projects] Bugspublic2017-01-30 09:312015-01-25 00:00
MaxOnTheHill 
webuddha 
highmajoralways
Implementedfixed 
 
v3.7.x rc 
0010779: RC 3.7.0 - Admin Area Smarty Tag / Broken Layout
Hey guys ... layout in admin breaks, throws 404s trying to add template assets (css/js).

 ... causes the WHMCS "My Notes" feature to always display on wbTeamPro pages at bottom below rest of layout and also other layout issues.

I think there must be a change in the smarty/template variables with the WHMCS6 .... made a few changes in the "/admin-directory/templates/blend/header.tpl".

This is updated "head" section code which resolves correctly and solves the problem.

[code]
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="{$charset}">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>WHMCS - {$pagetitle}</title>

    <link href="../assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="templates/{$template}/style.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/jquery-ui.min.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="../assets/js/textext.min.js"></script>


    <script type="text/javascript">
        var datepickerformat = "{$datepickerformat}";
        {if $jquerycode}
            $(document).ready(function(){ldelim}
                {$jquerycode}
            {rdelim});
        {/if}
        {if $jscode}
            {$jscode}
        {/if}
    </script>

    <script type="text/javascript" src="templates/{$template}/head.js"></script>
    <script type="text/javascript" src="../assets/js/AdminAdvSearch.js"></script>

    {$headoutput}

</head>
[/code]

hope that helps and is clear ;)
No tags attached.
Issue History
2015-07-15 17:15MaxOnTheHillNew Issue
2015-07-15 17:15MaxOnTheHill
2015-07-15 17:27MaxOnTheHillNote Added: 0010254
2015-07-15 17:28MaxOnTheHillNote Added: 0010255
2015-07-19 13:45webuddhaNote Added: 0010268
2015-07-19 13:45webuddhaStatusNew => Implemented
2015-07-19 13:45webuddhaApplied to Version => v3.7.x rc
2015-07-19 13:45webuddhaResolutionopen => fixed
2015-07-19 13:45webuddhaAssigned To => webuddha

Notes
(0010254)
MaxOnTheHill   
2015-07-15 17:27   
... this look better ????
[code=php]
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="{$charset}">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>WHMCS - {$pagetitle}</title>

    <link href="../assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="templates/{$template}/style.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/jquery-ui.min.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="../assets/js/textext.min.js"></script>


    <script type="text/javascript">
        var datepickerformat = "{$datepickerformat}";
        {if $jquerycode}
            $(document).ready(function(){ldelim}
                {$jquerycode}
            {rdelim});
        {/if}
        {if $jscode}
            {$jscode}
        {/if}
    </script>

    <script type="text/javascript" src="templates/{$template}/head.js"></script>
    <script type="text/javascript" src="../assets/js/AdminAdvSearch.js"></script>

    {$headoutput}

</head>
[/code]
(0010255)
MaxOnTheHill   
2015-07-15 17:28   
nope ... is there syntax highlighting for code snippets in mantis ???
(0010268)
webuddha   
2015-07-19 13:45   
Added asset (/assets/) path calculation for non-root installations.