-
AuthorPosts
-
Michael Casha Friend
Michael Casha
- Join date:
- September 2014
- Posts:
- 2561
- Downloads:
- 1
- Uploads:
- 32
- Thanks:
- 41
- Thanked:
- 119 times in 1 posts
June 13, 2007 at 9:23 am #120810This is an UNOFFICIAL modification to the current products served by JoomlArt. To be legally entitled to use this modification you MUST use this on a licensed domain. The 2 scripts required for this template can be found in JA Quillaja or JA Teline
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yep, it’s time for me to bragg again. I hope you don’t mind watching my adventures of pulling apart bits of the JoomlArt templates.Anyway, I sat down flicking through all the amazing JoomlArt templates (don’t we all) and then I saw Quillaja and Teline that has the hpanel (hidden panel aka. Members Area). Now yes, I’ve seen them before but it gave me inspiration.
Now, I’m using a seperate custom system than what those templates use, including my own custom designed Joomla template. But, I really really wanted that on my site but didn’t have any experience with javascript before.
So, I pulled bits, I prodded bits, until finally I have what I have on my site now. Go to http://www.miccas.net and press REGISTER. Or here’s some screenshots:
– Panel Closed
– Panel Opening
– Panel OpenHow I did it – yes, you all want to know 🙂
Firstly, I copied and pasted the two script files (ja.script.js and ja.hiddenpanel.js) to your templates folder.
Next, open the index.php file found in your template and put these lines of code just before the </head> tag.
<script language="javascript" type="text/javascript" src="http://www.yoursite.com/joomla/templates/templatename/ja.script.js"></script>
<script language="javascript" type="text/javascript" src="http://www.yoursite.com/joomla/templates/templatename/ja.hiddenpanel.js"></script>
<script type="text/javascript">
/*<!]>*/
</script>Make sure you change the site url to make sure it is directed at ja.script.js and ja.hiddenpanel.js
Next, copy and paste this code to where you’d like the panel to OPEN.
<div id="ja-hpwrap"><div id="ja-hp"><div class="ja-hpmodule">
Congratulations, you're hidden panel is working!
</div></div></div>Obviously you can replace “Congratulations, you’re hidden panel is working!” with your own text or code.
Next is the code that will display your button. Copy/paste this line of code wherever you’d like the SHOW/HIDE button to go.
<span id="ja-hp-switch">SHOW/HIDE</span>
Next, open your CSS file (/css/template_css.css) and add these lines of code:
#ja-hp-switch {
float: right;
color: #CCCCCC;
display: none;
font-weight: bold;
cursor: pointer;
padding: 0 5px;
}.ja-hp-active {
color: #FFFFFF !important;
background: #FF9A48;
border-bottom: 1px solid #000000;
}#ja-hpwrap {
background: #EFEFEF;
font-size: 11px;
}#ja-hp {
line-height: normal;
}div.ja-hpmodule {
float: right;
padding: 3px 0 2px;
}html>body div.ja-hpmodule {
float: right;
padding: 5px 0 5px;
}div.ja-hpmodule form {
float: left;
}div.ja-hpmodule form label {
float: left;
padding: 0 5px;
}div.ja-hpmodule form input.button {
padding: 0px 3px;
background: #333333;
border: 1px solid #333333;
color: #CCCCCC;
font-size: 11px !important;
}div.ja-hpmodule form #mod_login_username,
div.ja-hpmodule form #mod_login_password {
background: #F7F7F7;
border: 1px solid #CCCCCC;
width: 70px;
margin-bottom: 0;
}div.ja-hpmodule form #mod_login_remember {
margin-bottom: 0;
}div.ja-hpmodule form a {
padding-left: 5px;
border-left: 1px solid #CCCCCC;
}
#ja-hpwrap {
clear: both;
width: 100%;
}#ja-hp {
margin: 0 auto;
width: 750px;
text-align: left;
}.wide #ja-hp {
margin: 0 auto;
width: 950px;
text-align: left;
}
}Now, for the fun part! Upload the files and check your site.. yep, should be working! Well done 🙂
Hung Dinh FriendHung Dinh
- Join date:
- September 2014
- Posts:
- 4408
- Downloads:
- 11
- Uploads:
- 189
- Thanks:
- 309
- Thanked:
- 3310 times in 3 posts
June 13, 2007 at 9:34 am #222052Thank you MiCCAS for sharing this modification. I am thinking of developing more features for the module so that we can release for our JAEC members
Michael Casha FriendMichael Casha
- Join date:
- September 2014
- Posts:
- 2561
- Downloads:
- 1
- Uploads:
- 32
- Thanks:
- 41
- Thanked:
- 119 times in 1 posts
June 13, 2007 at 9:36 am #222053<em>@Hung Dinh 18084 wrote:</em><blockquote>Thank you MiCCAS for sharing this modification. I am thinking of developing more features for the module so that we can release for our JAEC members</blockquote>
Now THAT would be awesome 🙂ErikThorsen FriendErikThorsen
- Join date:
- December 2005
- Posts:
- 1098
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 22
- Thanked:
- 10 times in 1 posts
June 13, 2007 at 10:08 am #222056Excellent stuff MiCCAS. What about getting a “contribution” part of the forum? I think this would be a great add-on to an already great forum. That way licensed users could have even more reasons to join!
February 23, 2009 at 1:30 pm #293045I want to visible this panel.But I push to show/hide button, this panel hidden.
Which code edit ?
February 24, 2009 at 10:48 pm #293296Sorry my english a little bad, maybe very bad 🙂
my question is > when the page opens, the panel will be seen open.when you press the show/hide button the panel will be closed.
I hope I could tell.
This question maybe to be valid JA Hidden-Panel.
ShannonN FriendShannonN
- Join date:
- July 2006
- Posts:
- 1947
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 172 times in 49 posts
February 25, 2009 at 3:29 am #293315nkrfl;114125I want to visible this panel.But I push to show/hide button, this panel hidden.
Which code edit ?
@nkrfi as an unlicensed member do you have a purchased JA template to use it on and a registered JA domain for your purchased template? This is to fulfil the designers requirements for use.
@miccas
Didn’t work for me on your site, mate, all I got was a static page with the forum rulesmj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
February 25, 2009 at 4:17 am #293318sorry miccas, signed up as user geekhead no hidden panel for me either :confused:
using opera 9.63
Michael Casha FriendMichael Casha
- Join date:
- September 2014
- Posts:
- 2561
- Downloads:
- 1
- Uploads:
- 32
- Thanks:
- 41
- Thanked:
- 119 times in 1 posts
February 26, 2009 at 10:25 am #293518Sorry, I have since removed this feature but I will consider putting it back when I redevelop the site.
ShannonN FriendShannonN
- Join date:
- July 2006
- Posts:
- 1947
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 172 times in 49 posts
February 26, 2009 at 12:42 pm #293535MiCCAS;114721Sorry, I have since removed this feature but I will consider putting it back when I redevelop the site.
Or when you actually get it working?
-
AuthorPosts
This topic contains 10 replies, has 6 voices, and was last updated by ShannonN 15 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum