1 2013-12-06 12:13:50

(7 replies, posted in Questions)

got it.. this works

<h2>404 Page Not Found</h2>
We're sorry but the page you are looking for doesn't appear to exist!
Please go back in your browser, or click the link to return to website.
<a href="{siteurl}">{siteurl}</a>

2 2013-12-06 12:02:49

(7 replies, posted in Questions)

have you tried your code?

i also tried it on normal pages! (START PAGE)
seems that i can't run php from here?

your code:

<a href="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">link</a>

gives me on frontend:

http://website.com/monstra/<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>

php doesn't parse here!

3

(29 replies, posted in Plugins)

i added <label for="..."> and removed whitespaces of the script

monstra/plugins/contact/views/frontend/form.view.php

<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
<?php if (Notification::get('error')) Alert::error(Notification::get('error')); ?>
<br />
<form method="post">
<?php echo (Form::hidden('csrf', Security::token())); ?>
<label for="contact_name"><?php echo __('Name', 'contact'); ?></label>
<input type="text" name="contact_name" id="contact_name" class="input-xlarge" value="<?php echo $name; ?>" /><br/>
<label for="contact_email"><?php echo __('Email', 'contact'); ?></label>
<input type="text" name="contact_email" id="contact_email" class="input-xlarge" value="<?php echo $email; ?>" /><br/>
<label for="contact_body"><?php echo __('Message', 'contact'); ?></label>
<textarea class="input-xxlarge" rows="10" name="contact_body" id="contact_body"><?php echo $body; ?></textarea><br/><br/>
<?php if (Option::get('captcha_installed') == 'true') { ?>
<label for="answer"><?php echo __('Captcha', 'users'); ?></label>
<input type="text" name="answer" id="answer">
<?php if (isset($errors['captcha_wrong'])) echo Html::nbsp(3).'<span class="error">'.$errors['captcha_wrong'].'</span>'; ?>
<?php CryptCaptcha::draw(); ?>
<?php } ?>
<br/>
<?php if (count($errors) > 0) { ?>
<ul>
<?php foreach($errors as $error) { ?>
<li><?php echo $error; ?></li>
<?php } ?>
</ul>        
<?php } ?>
<input type="submit" class="btn" value="<?php echo __('Send', 'contact'); ?>" name="contact_submit"/>
</form>

also tested it successfully

4

(29 replies, posted in Plugins)

there is a bug in

monstra/plugins/contact/views/frontend/form.view.php

on line 14

Awilum... please change

<label><?php echo __('Captcha', 'users'); ?><label>

to

<label><?php echo __('Captcha', 'users'); ?></label>


also i translated contact to german

de.lang.php
<?php
    return array(
        'contact' => array(
            'Contact' => 'Contact',
            'Contact plugin for Monstra' => 'Kontakt Plugin für Monstra',
            'Name' => 'Name',
            'Email' => 'Email',
            'Message' => 'Nachricht',
            'Send' => 'Senden',
            'Empty required fields!' => 'Pflichtfelder angeben!',
            'Email address is not valid!' => 'E-Mail-Adresse ist nicht gültig',
            'A letter has been sent!' => 'Die Nachricht wurde gesendet!',
            'A Letter was not sent!' => 'Die Nachricht wurde nicht gesendet!',
            'Wrong captcha!' => 'Captcha falsch!',
        ),
    );

5

(0 replies, posted in Questions)

is it possible to change the ORDER by NAME from

 admin/index.php?id=pages

into ORDER by DATE? (maybe only for Subpages?)



My PAGE-TREE looks like this:

> ABOUT
> CONTACT
> GALLERY
    >> 04. Nov 2013 - Gallery Title [6]
    >> 11. Oct 2013 - Gallery Title [3]
    >> 13. Sep 2013 - Gallery Title [2]
    >> 14. Nov 2013 - Gallery Title [5]
    >> 16. Aug 2013 - Gallery Title [1]
> LOCATION
> SERVICE

The number in bracket ([1],[2],[3]...) shows the right ORDER

As you can see on Gallery i got the wrong ORDER. I got 30 Gallerys at this moment and its confusing to find the right one for editing.


edit:

Maybe its possible to set ther ORDER manually?
i found a new problem on frontend..
when you go to http://website.com/sitemap all pages are ordered by NAME

should i create a issue on github?

6

(7 replies, posted in Questions)

Hi Aryandhani...

thats all i have done before... i think you have missunderstood my question.

i try to explain again!

i click on Pages -> Edit 404 Page

there i insert

<h2>404 Page Not Found</h2>
We're sorry but the page you are looking for doesn't appear to exist!
Please go back in your browser, or click the link to return to website.
<a href="<?php echo Site::url(); ?>">website.com</a>

then i go to frontend and call a link which doesn't exist!
the 404 template works but not the php-part of <?php echo Site::url(); ?>

my sourcecode from the frontend looks like this

<h2>404 Page Not Found</h2>
We're sorry but the page you are looking for doesn't appear to exist!
Please go back in your browser, or click the link to return to website.
<a href="<?php echo Site::url(); ?>">website.com</a>

all i want to know how to echo the site-url inside Pages (without typing manually)

7

(7 replies, posted in Questions)

i want to edit my 404 template

i got this code inside the page

<h2>404 Page Not Found</h2>
<p>We're sorry but the page you are looking for doesn't appear to exist!</p>
<p>Please go back in your browser, or click the link to return to website.</p>
<p><a href="<?php echo Site::url(); ?>">website.com</a></p>

but <?php echo Site::url(); ?> doesn't work here


regards bernte

8

Topic: [BUG] Missing Flagg (1 replies, posted in Questions)

on the install.php is the PL Flagg missing.


i want to say that monstra is the best db-free cms i have ever seen! i had not much time to check all stuff.. but the first impression is amazing big_smile