Template overzetten?
Ik heb een template die overgezet moet worden op een sms site script.
Zou graag wat hulp willen dit is de eerste keer dat ik zo iets doe!
Het eerste probleem is met het inlog script.
Hier het script:
Code (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
30
31
32
33
34
35
36
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="box">
<?php
if(Users::loggedin())
{
/** Menu */
echo '<h3>'.$registry['Zend_Translate'] -> _('LayoutMenu_Welcome').'</h3>';
echo '<ul class="bottom">';
echo '<li><a href="'.$this -> baseUrl().'/user/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Credits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Sms').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/outbox/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Outbox').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/phonebook/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Phonebook').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/missions/">'.$registry['Zend_Translate'] -> _('LayoutMenu_ClickMissions').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/creditlink/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Creditlink').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/buy/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_BuyCredits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/logout/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Logout').'</a></li>';
echo '</ul>';
}
else
{
/** Login Form */
?>
<h3><?php echo $registry['Zend_Translate'] -> _('UserController_LoginPageTitle'); ?></h3>
<ul class="bottom">
<form method="post" action="<?php echo $this -> baseUrl(); ?>/user/login/" id="login">
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblUsername'); ?>:</label><br />
<input type="text" name="username" value="" size="30" /><br />
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblPassword'); ?>:</label><br />
<input type="password" name="password" value="" size="30" /><br />
<input type="submit" name="login" value="<?php echo $registry['Zend_Translate'] -> _('UserController_BtnLogin'); ?>" />
</form>
<br /><a href="<?php echo $this -> baseUrl(); ?>/user/lostpassword/"><?php echo $registry['Zend_Translate'] -> _('UserController_LostPassword'); ?></a>
</ul>
<?php
}
?>
</div>
<?php
if(Users::loggedin())
{
/** Menu */
echo '<h3>'.$registry['Zend_Translate'] -> _('LayoutMenu_Welcome').'</h3>';
echo '<ul class="bottom">';
echo '<li><a href="'.$this -> baseUrl().'/user/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Credits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Sms').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/outbox/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Outbox').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/phonebook/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Phonebook').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/missions/">'.$registry['Zend_Translate'] -> _('LayoutMenu_ClickMissions').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/creditlink/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Creditlink').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/buy/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_BuyCredits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/logout/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Logout').'</a></li>';
echo '</ul>';
}
else
{
/** Login Form */
?>
<h3><?php echo $registry['Zend_Translate'] -> _('UserController_LoginPageTitle'); ?></h3>
<ul class="bottom">
<form method="post" action="<?php echo $this -> baseUrl(); ?>/user/login/" id="login">
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblUsername'); ?>:</label><br />
<input type="text" name="username" value="" size="30" /><br />
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblPassword'); ?>:</label><br />
<input type="password" name="password" value="" size="30" /><br />
<input type="submit" name="login" value="<?php echo $registry['Zend_Translate'] -> _('UserController_BtnLogin'); ?>" />
</form>
<br /><a href="<?php echo $this -> baseUrl(); ?>/user/lostpassword/"><?php echo $registry['Zend_Translate'] -> _('UserController_LostPassword'); ?></a>
</ul>
<?php
}
?>
</div>
En hier de nieuwe template waar alles nog ingevoerd moet worden:
Code (php)
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
<div class="content_box">
<form method="post" action="">
Gebruikersnaam: <br /><input type="text" value="" /><br />
Wachtwoord: <br /><input type="password" value="" />
<div class="line"></div>
<div class="input">
<input type="submit" value="Inloggen" /> <a href="#">Wachtwoord vergeten</a>
</div>
<form method="post" action="">
Gebruikersnaam: <br /><input type="text" value="" /><br />
Wachtwoord: <br /><input type="password" value="" />
<div class="line"></div>
<div class="input">
<input type="submit" value="Inloggen" /> <a href="#">Wachtwoord vergeten</a>
</div>
Gewijzigd op 16/03/2011 17:55:20 door Leroy schouten
Ja en dan ?
Code (php)
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
<div class="content_box">
<form method="post" action="<?php echo $this -> baseUrl(); ?>/user/login/" id="login">
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblUsername'); ?>:</label><br />
Gebruikersnaam: <br /><input type="text" value="" /><br />
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblPassword'); ?>:</label><br />
Wachtwoord: <br /><input type="password" value="" />
<input type="submit" name="login" value="<?php echo $registry['Zend_Translate'] -> _('UserController_BtnLogin'); ?>" />
<div class="line"></div>
<div class="input">
<input type="submit" value="Inloggen" /> <a href="<?php echo $this -> baseUrl(); ?>/user/lostpassword/"><?php echo $registry['Zend_Translate'] -> _('UserController_LostPassword'); ?></a>">Wachtwoord vergeten</a>
</div>
<form method="post" action="<?php echo $this -> baseUrl(); ?>/user/login/" id="login">
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblUsername'); ?>:</label><br />
Gebruikersnaam: <br /><input type="text" value="" /><br />
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblPassword'); ?>:</label><br />
Wachtwoord: <br /><input type="password" value="" />
<input type="submit" name="login" value="<?php echo $registry['Zend_Translate'] -> _('UserController_BtnLogin'); ?>" />
<div class="line"></div>
<div class="input">
<input type="submit" value="Inloggen" /> <a href="<?php echo $this -> baseUrl(); ?>/user/lostpassword/"><?php echo $registry['Zend_Translate'] -> _('UserController_LostPassword'); ?></a>">Wachtwoord vergeten</a>
</div>
Attentie iedereen, Leroy gaat zijn templete overzetten
Ik zou graag wat hulp willen. Dit is namelijk de eerste keer dat ik zo iets doe.
We horen het wel als je vast loopt. Laat dan ook weten wat je probeert hebt, en wat er niet lukt.
Gewijzigd op 16/03/2011 18:02:10 door - Ariën -
Bij reactie terug heb ik een inlog script in elkaargezet maar denk zelf dat het niet helemaal klopt.
testen
<form method="post" action="
Fatal error: Using $this when not in object context in /home/ervtyhau/domains/versturengratis.nl/public_html/index.php on line 28
Wat kan er mis zijn?
Gewijzigd op 16/03/2011 18:17:24 door leroy schouten
Relevante code? Wat staat er op en rond die lijn?
Nee nergens.
Pfff, kom op zeg. Die error is toch duidelijk? Blijkbaar gebruik je $this zonder in een klasse te zitten.
Sorry maar heb hier niet zoveel verstand van? Daarom vraag ik het hier om wat hulp. Wat houd dit precies in?
$this heeft alleen betekenis zo:
En niet zo
Wie is er bereid om dit voor mij in orde te maken?
Alvast bedankt!
Wat je wil is me nou niet echt duidelijk...
Dit inlog script: (oude template)
Code (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
30
31
32
33
34
35
36
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="box">
<?php
if(Users::loggedin())
{
/** Menu */
echo '<h3>'.$registry['Zend_Translate'] -> _('LayoutMenu_Welcome').'</h3>';
echo '<ul class="bottom">';
echo '<li><a href="'.$this -> baseUrl().'/user/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Credits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Sms').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/outbox/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Outbox').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/phonebook/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Phonebook').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/missions/">'.$registry['Zend_Translate'] -> _('LayoutMenu_ClickMissions').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/creditlink/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Creditlink').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/buy/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_BuyCredits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/logout/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Logout').'</a></li>';
echo '</ul>';
}
else
{
/** Login Form */
?>
<h3><?php echo $registry['Zend_Translate'] -> _('UserController_LoginPageTitle'); ?></h3>
<ul class="bottom">
<form method="post" action="<?php echo $this -> baseUrl(); ?>/user/login/" id="login">
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblUsername'); ?>:</label><br />
<input type="text" name="username" value="" size="30" /><br />
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblPassword'); ?>:</label><br />
<input type="password" name="password" value="" size="30" /><br />
<input type="submit" name="login" value="<?php echo $registry['Zend_Translate'] -> _('UserController_BtnLogin'); ?>" />
</form>
<br /><a href="<?php echo $this -> baseUrl(); ?>/user/lostpassword/"><?php echo $registry['Zend_Translate'] -> _('UserController_LostPassword'); ?></a>
</ul>
<?php
}
?>
</div>
<?php
if(Users::loggedin())
{
/** Menu */
echo '<h3>'.$registry['Zend_Translate'] -> _('LayoutMenu_Welcome').'</h3>';
echo '<ul class="bottom">';
echo '<li><a href="'.$this -> baseUrl().'/user/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Credits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Sms').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/sms/outbox/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Outbox').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/phonebook/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Phonebook').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/missions/">'.$registry['Zend_Translate'] -> _('LayoutMenu_ClickMissions').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/creditlink/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Creditlink').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/buy/credits/">'.$registry['Zend_Translate'] -> _('LayoutMenu_BuyCredits').'</a></li>';
echo '<li><a href="'.$this -> baseUrl().'/user/logout/">'.$registry['Zend_Translate'] -> _('LayoutMenu_Logout').'</a></li>';
echo '</ul>';
}
else
{
/** Login Form */
?>
<h3><?php echo $registry['Zend_Translate'] -> _('UserController_LoginPageTitle'); ?></h3>
<ul class="bottom">
<form method="post" action="<?php echo $this -> baseUrl(); ?>/user/login/" id="login">
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblUsername'); ?>:</label><br />
<input type="text" name="username" value="" size="30" /><br />
<label><?php echo $registry['Zend_Translate'] -> _('UserController_LblPassword'); ?>:</label><br />
<input type="password" name="password" value="" size="30" /><br />
<input type="submit" name="login" value="<?php echo $registry['Zend_Translate'] -> _('UserController_BtnLogin'); ?>" />
</form>
<br /><a href="<?php echo $this -> baseUrl(); ?>/user/lostpassword/"><?php echo $registry['Zend_Translate'] -> _('UserController_LostPassword'); ?></a>
</ul>
<?php
}
?>
</div>
Moet hier worden toegevoegd: (nieuwe template)
Code (php)
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
<div class="content_box">
<form method="post" action="">
Gebruikersnaam: <br /><input type="text" value="" /><br />
Wachtwoord: <br /><input type="password" value="" />
<div class="line"></div>
<div class="input">
<input type="submit" value="Inloggen" /> <a href="#">Wachtwoord vergeten</a>
</div>
<form method="post" action="">
Gebruikersnaam: <br /><input type="text" value="" /><br />
Wachtwoord: <br /><input type="password" value="" />
<div class="line"></div>
<div class="input">
<input type="submit" value="Inloggen" /> <a href="#">Wachtwoord vergeten</a>
</div>
Ik hoop dat alles zo duidelijk is.
Gewijzigd op 16/03/2011 22:48:37 door leroy schouten
Een kwestie van even logisch kijken.