General Community > WebsiteBaker Website Showcase
My Second WB Site, What you think?
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:
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
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.
--- End quote ---
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. :(
--- End quote ---
Hey Klaus,
I've yet to find that info in the wiki, could you help a fellow baker out? :-)
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:
--- Code: ---<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;"> </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>
--- End code ---
Put this here in the footer of your template:
--- Code: ---<?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 } ?>
--- End code ---
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:
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:
--- Code: ---<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;"> </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>
--- End code ---
--- Code: ---<?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 } ?>
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version