Jump to content

Easy Pages


Recommended Posts

  • Management

Easy Pages

View File

... look, this app probably isn't worth what I'm charging. Just go buy IP.Pages, it's like 20x better.

 

Author note 2018-10: Support and maintenance will be limited going forward. This app works fine as of IPS 4.3 and may continue to work with new releases in the future, but when it stops working that's probably it. Thanks for your support over the years!

 

Want to add custom pages to your IPS website? Easy Pages is a simple and powerful app to help you do that, from the comfort of your own Admin CP.

There are no fancy wizards or long pages of settings. Just enter a title and URL, some text, and you're good to go. You don't even have to know HTML or PHP (but you can use them if you want to!).

Use it to add a Privacy Policy, or rules, or a FAQ. You could even build an entire website. The only limit is your own creativity.

Some of the features of this application:

  • Create custom pages using BBCode, PHP, HTML, or IPS's Rich-Text Editor.
  • Place each page within your IPS Theme, or build a complete page from the ground up.
  • Choose your own page URL and meta tags for SEO.
  • Control who can access a page with group permissions.
  • Use 'blocks' of text or even PHP to avoid repeating code across multiple pages.
  • Place blocks in pages, or anywhere on your site. Even posts!

This application provides an easy way to create and view pages. However, it does not handle navigation. You will need to add links to the pages in the navigation bar or elsewhere yourself.

This version of Easy Pages requires IPS 4. Installation is as simple as running the IPS app installer.


 

Link to comment
  • 3 weeks later...

Sorry for making review with support request... Anyway I marked 5, hope it is Ok.
Two issues for the moment:
1. How to handle

<?php include 'page.php'; ?>

 to make it work.
2. While working with some datables.net example code I get main object undefined when using IPS template. Separately code is running normal.
Here is the code:

<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js" type="text/javascript" charset="utf8"></script>
<script src="//cdn.datatables.net/tabletools/2.2.3/js/dataTables.tableTools.min.js"></script>

<script type="text/javascript" class="init">
$(document).ready(function() {
    $('#example').dataTable( {
        "ajax": "data.txt"
    } );
} );
</script>

<table id="example" class="display" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
                <th>Extn.</th>
                <th>Start date</th>
                <th>Salary</th>
            </tr>
        </thead>
 
        <tfoot>
            <tr>
                <th>Name</th>
                <th>Position</th>
                <th>Office</th>
                <th>Extn.</th>
                <th>Start date</th>
                <th>Salary</th>
            </tr>
        </tfoot>
    </table>

 

Link to comment

Just in case you need data.txt
{
  "data": [
    [
      "Tiger Nixon",
      "System Architect",
      "Edinburgh",
      "5421",
      "2011/04/25",
      "$320,800"
    ],
    [
      "Garrett Winters",
      "Accountant",
      "Tokyo",
      "8422",
      "2011/07/25",
      "$170,750"
    ],
    [
      "Ashton Cox",
      "Junior Technical Author",
      "San Francisco",
      "1562",
      "2009/01/12",
      "$86,000"
    ],
    [
      "Cedric Kelly",
      "Senior Javascript Developer",
      "Edinburgh",
      "6224",
      "2012/03/29",
      "$433,060"
    ],
    [
      "Airi Satou",
      "Accountant",
      "Tokyo",
      "5407",
      "2008/11/28",
      "$162,700"
    ],
    [
      "Brielle Williamson",
      "Integration Specialist",
      "New York",
      "4804",
      "2012/12/02",
      "$372,000"
    ],
    [
      "Herrod Chandler",
      "Sales Assistant",
      "San Francisco",
      "9608",
      "2012/08/06",
      "$137,500"
    ],
    [
      "Rhona Davidson",
      "Integration Specialist",
      "Tokyo",
      "6200",
      "2010/10/14",
      "$327,900"
    ],
    [
      "Colleen Hurst",
      "Javascript Developer",
      "San Francisco",
      "2360",
      "2009/09/15",
      "$205,500"
    ],
    [
      "Sonya Frost",
      "Software Engineer",
      "Edinburgh",
      "1667",
      "2008/12/13",
      "$103,600"
    ],
    [
      "Jena Gaines",
      "Office Manager",
      "London",
      "3814",
      "2008/12/19",
      "$90,560"
    ],
    [
      "Quinn Flynn",
      "Support Lead",
      "Edinburgh",
      "9497",
      "2013/03/03",
      "$342,000"
    ],
    [
      "Charde Marshall",
      "Regional Director",
      "San Francisco",
      "6741",
      "2008/10/16",
      "$470,600"
    ],
    [
      "Haley Kennedy",
      "Senior Marketing Designer",
      "London",
      "3597",
      "2012/12/18",
      "$313,500"
    ],
    [
      "Tatyana Fitzpatrick",
      "Regional Director",
      "London",
      "1965",
      "2010/03/17",
      "$385,750"
    ],
    [
      "Michael Silva",
      "Marketing Designer",
      "London",
      "1581",
      "2012/11/27",
      "$198,500"
    ],
    [
      "Paul Byrd",
      "Chief Financial Officer (CFO)",
      "New York",
      "3059",
      "2010/06/09",
      "$725,000"
    ],
    [
      "Gloria Little",
      "Systems Administrator",
      "New York",
      "1721",
      "2009/04/10",
      "$237,500"
    ],
    [
      "Bradley Greer",
      "Software Engineer",
      "London",
      "2558",
      "2012/10/13",
      "$132,000"
    ],
    [
      "Dai Rios",
      "Personnel Lead",
      "Edinburgh",
      "2290",
      "2012/09/26",
      "$217,500"
    ],
    [
      "Jenette Caldwell",
      "Development Lead",
      "New York",
      "1937",
      "2011/09/03",
      "$345,000"
    ],
    [
      "Yuri Berry",
      "Chief Marketing Officer (CMO)",
      "New York",
      "6154",
      "2009/06/25",
      "$675,000"
    ],
    [
      "Caesar Vance",
      "Pre-Sales Support",
      "New York",
      "8330",
      "2011/12/12",
      "$106,450"
    ],
    [
      "Doris Wilder",
      "Sales Assistant",
      "Sidney",
      "3023",
      "2010/09/20",
      "$85,600"
    ],
    [
      "Angelica Ramos",
      "Chief Executive Officer (CEO)",
      "London",
      "5797",
      "2009/10/09",
      "$1,200,000"
    ],
    [
      "Gavin Joyce",
      "Developer",
      "Edinburgh",
      "8822",
      "2010/12/22",
      "$92,575"
    ],
    [
      "Jennifer Chang",
      "Regional Director",
      "Singapore",
      "9239",
      "2010/11/14",
      "$357,650"
    ],
    [
      "Brenden Wagner",
      "Software Engineer",
      "San Francisco",
      "1314",
      "2011/06/07",
      "$206,850"
    ],
    [
      "Fiona Green",
      "Chief Operating Officer (COO)",
      "San Francisco",
      "2947",
      "2010/03/11",
      "$850,000"
    ],
    [
      "Shou Itou",
      "Regional Marketing",
      "Tokyo",
      "8899",
      "2011/08/14",
      "$163,000"
    ],
    [
      "Michelle House",
      "Integration Specialist",
      "Sidney",
      "2769",
      "2011/06/02",
      "$95,400"
    ],
    [
      "Suki Burks",
      "Developer",
      "London",
      "6832",
      "2009/10/22",
      "$114,500"
    ],
    [
      "Prescott Bartlett",
      "Technical Author",
      "London",
      "3606",
      "2011/05/07",
      "$145,000"
    ],
    [
      "Gavin Cortez",
      "Team Leader",
      "San Francisco",
      "2860",
      "2008/10/26",
      "$235,500"
    ],
    [
      "Martena Mccray",
      "Post-Sales support",
      "Edinburgh",
      "8240",
      "2011/03/09",
      "$324,050"
    ],
    [
      "Unity Butler",
      "Marketing Designer",
      "San Francisco",
      "5384",
      "2009/12/09",
      "$85,675"
    ],
    [
      "Howard Hatfield",
      "Office Manager",
      "San Francisco",
      "7031",
      "2008/12/16",
      "$164,500"
    ],
    [
      "Hope Fuentes",
      "Secretary",
      "San Francisco",
      "6318",
      "2010/02/12",
      "$109,850"
    ],
    [
      "Vivian Harrell",
      "Financial Controller",
      "San Francisco",
      "9422",
      "2009/02/14",
      "$452,500"
    ],
    [
      "Timothy Mooney",
      "Office Manager",
      "London",
      "7580",
      "2008/12/11",
      "$136,200"
    ],
    [
      "Jackson Bradshaw",
      "Director",
      "New York",
      "1042",
      "2008/09/26",
      "$645,750"
    ],
    [
      "Olivia Liang",
      "Support Engineer",
      "Singapore",
      "2120",
      "2011/02/03",
      "$234,500"
    ],
    [
      "Bruno Nash",
      "Software Engineer",
      "London",
      "6222",
      "2011/05/03",
      "$163,500"
    ],
    [
      "Sakura Yamamoto",
      "Support Engineer",
      "Tokyo",
      "9383",
      "2009/08/19",
      "$139,575"
    ],
    [
      "Thor Walton",
      "Developer",
      "New York",
      "8327",
      "2013/08/11",
      "$98,540"
    ],
    [
      "Finn Camacho",
      "Support Engineer",
      "San Francisco",
      "2927",
      "2009/07/07",
      "$87,500"
    ],
    [
      "Serge Baldwin",
      "Data Coordinator",
      "Singapore",
      "8352",
      "2012/04/09",
      "$138,575"
    ],
    [
      "Zenaida Frank",
      "Software Engineer",
      "New York",
      "7439",
      "2010/01/04",
      "$125,250"
    ],
    [
      "Zorita Serrano",
      "Software Engineer",
      "San Francisco",
      "4389",
      "2012/06/01",
      "$115,000"
    ],
    [
      "Jennifer Acosta",
      "Junior Javascript Developer",
      "Edinburgh",
      "3431",
      "2013/02/01",
      "$75,650"
    ],
    [
      "Cara Stevens",
      "Sales Assistant",
      "New York",
      "3990",
      "2011/12/06",
      "$145,600"
    ],
    [
      "Hermione Butler",
      "Regional Director",
      "London",
      "1016",
      "2011/03/21",
      "$356,250"
    ],
    [
      "Lael Greer",
      "Systems Administrator",
      "London",
      "6733",
      "2009/02/27",
      "$103,500"
    ],
    [
      "Jonas Alexander",
      "Developer",
      "San Francisco",
      "8196",
      "2010/07/14",
      "$86,500"
    ],
    [
      "Shad Decker",
      "Regional Director",
      "Edinburgh",
      "6373",
      "2008/11/13",
      "$183,000"
    ],
    [
      "Michael Bruce",
      "Javascript Developer",
      "Singapore",
      "5384",
      "2011/06/27",
      "$183,000"
    ],
    [
      "Donna Snider",
      "Customer Support",
      "New York",
      "4226",
      "2011/01/25",
      "$112,000"
    ]
  ]
}

 

Link to comment

Sorry for making review with support request... Anyway I marked 5, hope it is Ok.
Two issues for the moment:

​I was able to get both of these working on my install. The include worked for me right away. The JS took a little effort.

Here's what I have:

Page:

nsWRopL.png

Settings:

S0BtT8Z.png

Code:

<?php include 'page.php'; ?>

<hr style="margin:20px" />

<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="//cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js" type="text/javascript" charset="utf8"></script>
<script src="//cdn.datatables.net/tabletools/2.2.3/js/dataTables.tableTools.min.js"></script>

<script type="text/javascript" class="init">
(function($) {
  $(function() {
    $('#example').dataTable({
        "ajax": "/data.txt"
    });
  });
})(jQuery);
</script>

<table id="example" class="display" cellspacing="0" width="100%">
  <thead>
    <tr>
      <th>Name</th>
      <th>Position</th>
      <th>Office</th>
      <th>Extn.</th>
      <th>Start date</th>
      <th>Salary</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th>Name</th>
      <th>Position</th>
      <th>Office</th>
      <th>Extn.</th>
      <th>Start date</th>
      <th>Salary</th>
    </tr>
  </tfoot>
</table>

page.php, in the forum root folder:

<?php

echo 'test.php! ' . date('c');

?>

data.txt, as you provided, also in the forum root folder

So: You should be able to include files fine. The path is relative to the forum root, as far as I know. (Or you could probably make use of the IPS autoloader--but that's much more advanced.)

As for the JS, IPS 4.0 actually already includes jQuery--but it appears that's all the way at the page end. You can't use datatables unless you add it after that (possible, but involved) or include jQuery again, ahead of time, as you're doing. More to the point: I changed the [url=http://stackoverflow.com/questions/4472528/javascript-jquery-closure-function-syntax]jQuery closure, and it worked. Not sure what the cause of your error was; I didn't get that.

Let me know if you continue having trouble. Seems like the app is working fine though.

Link to comment
  • 4 weeks later...

No rush for sure, I am getting to dig into Easy Pages and I have to say it's pretty cool.  Maybe I don't end up using it just for the purpose I wanted it for. There is a lot more opportunity to use this, I believe this is different then IP.Pages but actually more powerful.

Link to comment
  • 2 weeks later...

Not sure why I'm getting this error, anyhelp would be appriecated! ( This is being emailed to me via Cron Daemon)

PHP Fatal error:  Access to undeclared static property: IPS\easypages\Page::$includeInSitemap in /chroot/home/*****/*****/html/beta/applications/core/extensions/core/Sitemap/Content.php on line 128

 

Link to comment

Not sure why I'm getting this error, anyhelp would be appriecated! ( This is being emailed to me via Cron Daemon)

PHP Fatal error:  Access to undeclared static property: IPS\easypages\Page::$includeInSitemap in /chroot/home/*****/*****/html/beta/applications/core/extensions/core/Sitemap/Content.php on line 128

​Hmm, okay. That's an easy fix if you're comfortable editing a file by hand:

File applications/easypages/sources/Page/Page.php

    public static $databaseTable    = 'easypages_pages';
    public static $databasePrefix    = 'page_';
    public static $databaseColumnId    = 'id';
    public static $includeInSitemap    = FALSE;
    
    protected static $databaseIdFields = array( 'page_id', 'page_key' );

Add the line in the middle with $includeInSitemap, then save, then no more errors.

I'll make sure that's included in the next update. Thanks.

Link to comment

​Hmm, okay. That's an easy fix if you're comfortable editing a file by hand:

File applications/easypages/sources/Page/Page.php

    public static $databaseTable    = 'easypages_pages';
    public static $databasePrefix    = 'page_';
    public static $databaseColumnId    = 'id';
    public static $includeInSitemap    = FALSE;
    
    protected static $databaseIdFields = array( 'page_id', 'page_key' );

Add the line in the middle with $includeInSitemap, then save, then no more errors.

I'll make sure that's included in the next update. Thanks.

​Thanks, that also fixed another issue. I was getting an error message in IPB ACP under dashboard for me to check sitemap generator that it was locking up. I'm guessing this was causing that error message because it's no longer there.

Link to comment

It seems when trying to download my theme in 4.0.0 i get a EX2 error.  I created a IPS support ticket and they just got back to me after Tier II support, it's Easy Pages from what support says.  Can you take a look?  Thanks! 

​That doesn't give me a whole lot to go on in terms of what's actually going wrong internally -- but I'll try it this evening and see if I can reproduce, then go from there.

Link to comment

I agree but I had to start somewhere, I can PM you the latest.cgi that they requested.  Not sure what else you need.  I simply tried to download any theme to back it up and it threw the EX2 error.  Maybe someone can give it a go and see if they also get the error.

Link to comment

I agree but I had to start somewhere, I can PM you the latest.cgi that they requested.  Not sure what else you need.  I simply tried to download any theme to back it up and it threw the EX2 error.  Maybe someone can give it a go and see if they also get the error.

​Please do, that could help. Thanks.

Link to comment
  • 4 weeks later...

Please advise: having 3 level include EasyPages-include_page0->include_php1->include_php2 I get Fatal error: Call to a member function for function from include_php2 class. Separately page0 is working fine.

​That sounds like an error in your PHP code. I can't help with that, sorry. 'Call to a member function on non-object' errors like that mean you're trying to use a variable as an object when it isn't an object at all. Check the line the error is on and work back from there.

Link to comment

That is code from framework used for years. This page also is working Ok when run separately. Just now I try to inject page into IPS via EasyPages.

​Then it's a consequence of how it interacts with the IPB framework. Whatever the case, the problem lies within your code and your code is what would have to be adjusted.

I don't want to seem hostile or evasive, it's just not my problem. I can't help you with errors being thrown in your custom code. I don't guarantee that all code will immediately work without modification. I just give you the tools to make it possible.

Edited by Ryan H.
Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...