In my first post I linked you to the source, you can use that in case you need more. I can only paste here my edits I have made but posting all js files is not needed I guess?
In the footer I have the following:
XML/XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<
script
type
=
"text/javascript"
src
=
"inc/jquery.hoverIntent.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"inc/jquery.mb.flipText.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"inc/mbExtruder.js"
></
script
>
<
script
type
=
"text/javascript"
>
$(function(){
if (self.location.href == top.location.href){}
$("#extruderRight").buildMbExtruder({
position:"right",
width:300,
extruderOpacity:.8,
textOrientation:"tb",
onExtOpen:function(){},
onExtContentLoad:function(){},
onExtClose:function(){}
});
});
</
script
>
<
div
id
=
"extruderRight"
class
=
"{title:'User Control Panel', url:'index.php?e=sidepanel'}"
></
div
>
Than I have my sidepanel setup php file:
PHP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Than my sidepanel.php:
PHP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
defined(
'COT_CODE'
)
or
die
(
'Wrong URL'
);
$tplfile
= cot_import(
'tpl'
,
'G'
,
'TXT'
);
$mskin
= cot_tplfile(
array
(
'sidepanel'
,
$tplfile
),
'plug'
);
$t
=
new
XTemplate(
$mskin
);
?>
And I have this is my sidepanel.tpl
XML/XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<
div
class
=
"voice {}"
><
span
class
=
"label"
><
a
class
=
"label"
href
=
"http://www.open-lab.com "
>Open Lab</
a
></
span
></
div
>
<
div
id
=
"tw"
class
=
"voice {panel:'parts/extr.tw.html'}"
><
a
class
=
"label"
href
=
"http://twproject.com "
target
=
"_blank"
>teamwork</
a
></
div
>
<
div
class
=
"voice {panel:'parts/extr.mti.html'}"
><
span
class
=
"label"
>Morethanicons</
span
></
div
>
<
div
class
=
"voice {panel:'parts/extr.network.html'}"
><
span
class
=
"label"
>Only admins can see this</
span
></
div
>
<
div
class
=
"voice {disabled:true}"
><
span
class
=
"label"
>Microsoft Internet Explorer</
span
></
div
>
<
div
class
=
"voice {}"
><
a
class
=
"label"
href
=
"http://firefox.com "
target
=
"_blank"
>get FireFox</
a
></
div
>
<
script
type
=
"text/javascript"
></
script
>
In the tpl I made one if statement purely for testing. Since it works my plugin actually works, except for tht redirect to its standalone page after succesfull login.
Please bare in mind, I do not really understand so much about making plugins, I am always reading and trying till I drop ;)
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />