Re: Blog

Yes but not only folder hehe

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

nakome wrote:

Yes but not only folder hehe

Tried to search for hardcoded definitions and replace them with partial luck smile
Can you point me to the right things I should change in plugin files?

53 (edited by nakome 2013-03-24 18:55:52)

Re: Blog

View this  dropbox.com/s/obevd694hcgp7p5/articles.zip  ( I can´t put urls sorry)
i remplace blog for article and {cut} for more.

I hope Awilum  not  angry

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

54 2013-03-25 04:53:23 (edited by glebcha 2013-03-25 08:42:03)

Re: Blog

Worked like a charm, thanks nakome wink

55 2013-03-25 11:53:09

Re: Blog

wink

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

What about pagination for tag and title for it?
I tried this pagination http://cssdeck.com/labs/css-pagination-styles , but does not work...

Tell someone about how pagination bring to mind?

57 2013-03-25 18:24:36

Re: Blog

try this tympanus.net/jPaginate/

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

nakome wrote:

try this tympanus.net/jPaginate/

Ehh, nope, does not work.
Maybe I'm doing something wrong... I will try to continue

59 2013-04-10 06:58:20

Re: Blog

Weird thoughts, but how can I show random posts block?

60 2013-04-22 01:33:47

Re: Blog

Get Tags & Keywords how to use?

Re: Blog

mylife wrote:

Get Tags & Keywords how to use?

<?php echo Blog::getTags(); ?>

To get tags (keywords) only for  blog

<?php echo Page::keywords(); ?>

To get keywords  in page

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

hi all.. got small problem with this plugin..

I cannot get all posts on main blog page..how to do it? does anyone have snippet for that which i could use?

{code is poetry}

63 (edited by nakome 2013-05-27 18:23:19)

Re: Blog

// Get last 5 posts
<?php echo Blog::getPosts(5); ?>
// Get all posts
<?php echo Blog::getPosts(); ?>

See the comments of plugin  blog.plugin.php

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Blog

nakome wrote:
// Get last 5 posts
<?php echo Blog::getPosts(5); ?>
// Get all posts
<?php echo Blog::getPosts(); ?>

See the comments of plugin  blog.plugin.php

hi, this give me whole posts up.. I am looking for to do in same way as monstra blog is done here : http://monstra.org/blog that is the best looking blog ever.. I think tags wont work too somehow.. everytime I click on tag it just refresh page..

{code is poetry}

65 2013-05-27 21:54:45

Re: Blog

This is the whole code blog/view/frontend/index.view.php

<?php foreach($posts as $post) { ?>
<div class="row-fluid">
    <div class="span6">
        <h3><a href="<?php echo Option::get('siteurl'); ?><?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>"><?php echo $post['title']; ?></a></h3>
        <div class="entry-meta monstra-blog-date"><?php echo Date::format($post['date'], 'd M Y'); ?></div>
    </div>
    <div class="span6">
        <div class="entry-content">
            <?php echo $post['content'] ?>
        </div> <!--/.entry-content -->
    </div>
</div>
<div class="clearfix"></div>
<?php } ?>

If you like show only tilte and date

<?php foreach($posts as $post) { ?>
    <h3><a href="<?php echo Option::get('siteurl'); ?><?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>"><?php echo $post['title']; ?></a></h3>
    <div class="entry-meta monstra-blog-date"><?php echo Date::format($post['date'], 'd M Y'); ?></div>
<?php } ?>
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

66 2013-05-28 07:32:49 (edited by unborn 2013-05-30 10:33:50)

Re: Blog

@nakome thank you sir!  I’ve sorted my issue smile thanks nakome!

{code is poetry}

67 2013-06-03 05:14:31

Re: Blog

Hei awilum can you make the url not only "blog" but also another? And it can make changes for the features of monstra blog. big_smile

Jefry_D's Website

68 2013-06-04 19:47:05

Re: Blog

>>Hei awilum can you make the url not only "blog" but also another?

        /**
         * Parrent page name(slug)
         *
         * @var string
         */
        public static $parent_page_name = 'blog';
Monstra Loves You! Give some love back!

Re: Blog

Not that I mean, I intend to make the same display made by this plugin but with the url to another and not change the url / blog. So I can make a parent post with another url. Can you update this plugin Awilum?

Jefry_D's Website

70 2013-06-05 05:57:05 (edited by Jefry_D 2013-06-05 09:30:37)

Re: Blog

Like a category Awilum, but this is a post:

/category/the-name-of-post

the URL /category is not autogenerate but this is the parrent post, and /the-name-of-post is the child, can you update the plugin. big_smile

Hei there was an error while i put rss.php on the site root, this is the error:

Warning: require_once(/public_html/monstra/bootstrap.php): failed to open stream: No such file or directory in /public_html/rss.php on line 8 Fatal error: require_once(): Failed opening required '/public_html/monstra/bootstrap.php' (include_path='.:/usr/lib/php') in /public_html/rss.php on line 8

Jefry_D's Website

71 (edited by AdrianLube 2013-06-23 23:19:44)

Re: Blog

Awilum,
wanted to use

<?php echo Page::url(); ?>

template in my "blog-post" but it does not use the relative (which is /blog) ie if I want example: 'www.mysite.com/blog/post' would be 'www.mysite.com/post'. hmm
Help me find a way to display the link in the page, in my case I want to add a url sharing, but without relative (/blog) you will not be taken to where I want. Thank you!

Re: Blog

My first Post smile

I have some little problems with the rss.php

1. Wrong/Old Init?!?

// Load bootstrap file
require_once(ROOT . DS . 'monstra' . DS . 'bootstrap.php');

bootstrap.php does not exist, is this the right way?

// Load Engine-INIT file
require_once(ROOT . DS . 'engine' . DS . '_init.php');

2. For pictures i use {siteurl} etc. How can i get this work in RSS?

3. In RSS is allways the {cut}-Tag visible, How can i hide this?

73 2013-10-13 01:36:41

Re: Blog

Hi, I wonder how to show the tag just like the screenshot... Where can I add the post category? My template code:

<?php Chunk::get('header'); ?>
    <div class="content">
        <?php Action::run('theme_pre_content'); ?>
        <div class="post-outer">
            <h2 class="date-header"><?php echo Date::format(Page::date(), 'Y'); ?></h2>
            <article class="post">
                <h3 class="post-title">
                    <?php echo Blog::getPostTitle(); ?>
                </h3>
                <div class="post-body">
                    <?php echo Site::content(); ?>
                </div>
                <footer class="post-footer">
                    <?php echo Blog::getTags(); ?>
                </footer>
            </article>
        </div>
        <?php Action::run('theme_post_content'); ?>
    </div>
<?php Chunk::get('footer'); ?>

And also, the Date::format() is not working for Page::date() sad

XSS Testing <script>alert('HIYAA!!!');</script>

tovic's Website

74 2013-10-13 12:52:53 (edited by tovic 2013-10-13 17:31:23)

Re: Blog

LOL I got it! big_smile

Page::date('d-m-Y');

Final code:

// public/themes/default/blog-posts.template.php
<h2 class='date-header'>
<?php
    $str = explode('-', Page::date('l-m'));
    switch ($str[0]) {
        case "Sunday":
            $str[0] = "Minggu";
            break;
        case "Monday":
            $str[0] = "Senin";
            break;
        case "Tuesday":
            $str[0] = "Selasa";
            break;
        case "Wednesday":
            $str[0] = "Rabu";
            break;
        case "Thursday":
            $str[0] = "Kamis";
            break;
        case "Friday":
            $str[0] = "Jumat";
            break;
        case "Saturday":
            $str[0] = "Sabtu";
            break;
    }
    switch ($str[1]) {
        case "01":
            $str[1] = "Januari";
            break;
        case "02":
            $str[1] = "Februari";
            break;
        case "03":
            $str[1] = "Maret";
            break;
        case "04":
            $str[1] = "April";
            break;
        case "05":
            $str[1] = "Mei";
            break;
        case "06":
            $str[1] = "Juni";
            break;
        case "07":
            $str[1] = "Juli";
            break;
        case "08":
            $str[1] = "Agustus";
            break;
        case "09":
            $str[1] = "September";
            break;
        case "10":
            $str[1] = "Oktober";
            break;
        case "11":
            $str[1] = "November";
            break;
        case "12":
            $str[1] = "Desember";
            break;
    }
    echo $str[0] . ', ' . Page::date('d') . ' ' . $str[1] . ' ' . Page::date('Y');
?>
</h2>

The last problem is about how to show the tags...

Edit: Nevermind. It solved.

XSS Testing <script>alert('HIYAA!!!');</script>

tovic's Website

75 2013-11-13 14:43:42

Re: Blog

hello guys great plugin however i want to know if i can limit the contenct (characters) echoed in the main blog page because currently it shows the whole post, i want it only to show lets say 2 lines only as a description and to be able to see the rest only if you open the post. Do you have any suggestions ?