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'); }
26 2015-02-12 15:21:06
Re: A page with login area with content only for logged (8 replies, posted in Questions)
27 2015-02-11 20:48:28
Re: MyContact for new Monstra (27 replies, posted in Plugins)
Nice 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 2015-02-11 19:18:48
Re: MyContact for new Monstra (27 replies, posted in Plugins)
Yes like me but people who are starting need free hosting for learning.
for everything else mastercard
29 2015-02-11 19:15:18
Re: Mobile detect plugin request; (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 2015-02-11 14:55:00
Re: New Morfy Admin panel video (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
Re: Mobile detect plugin request; (8 replies, posted in Plugins)
Monstra have this method
if (Agent::isMobile()) { // Do something... }
33 2015-02-11 11:17:01
Re: MyContact for new Monstra (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 2015-02-11 02:53:32
Re: blog grid (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 2015-02-11 01:59:44
Re: MyContact for new Monstra (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
Re: MyContact for new Monstra (27 replies, posted in Plugins)
I try the plugin and i't's works
37 2015-01-30 03:36:02
Re: How to disable showing user list in frontend? (6 replies, posted in Questions)
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 2015-01-26 13:48:28
Re: myContact (28 replies, posted in Plugins)
This is very ease contact form you only need edit mail in contactform.php and ad with
39 2015-01-26 13:30:17
Re: How to disable showing user list in frontend? (6 replies, posted in Questions)
Try this:
Note: you can use with
40 2015-01-26 12:37:50
Re: myContact (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.
42 2015-01-03 21:23:33
Topic: Very Simply mail send (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 ?'); } } ?>
43 2015-01-03 19:12:28
Re: Monstra 3.0.1 bootstrap Glyphicons don't work (1 replies, posted in Questions)
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 2015-01-03 19:09:32
Re: Can't install (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
45 2015-01-03 19:06:27
Re: Need help with code - Bootstrap and Pagination (3 replies, posted in Questions)
Try this:
$pages) $right_neighbour = $pages; // Start pagination out of if condition $html = ''; // render html echo $html; ?>
46 2014-12-29 21:51:26
Re: Merry Christmas (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 2014-12-25 17:19:45
Re: Merry Christmas (9 replies, posted in General discussion)
Merry Christmas and Happy New Year
49 2014-12-21 11:48:34
Re: Morfy - 0day Exploits! Remote Command Execution + XSS (1 replies, posted in General discussion)
The good idea is not use install.php or create in localhost first
50 2014-12-21 11:44:40
Re: How can i protect my design fonts ? (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
Monstra → Posts by nakome