Pager: New Module

General Chat, Comments
Post Reply
User avatar
gmoore
Posts: 212
Joined: Wed Jun 04, 2014 5:40 pm

Pager: New Module

Post by gmoore »

Doing final code review on one of my stash of modules in line with my "don't have to program to do things" ideals (tabbing didn't cut and paste well here):

Description:
------------
System: New Worlds Engine 1.x
Module: Pager
Text: Creates Public, Private and Admin adhoc HTML Pages using a templating system for custom content.

Features:
---------
- Create Public pages and menu items on the public menu system for unauthenticated users.
- Create Private pages and menu items on the private menu system for authenticated users.
- Create Admin pages and menu items on the Admin Panel for admin users.
- Create templates that are wrappers around your custom pages.

Fast Start:
-----------
- Install and enable Pager.

- On the Admin Panel, under Admin Quick Links, content is entered into Pager_Page and Pager_Template.

- In Pager_Template, add a new row. This contains the HTML code that wraps around your custom page. The template must contain at the very
least {{CONTENT}} which will be replaced by the Pager_Page content in the next step. This template is reusable. Note: You must have at
least one template.

Example: ID - 1
Name - Template1 - Name of template
Template - <hr/>{{CONTENT}}<hr/> - HTML that will display in the content area around the page content

- In Pager_Page, add a new row. This contains the custom page content and menu item information. Menu variables help place the page onto a
second of the menu.

Example:
ID - 1
Name - Gold Users - Name of page
Pager_Template_ID - Template1 - Template that is used to contain the page content
Content - John Jones<br/> - HTML that will display in the content area of the template
Menu_Label - Gold Users - Label that will show on the menu
Menu_Group - Admin Notes - Title of the group the menu item is in
Menu_Description - List of Gold Users - Description of menu choice
Menu_Position - 200 - Numerical value for menu placement
is_public - no - Shows only when a user is not logged in
is_private - no - Shows only when a user is logged in
is_admin - yes - Shows only when a user is a moderator

- The example page/template above will be on the Admin Panel in its' own section called 'Admin Notes' with a link 'Gold Users' which will
send '<hr/>John Jones<br/><hr/>' to the content area on the screen.

More Advanced:
--------------
Templates: Templates allow you to globally customize a group of pages. This will allow any HTML to be used for every page. It might be helpful
to have a PublicTemplate, PrivateTemplate or AdminTemplate as you need. Any HTML is valid.

Pages: Pages can be any html you need added to the site which you want placed into the various menu structures. This is instead of adding more
complicated module type single pages like Home for each HTML page you need. Examples include web pages for Help, Information, Notes, etc. Pages can
be public, private and/or admin but the menu settings might not make that feasible since they work from different settings. If you want to align to
other modules then use their settings for your page such as near the Home page on the public menu ('Home', null, null, 0) would be
(Menu_Label: 'Page Near Home', Menu_Group: <blank>, Menu_Description: <blank>, Menu_Position: 0). Any HTML is valid.

Global Replacements: Admin and Private pages/templates have global replacement variables available.

Global Replacement List (More to come):
{{USERNAME}} to include the users login name.

Very flexible without programming.

More to come!
Last edited by gmoore on Thu Sep 24, 2015 11:44 pm, edited 1 time in total.
Running a game is like riding a bike ... well it should be!

New Worlds Engine / FunMayhem.com
Helping you get your game concept up and running. Now.
User avatar
gmoore
Posts: 212
Joined: Wed Jun 04, 2014 5:40 pm

Re: Pager: New Module

Post by gmoore »

Some images.
Last edited by gmoore on Thu Sep 24, 2015 11:42 pm, edited 2 times in total.
Running a game is like riding a bike ... well it should be!

New Worlds Engine / FunMayhem.com
Helping you get your game concept up and running. Now.
User avatar
gmoore
Posts: 212
Joined: Wed Jun 04, 2014 5:40 pm

Re: Pager: New Module

Post by gmoore »

Some more:
Running a game is like riding a bike ... well it should be!

New Worlds Engine / FunMayhem.com
Helping you get your game concept up and running. Now.
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: Pager: New Module

Post by KyleMassacre »

This actually looks pretty interesting. Is it free for full license holders or are you doing things different than Alain did?
User avatar
gmoore
Posts: 212
Joined: Wed Jun 04, 2014 5:40 pm

Re: Pager: New Module

Post by gmoore »

The point is to allow free HTML to get onto the menu rather than write a module to do it.

It is for credits. I don't know that it is different from Alain since I can't speak for him. This is from what I had done independently from the engine the last couple of years.

Like I said. I want a more WordPress style for the engine and its' spin offs. This is the start.

Greg
Running a game is like riding a bike ... well it should be!

New Worlds Engine / FunMayhem.com
Helping you get your game concept up and running. Now.
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: Pager: New Module

Post by KyleMassacre »

I was just asking because Alain gave any modules he created for the engine free to all full license holders (which is something you should look into inside the code because if he does create a paid module and not want to give for free the system may default it to free). And also, how would this affect current modules if we wanted to use a custom template for pre-existing modules if that makes sense?
User avatar
gmoore
Posts: 212
Joined: Wed Jun 04, 2014 5:40 pm

Re: Pager: New Module

Post by gmoore »

This module is placed into the area any content would reside. The template is not a HTML page wide thing, but rather an area type thing. I was using it to post images and such around the 'read' content. It can be as simple as '{{CONTENT}}' with no affect on where the module goes. I use it to put an image header on the top.

Our policy is to grow the engine but no different than anyone else. It does not make business sense to build the engine always for free. It would disappear in no time.

Greg
Running a game is like riding a bike ... well it should be!

New Worlds Engine / FunMayhem.com
Helping you get your game concept up and running. Now.
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: Pager: New Module

Post by KaL »

I'm confused??? I'll probably need to see a video on it. Sorry Greg, I'm a visual person. Video pls!
User avatar
gmoore
Posts: 212
Joined: Wed Jun 04, 2014 5:40 pm

Re: Pager: New Module

Post by gmoore »

I wish I were video but that just makes me shudder. lol

It lets you add HTML pages anywhere in the menu structure.
Running a game is like riding a bike ... well it should be!

New Worlds Engine / FunMayhem.com
Helping you get your game concept up and running. Now.
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: Pager: New Module

Post by KaL »

Wait don't translation module do this already???

Edited: ok I got it! Thank you!
Last edited by KaL on Fri Sep 25, 2015 12:44 am, edited 2 times in total.
Post Reply

Return to “General”