My Second WB Site, What you think?

CobraCMS

Quote from: ProSam on January 31, 2007, 03:22:33 PM
The content is not all there but it's up and running.

http://www.holysoundproductions.us/

I want to thanks the WB community for helping me put the original template to work with WB. It was a bit of a pain but WB is awesome so it was well worth it.

So give me your opinions.

Te felicito por tu sitio, es muy agradable a la vista y esta todo muy bien ordenado.

Excelente!


ruebenwurzel

Hello,

sorry forgot to answer. Try it with adding a whole URL after the redirect call. ("http://www...." instead of only "www....")

Matthias

ProSam

Hey Matthias,
Anything you can do help me out here?


Thanks,

Sammy

ruebenwurzel

ooops sorry, seems it was to late yesterday night.

To your problem will later have a look.

Matthias

ProSam

the page I linked above is not in a frame and it still does not work.

ruebenwurzel

Hello,

I hate frames  :evil:. Code is written and tested only on normal pages  :-D not on f....ing frame pages. I know you need it for the player.

Matthias

ProSam

it is called login.php

http://www.holysoundproductions.us/pages/login.php

The table is there but after login it doesn't seem to work.

ruebenwurzel

Hello,

How is the name of the page where you added the code in the codesection of the WYSIWYG Editor?

This name you have to add to the second code for the footer of your template (replace the name login.php wich your pagename.

Matthias

ProSam

Is there some sort of module I need to install cuz I've done what you said above and it is not working. THe reason I ask is because the php if statements keep saying like if front end login. What is that?

This what I got so far:
<form class="login_table" method="post" action="http://www.holysoundproductions.us/account/login.php?redirect=www.holysoundproductions.us/admin/index.php" name="login">
  <table align="center" border="0" cellpadding="5" cellspacing="0" width="50%"> <tbody>
    <tr>
      <td style="text-align: right;">Usuario:</td>
      <td>
      <input name="username" type="text" /></td>
    </tr>
    <tr>
      <td style="text-align: right;">Contraseña:</td>
      <td>
      <input name="password" type="password" /></td>
    </tr>
    <tr>
      <td style="text-align: left;">&nbsp;</td>
      <td>
      <input value="Somete" name="submit" type="submit" /></td>
    </tr>
    <tr align="left">
      <td style="text-align: center;" colspan="2"><a href="http://www.holysoundproductions.us/account/forgot.php">Olvido su Contraseña?</a></td>
    </tr> </tbody>
  </table>
</form>


<?php if(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) { ?>
<a href="<?php echo WB_URL?>/admin/index.php">Login</a>
<?php ?>
<?php page_footer(); ?>
<?php if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') { ?>
<a href="<?php echo WB_URL?>/pages/login.php">Login</a>
<?php } elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) { ?>
<a href="<?php echo LOGOUT_URL?>">Logout [ <?php echo $wb->get_display_name(); ?> ]</a>
<?php ?>

kweitzel

bugger ... it's actually not in the tutorial ... will have to extend this one:

http://projects.websitebaker.org/websitebaker2/wiki/Docs-EN-TemplateTutorial

But here is the code how Matthias (Ruebenwurzel) uses it:

Create a WYSIWYG Page and paste following in the source code view of your editor:


<form class="login_table" method="post" action="http://www.runaway-music.de/account/login.php?redirect=http://www.runaway-music.de/pages/mitgliederbereich.php" name="login">
    <table width="50%" cellspacing="0" cellpadding="5" border="0" align="center">
        <tbody>
            <tr>
                <td style="text-align: right;">Benutzername:</td>
                <td><input type="text" name="username" /></td>
            </tr>
            <tr>
                <td style="text-align: right;">Passwort:</td>
                <td><input type="password" name="password" /></td>
            </tr>
            <tr>
                <td style="text-align: left;">&nbsp;</td>
                <td><input type="submit" value="Anmelden" name="submit" /></td>
            </tr>
            <tr align="left">
                <td style="text-align: center;" colspan="2"><a href="http://www.runaway-music.de/account/forgot.php">Anmeldedaten vergessen?</a></td>
            </tr>
        </tbody>
    </table>
</form>


Put this here in the footer of your template:


<?php if(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) { ?>
<a href="<?php echo WB_URL?>/pages/mitgliederbereich.php">Mitgliederbereich</a>
<?php ?>
<?php page_footer(); ?>
<?php if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') { ?>
<a href="<?php echo WB_URL?>/pages/login.php">Login</a>
<?php } elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) { ?>
<a href="<?php echo LOGOUT_URL?>">Logout [ <?php echo $wb->get_display_name(); ?> ]</a>
<?php ?>


You need to customise the code for your needs though ... there is a redirect URL in the first part of the code. This URL goes to a memberpage of a different DOMAIN ... so change it to the admin startpage of your installation!

The original (in german) can be found here: http://forum.websitebaker.org/index.php/topic,5362.msg33666.html#msg33666

cheers

Klaus

ProSam

Quote from: ProSam on February 02, 2007, 03:20:16 PM
Quote from: kweitzel on February 01, 2007, 08:36:41 PM
But if you create a page only designed with a login form (the code is in the WIKI, template Tutorial), people cann not see immediately that they are dealing with WebsiteBaker which gives you a little advantage over "wannabe" hackers ...

If you now take the code from the Tutorial, put it into a page of type code and wrap every line in an "echo" statement (with the required form changes), you have a login form fitting the design of your template.
I can't find the code in the Wiki. Are you sure its available in english? I have no idea how to speak or read german. :(

Hey Klaus,
I've yet to find that info in the wiki, could you help a fellow baker out?  :-)

ProSam

Thanks!

I'm using Jeroen Wijering's flash mp3 player. One of the best out there. Very easy to use and customize. I then placed it inside a frame, though that's not a very popular thing to do.

See the thread HERE

jollylama

Nice design,

I like how you incorporated the flash audio player. How did you do that? I'll be working on my friends 'recording studio' website shortly and will be picking your brain shortly.

nice work,

ben

ProSam

Quote from: kweitzel on February 01, 2007, 08:36:41 PM
But if you create a page only designed with a login form (the code is in the WIKI, template Tutorial), people cann not see immediately that they are dealing with WebsiteBaker which gives you a little advantage over "wannabe" hackers ...

If you now take the code from the Tutorial, put it into a page of type code and wrap every line in an "echo" statement (with the required form changes), you have a login form fitting the design of your template.
I can't find the code in the Wiki. Are you sure its available in english? I have no idea how to speak or read german. :(

ProSam

Oh,
Very cool. Thanks. I'll try that out.

kweitzel

In the footer of your template you have a little navigation bar ... one of the links in there is the login link.

But that link refers back to the Admin Login, which tells everybody plainly that they are dealing with WebsiteBaker.

But if you create a page only designed with a login form (the code is in the WIKI, template Tutorial), people cann not see immediately that they are dealing with WebsiteBaker which gives you a little advantage over "wannabe" hackers ...

If you now take the code from the Tutorial, put it into a page of type code and wrap every line in an "echo" statement (with the required form changes), you have a login form fitting the design of your template.

cheers

Klaus

ProSam

Quote from: kweitzel on January 31, 2007, 09:37:23 PM
Maybe for the login you would want to make a different page instead of just linking the Admin Login ... use the login part of the template tutorial, but echo each line from a code page. make it less obvious, what CMS is behind it.
Could you elaborate a little more on how to do that or point me in the right direction?

kweitzel

Great ... just for me a shame that it's only in spanish (right?). But lovly design, the interoperability (FF2, IE6 & IE7) ... the only "issue" I saw, was that in IE6 the Whole page was running out of space at the bottom ... but that is such a minor thing ...

Maybe for the login you would want to make a different page instead of just linking the Admin Login ... use the login part of the template tutorial, but echo each line from a code page. make it less obvious, what CMS is behind it.

cheers

Klaus

ProSam


ruebenwurzel

Hello,

as far as i remember there was no other way to solve the playerincluding then with frames, right?

what i say, really nice baked

Matthias

ProSam

Yeah, I know. I've heard it 1000 times already, I don't like frames either but its for a purpose.  :-)

ruebenwurzel

Hello,

nice side but personally i hate frames  :wink:

Matthias

ProSam

#1
The content is not all there but it's up and running.

http://www.holysoundproductions.us/

I want to thanks the WB community for helping me put the original template to work with WB. It was a bit of a pain but WB is awesome so it was well worth it.

So give me your opinions.