if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) { 
      // Only admin 
     Chunk::get('first-level');
     //  Custom admin
    if(Session::get('user_login') == 'michael'){
        Chunk::get('admin');
    }
}else if  (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin','editor')))  {
      // Only admin and editors
     Chunk::get('second-level');
     //  Custom editor
    if(Session::get('user_login') == 'michael'){
       Chunk::get('editor');
    }
}else if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin','user'))) { 
      // Only admin and users
     Chunk::get('third-level');
     //  Custom user
    if(Session::get('user_login') == 'michael'){
       Chunk::get('user');
    }
}else{
      // all Unregistered users 
       Chunk::get('normal'); 
}

27

(27 replies, posted in Plugins)

Nice smile when finish my work ( I work for in plugin for client with multiple Json storage  like firebase ) I create a new portfolio plugin 2 versions Free and Premium 5€ Only.

28

(27 replies, posted in Plugins)

Yes like me but people who are starting need free hosting for learning.
for everything else mastercard smile

29

(8 replies, posted in Plugins)

Php ismobile function is for include or o require_once files in same template or load other scripts without redirecting page.

30

(22 replies, posted in Questions)

I'm Sorry, not understand your question ?

The admin panel it's not a plugin is independent of Morfy you can remove admin folder and no problem Morfy is ok.


Note: Only need configure admin/database/configuration.json with your settings
Admin Cms

31 2015-02-11 14:49:57

(8 replies, posted in Plugins)

Monstra have this method

if (Agent::isMobile()) {
    // Do something...
}

32 2015-02-11 12:41:53

(22 replies, posted in Questions)

Only rest language to share beta.

Web Demo

[video]

Go to forum: Questions Go to post 32

33

(27 replies, posted in Plugins)

Almost all free hosting have this method but you can using forwarding if is not premium feature.

I'm glad to have helped.

34

(1 replies, posted in Questions)

Demo



runAction('theme_content_before'); ?> getPages(CONTENT_PATH . '/blog/', 'date', 'DESC', array('404','index')); $c = 0; foreach( $posts as $post ){ $b = (( ++$c % 3 == 0 ) ? true : false ); if ( $b ) { echo '
'; }; ?> ';} }; ?> runAction('theme_content_after'); ?>

35

(27 replies, posted in Plugins)

The plugin use php mailer  and  bootstrap,

If you don't use bootstrap in your theme this not looks good.
if you use free hosting  be sure you configure the mail of hosting first.

I make  a free acount in byehost ( lazzy hosting = yes )  here and test the plugin  with shortcode and with php code and work's fine  but in this case i use the mail of hosting because the hosting block mails.


This is the output:

Received: from sendmail.free.byetcluster.com (2813427185.ifastnet.org [185.27.134.28])
    by freemail.byetcluster.com (Postfix) with ESMTP id 517176E0772
    for ;
    Tue, 10 Feb 2015 20:01:54 -0500 (EST)
Received: from localhost.localdomain (5613427185.ifastnet.org [185.27.134.56])
    by sendmail.free.byetcluster.com (Postfix) with ESMTP id 38B7A312650E
    for ;
    Wed, 11 Feb 2015 04:01:54 +0300 (MSK)
Date: Tue, 10 Feb 2015 20:01:54 -0500
To: demo@demosmonstra.byethost7.com
From: Moncho 
Subject: Hola
Message-ID: <78a22e1089d6c7eb6fd7db037b39d156@localhost.localdomain>
X-Priority: 3
X-Mailer: PHPMailer 5.2.1
    (http://code.google.com/a/apache-extras.org/p/phpmailer/)
MIME-Version: 1.0
Return-Path: nakome@openmailbox.org
Content-Type: multipart/alternative
Content-Transfer-Encoding: 7bit
--b1_17b45bd6b43b64d08873f8fb6e5d9915
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
this is a demo
--b1_17b45bd6b43b64d08873f8fb6e5d9915
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
this is a demo
--b1_17b45bd6b43b64d08873f8fb6e5d9915--
Spam Filtered (15864312)




Many people send me emails asking for help setting up hosting and sorry I don't have time for all,  It's very ease make plugins for Monstra ,
you can use my plugins for learning if you like ,and create your own plugins. Right now I'm focused in premium themes,Node Apps, and admin Cms for morfy,i don't update my old Monstra plugins because i have a lot of work.

36 2015-02-10 02:11:58

(27 replies, posted in Plugins)

I try the plugin and i't's works 
https://dl.dropboxusercontent.com/u/23834858/fotos/mycontact.gif

Functions like Wordpress it's possible, You can use Json for custom data, functions for contact files and more but i you need use  $vars  or functions  use include or require_once not chuck becaouse chunk is used by minify you probably get error.

With this code you write last access for admin in log.txt in root

    
    // redirect in users page 
    if (Uri::segment(0) == 'users' && Uri::segment(1) == 'login'){ 
     // custom code here
    }else if (Uri::segment(0) == 'users'){ 
        // if admin
        if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) {
            // write last session in log.txt
            $session = Date('d-m-y').'  User  '.Session::get('user_role').' with Name '.Session::get('user_login').' has login ';
            File::setContent(ROOT.DS.'log.txt',$session); 
        }else{
            Request::redirect(Option::get('siteurl'));
        }
    }

38

(28 replies, posted in Plugins)

This is very ease contact form you only need edit mail in contactform.php and ad with

Try this:

Note: you  can use with

 

40

(28 replies, posted in Plugins)

like this html form guide is a good contact form example and you can use with iframe see the code to understand.

41 2015-01-05 17:30:05

(5 replies, posted in Plugins)

Welcome back bro

42

(0 replies, posted in Snippets)

Your e-mail has been sent! You should receive a reply within 24 hours!');            
      }else{
        echo('Houston i have a problem');
      }              
    }else{
      echo('Are you a robot ?');
    }
  }
?>

Name

Email

Menssage

Are your a robot?

Try this:

Replace ../ to hosting url  like

http://example.com/fonts/glyphicons-halflings-regular.eot  
@font-face {
font-family: 'Glyphicons Halflings';
/* your url here like http://example.com/fonts/glyphicons-halflings-regular.eot  */
src: url('../../../../../../../search/posts/user/161/fonts/forum_subdomain/glyphicons-halflings-regular.eot');
src: url('../../../../../../../search/posts/user/161/fonts/forum_subdomain/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../../../../../../../search/posts/user/161/fonts/forum_subdomain/glyphicons-halflings-regular.woff') format('woff'), url('../../../../../../../search/posts/user/161/fonts/forum_subdomain/glyphicons-halflings-regular.ttf') format('truetype'), url('../../../../../../../search/posts/user/161/fonts/forum_subdomain/glyphicons-halflings-regular.svg') format('svg');
}

44

(3 replies, posted in Questions)

Try this:

Install in localhost and copy in hosting and go to storage/database/options.table.xml and change site_url with your hostin url

Note: Remember remove install.php

Try this:



$pages) $right_neighbour = $pages; // Start pagination out of if condition $html = ''; // render html echo $html; ?>

46

(9 replies, posted in General discussion)

/*
*             ,
                   _/^\_
                  <     >
 *                 /.-.\         *
          *        `/&\`                   *
                  ,@.*;@,
                 /_o.I %_\    *
    *           (`'--:o(_@;
               /`;--.,__ `')             *
              ;@`o % O,*`'`&\ 
        *    (`'--)_@ ;o %'()\      *
             /`;--._`''--._O'@;
            /&*,()~o`;-.,_ `""`)
 *          /`,@ ;+& () o*`;-';\
           (`""--.,_0 +% @' &()\
           /-.,_    ``''--....-'`)  *
      *    /@%;o`:;'--,.__   __.'\
          ;*,&(); @ % &^;~`"`o;@();         *
          /(); o^~; & ().o@*&`;&%O\
    jgs   `"="==""==,,,.,="=="==="`
       __.----.(\-''#####---...___...-----._
     '`         \)_`"""""`
             .--' ')
           o(  )_-\
   */

::::::  Merry Christmas and Happy New Year ::::::

47

(9 replies, posted in General discussion)

Merry Christmas and Happy New Year big_smile

48

(28 replies, posted in Plugins)

First preview

[video]

The good idea is not use install.php or create in localhost first

50

(2 replies, posted in Questions)

Hello bro  I think you need clear temporary files or cache. And another idea is  Using snippets with

Posts found: 26 to 50 of 574

Pages Previous 1 2 3 4 23 Next

Monstra → Posts by nakome