Author Topic: Skinable frontend account template - first try :)  (Read 13295 times)

Online crnogorac081

  • Posts: 1880
  • Gender: Male
Re: Skinable frontend account template - first try :)
« Reply #25 on: November 30, 2009, 04:08:24 PM »
Yea I know, I am thinking to disable  that combo box :) Just wanted to show it fully featured :)

cheers
no bb in signature

Offline D. Peeters

  • Posts: 128
Re: Skinable frontend account template - first try :)
« Reply #26 on: November 30, 2009, 04:50:55 PM »
Guys,

I will post it as soon as I get home :) Also I want to try some design adjustments :)

cheers

Hello Ivan,
you didn't post your trick till now, right?

Could you explain how you did include all the boxes in top?

Kind Regards,
Stefek

Oupsss , totaly forgot :( sorry

Ok here it is:

Ih index.php of the temlate add following code into head

Code: [Select]
<link href="<?php echo TEMPLATE_DIR?>/account-htt/css/slide.css" rel="stylesheet" type="text/css" media="screen" />

AND ALSO

<script src="<?php echo TEMPLATE_DIR?>/account-htt/js/slide.js" type="text/javascript"></script>




Now, just below <body> tag I added this code:

Code: [Select]

<!-- Panel -->
<div id="toppanel">
    <div id="panel">
        <div class="content clearfix">
       
        <?php
        
if(FRONTEND_LOGIN AND !$wb->is_authenticated()) {
        
?>

                <div class="left">
                <h1>Welcome to this Web-site</h1>
                <h2>This is great site..</h2>        
                <p class="grey">Next step is to drop text from from global block!</p>
                <h2>This is Header</h2>
                <p class="grey">this is raw design.. but its working :)</p>
            </div>
           
               <div class="left">
            <?php
                
include (WB_PATH . &#39;/account/login_form.php&#39;);
            
?>

            </div>

            <div class="left right">
             <?php
                
include (WB_PATH . &#39;/account/signup_form.php&#39;);
            
?>

               </div>
     
        <?php
        
} elseif (FRONTEND_LOGIN AND $wb->is_authenticated()) {
        
        include (
WB_PATH . &#39;/account/preferences_form.php&#39;);

        
?>


        <?php
        
}
        
?>



        </div>
    </div> <!-- /login -->    

    <!-- The tab on top -->    
    <div class="tab">
        <ul class="login">
            <li class="left">&nbsp;</li>
            <li>
                <?php
                
echo $TEXT[&#39;WELCOME_BACK&#39;].&#39;&nbsp;&#39;;
                
if($wb->is_authenticated()) {
                echo 
$wb->get_display_name().&#39; | <a href="&#39;.LOGOUT_URL.&#39;">&#39;.$MENU[&#39;LOGOUT&#39;].&#39;</a> &#39;;
                
} else{
                echo &
#39;Guest&#39;;
                
}
                
?>

           
            </li>
            <li class="sep">|</li>
            <li id="toggle">
                <?php
                
if($wb->is_authenticated()) {
                echo &
#39;<a id="open" class="open" href="#">&#39;.$MENU[&#39;PREFERENCES&#39;].&#39;</a>&#39;;
                
} else{
                echo &
#39;<a id="open" class="open" href="#">Log In | Register</a>&#39;;
                
}
                
?>

                <a id="close" style="display: none;" class="close" href="#">Close Panel</a>            
            </li>
            <li class="right">&nbsp;</li>
        </ul>
    </div> <!-- / top -->
   
</div> <!--panel -->

And add this account-htt (attached) into your template dir.


that should do the trick :)

cheers


nice design!!!

could you please re-upload the attachments? i wanna use it as well! (hope i may :P)

Offline Argos

  • Posts: 2542
  • Gender: Male
    • Argos Media
Re: Skinable frontend account template - first try :)
« Reply #27 on: November 30, 2009, 04:51:16 PM »
Nice! The site is very slow though, possibley due to the image rotator in the header. And if I save something in the slide-out panel, I get redireced to a normal admin page in the site.
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
----------------------------------------------------------------
Please don't request personal support, use the forums!

Offline Vincent

  • Posts: 376
  • Gender: Male
    • websites voor ondernemers
Re: Skinable frontend account template - first try :)
« Reply #28 on: November 30, 2009, 06:19:08 PM »
Nice feature.
I tried it on a template, and it shows, but the toggle function (slider) doesn't seem to work. I followed your instructions. Are you sure you haven't forgotten something, or am I missing something?

Regards,
Vincent

@Peeters: the zip file is still attached under the post you copied.


Online crnogorac081

  • Posts: 1880
  • Gender: Male
Re: Skinable frontend account template - first try :)
« Reply #29 on: November 30, 2009, 08:11:11 PM »
Nice! The site is very slow though, possibley due to the image rotator in the header. And if I save something in the slide-out panel, I get redireced to a normal admin page in the site.

Yes, unfortunately site is slow because I use some free web hosting provider..

And yes, you are right, it redirects to account page, as that is set by defult in WB when you change something.. but I cant figure out the way how not to be redirected and stay on same page..

cheers
no bb in signature

Online crnogorac081

  • Posts: 1880
  • Gender: Male
Re: Skinable frontend account template - first try :)
« Reply #30 on: November 30, 2009, 08:15:42 PM »
Nice feature.
I tried it on a template, and it shows, but the toggle function (slider) doesn't seem to work. I followed your instructions. Are you sure you haven't forgotten something, or am I missing something?

Regards,
Vincent

@Peeters: the zip file is still attached under the post you copied.



Yes, JQuery script must be inserted in head tag :)

<script type="text/javascript" src="<?php WB_URL; ?>/include/jquery/jquery-min.js"></script>

cheers
no bb in signature

Offline D. Peeters

  • Posts: 128
Re: Skinable frontend account template - first try :)
« Reply #31 on: November 30, 2009, 10:40:02 PM »
Nice feature.
I tried it on a template, and it shows, but the toggle function (slider) doesn't seem to work. I followed your instructions. Are you sure you haven't forgotten something, or am I missing something?

Regards,
Vincent

@Peeters: the zip file is still attached under the post you copied.


thanks

Online crnogorac081

  • Posts: 1880
  • Gender: Male
Re: Skinable frontend account template - first try :)
« Reply #32 on: December 01, 2009, 09:00:44 PM »
And yes, you are right, it redirects to account page, as that is set by defult in WB when you change something.. but I cant figure out the way how not to be redirected and stay on same page..

Does anyone know how to stop the redirection ?
no bb in signature

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Skinable frontend account template - first try :)
« Reply #33 on: December 05, 2009, 07:48:56 PM »
Hello Ivan,

I don't know right now where to change it.
But without core changes it won't be possible (I guess).

For me it's too much to include all the settings etc. into this slider anyway and I would suggest to have only the login box in there.  :wink:
And settings and registration form I would do on single pages (the way it is right now).

Kind Regards,
Stefek
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden

Online crnogorac081

  • Posts: 1880
  • Gender: Male
Re: Skinable frontend account template - first try :)
« Reply #34 on: December 05, 2009, 10:16:56 PM »
I would probablz dissable most of settings :)

I am hoping some developer could answer this.. :)

cheers
no bb in signature

Online crnogorac081

  • Posts: 1880
  • Gender: Male
Re: Skinable frontend account template - first try :)
« Reply #35 on: January 05, 2010, 09:48:49 PM »
And yes, you are right, it redirects to account page, as that is set by defult in WB when you change something.. but I cant figure out the way how not to be redirected and stay on same page..

Does anyone know how to stop the redirection ?

Hi,

I am still wondering how to stay on same page after loging in.. I hope someone who knows core files well could help me..

cheers
no bb in signature

Offline Stefek

  • Posts: 6177
  • Gender: Male
  • ("ړ)
Re: Skinable frontend account template - first try :)
« Reply #36 on: January 05, 2010, 09:52:39 PM »
Hello Ivan,

for it is no issue of this patch itself, it's maybe better to open an new thread for your question?
Otherwise it is a little bit misleading here? What you think ;-)

Kind Regards,
Stefek
"Gemeinsam schafft man mehr."

gemeinsam
1. mehreren Personen oder Dingen in gleicher Weise gehörend, eigen
2. in Gemeinschaft [unternommen, zu bewältigen]; zusammen, miteinander
#Duden