1 (edited by nakome 2014-02-02 23:37:39)

Topic: editPage plugin experiment

Hello i make a plugin to edit posts of blog online .  you can test here

for now its only a experiment i need more security.

Demo preview

user = demo
pass = demo123

You can download  the plugin here

Config.php sample:

        'username' => 'username', // you need change this if yoy like
        'password' => 'password', // you need change this if you like
        'plugins' => array(
            'markdown',
            'sitemap',
            'editPage',
        ),
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: editPage plugin experiment

I remove  script to not save data please not erase all Thanks smile

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

nakome's Website

Re: editPage plugin experiment

bro I have no words! you're the best! smile

Re: editPage plugin experiment

Thanks i try to  make more good smile

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

nakome's Website

Re: editPage plugin experiment

nakome wrote:

I remove  script to not save data please not erase all Thanks smile

delete!!!

6 (edited by nakome 2014-02-03 20:13:06)

Re: editPage plugin experiment

Update download in top page.

Preview

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

nakome's Website

Re: editPage plugin experiment

Yes is good panel but for now i have not time sorry.

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

nakome's Website

Re: editPage plugin experiment

Would be nice if Morfy provide an explanation about how to show the array of parsed data, so that we can make a nice editor panel, and rewrite the current .md file on click submit. Something like this:

<form method="post">
  <label>Title:</label>
  <input name="morfy_title" type="text" value="<?php echo $page['title']; ?>">
  <label>Description:</label>
  <textarea name="morfy_description"><?php echo $page['description']; ?>
  ...
  ...
  <label>Content:</label>
  <textarea name="morfy_content"><?php echo $page['content']; ?></textarea>
  <button type="submit">Save</button>
</form>
XSS Testing <script>alert('HIYAA!!!');</script>

tovic's Website

9 (edited by tovic 2014-02-09 15:00:36)

Re: editPage plugin experiment

OK, so I tried to make a more formatted text editor barebones for Morfy as a starter. Save this file in your content folder as add.php, then open in your browser → http://localhost/{path-where-morfy-installed}/content/add.php

Remember that this editor does not have any login system. So do the test on the local server only.

It would be safe when combined with Nakome's plugin above, especially for the login feature.

If you want to create applications for editing, then it is almost the same, except that the value of each field should be set by default. Something like this:

<?php
// edit.php?file=blog/hello
if(isset($_GET['file']) && Morfy::factory()->getPage($_GET['file'] . '.md')) {
    $file = Morfy::factory()->getPage($_GET['file'] . '.md');
} else {
    echo 'No file selected.';
    return false;
}
?>
<form method="post">
  <label>Title:</label>
  <input type="text" name="title" value="<?php echo $file['title']; ?>">
  <button type="submit">Update</button>
</form>

Indeed, I also need this kind of text editor features. I think I'm starting to like this CMS. It's simpler than Jekyll smile

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

tovic's Website

Re: editPage plugin experiment

hi
are able to develop;
good editor http://codepen.io/nakome/pen/Lejkd smile

11 2014-10-01 10:08:37

Re: editPage plugin experiment

hi nakome
it is possible to add editor http://codepen.io/nakome/pen/Lejkd ?
tnx

12 (edited by nakome 2014-10-01 18:11:40)

Re: editPage plugin experiment

New version

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

nakome's Website

13 2014-10-01 18:15:46

Re: editPage plugin experiment

nakome wrote:

New version

nakome tnx!!!
could edit pages except blog?

14 (edited by nakome 2014-10-01 18:26:23)

Re: editPage plugin experiment

Only blog Bro.

When I can I will try something else.

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

nakome's Website

15 2014-10-04 05:27:43

Re: editPage plugin experiment

what I hear is very good! I have my eyes here wink

Re: editPage plugin experiment

nakome wrote:

Only blog Bro.

When I can I will try something else.

hello
maybe try something else to be able to edit pages except blog?

Re: editPage plugin experiment

dextra wrote:
nakome wrote:

Only blog Bro.

When I can I will try something else.

hello
maybe try something else to be able to edit pages except blog?


I working in this.

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

nakome's Website

Re: editPage plugin experiment

cool

Re: editPage plugin experiment

Almost finished this. demo

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

nakome's Website

20 2014-10-28 07:08:11

Re: editPage plugin experiment

respect friend smile

21 2014-10-28 18:40:41 (edited by nakome 2014-11-26 02:33:29)

Re: editPage plugin experiment

This is a demo Morfy Panel demo 

the pass is demo

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

nakome's Website

Re: editPage plugin experiment

very nice !!
which can be downloaded;

Re: editPage plugin experiment

I need make better login and make translations etc.. , a few days

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

nakome's Website

Re: editPage plugin experiment

Release Candidate https://github.com/nakome/Panel

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

nakome's Website

Re: editPage plugin experiment

This is the Greek translation wink
gr.php

<?php 
    $lang = array(
        // login
        'Login' => 'Σύνδεση',
        'Hello Admin' => 'Γεια σου διαχειριστή',
        'You need provide a password' => 'Χρειάζεται να δώσετε έναν κωδικό πρόσβασης',
        // menu
        'Home' => 'Αρχική',
        'Images' => 'Εικόνες',
        'New Image' => 'Νέα εικόναe',
        'New Page' => 'Νέα σελίδα',
        'Uploads' => 'Mεταφορτώσεις' ,
        'Settings' => 'Ρυθμίσεις',
        'Documentation' => 'Τεκμηρίωση',
        // pages
        'Pages' => 'Σελίδες',
        'Blog' => 'Blog',
        'Edit' => 'Επεξεργασία',
        'Delete' => 'Διαγραφή',
        // footer
        'Powered by' => 'Powered by',
        // New page & update
        'Name' => 'Όνομα',
        'Check this if is a blog' => 'Επιλέξτε αυτό αν είναι ένα blog',
        'Title' => 'Τίτλος',
        'New Description' => 'Νέα Περιγραφή',
        'Keywords here' => 'Λέξεις-κλειδιά εδώ' ,
        'Author' => 'Συγγραφέας',
        'January 11, 2014' => 'January 11, 2014',
        'Tags here' =>'Ετικέτες εδώ',
        'index' => 'index',
        'Cancel' => 'Ακύρωση',
        'Save' => 'Αποθήκευση',
        'Update' => 'Ενημέρωση',
        // notification
        'The File' => 'Το αρχείο',
        'has been deleted' =>'έχει διαγραφεί',
        'has been save' => 'έχει αποθηκευτή',
        // notification uploads
        'An error ocurred when uploading.' => 'Προέκυψε ένα σφάλμα κατά τη μεταφόρτωση.',
        'Please ensure you are uploading an image.' => 'Παρακαλούμε βεβαιωθείτε ότι έχετε μεταφόρτωση μιας εικόνας.',
        'Unsupported filetype uploaded.' => 'Μη υποστηριζόμενος τύπος μεταφόρτωσης αρχείου.',
        'File uploaded exceeds maximum upload size.' => 'Αρχείο που μεταφορτώθηκε υπερβαίνει το μέγιστο μέγεθος για επιφόρτωση.',
        'File with that name already exists.' => 'Το αρχείο υπάρχει ήδη αυτό το όνομα.',
        'Error uploading file - check destination is writeable.' => 'Σφάλμα μεταφόρτωση του αρχείου - ελέγξτε προορισμός είναι εγγράψιμο.',
        // images section
        'Full images' => 'Πλήρες εικόνες',
        'Thumbnails' => 'Μικρογραφίες',
        // uploads
        'File uploaded successfully' => 'Το αρχείο μεταφορτώθηκε με επιτυχία',
        'Full Image' => 'Πλήρες Εικόνα',
        'Thumbnail Image' => 'Μικρογραφία Εικόνας',
        'Links of Images' => 'Σύνδεσμοι Εικόνες',
        // javascript confirm 
        'Are you sure' => 'Είστε σίγουρος'
    );